/* ============================================
   FAMILY HEALTH SERVICES — FAIRFIELD, CA
   Custom Styles
   ============================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
    --forest-dark: #1B4332;
    --forest: #2D6A4F;
    --forest-mid: #40916C;
    --accent: #52B788;
    --accent-light: #95D5B2;
    --accent-pale: #D8F3DC;
    --accent-teal: #1B4332;
    --off-white: #F8FAF5;
    --cream: #F0F4EC;
    --warm-gray: #F5F5F0;
    --text-primary: #1A2E23;
    --text-secondary: #3D5A47;
    --text-muted: #6B8F7A;
    --border: #D4E4D8;
    --white: #FFFFFF;
    --shadow-sm: 0 1px 3px rgba(27, 67, 50, 0.06), 0 1px 2px rgba(27, 67, 50, 0.04);
    --shadow-md: 0 4px 16px rgba(27, 67, 50, 0.08), 0 2px 4px rgba(27, 67, 50, 0.04);
    --shadow-lg: 0 12px 40px rgba(27, 67, 50, 0.12), 0 4px 12px rgba(27, 67, 50, 0.06);
    --shadow-xl: 0 24px 60px rgba(27, 67, 50, 0.16);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-serif: 'Playfair Display', Georgia, serif;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.65;
    color: var(--text-primary);
    background-color: var(--off-white);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul {
    list-style: none;
}

/* ---------- Accessibility ---------- */
.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    background: var(--forest-dark);
    color: var(--white);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    z-index: 1000;
    font-weight: 600;
    transition: top 0.2s;
}

.skip-link:focus {
    top: 16px;
}

/* ---------- Container ---------- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

@media (min-width: 768px) {
    .container {
        padding: 0 40px;
    }
}

@media (min-width: 1200px) {
    .container {
        padding: 0 48px;
    }
}

/* ---------- Typography ---------- */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
}

.section-label::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 640px;
}

.section-header {
    margin-bottom: 56px;
}

.section-header.center {
    text-align: center;
}

.section-header.center .section-subtitle {
    margin: 0 auto;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9375rem;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--forest);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(45, 106, 79, 0.35);
}

.btn-primary:hover {
    background: var(--forest-dark);
    box-shadow: 0 6px 20px rgba(45, 106, 79, 0.45);
    transform: translateY(-1px);
}

.btn-ghost {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.7);
}

.btn-white {
    background: var(--white);
    color: var(--forest-dark);
    box-shadow: var(--shadow-md);
}

.btn-white:hover {
    background: var(--accent-pale);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn-outline-white {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.6);
}

.btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
}

.btn-lg {
    padding: 18px 36px;
    font-size: 1rem;
    border-radius: var(--radius-md);
}

.btn-full {
    width: 100%;
    justify-content: center;
    padding: 16px 28px;
}

/* ---------- Header ---------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: box-shadow var(--transition);
}

.header.scrolled {
    box-shadow: var(--shadow-md);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

/* Logo */
.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--forest-dark);
    font-weight: 700;
    font-size: 1.125rem;
}

.logo-icon {
    color: var(--forest);
}

.logo-text {
    letter-spacing: -0.02em;
}

.logo-dot {
    color: var(--accent);
}

.logo-light {
    color: var(--white);
}

/* Nav */
.nav-list {
    display: none;
    align-items: center;
    gap: 4px;
}

.nav-link {
    padding: 8px 16px;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: color var(--transition), background var(--transition);
}

.nav-link:hover {
    color: var(--forest);
    background: var(--accent-pale);
}

.cta-nav {
    background: var(--forest);
    color: var(--white) !important;
    border-radius: var(--radius-sm);
    margin-left: 8px;
}

.cta-nav:hover {
    background: var(--forest-dark);
}

/* Mobile menu button */
.mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    transition: background var(--transition);
}

.mobile-menu-btn:hover {
    background: var(--accent-pale);
}

.hamburger,
.hamburger::before,
.hamburger::after {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--forest-dark);
    border-radius: 2px;
    transition: all var(--transition);
}

.hamburger {
    position: relative;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
}

.hamburger::before {
    top: -6px;
}

.hamburger::after {
    top: 6px;
}

.mobile-menu-btn[aria-expanded="true"] .hamburger {
    background: transparent;
}

.mobile-menu-btn[aria-expanded="true"] .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}

.mobile-menu-btn[aria-expanded="true"] .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
}

