/* =============================================
   Dr. Seth Goolsbee Optometrist — Styles
   Classic & Elegant · Emerald Green + Cream
   ============================================= */

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

:root {
    /* Palette */
    --emerald-950: #042f23;
    --emerald-900: #064e3b;
    --emerald-800: #065f46;
    --emerald-700: #047857;
    --emerald-600: #059669;
    --emerald-500: #10b981;
    --cream-50: #f5f0e8;
    --cream-100: #f9f5ee;
    --cream-200: #f0ead8;
    --cream-300: #e8e0cc;
    --gold-500: #b8860b;
    --gold-600: #9a7209;
    --text-dark: #1a1a1a;
    --text-medium: #3d3d3d;
    --text-light: #6b6b6b;
    --white: #ffffff;

    /* Typography */
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Lora', 'Georgia', serif;
    --font-ui: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing */
    --container-max: 1200px;
    --section-pad: clamp(4rem, 10vw, 8rem);
    --radius: 12px;
    --radius-lg: 20px;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background: var(--cream-50);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

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

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 4vw, 3rem);
}

/* ---------- Navigation ---------- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(6, 78, 59, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: background 0.3s ease;
}

.nav-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 4vw, 3rem);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--cream-50);
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.nav-logo-icon {
    color: var(--cream-200);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--cream-200);
    font-family: var(--font-ui);
    font-size: 0.875rem;
    font-weight: 400;
    letter-spacing: 0.03em;
    transition: color 0.25s ease;
}

.nav-links a:hover {
    color: var(--white);
}

.nav-cta {
    background: var(--cream-50) !important;
    color: var(--emerald-900) !important;
    padding: 10px 22px;
    border-radius: 100px;
    font-weight: 500 !important;
    letter-spacing: 0.02em !important;
    transition: background 0.25s ease, transform 0.2s ease !important;
}

.nav-cta:hover {
    background: var(--white) !important;
    transform: translateY(-1px);
}

/* Mobile Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--cream-200);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999;
    background: var(--emerald-900);
    padding: 6rem 2rem 2rem;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

.mobile-menu.open {
    display: flex;
}

.mobile-menu-close {
    position: absolute;
    top: 1.25rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--cream-200);
    cursor: pointer;
    padding: 4px;
}

.mobile-menu ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.mobile-link {
    color: var(--cream-200);
    font-family: var(--font-display);
    font-size: 1.5rem;
    padding: 0.75rem 1rem;
    transition: color 0.25s ease;
}

.mobile-link:hover {
    color: var(--white);
}

.mobile-cta {
    margin-top: 1.5rem;
    background: var(--cream-50);
    color: var(--emerald-900) !important;
    padding: 14px 32px;
    border-radius: 100px;
    font-family: var(--font-ui) !important;
    font-size: 1rem !important;
    font-weight: 500 !important;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 100px;
    font-family: var(--font-ui);
    font-size: 0.9375rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
}

.btn-primary {
    background: var(--emerald-700);
    color: var(--white);
    border-color: var(--emerald-700);
}

.btn-primary:hover {
    background: var(--emerald-800);
    border-color: var(--emerald-800);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(4, 47, 35, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--emerald-800);
    border-color: var(--emerald-700);
}

.btn-secondary:hover {
    background: var(--emerald-700);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-white {
    background: var(--white);
    color: var(--emerald-900);
    border-color: var(--white);
}

.btn-white:hover {
    background: var(--cream-100);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

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

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

.btn-full {
    width: 100%;
    justify-content: center;
}

.btn-sm {
    padding: 10px 24px;
    font-size: 0.875rem;
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(
        135deg,
        #042f23 0%,
        #064e3b 20%,
        #047857 40%,
        #059669 55%,
        #065f46 70%,
        #042f23 90%,
        #021a12 100%
    );
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 80% 60% at 20% 80%, rgba(5, 150, 105, 0.3) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 80% 20%, rgba(6, 114, 87, 0.25) 0%, transparent 50%),
        radial-gradient(ellipse 50% 40% at 50% 50%, rgba(4, 47, 35, 0.4) 0%, transparent 70%);
}

.hero-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.04;
    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");
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 820px;
    padding: 8rem 1.5rem 4rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(245, 240, 232, 0.12);
    border: 1px solid rgba(245, 240, 232, 0.2);
    color: var(--cream-200);
    padding: 8px 20px;
    border-radius: 100px;
    font-family: var(--font-ui);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 2rem;
    backdrop-filter: blur(4px);
}

.hero-badge svg {
    opacity: 0.8;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
}

.hero-title-accent {
    font-style: italic;
    font-weight: 500;
    color: var(--cream-200);
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: clamp(1.0625rem, 2vw, 1.25rem);
    color: var(--cream-300);
    line-height: 1.8;
    max-width: 620px;
    margin: 0 auto 2.5rem;
    font-weight: 400;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.hero-trust {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.hero-trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--cream-300);
    font-family: var(--font-ui);
    font-size: 0.875rem;
    font-weight: 400;
}

.hero-trust-item svg {
    color: var(--emerald-500);
    flex-shrink: 0;
}

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--cream-300);
    opacity: 0.6;
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(6px); }
}

/* ---------- Section Shared ---------- */
.section-header {
    margin-bottom: 3.5rem;
}

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

