/* =========================================================
   GLOBAL STYLES - YES4.SOLUTIONS
   Shared across all pages
   ========================================================= */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&family=Roboto:wght@300;400;500;700&display=swap');

/* ---------- Reset / Base ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

html,
body {
    height: 100%;
}

body {
    font-family: 'Roboto', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #2B2B2B;
    background-color: #FFFFFF;
}

/* Remove default link styling */
a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

/* Headings */
h1, h2, h3, h4, h5 {
    font-family: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 600;
    color: #1E1E1E;
}

/* Paragraph spacing */
p + p {
    margin-top: 0.6rem;
}

/* ---------- Layout Container ---------- */
.container {
    max-width: 1200px;           /* Boxed layout */
    margin: 0 auto;
    padding: 0 1.5rem;           /* Side padding */
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    padding: 0.75rem 1.8rem;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 500;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

/* GOLD primary button (for website pages) */
.primary-btn {
    background-color: #D4AF37;   /* Gold */
    border-color: #D4AF37;
    color: #111111;
}

.primary-btn:hover {
    background-color: #b38f26;
    border-color: #b38f26;
}

/* Outline-style button */
.secondary-btn {
    background-color: #D4AF37;
    border-color: #D4AF37;
    color: #0e0f0e;
}

.secondary-btn:hover {
    background-color: #D4AF37;
    color: #111111;
}

/* Compact button variant (used e.g. in admin top bar) */
.btn.btn-compact {
    padding: 0.35rem 0.9rem;
    font-size: 0.8rem;
}

/* Generic primary variant (mostly for auth / forms) */
.btn-primary {
    background: #d4af37;      /* YES gold */
    color: #ffffff;
}

.btn-primary:hover {
    background: #b8922e;      /* darker gold on hover */
    transform: translateY(-1px);
}

.btn-block {
    display: block;
    width: 100%;
}

/* =========================================================
   HEADER & NAVIGATION (shared on public + dashboards)
   ========================================================= */

/* Main navigation on the right for marketing pages */
.main-nav {
    display: flex;
    align-items: center;
    gap: 1.8rem;
}

/* Individual links (already exist, we just keep them) */
.main-nav a {
    font-size: 1.0rem;
    font-weight: 500;
    color: #333333;
    padding-bottom: 2px;
}

/* Gold underline on hover like big OEM sites */
.main-nav a:hover {
    color: #D4AF37;
}


/* Logo (old structure support) */
.logo img {
    height: 46px;
    display: block;
}

/* Logo (small inline use) */
.logo-small {
    height: 40px;
    width: auto;
    display: block;
}

/* Brand block on the left (logo + name) */
.logo-wrap {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-small {
    height: 44px;
    width: auto;
    display: block;
}

.logo-text {
    font-family: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 0.95rem;              /* a bit smaller */
    font-weight: 600;
    letter-spacing: 0.18em;           /* refined spacing */
    text-transform: uppercase;
    color: #ffffff;
}

/* Two-line brand block: YES + full name */
.logo-text-block {
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
}

.logo-name-short {
    font-family: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.45em;      /* spaced letters: Y E S */
    text-transform: uppercase;
    color: #facc15;              /* YES gold */
}

.logo-subtext {
    font-family: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #e5e7eb;
    opacity: 0.9;
}


/* Navigation */
.main-nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    align-items: center;
}



/* Auth / login container in header */
.nav-login {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-width: 90px;
}

/* Any link / span inside authArea is shown as a small pill */
/* Container inside header */
.nav-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
}

/* Common pill look for login/logout + user text */
#authArea a,
#authArea span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 16px;
    background: transparent;
    color: #f2c94c;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* For login/logout button specifically – hide text, show only icon */
#authArea a[href*="login"],
#authArea a[href*="logout"] {
    font-size: 0;          /* hides LOGIN / LOGOUT letters */
    padding: 0.35rem 0.6rem;     /* pill just around the icon */

    
}

/* Icon itself */
#authArea a[href*="login"]::before,
#authArea a[href*="logout"]::before {
    width: 24px;
    height: 24px;
    margin: 0;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    
}