@media (min-width: 1024px) {
    .nav-list {
        display: flex;
    }

    .mobile-menu-btn {
        display: none;
    }
}

/* Mobile nav */
.nav.mobile-open {
    display: flex;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    padding: 24px;
    z-index: 99;
    overflow-y: auto;
}

.nav.mobile-open .nav-list {
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.nav.mobile-open .nav-link {
    font-size: 1.125rem;
    padding: 14px 16px;
    width: 100%;
}

.nav.mobile-open .cta-nav {
    margin-left: 0;
    text-align: center;
    margin-top: 16px;
}

/* ---------- Hero ---------- */
.hero {
    padding-top: 72px;
    background: linear-gradient(135deg, var(--forest-dark) 0%, var(--forest) 50%, var(--forest-mid) 100%);
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 70% 40%, rgba(82, 183, 136, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse 50% 80% at 20% 80%, rgba(27, 67, 50, 0.3) 0%, transparent 50%);
    pointer-events: none;
}

/* Subtle pattern overlay */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: center;
    position: relative;
    z-index: 1;
    padding: 64px 0;
}

@media (min-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr 1fr;
        gap: 64px;
        padding: 80px 0;
    }
}

.hero-content {
    color: var(--white);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--accent-light);
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    margin-bottom: 28px;
    backdrop-filter: blur(4px);
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--white);
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.hero-description {
    font-size: 1.125rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.82);
    margin-bottom: 36px;
    max-width: 520px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    gap: 32px;
    align-items: center;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-number {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--accent-light);
    line-height: 1;
}

.stat-label {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.3;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
}

/* Hero Image */
.hero-image-wrapper {
    position: relative;
}

.hero-image {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    aspect-ratio: 620/720;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-accent-card {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    box-shadow: var(--shadow-lg);
    max-width: 280px;
}

.hero-accent-card svg {
    color: var(--accent);
    flex-shrink: 0;
    margin-top: 2px;
}

.hero-accent-card strong {
    display: block;
    font-size: 0.9375rem;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.hero-accent-card span {
    font-size: 0.8125rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ---------- Services ---------- */
.services {
    padding: 96px 0;
    background: var(--off-white);
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 640px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.service-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--forest), var(--accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition);
}

.service-card:hover {
    border-color: var(--accent-light);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 56px;
    height: 56px;
    background: var(--accent-pale);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--forest);
    margin-bottom: 20px;
    transition: all var(--transition);
}

.service-card:hover .service-icon {
    background: var(--forest);
    color: var(--white);
}

.service-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.service-card p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ---------- About ---------- */
.about {
    padding: 96px 0;
    background: var(--cream);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 56px;
    align-items: center;
}

@media (min-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr 1fr;
        gap: 72px;
    }
}

.about-images {
    position: relative;
}

.about-img-main {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 540/600;
}

.about-img-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-img-secondary {
    position: absolute;
    bottom: -32px;
    right: -16px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 4px solid var(--cream);
    aspect-ratio: 400/300;
    max-width: 260px;
}

.about-img-secondary img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-experience-badge {
    position: absolute;
    top: -16px;
    right: 24px;
    background: var(--forest);
    color: var(--white);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.about-experience-badge .exp-number {
    display: block;
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    color: var(--accent-light);
}

.about-experience-badge .exp-text {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.4;
}

.about-content .section-title {
    margin-bottom: 24px;
}

.about-lead {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 20px;
}

.about-content > p {
    font-size: 0.9375rem;
    color: var(--text-muted);
    line-height: 1.75;
    margin-bottom: 32px;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 24px;
    margin-bottom: 36px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-primary);
}

.feature-check {
    color: var(--accent);
    flex-shrink: 0;
}

/* ---------- Insurance ---------- */
.insurance {
    padding: 96px 0;
    background: var(--white);
}

.insurance-header {
    text-align: center;
    margin-bottom: 56px;
}

.insurance-header .section-subtitle {
    margin: 0 auto;
}

