/* ============================================
   DR. SAM HARWOOD — PRIMARY CARE WEBSITE
   Classic & Elegant · Terracotta + Sand Palette
   ============================================ */

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

:root {
    /* Palette */
    --clr-terra-950: #3C1518;
    --clr-terra-900: #5C2E2E;
    --clr-terra-800: #7B3F3F;
    --clr-terra-700: #8B4A4A;
    --clr-terra-600: #A0522D;
    --clr-terra-500: #B8653A;
    --clr-terra-400: #C97D5A;
    --clr-terra-300: #D4956E;
    --clr-terra-200: #E0B09A;
    --clr-terra-100: #EDD4C4;
    --clr-terra-50:  #F7EBE4;

    --clr-sand-950: #1C1714;
    --clr-sand-900: #2A2220;
    --clr-sand-800: #3D3430;
    --clr-sand-700: #5A4E48;
    --clr-sand-600: #7A6C64;
    --clr-sand-500: #9C8E84;
    --clr-sand-400: #BFB0A4;
    --clr-sand-300: #D6C8BC;
    --clr-sand-200: #E8DDD4;
    --clr-sand-100: #F3EDE7;
    --clr-sand-50:  #FAF7F4;

    --clr-white: #FFFCF9;
    --clr-black: #1A1412;

    /* Typography */
    --font-serif: 'Cormorant Garamond', 'Georgia', serif;
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;

    /* Layout */
    --container-max: 1200px;
    --header-h: 72px;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 300ms ease;
    --transition-slow: 500ms ease;
}

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

body {
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--clr-sand-900);
    background-color: var(--clr-white);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 600;
    line-height: 1.2;
    color: var(--clr-terra-950);
}

a {
    color: var(--clr-terra-600);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--clr-terra-800);
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* ---------- SKIP LINK ---------- */
.skip-link {
    position: absolute;
    top: -100%;
    left: var(--space-md);
    background: var(--clr-terra-950);
    color: var(--clr-white);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-sm);
    z-index: 1000;
    font-size: 0.875rem;
}

.skip-link:focus {
    top: var(--space-md);
    color: var(--clr-white);
}

/* ---------- BUTTONS ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 0.9375rem;
    letter-spacing: 0.01em;
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition-base);
    line-height: 1.4;
}

.btn-primary {
    background: var(--clr-terra-600);
    color: var(--clr-white);
    border-color: var(--clr-terra-600);
}

.btn-primary:hover {
    background: var(--clr-terra-700);
    border-color: var(--clr-terra-700);
    color: var(--clr-white);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(160, 82, 45, 0.35);
}

.btn-ghost {
    background: transparent;
    color: var(--clr-terra-600);
    border-color: var(--clr-terra-600);
}

.btn-ghost:hover {
    background: var(--clr-terra-600);
    color: var(--clr-white);
}

.btn-lg {
    padding: 1rem 2.25rem;
    font-size: 1.0625rem;
}

.btn-sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.8125rem;
}

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

.btn svg {
    flex-shrink: 0;
}

/* ---------- SECTION HEADERS ---------- */
.section-eyebrow {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--clr-terra-600);
    margin-bottom: var(--space-md);
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    margin-bottom: var(--space-lg);
    color: var(--clr-terra-950);
}

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

/* ---------- HEADER ---------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(250, 247, 244, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--clr-sand-200);
    height: var(--header-h);
    transition: box-shadow var(--transition-base);
}

.site-header.scrolled {
    box-shadow: 0 2px 20px rgba(28, 23, 20, 0.08);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    text-decoration: none;
    color: var(--clr-terra-950);
}

.logo-mark {
    width: 40px;
    height: 40px;
    background: var(--clr-terra-600);
    color: var(--clr-white);
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    letter-spacing: 0.05em;
    flex-shrink: 0;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-name {
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: 1.125rem;
    color: var(--clr-terra-950);
}

.logo-tagline {
    font-family: var(--font-sans);
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--clr-sand-600);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.main-nav ul {
    display: flex;
    gap: var(--space-xl);
}

.main-nav a:not(.btn) {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--clr-sand-800);
    text-decoration: none;
    position: relative;
    padding: var(--space-xs) 0;
}

.main-nav a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--clr-terra-600);
    transition: width var(--transition-base);
}

.main-nav a:not(.btn):hover {
    color: var(--clr-terra-600);
}

.main-nav a:not(.btn):hover::after {
    width: 100%;
}

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    position: relative;
    z-index: 101;
}

.hamburger {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--clr-terra-950);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all var(--transition-base);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 22px;
    height: 2px;
    background: var(--clr-terra-950);
    left: 0;
    transition: all var(--transition-base);
}

.hamburger::before { top: -7px; }
.hamburger::after { bottom: -7px; }

.nav-toggle[aria-expanded="true"] .hamburger {
    background: transparent;
}

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

.nav-toggle[aria-expanded="true"] .hamburger::after {
    bottom: 0;
    transform: rotate(-45deg);
}

/* ---------- HERO ---------- */
.hero {
    padding-top: calc(var(--header-h) + var(--space-3xl));
    padding-bottom: var(--space-4xl);
    background: var(--clr-white);
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.hero-content {
    max-width: 540px;
}

.hero-eyebrow {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--clr-terra-600);
    margin-bottom: var(--space-lg);
}

