/* ============================================================
   Agistech Inc. — Global Design System (Premium Header Version)
   COMPLETE CSS FOR ALL PAGES
   ============================================================ */

/* ---------- Root Variables ---------- */
:root {
    --header-bg: #FCF9F1;
    --navy-deep: #101E33;
    --text-dark: #1A1A1A;
    --text-muted: #64748b;
    --primary-blue: #0062ff;
    --accent-gold: #C5A059;
    --white: #FFFFFF;
    --footer-bg: #0B1422;
    --border-light: #F1F1F1;
    --accent-light: #EBF4FF;
}

/* ---------- Base Reset ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--white);
    color: var(--text-dark);
    line-height: 1.6;
}

/* ============================================================
   PREMIUM CONSULTING HEADER — FINAL WORKING VERSION
   ============================================================ */

.premium-header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    padding: 6px 48px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.premium-header .logo img {
    height: 200px;
    width: auto;
    display: block;
}

.desktop-nav {
    display: flex;
    justify-content: center;
    gap: 40px;
}

.desktop-nav a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active {
    color: var(--primary-blue);
}

.header-cta {
    background: var(--primary-blue);
    color: white !important;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: 0.3s ease;
}

.header-cta:hover {
    background: #004ed6;
}

.mobile-menu-icon {
    display: none;
    font-size: 32px;
    cursor: pointer;
}

.mobile-menu {
    display: none;
    flex-direction: column;
    background: rgba(255,255,255,0.95);
    padding: 20px;
    border-bottom: 1px solid #ddd;
}

.mobile-menu a {
    padding: 12px 0;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    border-bottom: 1px solid #eee;
}

.mobile-menu.open {
    display: flex;
}

@media (max-width: 768px) {
    .desktop-nav,
    .header-cta {
        display: none;
    }

    .mobile-menu-icon {
        display: block;
    }

    .premium-header {
        grid-template-columns: auto 1fr auto;
        padding: 10px 24px;
    }

    .premium-header .logo img {
        height: 140px;
    }
}

/* ============================================================
   ENHANCED HERO LAYOUT — PREMIUM CONSULTING VERSION
   ============================================================ */

.hero,
.services-hero {
    height: 80vh; /* More premium, less cramped */
    min-height: 620px;
}

.hero-content,
.hero-container {
    max-width: 900px; /* Better text width */
    margin: 0 auto;
}

.hero h1,
.services-hero h1 {
    padding: 24px 48px;
    padding-top: 120px;
    font-size: clamp(2rem, 4.5vw, 3.8rem);
    border-radius: 8px;
}

.hero-lead {
    padding: 14px 32px;
    font-size: 15px;
    letter-spacing: 2px;
    border-radius: 6px;
}

/* CTA under hero */
.hero-cta {
    margin-top: 32px;
    display: inline-block;
    background: var(--primary-blue);
    color: white;
    padding: 16px 40px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    font-size: 16px;
    transition: 0.3s ease;
}

.hero-cta:hover {
    background: #004ed6;
    transform: translateY(-2px);
}

/* MOBILE OPTIMIZATION */
@media (max-width: 768px) {
    .hero,
    .services-hero {
        height: auto;
        padding: 80px 20px;
    }

    .hero h1,
    .services-hero h1 {
        padding: 18px 24px;
        font-size: 2rem;
    }

    .hero-lead {
        padding: 10px 20px;
        font-size: 13px;
        letter-spacing: 1.5px;
    }

    .hero-cta {
        width: 100%;
        text-align: center;
        padding: 16px;
    }
}

/* ============================================================
   ENHANCED CORE COMPETENCIES — PREMIUM CONSULTING VERSION
   ============================================================ */

.section {
    padding: 120px 60px;
}

.section-header h2 {
    font-size: 36px;
    letter-spacing: 3px;
    margin-bottom: 20px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 48px;
}

/* CARD UPGRADE */
.card {
    padding: 48px;
    border-radius: 14px;
    border: 1px solid var(--border-light);
    background: #ffffff;
    box-shadow: 0 12px 40px rgba(0,0,0,0.04);
    transition: all 0.35s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.08);
    border-color: var(--primary-blue);
}

/* TITLE */
.card h3 {
    font-size: 24px;
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 16px;
    color: var(--navy-deep);
}

