/* --- 1. CORE SETUP --- */
:root {
    --primary: #3b82f6;
    --dark: #0f172a;
    --slate: #64748b;
    --border: #f1f5f9;
    --container-width: 1100px;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--dark);
    background: #fff;
    margin: 0;
    line-height: 1.6;
}

.section-padding {
    padding: 120px 0;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 40px;
}

/* --- 2. HERO & GRADIENTS --- */
.hero-premium {
    padding: 180px 0 140px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.color-blob {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.12;
    z-index: 0;
}

.blob-1 {
    top: -100px;
    right: -50px;
    background: var(--primary);
}

.blob-2 {
    bottom: -100px;
    left: -50px;
    background: #8b5cf6;
}

.text-gradient {
    background: linear-gradient(135deg, #3b82f6 0%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-eyebrow{
  font-size: 30px;
}

.hero-premium h1 {
    font-size: 64px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 25px;
    letter-spacing: -1.5px;
}

.hero-lead {
    font-size: 20px;
    color: var(--slate);
    max-width: 700px;
    margin: 0 auto 40px;
}

.hero-cta-group {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: 0.3s;
}

.btn-ghost {
    border: 1px solid var(--border);
    color: var(--slate);
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
}

/* --- 3. SERVICES GRID & HEADER --- */
.centered-header {
    text-align: center;
    max-width: 850px;
    margin: -60px auto 80px; 
}

.section-title {
    font-size: 52px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 20px;
    letter-spacing: -1.5px;
    line-height: 1.1;
}

.section-subtitle {
    font-size: 24px;
    color: var(--slate);
    line-height: 1.6;
}

.services-modern-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-feature {
    padding: 45px 35px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 24px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
}

.service-feature:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.05);
}

.feature-icon-wrapper {
    font-size: 32px;
    margin-bottom: 20px;
    display: block;
}

.card-arrow {
    margin-top: 20px;
    color: var(--primary);
    font-weight: 700;
    font-size: 14px;
}

/* --- 4. THE HUGE MERGED BOX (Alignment Fixes) --- */
.huge-merged-box {
    background: var(--dark);
    border-radius: 48px;
    padding: 90px 80px; /* Increased vertical padding for premium feel */
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 
        0 40px 100px rgba(15, 23, 42, 0.3),
        inset 0 0 40px rgba(59, 130, 246, 0.06);
}

/* Balanced Vertical Alignment */
.merged-top {
    display: flex;
    justify-content: space-between;
    align-items: center; /* Centers text vertically with tags */
    gap: 80px; 
    padding-bottom: 60px;
}

.merged-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center; /* Centers text vertically with button */
    gap: 40px;
}

.merged-divider {
    height: 1px;
    background: linear-gradient(
        90deg, 
        rgba(255,255,255,0) 0%, 
        rgba(255,255,255,0.12) 50%, 
        rgba(255,255,255,0) 100%
    );
    margin: 0 0 60px 0;
}

/* Typography Spacing Refinement */
.sub-label {
    display: block;
    color: var(--primary);
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.industry-text h2, 
.cta-content h2 {
    font-size: 42px;
    color: #fff;
    margin: 0 0 15px 0; /* Consistent bottom margin */
    letter-spacing: -1px;
    line-height: 1.2;
}

.cta-content h2 {
    font-size: 36px;
}

.huge-merged-box p {
    color: #94a3b8;
    font-size: 18px;
    margin: 0;
    max-width: 480px; /* Prevents text from stretching too wide */
}

/* Tag Container Alignment */
.industry-tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: flex-end;
    flex: 1.2;
}

.ind-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 14px 24px;
    border-radius: 100px;
    color: #fff;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: 0.3s;
    white-space: nowrap;
}