.hero-headline {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 600;
    line-height: 1.1;
    color: var(--clr-terra-950);
    margin-bottom: var(--space-lg);
    font-style: italic;
}

.hero-headline em {
    color: var(--clr-terra-600);
    font-style: italic;
}

.hero-sub {
    font-size: 1.125rem;
    color: var(--clr-sand-700);
    line-height: 1.75;
    margin-bottom: var(--space-2xl);
    max-width: 480px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    margin-bottom: var(--space-2xl);
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xl);
}

.hero-badges li {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--clr-sand-800);
}

.badge-icon {
    width: 18px;
    height: 18px;
    color: var(--clr-terra-600);
    flex-shrink: 0;
}

.hero-image-wrap {
    position: relative;
    max-width: 560px;
    margin-left: auto;
}

.hero-image-accent {
    position: absolute;
    top: -16px;
    right: -16px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--clr-terra-200);
    border-radius: var(--radius-lg);
    z-index: -1;
}

.hero-image-wrap img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(28, 23, 20, 0.15);
}

.hero-image-seal {
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    background: var(--clr-terra-600);
    color: var(--clr-white);
    padding: var(--space-sm) var(--space-lg);
    border-radius: 100px;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    white-space: nowrap;
    box-shadow: 0 4px 16px rgba(160, 82, 45, 0.4);
}

.hero-image-seal svg {
    width: 16px;
    height: 16px;
}

/* ---------- ABOUT ---------- */
.about {
    padding: var(--space-4xl) 0;
    background: var(--clr-sand-50);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.about-image-frame {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(28, 23, 20, 0.12);
}

.about-image-frame img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    display: block;
}

.about-content-col {
    padding-right: var(--space-lg);
}

.about-content-col p {
    color: var(--clr-sand-700);
    margin-bottom: var(--space-lg);
    font-size: 1.0625rem;
}

.about-values {
    display: grid;
    gap: var(--space-md);
    margin-top: var(--space-2xl);
}

.about-values li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    font-size: 0.9375rem;
    color: var(--clr-sand-800);
}

.about-values svg {
    width: 22px;
    height: 22px;
    color: var(--clr-terra-600);
    flex-shrink: 0;
    margin-top: 2px;
}

/* ---------- SERVICES ---------- */
.services {
    padding: var(--space-4xl) 0;
    background: var(--clr-white);
}

.services .section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.services .section-subtitle {
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.service-card {
    background: var(--clr-sand-50);
    border: 1px solid var(--clr-sand-200);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    transition: all var(--transition-base);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(28, 23, 20, 0.1);
    border-color: var(--clr-terra-200);
}

.service-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: var(--clr-terra-50);
    margin-bottom: var(--space-lg);
}

.service-icon svg {
    width: 28px;
    height: 28px;
    color: var(--clr-terra-600);
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: var(--space-sm);
    color: var(--clr-terra-950);
}

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

/* ---------- EXPERIENCE ---------- */
.experience {
    padding: var(--space-4xl) 0;
    background: var(--clr-sand-50);
}

.experience-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: start;
}

.experience-content {
    padding-right: var(--space-lg);
}

.experience-intro {
    font-size: 1.0625rem;
    color: var(--clr-sand-700);
    margin-bottom: var(--space-2xl);
    line-height: 1.75;
}