/* DESCRIPTION */
.card p {
    font-size: 17px;
    color: #475569;
    margin-bottom: 20px;
    line-height: 1.7;
}

/* BULLET LIST */
.card ul {
    margin-bottom: 20px;
}

.card ul li {
    margin-bottom: 10px;
    font-size: 15px;
    color: #334155;
}

/* TAG */
.card-tag {
    display: inline-block;
    margin-top: auto;
    padding: 8px 18px;
    background: var(--accent-light);
    color: var(--primary-blue);
    font-size: 13px;
    font-weight: 700;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* MOBILE OPTIMIZATION */
@media (max-width: 768px) {
    .section {
        padding: 80px 20px;
    }

    .card {
        padding: 32px;
    }
}


/* ============================================================
   QUICK FACTS
   ============================================================ */

.facts-section {
    padding: 120px 60px;
    background: var(--accent-light);
    text-align: center;
}

.facts-section h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 32px;
    color: var(--navy-deep);
    margin-bottom: 50px;
}

.facts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.fact-card {
    background: white;
    padding: 40px 20px;
    border-radius: 16px;
    border: 1px solid var(--border-light);
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.fact-number {
    font-size: 42px;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 10px;
}

.fact-label {
    font-size: 16px;
    color: #475569;
    font-weight: 600;
}

/* ============================================================
   SERVICES PAGE
   ============================================================ */

.services-section {
    padding: 100px 60px;
    max-width: 1300px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.icon-box {
    font-size: 40px;
    margin-bottom: 20px;
}

.sell-point {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary-blue);
    font-weight: 700;
    margin-bottom: 10px;
}

.service-card h3 {
    font-size: 22px;
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 15px;
    color: var(--navy-deep);
}

.service-desc {
    font-size: 16px;
    color: #475569;
    margin-bottom: 20px;
    line-height: 1.7;
}

.feature-list {
    list-style: none;
    padding-left: 0;
}

.feature-list li {
    margin-bottom: 10px;
    font-size: 15px;
    color: #334155;
}

/* ============================================================
   CASE STUDIES PAGE
   ============================================================ */

.stories-section {
    padding: 100px 60px;
    max-width: 1300px;
    margin: 0 auto;
}

.stories-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
}

.story-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.story-content {
    display: flex;
    flex-direction: column;
}

.story-meta {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary-blue);
    font-weight: 700;
    margin-bottom: 10px;
}

.story-card h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 28px;
    color: var(--navy-deep);
    margin-bottom: 15px;
}

.story-desc {
    font-size: 17px;
    color: #475569;
    margin-bottom: 25px;
    line-height: 1.7;
}

.results-box {
    display: flex;
    gap: 40px;
    margin-top: auto;
}

.result-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-blue);
}

.result-label {
    font-size: 14px;
    color: #475569;
    font-weight: 600;
}

@media (max-width: 900px) {
    .story-card {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   CONSULTATION PAGE
   ============================================================ */

.consult-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-top: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 15px;
    font-weight: 600;
    color: var(--navy-deep);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    background: #ffffff;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 98, 255, 0.15);
    outline: none;
}

.form-group textarea {
    min-height: 140px;
    resize: vertical;
}

.consult-form .cta-btn {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    border-radius: 50px;
}

.container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
}

/* ============================================================
   CTA SECTION
   ============================================================ */

.cta-section {
    background: var(--navy-deep);
    color: white;
    text-align: center;
    padding: 120px 60px;
}

.cta-section h2 {
    font-size: 32px;
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 18px;
    color: #d1d5db;
    margin-bottom: 40px;
}

.cta-btn {
    display: inline-block;
    background: var(--primary-blue);
    color: white;
    padding: 18px 45px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
}

.cta-btn:hover {
    background: #0052d6;
    transform: translateY(-2px);
}

/* ============================================================
   FOOTER
   ============================================================ */

footer {
    background-color: var(--footer-bg);
    color: #94A3B8;
    padding: 80px 60px;
    text-align: center;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
}

.footer-brand .logo {
    color: var(--white);
    margin-bottom: 25px;
    display: block;
}

.footer-bottom {
    margin-top: 40px;
    font-size: 13px;
    opacity: 0.8;
}
/* Hero subtitle spacing fix */
.hero-lead {
    margin-top: -6px !important;
    display: inline-block !important;
    line-height: 1.5;
}