.section-label {
    display: inline-block;
    font-family: var(--font-ui);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--emerald-700);
    margin-bottom: 0.75rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--emerald-900);
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

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

.section-subtitle {
    font-family: var(--font-body);
    font-size: 1.0625rem;
    color: var(--text-light);
    line-height: 1.8;
    max-width: 640px;
}

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

/* ---------- Services ---------- */
.services {
    padding: var(--section-pad) 0;
    background: var(--cream-50);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.service-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2.25rem;
    border: 1px solid var(--cream-200);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--emerald-700), var(--emerald-500));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(6, 78, 59, 0.1);
    border-color: var(--emerald-200, #a7f3d0);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--emerald-800), var(--emerald-600));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    margin-bottom: 1.25rem;
}

.service-card h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--emerald-900);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

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

/* ---------- About ---------- */
.about {
    padding: var(--section-pad) 0;
    background: var(--emerald-900);
    position: relative;
    overflow: hidden;
}

.about::before {
    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");
}

.about-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
}

.about-image-wrap {
    position: relative;
}

.about-image-main {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.3);
}

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

.about-image-accent {
    position: absolute;
    bottom: -2rem;
    right: -2rem;
    width: 55%;
    border-radius: var(--radius);
    overflow: hidden;
    border: 5px solid var(--emerald-800);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

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

.about-experience-badge {
    position: absolute;
    top: -1.5rem;
    right: 2rem;
    background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
    color: var(--white);
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: 0 12px 32px rgba(184, 134, 11, 0.3);
}

.experience-number {
    display: block;
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.experience-text {
    font-family: var(--font-ui);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    line-height: 1.4;
}

.about-content {
    position: relative;
}

.about-content .section-label {
    color: var(--emerald-400, #34d399);
}

.about-content .section-title {
    color: var(--white);
}

.about-text {
    font-size: 1.0625rem;
    color: var(--cream-200);
    line-height: 1.85;
    margin-bottom: 1.5rem;
}

.about-values {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.about-value {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.about-value-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--emerald-400, #34d399);
}

.about-value strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.0625rem;
    color: var(--white);
    margin-bottom: 0.25rem;
}

.about-value span {
    font-size: 0.875rem;
    color: var(--cream-300);
    line-height: 1.6;
}

/* ---------- Why Choose Us ---------- */
.why {
    padding: var(--section-pad) 0;
    background: var(--cream-100);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.why-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    border: 1px solid var(--cream-200);
    transition: all 0.3s ease;
    position: relative;
}

.why-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 48px rgba(6, 78, 59, 0.08);
}

.why-card-number {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    color: var(--emerald-100, #d1fae5);
    line-height: 1;
    margin-bottom: 1rem;
}

.why-card h3 {
    font-family: var(--font-display);
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--emerald-900);
    margin-bottom: 0.75rem;
}

.why-card p {
    font-size: 0.9375rem;
    color: var(--text-light);
    line-height: 1.75;
}

/* ---------- Testimonials ---------- */
.testimonials {
    padding: var(--section-pad) 0;
    background: var(--cream-50);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.testimonial-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2.25rem;
    border: 1px solid var(--cream-200);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.testimonial-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 48px rgba(6, 78, 59, 0.08);
}

.testimonial-stars {
    display: flex;
    gap: 4px;
    color: var(--gold-500);
    margin-bottom: 1.25rem;
}

.testimonial-text {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-medium);
    line-height: 1.8;
    flex: 1;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.testimonial-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--emerald-700), var(--emerald-500));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    flex-shrink: 0;
}