.ind-card:hover {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.btn-white {
    background: #fff;
    color: var(--dark);
    padding: 18px 40px;
    border-radius: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: 0.3s;
    display: inline-block;
    flex-shrink: 0; /* Prevents button from squishing */
}

.btn-white:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

/* --- 5. PREMIUM FOOTER --- */
/* --- 5. PREMIUM FOOTER (Restored Alignment & Bold Colors) --- */
.premium-footer {
    background: #f8fafc; /* Back to the clean light background you liked */
    padding: 100px 0 40px;
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* Keeps top alignment clean */
    margin-bottom: 80px;
}

.footer-brand {
    max-width: 300px;
}

/* LOGO COLOR FIX: Using your primary brand gradient */
.logo-footer {
    font-size: 28px;
    font-weight: 900;
    margin-bottom: 20px;
    letter-spacing: -1.5px;
    background: linear-gradient(135deg, #3b82f6 0%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.footer-brand p {
    color: var(--slate);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 25px;
}

/* SOCIALS: High Contrast & Perfectly Aligned */
.footer-socials {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 42px;
    height: 42px;
    background: var(--dark); /* Dark background makes icons pop instantly */
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link i {
    color: #ffffff; /* Crisp white icons */
    font-size: 18px;
}

.social-link:hover {
    transform: translateY(-3px);
    background: var(--primary);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}

/* NAV ALIGNMENT: Restored the previous clean look */
.footer-nav-group {
    display: flex;
    gap: 80px; /* Restored the spacing you liked */
}

.footer-col h4 {
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--dark);
    margin-bottom: 25px;
    letter-spacing: 1px;
}

.footer-col a {
    display: block;
    color: var(--slate);
    text-decoration: none;
    margin-bottom: 12px;
    font-size: 15px;
    transition: 0.3s;
}

.footer-col a:hover {
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid #e2e8f0;
    padding-top: 30px;
    text-align: center;
    color: #94a3b8;
    font-size: 14px;
}

/* Responsive Fix */
@media (max-width: 768px) {
    .footer-grid {
        flex-direction: column;
        gap: 50px;
        text-align: center;
    }
    .footer-brand {
        margin: 0 auto;
    }
    .footer-socials {
        justify-content: center;
    }
    .footer-nav-group {
        justify-content: center;
        gap: 40px;
    }
}
/* --- 6. MEDIA QUERIES --- */
@media (max-width: 1024px) {
    .services-modern-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .huge-merged-box {
        padding: 60px 40px;
    }
    .merged-top {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .hero-premium h1 {
        font-size: 48px;
    }
    .section-title {
        font-size: 38px;
    }
    .centered-header {
        margin: 0 auto 50px;
    }
    .services-modern-grid {
        grid-template-columns: 1fr;
    }
    .merged-top, 
    .merged-bottom {
        flex-direction: column;
        text-align: center;
        gap: 35px;
    }
    .huge-merged-box p {
        max-width: 100%;
    }
    .industry-tags-container {
        justify-content: center;
    }
    .footer-grid {
        flex-direction: column;
        gap: 40px;
    }
}

/* --- 1. SERVICE DETAIL LAYOUT --- */
.service-detail-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 80px;
}

/* Flips the order for even sections */
.service-detail-grid.inverse {
    flex-direction: row-reverse;
}

.detail-text {
    flex: 1;
}

.service-description {
    font-size: 19px;
    color: var(--slate);
    margin-bottom: 40px;
    line-height: 1.7;
    max-width: 700px;
}

/* --- 2. THE SCOPE BOX (Content Container) --- */
.scope-box {
    background: #ffffff;
    padding: 45px;
    border-radius: 24px;
    border: 1px solid var(--border);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease;
}

.scope-box:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.scope-box h4 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--primary);
    margin-bottom: 25px;
    font-weight: 800;
}

.premium-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.premium-list li {
    padding: 12px 0 12px 30px;
    position: relative;
    border-bottom: 1px solid #f1f5f9;
    color: var(--dark);
    font-weight: 500;
    line-height: 1.5;
}

.premium-list li:last-child {
    border-bottom: none;
}

/* Custom Arrow Icon for Lists */
.premium-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 900;
}

.premium-list li strong {
    color: var(--dark);
    font-weight: 700;
}

/* --- 3. ONBOARDING PROCESS GRID --- */
.process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 60px;
}

.process-step {
    position: relative;
    padding: 40px;
    background: #fff;
    border-radius: 20px;
    border: 1px solid var(--border);
    transition: 0.3s;
}

.process-step:hover {
    background: var(--dark);
}

.process-step:hover h3, 
.process-step:hover p {
    color: #fff;
}

.step-num {
    font-size: 48px;
    font-weight: 900;
    color: rgba(59, 130, 246, 0.1); /* Faded Blue Number */
    position: absolute;
    top: 20px;
    right: 20px;
}

.process-step h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--dark);
}

.process-step p {
    color: var(--slate);
    font-size: 15px;
    line-height: 1.6;
}