/* Mobile refinement */
@media (max-width: 768px) {
    .hero-lead {
        margin-top: 0 !important;
    }
}
/* Make the ending phrase smaller and more readable */
.hero-subtext {
    font-size: 0.65em;          /* smaller but still proportional */
    font-weight: 500;           /* slightly lighter for contrast */
    opacity: 0.85;              /* softens it so main title stands out */
    display: inline-block;
    margin-left: 6px;           /* spacing from main title */
}

/* Mobile refinement */
@media (max-width: 768px) {
    .hero-subtext {
        font-size: 0.75em;      /* slightly larger on phones for readability */
        display: block;         /* moves to next line for clarity */
        margin-left: 0;
        margin-top: 4px;
    }
}
/* Smaller second-line tagline under hero title */
.hero-subtext {
    font-size: 0.55em;      /* smaller than main title */
    font-weight: 500;
    opacity: 0.9;
    display: block;         /* ensures it stays on its own line */
    margin-top: 6px;        /* spacing below main title */
}

/* Mobile refinement */
@media (max-width: 768px) {
    .hero-subtext {
        font-size: 0.75em;  /* slightly larger for phone readability */
        margin-top: 4px;
    }
}
/* Main hero title spacing */
.hero-title {
    line-height: 1.2;
    margin-bottom: 12px; /* space before the subtext */
}

/* Smaller second line */
.hero-subtext {
    font-size: 0.55em;
    font-weight: 500;
    opacity: 0.9;
    display: block;
    margin-top: 6px;
}

/* Subtitle paragraph spacing */
.hero-lead {
    margin-top: 14px; /* space between subtext and paragraph */
    font-size: 16px;
    line-height: 1.6;
}

/* Mobile refinement */
@media (max-width: 768px) {
    .hero-subtext {
        font-size: 0.75em;
        margin-top: 4px;
    }
    .hero-lead {
        margin-top: 10px;
        font-size: 14px;
    }
}
/* Main hero title spacing */
.hero-title {
    line-height: 1.15;
    margin-bottom: 10px; /* space before the tagline */
}

/* Tagline under the title */
.hero-subtext {
    font-size: 0.55em;
    font-weight: 500;
    opacity: 0.9;
    display: block;
    margin-top: 6px; /* space under the main title */
}

/* Subtitle paragraph spacing */
.hero-lead {
    margin-top: 14px; /* space under the tagline */
    font-size: 16px;
    line-height: 1.6;
}

/* Mobile refinement */
@media (max-width: 768px) {
    .hero-subtext {
        font-size: 0.75em;
        margin-top: 4px;
    }
    .hero-lead {
        margin-top: 10px;
        font-size: 14px;
    }
}
/* Main hero title spacing */
.hero-title {
    line-height: 1.15;
    margin-bottom: 18px; /* space before the tagline */
}

/* Tagline under the title */
.hero-subtext {
    font-size: 0.45em;   /* smaller so it no longer competes */
    font-weight: 500;
    opacity: 0.9;
    display: block;
    margin-top: 6px;     /* space under the main title */
}

/* Subtitle paragraph spacing */
.hero-lead {
    margin-top: 18px;    /* space under the tagline */
    font-size: 16px;
    line-height: 1.6;
}

/* Mobile refinement */
@media (max-width: 768px) {
    .hero-subtext {
        font-size: 0.65em;
        margin-top: 4px;
    }
    .hero-lead {
        margin-top: 12px;
        font-size: 14px;
    }
}
/* Boost subtitle visibility specifically */
.hero-lead {
    color: #ffffff; /* pure white for maximum contrast */
    font-weight: 500;
    text-shadow: 0 3px 8px rgba(0, 0, 0, 0.45); /* stronger shadow */
}
/* Hero CTA button */
.hero-cta {
    margin-top: 28px;
    display: inline-block;
    background: #0057ff;
    color: #ffffff;
    padding: 16px 42px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: 0.3s ease;
    position: relative;
    z-index: 3;
}

.hero-cta:hover {
    background: #0044cc;
    transform: translateY(-2px);
}
/* Softer gradient overlay for hero */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.28) 0%,   /* softer bottom */
        rgba(0, 0, 0, 0.15) 40%, /* very light mid fade */
        rgba(0, 0, 0, 0.00) 100% /* fully transparent at top */
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

