/* ============================================
   IMPACT ADVISORY - Social Impact Consulting
   CSS Stylesheet
   ============================================ */
/* CSS Reset & Base Styles */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {

    /* ===== BRAND ===== */
    --brand-primary: #136aa0;
    --brand-primary-dark: #0f5582;
    --accent-gold: #C4A35A;
    --accent-gold-light: #D4B86A;

    /* ===== SURFACES (LIGHT) ===== */
    --bg-base: #ffffff;
    --bg-section: #f7f9fb;
    --bg-elevated: #ffffff;

    /* ===== TEXT ===== */
    --text-primary: #1f2937;
    --text-secondary: #4b5563;
    --text-muted: #6b7280;

    /* ===== BORDERS ===== */
    --border-color: #e5e7eb;
    --border-light: #F3F4F6;

    /* ===== ICONS ===== */
    --icon-muted: #9ca3af;

    /* ===== LAYOUT ===== */
    --utility-height: 38px;
    --navbar-height: 92px;
    --section-padding: 6rem;
    --container-max-width: 1440px;

    /* ===== TYPOGRAPHY ===== */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* ===== TRANSITIONS ===== */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* ===== SHADOWS ===== */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.12);

    /* ===== RADIUS ===== */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
}

/* Base Styles */
html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-base);
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-primary);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    letter-spacing: -0.02em;
    font-weight: 700;
}

h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

h4 {
    font-size: 1.25rem;
    font-weight: 600;
}

p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-normal);
}

img {
    max-width: 100%;
    height: auto;
}

/* Utility Classes */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: var(--section-padding) 0;
    position: relative;
    background-color: var(--bg-base);
}

.section-alt {
    background-color: var(--bg-section);
}

.section + .section {
    border-top: 1px solid var(--border-color);
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    margin-bottom: 1rem;
}

.section-title p {
    max-width: 600px;
    margin: 0 auto;
}

.text-center {
    text-align: center;
}

.text-primary {
    color: var(--brand-primary);
}

.text-accent {
    color: var(--accent-gold);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    font-family: var(--font-primary);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-normal);
    border: 2px solid transparent;
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--brand-primary);
    border-color: var(--brand-primary);
    color: #ffffff;
}

.btn-primary:hover {
    background-color: var(--brand-primary-dark);
    border-color: var(--brand-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: transparent;
    color: var(--brand-primary);
    border-color: var(--brand-primary);
}

.btn-secondary:hover {
    background-color: var(--brand-primary);
    color: #ffffff;
}

/* ============================================
   FONT SIZE MODES
   ============================================ */

html.font-small { font-size: 14px; }
html.font-default { font-size: 16px; }
html.font-large { font-size: 18px; }

.service-icon,
.why-us-icon {
    color: var(--icon-muted);
    transition: all 0.3s ease;
}

.service-card:hover .service-icon,
.why-us-card:hover .why-us-icon {
    color: var(--brand-primary);
    transform: translateY(-2px);
}

/* ============================================
   UTILITY BAR (DESKTOP SKELETON)
   ============================================ */
.utility-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--utility-height);
    background-color: var(--border-light);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    font-size: 0.8rem;
    z-index: 1001;
    transition: transform 0.3s ease;
}

.utility-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
    display: flex;
    justify-content: flex-end;
}

.utility-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.utility-item {
    color: var(--text-secondary);
    cursor: pointer;
}

.font-controls {
    display: flex;
    gap: 0.5rem;
}

.font-controls button {
    background: none;
    border: none;
    font-size: 0.85rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 2px 6px;
    transition: color 0.3s ease;
}

.font-controls button:hover {
    color: var(--brand-primary);
}