.experience-steps {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.step {
    display: flex;
    gap: var(--space-lg);
    align-items: flex-start;
}

.step-number {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1rem;
    color: var(--clr-terra-600);
    background: var(--clr-terra-50);
    border: 2px solid var(--clr-terra-200);
    border-radius: 50%;
    margin-top: 2px;
}

.step-body h4 {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    color: var(--clr-terra-950);
    margin-bottom: var(--space-xs);
}

.step-body p {
    font-size: 0.9375rem;
    color: var(--clr-sand-700);
    line-height: 1.65;
}

.experience-image-stack {
    position: relative;
}

.experience-image-stack img:first-child {
    width: 100%;
    height: 320px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: 0 12px 40px rgba(28, 23, 20, 0.12);
}

.experience-image-stack img:last-child {
    position: absolute;
    bottom: -40px;
    right: -20px;
    width: 55%;
    height: 220px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    border: 4px solid var(--clr-sand-50);
    box-shadow: 0 12px 40px rgba(28, 23, 20, 0.15);
}

/* ---------- INSURANCE ---------- */
.insurance {
    padding: var(--space-4xl) 0;
    background: var(--clr-terra-950);
}

.insurance-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-2xl);
}

.insurance-content {
    max-width: 680px;
}

.insurance-content .section-eyebrow {
    color: var(--clr-terra-300);
}

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

.insurance-content p {
    color: var(--clr-terra-200);
    font-size: 1.0625rem;
    line-height: 1.75;
}

.insurance-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-xl);
}

.insurer-placeholder {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    background: rgba(255, 252, 249, 0.08);
    border: 1px solid rgba(255, 252, 249, 0.15);
    border-radius: var(--radius-md);
    padding: var(--space-lg) var(--space-2xl);
    color: var(--clr-terra-100);
    font-size: 0.9375rem;
    font-weight: 500;
}

.insurer-placeholder svg {
    width: 24px;
    height: 24px;
    color: var(--clr-terra-300);
    flex-shrink: 0;
}

/* ---------- CONTACT ---------- */
.contact {
    padding: var(--space-4xl) 0;
    background: var(--clr-white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: start;
}

.contact-info {
    padding-right: var(--space-lg);
}

.contact-intro {
    font-size: 1.0625rem;
    color: var(--clr-sand-700);
    margin-bottom: var(--space-2xl);
    line-height: 1.75;
}

.contact-details {
    display: grid;
    gap: var(--space-xl);
    margin-bottom: var(--space-2xl);
}

.contact-item {
    display: flex;
    gap: var(--space-md);
}

.contact-item dt {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: 1.125rem;
    color: var(--clr-terra-950);
    flex-shrink: 0;
    min-width: 80px;
}

.contact-item dt svg {
    width: 18px;
    height: 18px;
    color: var(--clr-terra-600);
}

.contact-item dd {
    font-size: 0.9375rem;
    color: var(--clr-sand-700);
    line-height: 1.65;
    padding-left: calc(80px + var(--space-md));
}

.contact-item dd a {
    color: var(--clr-terra-600);
    font-weight: 500;
}

.contact-item dd a:hover {
    color: var(--clr-terra-800);
    text-decoration: underline;
}

.contact-form-wrap {
    max-width: 520px;
}

.contact-form-card {
    background: var(--clr-sand-50);
    border: 1px solid var(--clr-sand-200);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
}

.contact-form-card h3 {
    font-size: 1.5rem;
    margin-bottom: var(--space-sm);
    color: var(--clr-terra-950);
}

.form-note {
    font-size: 0.875rem;
    color: var(--clr-sand-600);
    margin-bottom: var(--space-xl);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

.form-group {
    margin-bottom: var(--space-md);
}

.form-group label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--clr-sand-800);
    margin-bottom: var(--space-sm);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--clr-sand-300);
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    color: var(--clr-sand-900);
    background: var(--clr-white);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--clr-terra-600);
    box-shadow: 0 0 0 3px rgba(160, 82, 45, 0.12);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--clr-sand-400);
}

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

.form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237A6C64' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.btn-loading {
    display: none;
}