.testimonial-name {
    display: block;
    font-family: var(--font-ui);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-dark);
}

.testimonial-location {
    display: block;
    font-size: 0.8125rem;
    color: var(--text-light);
}

/* ---------- CTA Banner ---------- */
.cta-banner {
    position: relative;
    padding: clamp(4rem, 10vw, 6rem) 0;
    overflow: hidden;
    background: linear-gradient(
        135deg,
        #042f23 0%,
        #064e3b 30%,
        #047857 60%,
        #065f46 100%
    );
}

.cta-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.04;
    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");
}

.cta-content {
    position: relative;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.25;
    margin-bottom: 1rem;
}

.cta-text {
    font-size: 1.0625rem;
    color: var(--cream-200);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ---------- Contact ---------- */
.contact {
    padding: var(--section-pad) 0;
    background: var(--emerald-900);
    position: relative;
    overflow: hidden;
}

.contact::before {
    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");
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    position: relative;
}

.contact-intro {
    font-size: 1.0625rem;
    color: var(--cream-200);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-detail {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.contact-detail-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--emerald-400, #34d399);
}

.contact-detail strong {
    display: block;
    font-family: var(--font-ui);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.25rem;
    letter-spacing: 0.03em;
}

.contact-detail span,
.contact-detail a {
    font-size: 0.9375rem;
    color: var(--cream-200);
    line-height: 1.6;
}

.contact-detail a:hover {
    color: var(--white);
    text-decoration: underline;
}

.contact-map {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

/* Contact Form */
.contact-form-wrap {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.15);
}

.contact-form-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--emerald-900);
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-family: var(--font-ui);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-medium);
    margin-bottom: 0.4rem;
    letter-spacing: 0.03em;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--cream-300);
    border-radius: var(--radius);
    font-family: var(--font-ui);
    font-size: 0.9375rem;
    color: var(--text-dark);
    background: var(--cream-50);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--emerald-600);
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15);
    background: var(--white);
}

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

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

.form-success {
    text-align: center;
    padding: 2rem;
}

.success-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, var(--emerald-700), var(--emerald-500));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.form-success h4 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--emerald-900);
    margin-bottom: 0.5rem;
}

.form-success p {
    font-size: 0.9375rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* ---------- Footer ---------- */
.footer {
    background: #021a12;
    padding: 4rem 0 0;
    color: var(--cream-200);
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand p {
    font-size: 0.9375rem;
    color: var(--cream-300);
    line-height: 1.7;
    margin-top: 1rem;
    max-width: 320px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--cream-200);
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
}

.footer-links h4,
.footer-contact h4 {
    font-family: var(--font-ui);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--cream-300);
    margin-bottom: 1rem;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer-links a {
    font-family: var(--font-ui);
    font-size: 0.875rem;
    color: var(--cream-300);
    transition: color 0.25s ease;
}

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

.footer-contact address {
    font-style: normal;
    font-size: 0.9375rem;
    color: var(--cream-300);
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

.footer-contact a:hover {
    color: var(--white);
    text-decoration: underline;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1.5rem 0;
    font-family: var(--font-ui);
    font-size: 0.8125rem;
    color: var(--cream-300);
}

.footer-bottom a {
    color: var(--cream-300);
    transition: color 0.25s ease;
}

.footer-bottom a:hover {
    color: var(--white);
}

/* ---------- Scroll Reveal (progressive enhancement) ---------- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

    .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; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonials-grid .testimonial-card:last-child {
        grid-column: span 2;
        max-width: 50%;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-content {
        padding: 7rem 1.25rem 3rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-trust {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .about-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-image-accent {
        position: relative;
        bottom: auto;
        right: auto;
        width: 70%;
        margin-top: -3rem;
        margin-left: auto;
    }

    .about-experience-badge {
        top: auto;
        bottom: -1rem;
        right: 1rem;
    }

    .why-grid {
        grid-template-columns: 1fr;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .testimonials-grid .testimonial-card:last-child {
        grid-column: auto;
        max-width: 100%;
    }

    .cta-actions {
        flex-direction: column;
        align-items: center;
    }

    .cta-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .contact-layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .service-card,
    .why-card,
    .testimonial-card {
        padding: 1.5rem;
    }

    .contact-form-wrap {
        padding: 1.5rem;
    }
}