.insurance-logos {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

@media (min-width: 640px) {
    .insurance-logos {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 768px) {
    .insurance-logos {
        grid-template-columns: repeat(6, 1fr);
    }
}

.insurance-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 28px 16px;
    background: var(--off-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: all var(--transition);
}

.insurance-item:hover {
    border-color: var(--accent-light);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.insurance-placeholder {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-pale);
    border-radius: var(--radius-sm);
    color: var(--forest);
}

.insurance-item span {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-align: center;
    line-height: 1.3;
}

.insurance-note {
    text-align: center;
    font-size: 0.9375rem;
    color: var(--text-secondary);
    padding: 20px 24px;
    background: var(--accent-pale);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.insurance-note a {
    color: var(--forest);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: rgba(45, 106, 79, 0.3);
    text-underline-offset: 3px;
}

.insurance-note a:hover {
    text-decoration-color: var(--forest);
}

/* ---------- Testimonials ---------- */
.testimonials {
    padding: 96px 0;
    background: var(--off-white);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 768px) {
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.testimonial-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    position: relative;
    transition: all var(--transition);
}

.testimonial-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.testimonial-quote {
    color: var(--accent);
    margin-bottom: 20px;
    opacity: 0.6;
}

.testimonial-text {
    font-size: 0.9375rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    flex-shrink: 0;
}

.testimonial-author strong {
    display: block;
    font-size: 0.9375rem;
    color: var(--text-primary);
}

.testimonial-author span {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

/* ---------- CTA Banner ---------- */
.cta-banner {
    padding: 96px 0;
    background: linear-gradient(135deg, var(--forest-dark) 0%, var(--forest) 60%, var(--forest-mid) 100%);
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 50% at 80% 50%, rgba(82, 183, 136, 0.2) 0%, transparent 60%);
    pointer-events: none;
}

.cta-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

@media (min-width: 768px) {
    .cta-inner {
        grid-template-columns: 1fr auto;
        gap: 56px;
    }
}

.cta-content {
    color: var(--white);
}

.cta-title {
    font-family: var(--font-serif);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--white);
    margin-bottom: 16px;
}

.cta-description {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.8);
    max-width: 520px;
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

/* ---------- Contact ---------- */
.contact {
    padding: 96px 0;
    background: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 56px;
}

@media (min-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr 1fr;
        gap: 72px;
    }
}

.contact-intro {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 36px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 32px;
}

.contact-item {
    display: flex;
    gap: 16px;
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: var(--accent-pale);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--forest);
    flex-shrink: 0;
}

.contact-item strong {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.contact-item p {
    font-size: 0.9375rem;
    color: var(--text-primary);
    line-height: 1.6;
}

.contact-item a {
    color: var(--forest);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: rgba(45, 106, 79, 0.3);
    text-underline-offset: 3px;
}

.contact-item a:hover {
    text-decoration-color: var(--forest);
}

.map-container {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--off-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 40px 32px;
}

.form-header {
    margin-bottom: 28px;
}

.form-header h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.form-header p {
    font-size: 0.9375rem;
    color: var(--text-muted);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 480px) {
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    padding: 12px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--white);
    color: var(--text-primary);
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
    width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(82, 183, 136, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-success {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 48px 24px;
    animation: fadeIn 0.4s ease;
}

.form-success.show {
    display: flex;
}

.form-success svg {
    margin-bottom: 16px;
}

.form-success h4 {
    font-family: var(--font-serif);
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.form-success p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---------- Footer ---------- */
.footer {
    background: var(--forest-dark);
    color: rgba(255, 255, 255, 0.75);
    padding: 72px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    padding-bottom: 56px;
}

@media (min-width: 640px) {
    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    }
}

.footer-brand p {
    font-size: 0.9375rem;
    line-height: 1.7;
    margin-top: 16px;
    color: rgba(255, 255, 255, 0.6);
}

.footer-links h4,
.footer-contact h4 {
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-light);
    margin-bottom: 20px;
}

.footer-links ul,
.footer-contact ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a,
.footer-contact a {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.65);
    transition: color var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--white);
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.875rem;
    line-height: 1.6;
}

.footer-contact svg {
    flex-shrink: 0;
    margin-top: 3px;
    opacity: 0.6;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 24px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.footer-bottom p {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.45);
}

.footer-disclaimer {
    font-size: 0.75rem !important;
    color: rgba(255, 255, 255, 0.3) !important;
    max-width: 500px;
}

/* ---------- Scroll Animations ---------- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }

    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
    .reveal-delay-5 { transition-delay: 0.5s; }
    .reveal-delay-6 { transition-delay: 0.6s; }
}

/* ---------- Utility ---------- */
@media (max-width: 639px) {
    .hero-accent-card {
        position: relative;
        bottom: auto;
        left: auto;
        margin-top: 16px;
        max-width: 100%;
    }

    .about-img-secondary {
        right: 0;
        bottom: -24px;
    }

    .about-features {
        grid-template-columns: 1fr;
    }
}