.btn[aria-busy="true"] .btn-text { display: none; }
.btn[aria-busy="true"] .btn-loading { display: flex; align-items: center; justify-content: center; }
.btn[aria-busy="true"] .btn-loading svg {
    width: 20px; height: 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.form-success {
    text-align: center;
    padding: var(--space-2xl);
}

.form-success svg {
    width: 48px;
    height: 48px;
    color: var(--clr-terra-600);
    margin: 0 auto var(--space-md);
}

.form-success h4 {
    font-size: 1.25rem;
    margin-bottom: var(--space-sm);
    color: var(--clr-terra-950);
}

.form-success p {
    font-size: 0.9375rem;
    color: var(--clr-sand-700);
}

/* ---------- FOOTER ---------- */
.site-footer {
    background: var(--clr-sand-950);
    color: var(--clr-sand-400);
    padding: var(--space-4xl) 0 var(--space-xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: var(--space-3xl);
    margin-bottom: var(--space-3xl);
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-brand .logo-mark {
    width: 48px;
    height: 48px;
    font-size: 1rem;
}

.footer-brand .logo-name {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--clr-white);
}

.footer-tagline {
    font-size: 0.875rem;
    color: var(--clr-sand-500);
}

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

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-links a {
    font-size: 0.9375rem;
    color: var(--clr-sand-500);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--clr-terra-300);
}

.footer-contact address {
    font-style: normal;
    font-size: 0.9375rem;
    line-height: 1.65;
    color: var(--clr-sand-400);
    margin-bottom: var(--space-sm);
}

.footer-contact a {
    color: var(--clr-terra-400);
    font-weight: 500;
}

.footer-contact a:hover {
    color: var(--clr-terra-300);
}

.footer-bottom {
    border-top: 1px solid var(--clr-sand-800);
    padding-top: var(--space-xl);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    align-items: center;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8125rem;
    color: var(--clr-sand-600);
}

.footer-disclaimer {
    font-size: 0.75rem !important;
    color: var(--clr-sand-700) !important;
    max-width: 600px;
}

/* ---------- SCROLL TO TOP ---------- */
.scroll-top {
    position: fixed;
    bottom: var(--space-xl);
    right: var(--space-xl);
    width: 44px;
    height: 44px;
    background: var(--clr-terra-600);
    color: var(--clr-white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(160, 82, 45, 0.4);
    transition: all var(--transition-base);
    z-index: 50;
}

.scroll-top:hover {
    background: var(--clr-terra-700);
    transform: translateY(-2px);
}

.scroll-top svg {
    width: 20px;
    height: 20px;
}

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

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

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1023px) {
    .hero-grid,
    .about-grid,
    .experience-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .hero-image-wrap {
        max-width: 480px;
        margin: 0 auto;
        order: -1;
    }

    .hero-image-wrap img {
        height: 360px;
    }

    .about-content-col,
    .experience-content,
    .contact-info {
        padding-right: 0;
    }

    .experience-image-stack img:last-child {
        right: 0;
    }

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

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

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 767px) {
    :root {
        --header-h: 64px;
    }

    .nav-toggle {
        display: block;
    }

    .main-nav {
        position: fixed;
        top: var(--header-h);
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(250, 247, 244, 0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        flex-direction: column;
        justify-content: flex-start;
        padding: var(--space-2xl) var(--space-lg);
        gap: 0;
        transform: translateX(100%);
        transition: transform var(--transition-base);
        overflow-y: auto;
    }

    .main-nav.open {
        transform: translateX(0);
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }

    .main-nav a:not(.btn) {
        display: block;
        padding: var(--space-md) 0;
        font-size: 1.125rem;
        border-bottom: 1px solid var(--clr-sand-200);
    }

    .main-nav a:not(.btn)::after {
        display: none;
    }

    .main-nav .btn {
        margin-top: var(--space-xl);
        align-self: center;
    }

    .hero {
        padding-top: calc(var(--header-h) + var(--space-2xl));
        padding-bottom: var(--space-3xl);
    }

    .hero-headline {
        font-size: clamp(1.75rem, 8vw, 2.5rem);
    }

    .hero-actions {
        flex-direction: column;
    }

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

    .hero-badges {
        flex-direction: column;
        gap: var(--space-sm);
    }

    .hero-image-accent {
        top: -8px;
        right: -8px;
    }

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

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .footer-bottom {
        flex-direction: column;
    }

    .insurance-inner {
        gap: var(--space-xl);
    }

    .insurer-placeholder {
        flex-direction: column;
        text-align: center;
        gap: var(--space-sm);
        padding: var(--space-lg);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-md);
    }

    .service-card {
        padding: var(--space-lg);
    }

    .contact-form-card {
        padding: var(--space-lg);
    }
}