/* SERVICES HERO — ADD OVERLAY FOR READABILITY */
.services-hero {
    position: relative;
    background-size: cover;
    background-position: center;
    height: 60vh;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.services-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.45),
        rgba(0, 0, 0, 0.65)
    );
    z-index: 1;
}

.services-hero .hero-container {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 0 20px;
}

.services-hero h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 16px;
}

.services-hero .hero-lead {
    font-size: 1.1rem;
    opacity: 0.9;
}
/* SERVICES HERO — NAVY BACKGROUND */
.services-hero {
    position: relative;
    background: var(--navy-deep); /* your brand navy */
    color: white;
    height: 60vh;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
}

/* Soft gradient so text stays readable */
.services-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.25),
        rgba(0, 0, 0, 0.55)
    );
    z-index: 1;
}

.services-hero .hero-container {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
}

.services-hero h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 16px;
    color: white;
}

.services-hero .hero-lead {
    font-size: 1.1rem;
    opacity: 0.9;
    color: white;
}
/* SERVICES HERO — GOLD ACCENT LINE */
.services-hero h1 {
    position: relative;
    display: inline-block;
    padding-bottom: 18px; /* spacing above the line */
}

.services-hero h1::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 110px;          /* slightly longer for balance */
    height: 4px;
    background: var(--accent-gold);
    border-radius: 4px;
}
/* ABOUT PAGE — FINAL CLEAN VERSION */
.about-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    padding: 120px 0;
    background: #fafafa;
}

.about-content {
    flex: 1;
    max-width: 520px;
}

.about-image {
    flex: 1;
    display: flex;
    max-height: 420px;
    overflow: hidden;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 16px;
    box-shadow: 0 12px 36px rgba(0,0,0,0.18);
}
/* FORCE ABOUT PAGE TO IGNORE HERO HEIGHT */
.about-section {
    height: auto !important;
    min-height: auto !important;
    padding: 120px 0 !important;
}
/* ABOUT PAGE — FINAL VISUAL POLISH */
.about-section {
    padding: 100px 60px;
    gap: 50px;
}

.about-content {
    flex: 1 1 480px;
    max-width: 520px;
}

.about-image {
    flex: 1 1 480px;
    display: flex;
    justify-content: center;
    align-items: center;
    max-height: 340px; /* refined height */
    overflow: hidden;
}

.about-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 16px;
    box-shadow: 0 12px 36px rgba(0,0,0,0.18);
}

/* Responsive refinement */
@media (max-width: 900px) {
    .about-section {
        flex-direction: column;
        text-align: center;
        padding: 80px 20px;
    }

    .about-image {
        max-height: 280px;
        margin-top: 30px;
    }
}
/* ABOUT — FIX IMAGE TOO WIDE */
.about-image {
    max-width: 420px;        /* controls how wide the image column can be */
    flex: 0 0 420px;         /* prevents it from stretching wider */
}

.about-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 16px;
}
/* ABOUT — PERFECT 50/50 SPLIT */
.about-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    padding: 120px 60px;
}

.about-content {
    flex: 0 0 50%;      /* EXACT half width */
    max-width: 50%;
}

.about-image {
    flex: 0 0 50%;      /* EXACT half width */
    max-width: 50%;
    display: flex;
    justify-content: flex-end; /* keep image on right side */
}

.about-image img {
    width: 100%;        /* fill the 50% column */
    height: auto;
    object-fit: contain;
    border-radius: 16px;
    box-shadow: 0 12px 36px rgba(0,0,0,0.18);
}
/* ABOUT — MAKE TEXT + IMAGE CONTAINER TALLER */
.about-section {
    min-height: 520px;      /* increase overall section height */
    padding: 140px 60px;    /* more breathing room */
}

.about-image {
    max-height: 420px;      /* taller image container */
    display: flex;
    align-items: center;
}

.about-image img {
    height: 100%;
    width: auto;
    object-fit: contain;
}
/* ABOUT — FIX OVERFLOW + CENTER CONTENT */
.about-container {
    max-width: 1300px;      /* keeps layout centered */
    margin: 0 auto;         /* centers the container */
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

/* Perfect 50/50 split */
.about-content {
    flex: 0 0 50%;
    max-width: 50%;
}

.about-image {
    flex: 0 0 50%;
    max-width: 50%;
    display: flex;
    justify-content: flex-end;
}

.about-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 16px;
}
/* ABOUT — PREMIUM CONSULTING LAYOUT */
.about-section {
    padding: 140px 0;
    background: #fafafa;
}