/* Hover behaviour for pill */
#authArea a:hover,
#authArea span:hover {
    background: transparent;
    color: #facc15;
}

/* Keep backwards compatibility with any existing .login-link usage */
.login-link {
    color: #facc15;
}



/* ===== Auth icons (login / logout) ===== */
/* Place icons at: static/assets/nav-login.png and nav-logout.png */
/* ===== Auth icons (login / logout) ===== */
/* Put these files in: static/assets/header-login.png and header-logout.png */

/* Common pseudo-element for both states */
/* Login / Logout icons */
/* Auth header icons – point to /static/assets from /static/css */
#authArea a[href*="login"]::before,
#authArea a[href*="logout"]::before {
    content: "";
    display: inline-block;
    width: 22px;
    height: 22px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* Blue icon when user is LOGGED OUT */
#authArea a[href*="login"]::before {
    background-image: url("../assets/header-login.png");
}

/* Red icon when user is LOGGED IN */
#authArea a[href*="logout"]::before {
    background-image: url("../assets/header-logout.png");
}

#authArea a[href*="login"]::before,
#authArea a[href*="logout"]::before {
    width: 24px;
    height: 24px;
    margin: 0;
}

.nav-toggle {
    padding-right: 0.2rem;   /* small balancing tweak */
    
}


/* Header layout – logo left, login + menu right */
.site-header .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Let nav grow, but keep auth + menu at far right */
.site-header .main-nav {
    flex: 1;
}

/* Login / logout area */
#authArea {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Menu icon sits just after login pill */
.site-header .nav-toggle {
    margin-left: 1rem;
}

/* === Header right side: MENU + login/logout column === */
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Stack MENU icon and Login/Logout icon on the right */
.header-menu-auth {
    display: flex;
    flex-direction: column;
    align-items: flex-end;   /* right-align both icons */
    gap: 0.55rem;            /* vertical spacing between MENU and auth icon */
    padding-right: 1.2rem;   /* small buffer from extreme right edge */
}

/* Make sure both use the same horizontal axis */




/* Center the icon inside the round pill */
.header-menu-auth .nav-login {
    display: flex;
    align-self: flex-end;
    justify-content: center;
    margin-right: 1.5rem;
    
}

.header-menu-auth .nav-toggle {
 display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid rgba(33, 32, 30, 0.555);
    background: transparent;

}

/* Stack MENU on top, icon just below, both within container */
.header-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.55rem;                /* Better spacing between MENU + Login icon */
    padding-right: 1.2rem;       /* Prevents going fully to right edge */
}

/* Ensure both MENU and Login/Logout icon share same center axis */
.header-actions .nav-toggle,
.header-actions #authArea {
    align-self: flex-end;
}

/* Perfect vertical centering for auth pill icon */
.header-actions #authArea a {
    display: flex;
    align-items: center;
    justify-content: center;
}


/* Inside header-actions we don't push authArea with auto margin */
.site-header #authArea {
    margin-left: 0;
    gap: 0.5rem;
}

/* MENU button should sit flush with the same right padding as icon */
.site-header .nav-toggle {
    margin: 0;
}





/* Optional username text next to logout icon */
.user-info {
    padding: 0 0.3rem 0 0;
    font-size: 0.78rem;
    font-weight: 600;
    color: #e5e7eb;
}

/* Main header layout */
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Stack menu + auth icon vertically on the right */
.header-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.35rem;       /* space between menu and icon */
}

/* Keep the hamburger on the right edge */
.nav-toggle {
    margin: 0;
}



/* Mobile nav toggle (hamburger) */
.nav-toggle {
    display: none;   /* Hidden on desktop */
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    width: 22px;
    height: 2px;
    background-color: #333333;
    display: block;
}

/* Optional user info on header (dashboards) */
.user-info {
    padding: 6px 12px;
    font-weight: 600;
    color: #d0a144;
}

.nav-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
}

.nav-link:hover {
    color: #d4af37;
}