.theme-toggle {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.theme-toggle:hover {
    color: var(--brand-primary);
}

body.utility-hidden .utility-bar {
    transform: translateY(-100%);
}

body.utility-hidden nav {
    top: 0;
}

.language-switcher {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    height: 26px;
}

.language-switcher button {
    background: none;
    border: none;
    padding: 0 10px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    align-items: center;
}

.language-switcher button:not(:last-child) {
    border-right: 1px solid var(--border-color);
}

.language-switcher button:hover {
    background-color: var(--bg-section);
    color: var(--brand-primary);
}

.language-switcher button.active {
    background-color: var(--brand-primary);
    color: #ffffff;
}

/* ============================================
   DARK MODE SYSTEM
   ============================================ */

body.dark-mode {

    /* ===== SURFACES (Dark) ===== */
    --bg-base: #0b1620;
    --bg-section: #111f2a;
    --bg-elevated: #162635;

    /* ===== TEXT ===== */
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #9fb3c8;

    /* ===== BORDERS ===== */
    --border-color: #2a3c4d;

    /* ===== ICONS ===== */
    --icon-muted: #8aa3b8;

    /* Slight brand lift in dark */
    --brand-primary: #1f8ed6;

    background-color: var(--bg-base);
}

/* Elevated elements */
body.dark-mode .service-card,
body.dark-mode .team-card,
body.dark-mode .testimonial-card,
body.dark-mode .about-highlight {
    background-color: var(--bg-elevated);
    border-color: var(--border-color);
}

body.dark-mode nav {
    background-color: var(--bg-base);
    border-bottom: 1px solid var(--border-color);
}

/* ============================================
   PROFESSIONAL THEME TOGGLE
   ============================================ */

.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.toggle-track {
    width: 56px;
    height: 28px;
    background-color: var(--bg-section);
    border-radius: 50px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 6px;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.toggle-icon {
    font-size: 12px;
    color: var(--icon-muted);
    z-index: 1;
}

.toggle-thumb {
    position: absolute;
    width: 22px;
    height: 22px;
    background-color: var(--bg-base);
    border-radius: 50%;
    top: 50%;
    left: 3px;
    transform: translateY(-50%);
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

body.dark-mode .toggle-thumb {
    transform: translate(28px, -50%);
    background-color: var(--brand-primary);
}

body.dark-mode .moon {
    color: var(--text-primary);
}

/* ============================================
   NAVIGATION
   ============================================ */
nav {
    position: fixed;
    top: var(--utility-height);
    left: 0;
    right: 0;
    height: var(--navbar-height);
    background-color: var(--bg-base);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

nav.scrolled {
    background-color: var(--bg-base);
}

.nav-container {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 78px;
    /* slightly smaller than nav height */
    width: auto;
    object-fit: contain;
}

.logo:hover {
    opacity: 0.85;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-secondary);
    position: relative;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 1.5px;
    background-color: var(--brand-primary);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--brand-primary);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
   background-color: var(--text-primary);
    transition: all var(--transition-normal);
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-divider {
    height: 1px;
    background: var(--border-color);
    width: 60%;
    margin: 1.5rem auto;
    list-style: none;
}

.mobile-accessibility,
.mobile-theme {
    text-align: center;
}

.mobile-section-title {
    display: block;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.font-controls-mobile {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.font-controls-mobile button {
    background: none;
    border: 1px solid var(--border-color);
    padding: 6px 10px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.font-controls-mobile button:hover {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
}

.theme-toggle-mobile {
    background: none;
    border: 1px solid var(--border-color);
    padding: 8px 14px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.theme-toggle-mobile:hover {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
}

.mobile-divider,
.mobile-accessibility,
.mobile-theme {
    display: none;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: calc(var(--navbar-height) + var(--utility-height));
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("image/hero1.png") center/cover no-repeat;
    filter: blur(1px);
    transform: scale(1.05);
    /* prevents blur edge cutoff */
    z-index: 0;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
background: rgba(255, 255, 255, 0.55);
    /* soft wash */
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero h1 {
    margin-bottom: 1.5rem;
    color: #232833;
}

.hero-subheadline {
    font-size: 1.25rem;
    color: #1f2937;
}

/* ============================================
   ABOUT SECTION UPGRADE
   ============================================ */

.about-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-left h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.about-left p {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--text-secondary);
}

.about-right {
    display: flex;
    justify-content: center;
}

.about-highlight {
    background-color: var(--border-light);
    padding: 2.5rem;
    border-left: 4px solid var(--brand-primary);
    width: 100%;
}

.about-highlight h3 {
    margin-bottom: 1.2rem;
    font-size: 1.2rem;
    color: var(--text-primary);
}

.about-highlight ul {
    list-style: none;
    padding: 0;
}

.about-highlight li {
    margin-bottom: 0.8rem;
    font-size: 1rem;
    color: var(--text-secondary);
}

/* ============================================
   SERVICES SECTION
   ============================================ */

.services {
    background-color: var(--white);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: 0;
    border: 1px solid var(--border-color);
    transition: border-color 0.3s ease;
}

.service-card:hover {
    border-color: var(--brand-primary);
}

.service-icon {
    width: 38px;
    height: 38px;
    margin-bottom: 1.25rem;
    color: #6b7280;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    color: var(--brand-primary);
    transform: translateY(-2px);
}

.service-card h3 {
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
}

.service-card p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* ============================================
   APPROACH SECTION
   ============================================ */

.approach {
    background-color: var(--white);
}

.approach-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
}

.approach-card {
    text-align: center;
    padding: 2rem;
}

.approach-number {
    display: block;
    font-size: 4rem;
    font-weight: 700;
    color: var(--brand-primary);
    opacity: 0.12;
    line-height: 1;
    margin-bottom: 1rem;
    font-family: var(--font-primary);
}

.approach-card h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.approach-card p {
    font-size: 1rem;
    max-width: 280px;
    margin: 0 auto;
    color: var(--text-secondary);
}

/* ============================================
   IMPACT SECTION
   ============================================ */

.impact {
    background-color: var(--brand-primary-dark);
    color: var(--white);
}

.impact .section-title h2,
.impact .section-title p {
    color: var(--white);
}

.impact-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.metric {
    padding: 1rem;
}

.metric-value {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--accent-gold);
    line-height: 1.1;
    margin-bottom: 0.75rem;
    font-family: var(--font-primary);
}

.metric-label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    max-width: 220px;
    margin: 0 auto;
}


/* ============================================
   TRUSTED BY SECTION
   ============================================ */

.trusted-by {
    background-color: var(--border-light);
}

.section-label {
    display: inline-block;
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--brand-primary);
    margin-bottom: 1rem;
    font-weight: 600;
}

.logo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    align-items: center;
    gap: 3rem;
    margin-top: 2rem;
}

.logo-item {
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-item img {
    opacity: 0.85;
    transition: all 0.3s ease;
}

.logo-item img:hover {
    opacity: 1;
    transform: scale(1.03);
}


/* ============================================
   WHY CHOOSE US SECTION
   ============================================ */

.why-us {
    background-color: var(--white);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.why-us-card {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 2rem 0;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.why-us-card:last-child {
    border-bottom: none;
}

.why-us-card:hover h4 {
    color: var(--brand-primary);
}

.why-us-icon {
    width: 28px;
    height: 28px;
    color: #6b7280;
    opacity: 0.9;
    margin-top: 4px;
    transition: all 0.3s ease;
}

.why-us-card:hover .why-us-icon {
    color: var(--brand-primary);
    transform: translateY(-2px);
}

.why-us-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--text-primary);
}

.why-us-card p {
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--text-secondary);
}

/* ============================================
   TEAM SECTION
   ============================================ */

.team {
    background-color: var(--bg-base);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.team-card {
    padding: 2rem 0;
    border-bottom: 1px solid var(--border-color);
}

.team-card:last-child {
    border-bottom: none;
}

.team-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.4rem;
    font-weight: 600;
    color: var(--text-primary);
}

.team-focus {
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--brand-primary);
    margin-bottom: 0.8rem;
}

.team-card p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* ============================================
   TESTIMONIALS
   ============================================ */

.testimonials {
    overflow: hidden;
}

.testimonial-wrapper {
    overflow: hidden;
    position: relative;
    margin-top: 3rem;
}

.testimonial-track {
    display: flex;
    gap: 2rem;
    width: max-content;
    animation: scrollTestimonials 35s linear infinite;
}

.testimonial-card {
    min-width: 340px;
    max-width: 380px;
    padding: 2rem;
    background: var(--bg-elevated);
    border-left: 4px solid var(--brand-primary);
}

.testimonial-card p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
}