.about-container {
    max-width: 1180px;          /* premium container width */
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 80px;                  /* premium spacing */
}

/* Left column — premium typography */
.about-content {
    flex: 1;
    max-width: 50%;
}

.about-content h2 {
    font-size: 42px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #101E33;
    margin-bottom: 12px;
}

.about-content h3 {
    font-size: 20px;
    font-weight: 700;
    color: #0062ff;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 28px;
}

.about-content p {
    font-size: 18px;
    line-height: 1.75;
    color: #475569;
    margin-bottom: 22px;
}

/* Right column — premium image treatment */
.about-image {
    flex: 1;
    max-width: 50%;
    display: flex;
    justify-content: flex-end;
}

.about-image img {
    width: 100%;
    max-width: 520px;           /* prevents oversized image */
    height: auto;
    border-radius: 18px;
    object-fit: contain;
    box-shadow: 0 18px 48px rgba(0,0,0,0.15);
}
/* ABOUT — PREMIUM GOLD LEFT BORDER ACCENT */
.about-content {
    position: relative;
    padding-left: 32px; /* space for the gold bar */
}

.about-content::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    width: 6px;                 /* thickness of gold bar */
    height: 80px;               /* length of gold bar */
    background: var(--accent-gold);
    border-radius: 4px;
    opacity: 0.95;
}
/* CONSULTATION — PREMIUM ENTERPRISE STYLE */
.cta-section {
    background: var(--navy-deep);
    color: white;
    text-align: center;
    padding: 160px 60px;          /* more vertical presence */
    position: relative;
}

/* Subtag */
.cta-section .subtag {
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent-gold);
    font-weight: 700;
    margin-bottom: 18px;
    display: inline-block;
}

/* Main title */
.cta-section h2 {
    font-size: 46px;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 24px;
}

/* Gold accent line under title */
.cta-section h2::after {
    content: "";
    display: block;
    width: 120px;
    height: 4px;
    background: var(--accent-gold);
    margin: 18px auto 0;
    border-radius: 4px;
    opacity: 0.95;
}

/* Description */
.cta-section p {
    font-size: 20px;
    color: #d1d5db;
    max-width: 720px;
    margin: 30px auto 50px;
    line-height: 1.75;
}

/* CTA button */
.cta-btn {
    display: inline-block;
    background: var(--primary-blue);
    color: white;
    padding: 18px 48px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 0.5px;
    transition: 0.3s ease;
}

.cta-btn:hover {
    background: #0052d6;
    transform: translateY(-3px);
}
/* CONSULTATION — PREMIUM SUBTAG ABOVE TITLE */
.consult-subtag {
    display: inline-block;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-gold);
    margin-bottom: 14px;     /* spacing above the main title */
    opacity: 0.95;
}
/* CONSULTATION HERO — MATCH CASE STUDIES STYLE */
.consult-hero {
    background: var(--navy-deep);
    color: white;
    text-align: center;
    padding: 160px 60px;
    position: relative;
}

/* Subtag (same style as CASE STUDIES) */
.consult-subtag {
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent-gold);
    font-weight: 700;
    margin-bottom: 18px;
    display: inline-block;
    opacity: 0.95;
}

/* Main title (same scale as CASE STUDIES) */
.consult-hero h2 {
    font-size: 46px;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 24px;
}

/* Gold accent line under title */
.consult-hero h2::after {
    content: "";
    display: block;
    width: 120px;
    height: 4px;
    background: var(--accent-gold);
    margin: 18px auto 0;
    border-radius: 4px;
    opacity: 0.95;
}

/* Description text */
.consult-hero p {
    font-size: 20px;
    color: #d1d5db;
    max-width: 720px;
    margin: 30px auto 50px;
    line-height: 1.75;
}

/* CTA button */
.consult-hero .cta-btn {
    display: inline-block;
    background: var(--primary-blue);
    color: white;
    padding: 18px 48px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 0.5px;
    transition: 0.3s ease;
}

