/*
Theme Name:   PayStaff
Theme URI:    https://paystaff.com
Description:  PayStaff child theme for Kadence. Applies Plus Jakarta Sans typography and the PayStaff brand color system (primary blue #1A56DB, accent green #16A34A) across all Kadence global palette variables and component defaults.
Author:       PayStaff
Author URI:   https://paystaff.com
Template:     kadence
Version:      1.0.0
Requires at least: 6.3
Tested up to: 6.9.1
Requires PHP: 7.4
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  paystaff
Tags:         payroll, fintech, filipino, remote-work
*/

/*---------------------------------------------------------
PAYSTAFF BRAND TOKENS, MAPPED TO KADENCE'S GLOBAL PALETTE VARS
----------------------------------------------------------*/

:root {

  /* palette1-10 = Kadence's accent/text/bg slots */

  --global-palette1: #1A56DB; /* primary blue */
  --global-palette2: #1E3A8A; /* navy, hover/header bg */
  --global-palette3: #111827; /* near-black text */
  --global-palette4: #1F2937;
  --global-palette5: #374151;
  --global-palette6: #6B7280; /* muted text */
  --global-palette7: #F3F4F6; /* card bg */
  --global-palette8: #F9FAFB; /* page bg tint */
  --global-palette9: #FFFFFF;
  --global-palette10: #16A34A; /* green, freelancer CTA */

  --global-palette11: #16A34A; /* Success */
  --global-palette12: #1A56DB; /* Info    */
  --global-palette13: #DC2626; /* Alert   */
  --global-palette14: #D97706; /* Warning */
  --global-palette15: #F59E0B; /* Rating  */

  /* button colors */
  --global-palette-btn-bg:         #1A56DB;
  --global-palette-btn:            #FFFFFF;
  --global-palette-btn-bg-hover:   #1446C0;
  --global-palette-btn-hover:      #FFFFFF;

  --global-palette-btn-sec-bg:       #16A34A;
  --global-palette-btn-sec:          #FFFFFF;
  --global-palette-btn-sec-bg-hover: #15803D;
  --global-palette-btn-sec-hover:    #FFFFFF;

  --global-palette-btn-out:       #1A56DB;
  --global-palette-btn-out-hover: #1446C0;

  /* link colors */
  --global-palette-highlight:      #1A56DB;
  --global-palette-highlight-alt:  #1446C0;
  --global-palette-highlight-alt2: #EFF6FF;

  /* fonts */
  --global-body-font-family:    'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --global-heading-font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

  /* fluid type scale */
  --global-font-size-small:   clamp(0.8rem,  0.73rem  + 0.217vw, 0.9rem);
  --global-font-size-medium:  clamp(1.1rem,  0.995rem + 0.326vw, 1.25rem);
  --global-font-size-large:   clamp(1.75rem, 1.576rem + 0.543vw, 2rem);
  --global-font-size-larger:  clamp(2rem,    1.6rem   + 1vw,     2.5rem);
  --global-font-size-xxlarge: clamp(2.25rem, 1.728rem + 1.63vw,  3rem);

  /* spacing left at Kadence defaults */
  /* --global-edge-spacing: 1.5rem; */
  /* --global-boxed-spacing: 2rem;  */
}


/*---------------------------------------------------------
COLORS
----------------------------------------------------------*/

.white { color: var(--global-palette9); }

/*---------------------------------------------------------
BODY & TYPOGRAPHY
----------------------------------------------------------*/

body,
button,
input,
select,
optgroup,
textarea {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont,
    'Segoe UI', Helvetica, Arial, sans-serif;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont,
    'Segoe UI', Helvetica, Arial, sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--global-palette3);
}

h1 { letter-spacing: -0.02em; font-weight: 800; font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { letter-spacing: -0.015em; font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
h4 { font-size: clamp(1.5rem, 2.5vw, 2rem); }
h5 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h6 { font-size: clamp(1.1rem, 1.5vw, 1.25rem); }

body {
  color: var(--global-palette5);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--global-palette1);
  transition: color 0.15s ease;
}
a:hover,
a:focus {
  color: var(--global-palette2);
}

/*---------------------------------------------------------
BUTTONS
----------------------------------------------------------*/

button,
.button,
.wp-block-button__link,
.wp-element-button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  border-radius: 8px;
  letter-spacing: 0;
  transition: background 0.15s ease, color 0.15s ease, transform 0.1s ease;
}