.author {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Smooth scrolling animation */
@keyframes scrollTestimonials {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ============================================
   CTA SECTION
   ============================================ */

.cta {
    background-color: var(--brand-primary);
    text-align: center;
    color: var(--white);
}

.cta-content {
    max-width: 650px;
    margin: 0 auto;
}

.cta h2 {
    color: var(--white);
    margin-bottom: 1rem;
}

.cta p {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2rem;
}

.cta .btn-primary {
    background-color: #ffffff;
    color: var(--brand-primary);
    border: 2px solid #ffffff;
    font-weight: 600;
}

.cta .btn-primary:hover {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

/* ============================================
   INQUIRY FORM (Professional Refinement)
============================================ */

.inquiry {
    background-color: var(--bg-section);
}

.contact-form {
    max-width: 720px;
    margin: 0 auto;
    display: grid;
    gap: 1.6rem;
}

/* Form Group */
.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* Inputs */
.contact-form input,
.contact-form select,
.contact-form textarea {
    padding: 0.95rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: var(--font-primary);
    font-size: 0.98rem;
    background-color: var(--bg-base);
    color: var(--text-primary);
    transition: border 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

/* Hover subtle feedback */
.contact-form input:hover,
.contact-form select:hover,
.contact-form textarea:hover {
    border-color: var(--brand-primary);
}

/* Focus clarity */
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(19, 106, 160, 0.12);
}

/* Textarea control */
.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

/* Select arrow consistency */
.contact-form select {
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, var(--text-muted) 50%),
                      linear-gradient(135deg, var(--text-muted) 50%, transparent 50%);
    background-position: calc(100% - 18px) calc(50% - 3px),
                         calc(100% - 12px) calc(50% - 3px);
    background-size: 6px 6px;
    background-repeat: no-repeat;
}

/* Submit Button */
.contact-form .btn-primary {
    margin-top: 0.8rem;
    width: fit-content;
}

/* Disabled button state */
.contact-form button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Trust note */
.form-note {
    margin-top: 0.6rem;
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Dark mode fine-tuning */
body.dark-mode .contact-form input,
body.dark-mode .contact-form select,
body.dark-mode .contact-form textarea {
    background-color: var(--bg-elevated);
}

body.dark-mode .contact-form input:hover,
body.dark-mode .contact-form select:hover,
body.dark-mode .contact-form textarea:hover {
    border-color: var(--brand-primary);
}

/* ============================================
   FOOTER
   ============================================ */

footer {
    background-color: #0f172a;
    /* deep neutral slate */
    padding: 4rem 0 2rem;
    color: #cbd5e1;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
}

.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-logo img {
    height: 45px;
    width: auto;
    margin-bottom: 1rem;
    filter: brightness(0) invert(1);
}

.footer-description {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #94a3b8;
}

.footer-heading {
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.footer-links a {
    color: #cbd5e1;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--brand-primary);
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    width: 38px;
    height: 38px;
    border: 1px solid #334155;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background-color: var(--brand-primary);
    border-color: var(--brand-primary);
    color: var(--white);
}

.footer-bottom {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid #1e293b;
    text-align: center;
    font-size: 0.85rem;
    color: #94a3b8;
}

.made-by {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: #64748b;
}

#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;

    width: 48px;
    height: 48px;

    border-radius: 50%;
    border: none;

    background-color: var(--brand-primary);
    color: #ffffff;

    font-size: 16px;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);

    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);

    transition: all 0.3s ease;
    z-index: 999;
}

#backToTop.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#backToTop:hover {
    background-color: #1f8ed6; /* slightly darker brand */
    transform: translateY(-3px);
}