.consult-hero .cta-btn:hover {
    background: #0052d6;
    transform: translateY(-3px);
}
/* TRUST PAGE — PREMIUM STYLE */
.trust-hero {
    background: var(--navy-deep);
    color: white;
    text-align: center;
    padding: 160px 60px;
}

.trust-subtag {
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent-gold);
    font-weight: 700;
    margin-bottom: 18px;
    display: inline-block;
}

.trust-hero h2 {
    font-size: 46px;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 24px;
}

.trust-hero h2::after {
    content: "";
    display: block;
    width: 120px;
    height: 4px;
    background: var(--accent-gold);
    margin: 18px auto 0;
    border-radius: 4px;
}

.trust-hero p {
    font-size: 20px;
    color: #d1d5db;
    max-width: 720px;
    margin: 30px auto 0;
    line-height: 1.75;
}

.trust-content {
    max-width: 1180px;
    margin: 120px auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
}

.trust-block h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #101E33;
}

.trust-block p {
    font-size: 18px;
    line-height: 1.75;
    color: #475569;
}
/* CLOUD SECURITY MESH BACKGROUND FOR SECURITY SECTION */
.premium-sec {
    margin-top: 20px;
    padding: 90px 0;
    border-radius: 28px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #ffffff 0%, #f5f7fa 100%);
}

/* Cloud security mesh overlay */
.premium-sec::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url('cloud-security-mesh.png') center/cover no-repeat;
    opacity: 0.14;                 /* subtle, premium */
    filter: blur(2px) brightness(1.05);
    z-index: 0;
}

/* Gold glow for depth */
.premium-sec::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at 35% 25%,
        rgba(255, 215, 130, 0.18),
        transparent 65%
    );
    z-index: 0;
}

/* Keep content above illustration */
.premium-sec * {
    position: relative;
    z-index: 2;
}
/* Background illustration */
.security-premium::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url('cloud-security-mesh.png') center/cover no-repeat;
    opacity: 0.14;
    filter: blur(2px) brightness(1.05);
    z-index: 0;
}

/* Gold glow */
.security-premium::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at 35% 25%,
        rgba(255, 215, 130, 0.18),
        transparent 65%
    );
    z-index: 0;
}

/* Keep content above background */
.security-premium * {
    position: relative;
    z-index: 2;
}

/* Title block */
.sec-top h2 {
    font-size: 40px;
    font-weight: 800;
    color: #101E33;
    margin-bottom: 20px;
    position: relative;
    padding-left: 26px;
}

.sec-top h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    width: 6px;
    height: 36px;
    background: var(--accent-gold);
    border-radius: 4px;
}

.sec-top p {
    font-size: 19px;
    line-height: 1.75;
    color: #475569;
    max-width: 820px;
    margin-bottom: 60px;
}

/* Cards */
.sec-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px 60px;
}

.sec-card {
    background: white;
    padding: 32px;
    border-radius: 18px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 12px 28px rgba(0,0,0,0.06);
    transition: 0.3s ease;
}

.sec-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 36px rgba(0,0,0,0.10);
}

.sec-card h3 {
    font-size: 22px;
    font-weight: 700;
    color: #101E33;
    margin-bottom: 10px;
}

.sec-card p {
    font-size: 16px;
    color: #475569;
    line-height: 1.7;
}

.hero-subtext {
    display: block;        /* puts it on the second line */
    margin-left: 180px;     /* <-- indentation / dent */
    margin-top: 6px;       /* breathing room under main title */
    font-size: 0.60em;     /* readable but smaller */
    font-weight: 500;
    opacity: 0.9;
    letter-spacing: 0.3px;
}
.consultation-form {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-group {
    flex: 1;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 16px;
}
/* ============================================================
   CONSULTATION FORM — PREMIUM AGISTECH ENTERPRISE STYLE
   ============================================================ */

.consultation-section {
    padding: 120px 40px;
    background: #fafafa;
}

.consultation-form {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    padding: 40px;
    background: white;
    border-radius: 18px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.06);
    border: 1px solid var(--border-light);
}

/* Two-column rows */
.form-row {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
}

/* Single-column groups */
.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Labels (optional if you add them later) */
.form-group label {
    font-size: 15px;
    font-weight: 600;
    color: var(--navy-deep);
    margin-bottom: 6px;
}

/* Inputs, selects, textareas */
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 16px 18px;
    border: 1px solid var(--border-light);
    border-radius: 10px;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    background: #ffffff;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