button:hover,
.button:hover,
.wp-block-button__link:hover,
.wp-element-button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover {
  transform: translateY(-1px);
}

/*---------------------------------------------------------
FORM INPUTS
----------------------------------------------------------*/

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
textarea,
select {
  border-radius: 8px;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
textarea:focus {
  border-color: var(--global-palette1);
  box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.15);
}

/*---------------------------------------------------------
SELECTION COLOR
----------------------------------------------------------*/

::selection {
  background: #0345f3;
  color: #ffffff;
}

/*---------------------------------------------------------
UTILITY COLOR CLASSES, MATCH THEME.JSON PALETTE SLUGS
----------------------------------------------------------*/

.paystaff-blue    { color: #1A56DB; }
.paystaff-green   { color: #16A34A; }
.paystaff-dark    { color: #111827; }
.paystaff-muted   { color: #6B7280; }

.paystaff-bg-blue  { background-color: #1A56DB; color: #FFFFFF; }
.paystaff-bg-green { background-color: #16A34A; color: #FFFFFF; }
.paystaff-bg-light { background-color: #F9FAFB; }
.paystaff-bg-blue-tint  { background-color: #EFF6FF; }
.paystaff-bg-green-tint { background-color: #DCFCE7; }

/*---------------------------------------------------------
TOP CONTACT BAR
----------------------------------------------------------*/

.site-header-row-container-inner {
  position: relative;
}

.site-main-header-inner-wrap {
  padding-top: 40px !important;
}

.top-contact {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 100;
  background-color: var(--global-palette3, #111827);
  color: var(--global-palette6, #9ca3af);
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 8px 32px;
  border-bottom-left-radius: 24px;
  font-size: 13px;
  font-weight: 500;
  height: 40px;
}

.top-contact::before {
  content: "";
  position: absolute;
  top: 0;
  left: -24px;
  width: 24px;
  height: 24px;
  background: radial-gradient(circle at 0 100%, transparent 24px, var(--global-palette3, #111827) 24.5px);
  pointer-events: none;
}

.top-contact-info {
  display: flex;
  align-items: center;
  gap: 24px;
}

.top-contact-info span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-contact-info svg {
  color: #F59E0B;
}

.top-contact-socials {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: 16px;
}

.top-contact-socials a {
  color: var(--global-palette6, #9ca3af);
  display: flex;
  align-items: center;
  justify-content: center;
}

.top-contact-socials a:hover {
  color: var(--global-palette9, #ffffff);
}

/*---------------------------------------------------------
EDITOR-STYLES.CSS MIRRORS THIS, LOADED VIA FUNCTIONS.PHP
----------------------------------------------------------*/

/*---------------------------------------------------------
HEADER
----------------------------------------------------------*/
#main-header {
    box-shadow: 0 0 9px 1px #00000073;
}

.header-navigation .menu {
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 15px;
}

/*---------------------------------------------------------
GENERIC
----------------------------------------------------------*/
.clr {
    clear: both;
    width: 100%;
    display: block;
    overflow: hidden;
}

p {
    margin-top:0;
}
.uppercase {
    text-transform: uppercase;
}

strong {
    font-weight: 800 !important;
}

.s14 { font-size: 14px !important }
.s15 { font-size: 15px !important }
.s16 { font-size: 16px !important }
.s18 { font-size: 18px !important }
.s20 { font-size: 20px !important }
.s22 { font-size: 22px !important }
.s24 { font-size: 24px !important }
.s26 { font-size: 26px !important }
.s28 { font-size: 28px !important }
.s30 { font-size: 30px !important }
.s32 { font-size: 32px !important }
.s34 { font-size: 34px !important }
.s36 { font-size: 36px !important }
.s36 { font-size: 36px !important }
.s38 { font-size: 38px !important }
.s40 { font-size: 40px !important }
.s42 { font-size: 42px !important } 
.s44 { font-size: 44px !important } 
.s46 { font-size: 46px !important }
.s54 { font-size: 54px !important }
.s56 { font-size: 56px !important }
.s76 { font-size: 76px !important }
/*---------------------------------------------------------
HERO
----------------------------------------------------------*/
.hero-header {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

@media screen and (max-width:439px){
    
    #hero > div {
        margin-top:-50px;
    }
    
    #hero {
        background-position: 30% 1px;
    }   
    
    #hero h1 {
        font-size:34px !important;
        line-height: 46px !important;
        margin-bottom:20px;
    }
    
    #hero p {
        font-size: 18px !important;
        line-height:30px;
    }
}

/*---------------------------------------------------------
HERO TRUST ROW
----------------------------------------------------------*/
.hero-trust {
    margin-top: 28px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    color: var(--text-light);
}

.hero-avatars {
    display: flex;
}

.hero-avatars span:first-child {
    margin-left: 0;
}
.hero-avatars span {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 2px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    color: white;
    margin-left: -7px;
}

/*---------------------------------------------------------
KADENCE OVERRIDES
----------------------------------------------------------*/
.site-main-header-inner-wrap {
    height: 110px !Important;
}

.site-branding a.brand img {
    margin-top: -42px;
}

#mobile-toggle .kadence-svg-iconset svg {
    height: 1.5em;
    width: 1.5em;
    margin-top: -30px;    
}

/*---------------------------------------------------------
FOOTER, HARDCODED VIA TEMPLATE-PARTS/FOOTER/FOOTER-HARDCODED.PHP
----------------------------------------------------------*/
.footer-brand-logo {
    max-width: 170px;
}
.site-footer {
    box-sizing: border-box;
    padding: 0;

    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont,
        'Segoe UI', Helvetica, Arial, sans-serif;

    background: #050f24;
    color: rgba(255, 255, 255, 0.72);
}

.site-footer *,
.site-footer *::before,
.site-footer *::after {
    box-sizing: border-box;
}

.site-footer a {
    color: inherit;
    text-decoration: none;
}

.site-footer a:hover {
    color: #ffffff;
    text-decoration: none;
}

.site-footer ul {
    margin: 0;
    padding: 0;
}

.site-footer h3,
.site-footer h4,
.site-footer p,
.site-footer span {
    margin: 0;
}

/*---------------------------------------------------------
CTA BAND
----------------------------------------------------------*/

.site-footer .footer-cta {
    background: linear-gradient(90deg, #0b224f, #0a1a3d);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer .footer-cta-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 34px 1%;

    display: flex;
    align-items: center;
    gap: 22px;
}

.site-footer .footer-cta-icon {
    flex: none;

    width: 52px;
    height: 52px;

    display: grid;
    place-items: center;

    border-radius: 50%;
    background: rgba(31, 92, 255, 0.22);

    color: #6f9fff;
}

.site-footer .footer-cta-icon svg {
    width: 26px;
    height: 26px;
}

.site-footer .footer-cta-copy {
    flex: 1;
    min-width: 240px;
}

.site-footer .footer-cta-copy h3 {
    font-size: 21px;
    font-weight: 750;
    letter-spacing: -0.4px;
    color: #ffffff;
}

.site-footer .footer-cta-copy p {
    margin-top: 5px;
    font-size: 14.5px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.68);
}

.site-footer .footer-cta-actions {
    flex: none;

    display: flex;
    gap: 12px;
}

.site-footer .btn-cta-primary,
.site-footer .btn-cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 12px 20px;
    border-radius: 9px;

    font-size: 14.5px;
    font-weight: 650;
    white-space: nowrap;
}

.site-footer .btn-cta-primary {
    background: #1f5cff;
    color: #ffffff;
}

.site-footer .btn-cta-primary:hover {
    background: #1546d8;
    color: #ffffff;
}

.site-footer .btn-cta-primary svg {
    width: 16px;
    height: 16px;
}

.site-footer .btn-cta-secondary {
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    background: transparent;
}

.site-footer .btn-cta-secondary:hover {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.06);
}

.site-footer .btn-cta-secondary svg {
    width: 17px;
    height: 17px;
}

/*---------------------------------------------------------
MAIN FOOTER GRID
----------------------------------------------------------*/

.site-footer .footer-main-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 56px 1% 40px;

    display: grid;
    grid-template-columns: 1.6fr repeat(4, 1fr);
    gap: 30px;
}

.site-footer .footer-col--brand {
    padding-right: 20px;
}

.site-footer .footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.site-footer .footer-brand-mark {
    width: 34px;
    height: 34px;

    display: grid;
    place-items: center;

    border-radius: 8px;
    background: #ffffff;

    color: #1f5cff;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.site-footer .footer-brand-name {
    font-size: 19px;
    font-weight: 750;
    letter-spacing: -0.4px;
    color: #ffffff;
}

.site-footer .footer-brand-name .accent {
    color: #6f9fff;
}

.site-footer .footer-brand-tagline {
    margin-top: 15px;

    font-size: 15px;
    font-weight: 650;
    line-height: 1.5;
    color: #ffffff;
}

.site-footer .footer-brand-desc {
    margin-top: 11px;

    font-size: 13.5px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.55);
    max-width: 300px;
}

.site-footer .footer-social {
    margin-top: 20px;

    display: flex;
    gap: 10px;
}

.site-footer .footer-social a {
    width: 34px;
    height: 34px;

    display: grid;
    place-items: center;

    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);

    color: rgba(255, 255, 255, 0.85);
}

.site-footer .footer-social a:hover {
    background: rgba(255, 255, 255, 0.16);
}

.site-footer .footer-social svg {
    width: 15px;
    height: 15px;
}

.site-footer .footer-location {
    margin-top: 18px;

    display: flex;
    align-items: center;
    gap: 7px;

    font-size: 13.5px;
    color: rgba(255, 255, 255, 0.6);
}

.site-footer .footer-location svg {
    width: 15px;
    height: 15px;
    color: #6f9fff;
    flex: none;
}

.site-footer .footer-col h4 {
    margin-bottom: 18px;

    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.92);
}

.site-footer .footer-col ul {
    list-style: none;

    display: grid;
    gap: 13px;
}

.site-footer .footer-col ul a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.62);
}

.site-footer .footer-col ul a:hover {
    color: #ffffff;
}

/*---------------------------------------------------------
BADGES
----------------------------------------------------------*/

.site-footer .footer-badges {
    max-width: 1280px;
    margin: 0 auto;
    padding: 30px 1% 44px;

    border-top: 1px solid rgba(255, 255, 255, 0.08);

    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.site-footer .footer-badge {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 13px;
    align-items: flex-start;
}

.site-footer .footer-badge-icon {
    width: 44px;
    height: 44px;

    display: grid;
    place-items: center;

    border-radius: 10px;
    background: rgba(31, 92, 255, 0.16);

    color: #6f9fff;
}

.site-footer .footer-badge-icon svg {
    width: 21px;
    height: 21px;
}

.site-footer .footer-badge strong {
    display: block;
    margin-bottom: 3px;

    font-size: 14.5px;
    font-weight: 700;
    color: #ffffff;
}

.site-footer .footer-badge p {
    font-size: 12.5px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.55);
}

/*---------------------------------------------------------
BOTTOM BAR
----------------------------------------------------------*/

.site-footer .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer .footer-bottom-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 20px 1%;

    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 24px;

    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

.site-footer .footer-bottom-links {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.site-footer .footer-bottom-links a {
    color: rgba(255, 255, 255, 0.55);
}

.site-footer .footer-bottom-links a:hover {
    color: #ffffff;
}

.site-footer .footer-bottom-tag {
    color: rgba(255, 255, 255, 0.4);
}

/*---------------------------------------------------------
RESPONSIVE
----------------------------------------------------------*/

@media (max-width: 1100px) {
    .site-footer .footer-main-inner {
        grid-template-columns: repeat(3, 1fr);
    }

    .site-footer .footer-col--brand {
        grid-column: 1 / -1;
        padding-right: 0;
        margin-bottom: 10px;
    }

    .site-footer .footer-badges {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 780px) {
    .site-footer .footer-cta-inner {
        flex-wrap: wrap;
    }

    .site-footer .footer-cta-actions {
        width: 100%;
    }

    .site-footer .btn-cta-primary,
    .site-footer .btn-cta-secondary {
        flex: 1;
        justify-content: center;
    }

    .site-footer .footer-main-inner {
        grid-template-columns: repeat(2, 1fr);
    }

    .site-footer .footer-bottom-inner {
        justify-content: flex-start;
    }
}

@media (max-width: 560px) {
    .site-footer .footer-main-inner {
        grid-template-columns: 1fr;
    }

    .site-footer .footer-badges {
        grid-template-columns: 1fr;
    }
}