/* ============================================
   THANK YOU PAGE
============================================ */

.thank-you {
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.thank-you-box {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    padding: 3rem;
    border-radius: var(--radius-md);
    background: var(--bg-section);
    box-shadow: var(--shadow-md);
}

.thank-you-box h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.thank-you-box p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.page-header {
    padding-top: 10rem;
    padding-bottom: 4rem;
    background-color: var(--bg-section);
    text-align: center;
}

.page-header h1 {
    margin-bottom: 1rem;
}

/* =========================
   PAGE HERO
========================= */

.page-hero {
    padding: 10rem 0 5rem;
    background: linear-gradient(
        135deg,
        var(--bg-section),
        var(--bg-base)
    );
    text-align: center;
    position: relative;
}

.page-hero-content {
    max-width: 720px;
    margin: 0 auto;
}

.page-label {
    display: inline-block;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--brand-primary);
    font-weight: 600;
    margin-bottom: 1rem;
}

.page-hero h1 {
    font-size: clamp(2.2rem, 4vw, 3rem);
    margin-bottom: 1.2rem;
    color: var(--text-primary);
}

.page-hero p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* =========================
   FAQ SECTION (UPGRADED)
========================= */

.faq {
    padding-top: 4rem;
    padding-bottom: 6rem;
    background-color: var(--bg-base);
}