/* Focus state */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 98, 255, 0.15);
    outline: none;
}

/* Textarea sizing */
.form-group textarea {
    min-height: 160px;
    resize: vertical;
}

/* CTA button inside form */
.consultation-form .cta-btn {
    width: 100%;
    padding: 18px;
    font-size: 18px;
    border-radius: 50px;
    margin-top: 10px;
}
/* ============================================
   PREMIUM CTA BUTTON FIX
   ============================================ */

.cta-section .cta-btn {
    width: auto !important;
    display: inline-block !important;
    padding: 18px 42px !important;
    min-width: 280px;
}

/* Status message */
#formStatus {
    margin-top: 16px;
    font-weight: 600;
    text-align: center;
    color: var(--primary-blue);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .consultation-form {
        padding: 28px;
    }

    .form-row {
        flex-direction: column;
        gap: 18px;
    }

    .consultation-section {
        padding: 80px 20px;
    }
}
/* ============================================================
   CONSULTATION FORM — PREMIUM AGISTECH ENTERPRISE STYLE
   ============================================================ */

.consultation-section {
    padding: 120px 40px;
    background: #fafafa;
}

.consultation-form {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    padding: 48px;
    background: white;
    border-radius: 18px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.06);
    border: 1px solid var(--border-light);
}

/* Two-column layout */
.form-row {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
}

/* Single-column layout */
.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Optional labels (future-proof) */
.form-group label {
    font-size: 15px;
    font-weight: 600;
    color: var(--navy-deep);
    margin-bottom: 6px;
}

/* Inputs, selects, textareas */
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 16px 18px;
    border: 1px solid var(--border-light);
    border-radius: 10px;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    background: #ffffff;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

/* Focus state */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 98, 255, 0.15);
    outline: none;
}

/* Textarea sizing */
.form-group textarea {
    min-height: 160px;
    resize: vertical;
}

/* CTA button inside form */
.consultation-form .cta-btn {
    width: 100%;
    padding: 18px;
    font-size: 18px;
    border-radius: 50px;
    margin-top: 10px;
}

/* Status message */
#formStatus {
    margin-top: 16px;
    font-weight: 600;
    text-align: center;
    color: var(--primary-blue);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .consultation-form {
        padding: 32px;
    }

    .form-row {
        flex-direction: column;
        gap: 18px;
    }

    .consultation-section {
        padding: 80px 20px;
    }
}
/* ============================================================
   CONSULTATION PAGE — FIXED LAYOUT
   ============================================================ */

.consultation-section {
    padding: 100px 20px;
    background: #fafafa;
    display: flex;
    justify-content: center;
}

.consultation-form {
    width: 100%;
    max-width: 720px;
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 12px 36px rgba(0,0,0,0.08);
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    font-size: 15px;
    background: #ffffff;
}

.form-group textarea {
    min-height: 140px;
}

.cta-btn {
    width: 100%;
    padding: 16px;
    margin-top: 10px;
    border-radius: 50px;
    font-size: 16px;
}

@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
    }

    .consultation-form {
        padding: 24px;
    }
}
/* ============================================================
   CONSULTATION PAGE — FIXED LAYOUT (MATCHES YOUR HTML)
   ============================================================ */

.consultation-section {
    padding: 100px 20px;
    background: #fafafa;
    display: flex;
    justify-content: center;
}

.consultation-form {
    width: 100%;
    max-width: 720px;
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 12px 36px rgba(0,0,0,0.08);
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    font-size: 15px;
    background: #ffffff;
}

.form-group textarea {
    min-height: 140px;
}

.cta-btn {
    width: 100%;
    padding: 16px;
    margin-top: 10px;
    border-radius: 50px;
    font-size: 16px;
}

@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
    }

    .consultation-form {
        padding: 24px;
    }
}
/* ============================================================
   CONSULTATION PAGE — MATCHES YOUR HTML EXACTLY
   ============================================================ */

.consultation-section {
    padding: 100px 20px;
    background: #fafafa;
    display: flex;
    justify-content: center;
}

.consultation-form {
    width: 100%;
    max-width: 720px;
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 12px 36px rgba(0,0,0,0.08);
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    font-size: 15px;
    background: #ffffff;
}

.form-group textarea {
    min-height: 140px;
}