/* --- 4. RESPONSIVE REFINEMENTS --- */
@media (max-width: 1024px) {
    .service-detail-grid, 
    .service-detail-grid.inverse {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .service-description {
        margin: 0 auto 40px;
    }

    .premium-list li {
        text-align: left;
    }
}

@media (max-width: 768px) {
    .process-grid {
        grid-template-columns: 1fr;
    }
    
    .scope-box {
        padding: 30px 20px;
    }
}


/* --- FORM SECTION BACKGROUND --- */
.cfo-contact-section {
    background-color: #f1f5f9; /* Light grey/blue background for the page */
    padding: 80px 20px;
    display: flex;
    justify-content: center;
}

/* --- THE WHITE CARD --- */
.cfo-form-card {
    background: #ffffff;
    max-width: 600px;
    width: 100%;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.1); /* Soft shadow */
    border-top: 5px solid #2563eb; /* Blue accent bar at the top */
}

/* --- LABELS --- */
.input-group label {
    display: block;
    color: #1e293b; /* Dark navy text */
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
}

/* --- INPUT FIELDS --- */
.input-group input, 
.input-group select, 
.input-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e2e8f0; /* Light grey border */
    border-radius: 8px;
    font-size: 15px;
    color: #334155;
    background-color: #fff;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

/* --- INPUT FOCUS (Color change when clicking) --- */
.input-group input:focus, 
.input-group select:focus, 
.input-group textarea:focus {
    border-color: #2563eb; /* Border turns blue */
    outline: none;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

/* --- THE BUTTON (Dark Navy) --- */
#submitBtn {
    width: 100%;
    background-color: #0f172a; /* Deep Navy Blue */
    color: #ffffff;
    padding: 16px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s;
}

#submitBtn:hover {
    background-color: #2563eb; /* Turns Bright Blue on hover */
}

/* --- GRID FOR NAME & PHONE --- */
.form-grid-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 600px) {
    .form-grid-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* --- LAYOUT GRID --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

/* --- SIDEBAR STYLING --- */
.contact-sidebar h2 {
    font-size: 42px;
    color: #455afa; /* White text for dark background */
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 800;
}

.sidebar-text {
    color: #94a3b8;
    margin-bottom: 40px;
    font-size: 16px;
    line-height: 1.6;
}

.badge {
    background: rgba(37, 99, 235, 0.2);
    color: #60a5fa;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 20px;
    display: inline-block;
}

.info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.info-icon {
    background: rgba(255, 255, 255, 0.05);
    color: #2563eb;
    width: 54px;
    height: 54px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.info-content h4 {
    margin: 0;
    color: #7c3aed;
    font-size: 16px;
}

.info-content p {
    margin: 5px 0 0;
    color: #3b82f6;
    font-size: 14px;
}

/* --- FORM CARD REFINEMENT --- */
.cfo-form-card {
    background: #ffffff;
    padding: 45px;
    border-radius: 28px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.input-group label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
}

.input-group input, 
.input-group select, 
.input-group textarea {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    transition: 0.3s;
}

#submitBtn {
    width: 100%;
    background: #2563eb;
    color: white;
    padding: 18px;
    border-radius: 14px;
    border: none;
    font-weight: 700;
    font-size: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: 0.3s ease;
}

#submitBtn:hover {
    background: #1d4ed8;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
}

/* --- RESPONSIVE FIX --- */
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    .cfo-contact-section { padding: 80px 20px; }
}

/* =========================================
   GLOBAL MOBILE RESPONSIVENESS — CFO PAGES
   ========================================= */

/* HEADER FIX */
@media (max-width: 768px) {

  .site-header {
    position: relative;
    z-index: 1000;
    background: #ffffff;
  }

  .burger {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1100;
  }

  .burger span {
    width: 26px;
    height: 2px;
    background: #0f172a;
    display: block;
  }

  /* FORCE HIDE NAV */
  .sub-nav {
    display: none !important;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: #ffffff;

    flex-direction: column;
    align-items: center;
    gap: 22px;

    padding: 28px 0;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
  }

  .sub-nav.show {
    display: flex !important;
  }
}

/* DESKTOP SAFETY */
@media (min-width: 769px) {
  .burger {
    display: none;
  }

  .sub-nav {
    display: flex !important;
    position: static;
    box-shadow: none;
  }
}


/* SERVICES PAGE MOBILE LAYOUT FIXES */
@media (max-width: 768px) {

  .service-detail-grid,
  .service-detail-grid.inverse {
    flex-direction: column;
    gap: 40px;
    text-align: center;
  }

  .service-description {
    margin: 0 auto 30px;
    font-size: 17px;
  }

  .scope-box {
    padding: 28px 22px;
  }

  .premium-list li {
    text-align: left;
    font-size: 14px;
  }

  .process-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .hero-premium {
    padding: 120px 0 90px;
  }

  .hero-premium h1 {
    font-size: 42px;
  }

  .section-title {
    font-size: 34px;
  }
}