.faq-wrapper {
    max-width: 820px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    padding: 1.2rem 1.5rem;
    background-color: var(--bg-elevated);
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--brand-primary);
    box-shadow: var(--shadow-sm);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    position: relative;
    padding-right: 2rem;
}

.faq-question::after {
    content: "+";
    position: absolute;
    right: 0;
    top: 0;
    font-size: 1.3rem;
    color: var(--brand-primary);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
    content: "−";
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-answer p {
    margin-top: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.faq-item.active .faq-answer {
    max-height: 300px;
}


/* ============================================
   MOBILE FOOTER FIX
   ============================================ */

@media (max-width: 768px) {

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-column {
        align-items: center;
    }

    .mobile-divider,
    .mobile-accessibility,
    .mobile-theme {
        display: block;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation delays */

.service-card:nth-child(1).animate-on-scroll,
.approach-card:nth-child(1).animate-on-scroll,
.metric:nth-child(1).animate-on-scroll,
.why-us-card:nth-child(1).animate-on-scroll {
    transition-delay: 0.1s;
}

.service-card:nth-child(2).animate-on-scroll,
.approach-card:nth-child(2).animate-on-scroll,
.metric:nth-child(2).animate-on-scroll,
.why-us-card:nth-child(2).animate-on-scroll {
    transition-delay: 0.2s;
}

.service-card:nth-child(3).animate-on-scroll,
.approach-card:nth-child(3).animate-on-scroll,
.metric:nth-child(3).animate-on-scroll,
.why-us-card:nth-child(3).animate-on-scroll {
    transition-delay: 0.3s;
}

.service-card:nth-child(4).animate-on-scroll,
.metric:nth-child(4).animate-on-scroll,
.why-us-card:nth-child(4).animate-on-scroll {
    transition-delay: 0.4s;
}

.service-card:nth-child(5).animate-on-scroll,
.why-us-card:nth-child(5).animate-on-scroll {
    transition-delay: 0.5s;
}


/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
    :root {
        --section-padding: 5rem;
    }
}

@media (max-width: 768px) {

    :root {
        --section-padding: 4rem;
    }

    .container {
        padding: 0 1.5rem;
    }

    .utility-bar {
        display: none;
    }

    nav {
        top: 0;
    }

    body.utility-hidden nav {
        top: 0;
    }

    .nav-container {
        padding: 0 1.5rem;
    }

    .logo img {
        height: 60px;
    }

    .mobile-divider,
    .mobile-accessibility,
    .mobile-theme {
        display: block;
    }


    /* ========================
       Navigation
       ======================== */

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: var(--bg-base);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: right var(--transition-slow);
        z-index: 999;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.5rem;
    }

    .mobile-menu-btn {
        display: flex;
    }

    /* ========================
       Hero
       ======================== */

.hero {
    padding-top: var(--navbar-height);
    padding-bottom: 4rem;
}

    .hero-content {
        max-width: 100%;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-subheadline {
        font-size: 1.1rem;
    }

    .btn-group {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    /* ========================
       About
       ======================== */

    .about-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* ========================
       Sections
       ======================== */

    .section {
        padding: var(--section-padding) 0;
    }

    .section-title {
        margin-bottom: 3rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    /* ========================
       Services
       ======================== */

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        padding: 2rem;
    }

    /* ========================
       Approach
       ======================== */

    .approach-grid {
        gap: 2rem;
    }

    .approach-number {
        font-size: 3rem;
    }

    /* ========================
       Impact
       ======================== */

    .impact-metrics {
        gap: 1.5rem;
    }

    .metric-value {
        font-size: 2.5rem;
    }

    .metric-label {
        font-size: 0.9rem;
    }

    /* ========================
       Footer
       ======================== */

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    /* ========================
       Disable animations on mobile
       ======================== */

    .animate-on-scroll {
        opacity: 1;
        transform: none;
    }
}