/* Home page: header floats on top of hero (like DSI) */
.home-page .site-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: transparent;
    border-bottom: none;
    box-shadow: none;
    z-index: 20;
}

.home-page .header-inner {
    height: 80px;
}

/* On home page we hide inline menu and show MENU icon */
.home-page .main-nav {
    display: none;
}


.home-page .nav-toggle 
.site-header .nav-toggle{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: rgba(33, 8, 8, 0.2);
    
}

.home-page .nav-toggle span,   
.site-header .nav-toggle span {
    background-color: #daaf4b ;
    color: #000000;
}

/* Make logo + brand white on top of hero image */
.home-page .logo-text {
    color: #ffffffd5;
}

/* Layout: logo left, nav / MENU right */
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Inner pages with dark hero (What We Do etc.) */
.site-header-dark {
    position: sticky;
    top: 0;
    z-index: 30;
    background:
        radial-gradient(circle at top left,
                        rgba(250, 204, 21, 0.08),
                        transparent 55%),
        #020617; /* same deep navy as inner-hero-section */
    border-bottom: none; /* no extra line after header */
}


/* Refine nav on dark header */
.site-header-dark .main-nav {
    background: transparent !important;
    backdrop-filter: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
}

/* International-style nav typography on dark header */
.site-header-dark .main-nav a {
    font-size: 0.92rem;
    font-weight: 500;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

/* Keep login pill readable on dark */
.site-header-dark .nav-login {
    border: 1px solid rgba(250, 204, 21, 0.65);
    padding: 0.35rem 1.1rem;
}

    /* On mobile, hide the inline header nav and use only overlay */
    .site-header .main-nav {
        display: none;
    }

    .site-header .nav-toggle {
        display: flex;
    }

/* CONTACT PAGE – header band aligned with hero background */
.contact-page .site-header,
.what-we-do .site-header,
.digital-page .site-header,
.about-page .site-header, 
.careers-page .site-header,
.auth-body .site-header,  
.services-page .site-header{
    background: radial-gradient(circle at top left, rgb(11, 11, 11), transparent 80%),
                linear-gradient(190deg, #000000e0, #cbcdd3);
    
    border-bottom: 1px solid rgba(1, 4, 8, 0.35);
}

.contact-page .site-header .header-inner,
.what-we-do .site-header .header-inner, 
.digital-page .site-header .header-inner,
.about-page .site-header .header-inner,
.careers-page .site-header .header-inner,
.auth-body .site-header .header-inner,
.services-page .site-header .header-inner {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}



/* =========================================================
   GENERIC SECTION STYLES (used by many pages)
   ========================================================= */

section {
    padding: 3.5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 2.2rem;
}

.section-header h2 {
    font-size: 1.7rem;
    margin-bottom: 0.5rem;
}

.section-header p {
    color: #666666;
    max-width: 700px;
    margin: 0.3rem auto 0;
}

/* =========================================================
   FOOTER – Premium Minimal with Careers Link
   ========================================================= */

.site-footer {
    background-color: #111111;
    color: #f0f0f0;
    padding: 24px 0;
    border-top: 1px solid #222222;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-top: auto;
}

.site-footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.footer-left,
.footer-right {
    margin: 0;
    color: #bbbbbb;
}

.footer-right {
    text-align: right;
}

/* QUICK LINKS */
.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 6px;
}

.footer-links a {
    color: #cccccc;
    text-decoration: none;
    font-size: 0.78rem;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* =========================================================
   RESPONSIVE STYLES – global behaviour
   ========================================================= */

/* Tablets and below */
@media (max-width: 992px) {

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }
}

/* Mobile */
@media (max-width: 768px) {

    /* Header: show mobile toggle, hide horizontal menu */
    .nav-toggle {
        display: flex;
    }

    
    .main-nav ul {
        flex-direction: column;
        align-items: flex-start;
        padding: 0.75rem 1.5rem 1rem;
        gap: 0.75rem;
    }

    .main-nav a {
        font-size: 0.98rem;
        display: block;
        padding: 0.5rem 1.5rem 0.5rem 1.5rem;
    }

    /* When we add JS, we'll toggle a class like .nav-open */
    .main-nav.nav-open {
        display: block;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .logo img {
        height: 40px;
    }
}

@media (max-width: 768px) {

    /* Header: on mobile use overlay menu + hamburger */
    .site-header .main-nav {
        display: none;
    }

    .site-header .nav-toggle {
        display: flex;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: flex-start;
        padding: 0.75rem 1.5rem 1rem;
        gap: 0.75rem;
    }

    .main-nav a {
        font-size: 0.98rem;
        display: block;
        padding: 0.5rem 1.5rem 0.5rem 1.5rem;
    }

    .main-nav.nav-open {
        display: block;
    }
}

/* ============================
   FULLSCREEN NAV OVERLAY (Home)
   ============================ */

.nav-overlay {
    position: fixed;
    inset: 0;
    background: transparent;
    display: none;
    z-index: 40;
    color: #f9fafb;
}

.nav-overlay.open {
    display: block;
}

.nav-overlay-inner {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 1.5rem 3rem;
    display: flex;
    flex-direction: column;
}

/* Brand in overlay */
.nav-overlay-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-overlay-logo {
    height: 44px;
    width: auto;
}

.nav-overlay-name {
    font-family: 'Poppins', system-ui, sans-serif;
    font-size: 1.1rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

/* Close button */
.nav-overlay-close {
    position: absolute;
    top: 1.6rem;
    right: 3rem;
    background: transparent;
    border: none;
    font-size: 2.4rem;
    line-height: 1;
    color: #f9fafb;
    cursor: pointer;
}

.nav-overlay-sub-close {
    position: absolute;
    right: 3rem;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    color: #f9fafb;
    cursor: pointer;
}
/* Centered menu items */
.nav-overlay-menu {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.2rem;
    font-family: 'Poppins', system-ui, sans-serif;
    font-size: 1.2rem;
    letter-spacing: 0.12em;
}

.nav-overlay-menu a {
    text-transform: uppercase;
    color: #e5e7eb;
}

.nav-overlay-menu a:hover {
    color: #facc15;
}

/* FIX: Prevent menu overlapping with background hero text */
.nav-overlay {
    backdrop-filter: blur(14px) brightness(0.45);
    background: linear-gradient(
        rgba(0,0,0,0.60),
        rgba(0,0,0,0.55)
    );
}

/* Shift menu slightly upward to avoid overlap with YES */
.nav-overlay-menu {
    padding-bottom: 4rem;        /* pushes it up */
    margin-top: -1.5rem;         /* fine adjustment */
}

/* Slightly bigger tap-friendly spacing on mobile */
@media (max-width: 480px) {
    .nav-overlay-menu a {
        font-size: 1.15rem;
        padding: 0.8rem 0;
    }
    
}

/* ---------------------------------------------------------
   GLOBAL PREMIUM NAV MENU  (applies to all pages)
   Transparent dropdown + glass blur + gold hover
--------------------------------------------------------- */
.main-nav {
    background: rgba(0, 0, 0, 0.25) !important;
    backdrop-filter: blur(8px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.10) !important;
    box-shadow: none !important;
}

/* Nav links (all pages) */
.main-nav a {
    color: #f5f5f5 !important;
    font-weight: 400;
    transition: color 0.25s ease;
}

/* Hover = YES Gold */
.main-nav a:hover {
    color: #facc15 !important;
}



/* Mobile + small screens menu panel */
.mobile-nav {
    background: rgba(0, 0, 0, 0.35) !important;
    backdrop-filter: blur(10px) !important;
    border-left: 1px solid rgba(255, 255, 255, 0.10);
    background-size: contain;
}

/* Mobile menu links */
.mobile-nav a {
    color: #ffffff !important;
    font-size: 1.1rem;
    padding: 1rem 1.5rem;
    display: block;
}

/* Mobile hover */
.mobile-nav a:hover {
    color: #facc15 !important;
}

/* Hamburger button lines */
.menu-toggle span {
    background-color: #ffffff !important;
}