.cta-btn {
    width: 100%;
    padding: 16px;
    margin-top: 10px;
    border-radius: 50px;
    font-size: 16px;
}

@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
    }

    .consultation-form {
        padding: 24px;
    }
}
/* ============================================================
   CONSULTATION FORM — PREMIUM AGISTECH ENTERPRISE STYLE (v2)
   ============================================================ */

.consultation-section {
    padding: 140px 20px;
    background: #fafafa;
    display: flex;
    justify-content: center;
}

.consultation-form {
    width: 100%;
    max-width: 820px;
    background: white;
    padding: 56px;
    border-radius: 20px;
    border: 1px solid #e8e8e8;
    box-shadow: 0 18px 48px rgba(0,0,0,0.06);
}

/* Two-column layout */
.form-row {
    display: flex;
    gap: 28px;
    margin-bottom: 28px;
}

/* Single-column layout */
.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Labels (optional future-proof) */
.form-group label {
    font-size: 15px;
    font-weight: 600;
    color: var(--navy-deep);
    margin-bottom: 6px;
}

/* Inputs, selects, textareas */
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 16px 18px;
    border: 1px solid var(--border-light);
    border-radius: 10px;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    background: #ffffff;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

/* Focus state */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 98, 255, 0.15);
    outline: none;
}

/* Textarea sizing */
.form-group textarea {
    min-height: 160px;
    resize: vertical;
}

/* CTA button inside form */
.consultation-form .cta-btn {
    width: 100%;
    padding: 18px;
    font-size: 18px;
    border-radius: 50px;
    margin-top: 10px;
}

/* Status message */
#formStatus {
    margin-top: 16px;
    font-weight: 600;
    text-align: center;
    color: var(--primary-blue);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .consultation-form {
        padding: 36px;
    }

    .form-row {
        flex-direction: column;
        gap: 18px;
    }

    .consultation-section {
        padding: 100px 20px;
    }
}
/* HERO CTA — FIX WIDTH */
.hero-cta {
    width: auto !important;
    display: inline-block !important;
    max-width: fit-content;
}
.hero-btn-wrap {
    display: inline-block;
}
/* HERO CTA — FIX WIDTH + SIZE */
.hero-cta {
    padding: 12px 28px !important;   /* smaller */
    font-size: 15px !important;      /* slightly smaller text */
    width: auto !important;          /* prevents stretching */
    display: inline-block !important;
}
/* FINAL CASE STUDY IMAGE SIZE FIX */
.story-visual {
    height: 240px !important;
    width: 100% !important;
    overflow: hidden !important;
    border-radius: 24px;
}

.story-visual img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
}
/* FINAL OVERRIDE — CASE STUDY IMAGE SIZE */
.story-visual {
    height: 240px !important;
    width: 100% !important;
    overflow: hidden !important;
    border-radius: 24px;
}

.story-visual img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
}
/* STORY CARD HOVER ANIMATION — PREMIUM CONSULTING STYLE */
.story-card {
    transition: transform 0.35s ease, 
                box-shadow 0.35s ease, 
                border-color 0.35s ease;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 20px;
    padding: 20px;
}

.story-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 22px 48px rgba(0,0,0,0.12);
    border-color: var(--primary-blue);
}
.story-card:hover .story-visual img {
    transform: scale(1.04);
}

.story-visual img {
    transition: transform 0.4s ease;
}
.story-card:hover .story-meta {
    color: var(--accent-gold);
}
/* STORY CARD — PREMIUM HOVER ANIMATION */
.story-card {
    transition: transform 0.35s ease, 
                box-shadow 0.35s ease, 
                border-color 0.35s ease;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 20px;
    padding: 20px;
    background: #ffffff;
}

.story-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 22px 48px rgba(0,0,0,0.12);
    border-color: var(--primary-blue);
}

/* IMAGE ZOOM ON HOVER */
.story-visual img {
    transition: transform 0.45s ease;
}

.story-card:hover .story-visual img {
    transform: scale(1.05);
}

/* OPTIONAL — GOLD ACCENT ON CATEGORY TAG */
.story-card:hover .story-meta {
    color: var(--accent-gold);
}
/* SERVICES PAGE CTA BUTTON FIX */
.services-section .cta-btn,
.services-hero .cta-btn {
    width: auto !important;
    display: inline-block !important;
    padding: 16px 38px;
}