/* ========================================
   Cancer Center of Southern Alabama
   Clean Minimalist — Terracotta & Sand
   ======================================== */

/* --- Custom Properties --- */
:root {
    --terracotta: #C07050;
    --terracotta-dark: #A85A3E;
    --terracotta-light: #D4917A;
    --terracotta-50: #FDF3EF;
    --terracotta-100: #FBE8DF;
    --sand: #F5F0EB;
    --sand-dark: #E8E0D8;
    --sand-50: #FCFAF8;
    --charcoal: #2A2522;
    --charcoal-light: #4A4440;
    --charcoal-muted: #6B6460;
    --warm-gray: #8A827C;
    --warm-gray-light: #B0A8A0;
    --white: #FFFFFF;
    --off-white: #FAF8F6;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-serif: 'Playfair Display', Georgia, serif;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 3px rgba(42,37,34,0.06), 0 1px 2px rgba(42,37,34,0.04);
    --shadow-md: 0 4px 16px rgba(42,37,34,0.08), 0 2px 4px rgba(42,37,34,0.04);
    --shadow-lg: 0 12px 40px rgba(42,37,34,0.12), 0 4px 12px rgba(42,37,34,0.06);
    --shadow-xl: 0 24px 60px rgba(42,37,34,0.14), 0 8px 20px rgba(42,37,34,0.08);
}

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

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

body {
    font-family: var(--font-sans);
    font-weight: 300;
    line-height: 1.7;
    color: var(--charcoal);
    background-color: var(--sand-50);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s var(--ease-smooth);
}

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

ul, ol {
    list-style: none;
}

/* --- Skip Link --- */
.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    padding: 0.75rem 1.25rem;
    background: var(--terracotta);
    color: var(--white);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
    z-index: 9999;
    transition: top 0.2s;
}
.skip-link:focus {
    top: 1rem;
}

/* --- Layout --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 7rem 0;
}

/* --- Typography --- */
.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--terracotta);
    margin-bottom: 1rem;
}

.section-heading {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 400;
    line-height: 1.15;
    color: var(--charcoal);
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
}

.section-desc {
    font-size: 1.125rem;
    color: var(--charcoal-muted);
    max-width: 560px;
    line-height: 1.7;
}

.text-terracotta {
    color: var(--terracotta);
}

.accent-italic {
    font-style: italic;
    font-weight: 400;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    transition: all 0.25s var(--ease-smooth);
    white-space: nowrap;
}

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

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

.btn-full {
    width: 100%;
}

.btn-terracotta {
    background: var(--terracotta);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(192,112,80,0.3);
}
.btn-terracotta:hover {
    background: var(--terracotta-dark);
    box-shadow: 0 6px 20px rgba(192,112,80,0.4);
    transform: translateY(-1px);
}

.btn-outline-light {
    background: transparent;
    color: var(--white);
    border: 1.5px solid rgba(255,255,255,0.5);
}
.btn-outline-light:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--white);
}

/* --- Header --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(250,248,246,0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.site-header.scrolled {
    border-bottom-color: var(--sand-dark);
    box-shadow: var(--shadow-sm);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    color: var(--charcoal);
    font-weight: 400;
}
.logo:hover {
    color: var(--terracotta);
}

.logo-mark {
    color: var(--terracotta);
    flex-shrink: 0;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}
.logo-primary {
    font-size: 0.9375rem;
    font-weight: 500;
    letter-spacing: -0.01em;
}
.logo-secondary {
    font-size: 0.6875rem;
    color: var(--warm-gray);
    letter-spacing: 0.02em;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}
.nav-list a {
    padding: 0.5rem 0.875rem;
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--charcoal-light);
    border-radius: var(--radius-sm);
    transition: color 0.2s, background 0.2s;
}
.nav-list a:hover {
    color: var(--terracotta);
    background: var(--terracotta-50);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    padding: 6px;
    border-radius: var(--radius-sm);
    transition: background 0.2s;
}
.nav-toggle:hover {
    background: var(--sand);
}
.hamburger {
    display: block;
    width: 100%;
    height: 1.5px;
    background: var(--charcoal);
    border-radius: 2px;
    transition: transform 0.3s var(--ease-out), opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] .hamburger:nth-child(1) {
    transform: translateY(4px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .hamburger:nth-child(2) {
    opacity: 0;
}
.nav-toggle[aria-expanded="true"] .hamburger:nth-child(3) {
    transform: translateY(-4px) rotate(-45deg);
}

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--charcoal);
    overflow: hidden;
    padding: 7rem 0 5rem;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hero-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.35;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(42,37,34,0.92) 0%,
        rgba(42,37,34,0.78) 50%,
        rgba(42,37,34,0.65) 100%
    );
}
.hero-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.03) 1px, transparent 0);
    background-size: 32px 32px;
}

.hero-layout {
    position: relative;
    z-index: 1;
}

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

.hero-greeting {
    margin-bottom: 3rem;
}

.greeting-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--terracotta-light);
    background: rgba(192,112,80,0.15);
    padding: 0.5rem 1rem;
    border-radius: 100px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(192,112,80,0.25);
}

.hero-headline {
    font-family: var(--font-serif);
    font-size: clamp(2.75rem, 6vw, 4.5rem);
    font-weight: 400;
    line-height: 1.08;
    color: var(--white);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}
.hero-headline .accent-italic {
    color: var(--terracotta-light);
}

.hero-sub {
    font-size: 1.125rem;
    line-height: 1.75;
    color: rgba(255,255,255,0.75);
    max-width: 520px;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2.25rem;
}

.hero-stats {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.stat-card {
    background: rgba(255,255,255,0.07);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1.75rem;
    min-width: 160px;
    flex: 1;
    transition: background 0.3s, transform 0.3s var(--ease-out);
}
.stat-card:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

.stat-number {
    display: block;
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 400;
    color: var(--terracotta-light);
    line-height: 1;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

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

.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255,255,255,0.4);
    font-size: 0.6875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    z-index: 1;
}
.hero-scroll-indicator svg {
    animation: scrollBounce 2s ease-in-out infinite;
}
@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(4px); }
}

/* --- About --- */
.about {
    background: var(--sand-50);
}

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

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

.about-image-wrapper img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.about-image-accent {
    position: absolute;
    bottom: -1.5rem;
    right: -1.5rem;
    width: 120px;
    height: 120px;
    background: var(--terracotta);
    border-radius: var(--radius-lg);
    opacity: 0.15;
    z-index: -1;
}

.about-content .section-heading {
    margin-bottom: 1.5rem;
}

.about-content p {
    color: var(--charcoal-muted);
    margin-bottom: 1.25rem;
    font-size: 1.0625rem;
}

.about-values {
    margin-top: 2rem;
    display: grid;
    gap: 1rem;
}

.value-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.9375rem;
    color: var(--charcoal-light);
}

.value-icon {
    color: var(--terracotta);
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

/* --- Services --- */
.services {
    background: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}
.section-header .section-desc {
    margin: 0 auto;
}

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

.service-card {
    background: var(--sand-50);
    border: 1px solid var(--sand-dark);
    border-radius: var(--radius-lg);
    padding: 2.25rem;
    transition: all 0.3s var(--ease-smooth);
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--terracotta);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s var(--ease-out);
}
.service-card:hover {
    border-color: var(--terracotta-light);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}
.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    color: var(--terracotta);
    margin-bottom: 1.25rem;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--terracotta-50);
    border-radius: var(--radius-md);
}

.service-card h3 {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--charcoal);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.service-card p {
    font-size: 0.9375rem;
    color: var(--charcoal-muted);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.service-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--terracotta);
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    transition: gap 0.2s var(--ease-smooth);
}
.service-link:hover {
    gap: 0.625rem;
}

/* --- Approach --- */
.approach {
    background: var(--sand);
}

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

.approach-content .section-heading {
    margin-bottom: 1.25rem;
}

.approach-intro {
    font-size: 1.0625rem;
    color: var(--charcoal-muted);
    margin-bottom: 2.5rem;
    line-height: 1.75;
}

.approach-steps {
    display: grid;
    gap: 2rem;
}

.approach-step {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.step-number {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--terracotta);
    opacity: 0.5;
    line-height: 1;
    flex-shrink: 0;
    width: 2rem;
}

.step-content h4 {
    font-family: var(--font-serif);
    font-size: 1.125rem;
    font-weight: 400;
    color: var(--charcoal);
    margin-bottom: 0.375rem;
}

.step-content p {
    font-size: 0.9375rem;
    color: var(--charcoal-muted);
    line-height: 1.65;
}

.approach-image img {
    width: 100%;
    height: 550px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

/* --- Team --- */
.team {
    background: var(--white);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.team-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--sand-50);
    border: 1px solid var(--sand-dark);
    transition: all 0.3s var(--ease-smooth);
}
.team-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.team-photo-wrapper {
    overflow: hidden;
}
.team-photo-wrapper img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    transition: transform 0.5s var(--ease-out);
}
.team-card:hover .team-photo-wrapper img {
    transform: scale(1.03);
}

.team-info {
    padding: 1.75rem;
}

.team-info h4 {
    font-family: var(--font-serif);
    font-size: 1.1875rem;
    font-weight: 400;
    color: var(--charcoal);
    margin-bottom: 0.25rem;
}

.team-role {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--terracotta);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.75rem;
}

.team-bio {
    font-size: 0.9375rem;
    color: var(--charcoal-muted);
    line-height: 1.65;
}

.team-cta {
    text-align: center;
    padding: 2.5rem;
    background: var(--sand);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.team-cta p {
    font-size: 1.0625rem;
    color: var(--charcoal-light);
}

/* --- Testimonials --- */
.testimonials {
    background: var(--charcoal);
    color: var(--white);
}

.testimonials .section-label {
    color: var(--terracotta-light);
}

.testimonials .section-heading {
    color: var(--white);
}

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

.testimonial-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-lg);
    padding: 2.25rem;
    transition: background 0.3s, transform 0.3s var(--ease-out);
}
.testimonial-card:hover {
    background: rgba(255,255,255,0.08);
    transform: translateY(-2px);
}

.testimonial-quote {
    font-family: var(--font-serif);
    font-size: 4rem;
    line-height: 1;
    color: var(--terracotta);
    opacity: 0.5;
    margin-bottom: -0.5rem;
}

.testimonial-text {
    font-size: 1rem;
    line-height: 1.75;
    color: rgba(255,255,255,0.8);
    font-weight: 300;
    margin-bottom: 1.5rem;
}

.testimonial-meta {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.testimonial-author {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--white);
}

.testimonial-detail {
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.45);
}

/* --- Contact --- */
.contact {
    background: var(--sand-50);
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info .section-heading {
    margin-bottom: 1.25rem;
}

.contact-info > p {
    font-size: 1.0625rem;
    color: var(--charcoal-muted);
    margin-bottom: 2.5rem;
    line-height: 1.75;
}

.contact-details {
    display: grid;
    gap: 1.5rem;
}

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

.contact-detail-icon {
    color: var(--terracotta);
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 2px;
}

.contact-detail-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--warm-gray);
    margin-bottom: 0.25rem;
}

.contact-detail-value {
    font-size: 0.9375rem;
    color: var(--charcoal);
    line-height: 1.5;
}
.contact-detail-value a {
    color: var(--charcoal);
    border-bottom: 1px solid var(--sand-dark);
    transition: border-color 0.2s, color 0.2s;
}
.contact-detail-value a:hover {
    color: var(--terracotta);
    border-color: var(--terracotta);
}

.contact-form-wrapper {
    background: var(--white);
    border: 1px solid var(--sand-dark);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
}

.form-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--charcoal);
    margin-bottom: 0.375rem;
}

.form-note {
    font-size: 0.875rem;
    color: var(--warm-gray);
    margin-bottom: 2rem;
}

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

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

.form-group label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--charcoal-light);
    margin-bottom: 0.5rem;
    letter-spacing: 0.02em;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--sand-dark);
    border-radius: var(--radius-md);
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    color: var(--charcoal);
    background: var(--sand-50);
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--warm-gray-light);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--terracotta);
    box-shadow: 0 0 0 3px rgba(192,112,80,0.1);
    background: var(--white);
}

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

.form-privacy {
    font-size: 0.75rem;
    color: var(--warm-gray);
    text-align: center;
    margin-top: 1rem;
}

.form-success {
    text-align: center;
    padding: 2rem;
}
.form-success h4 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--charcoal);
    margin: 1rem 0 0.5rem;
}
.form-success p {
    color: var(--charcoal-muted);
    font-size: 0.9375rem;
}

/* --- Footer --- */
.site-footer {
    background: var(--charcoal);
    color: rgba(255,255,255,0.65);
    padding: 4rem 0 0;
}

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

.logo-light {
    color: var(--white);
}
.logo-light .logo-secondary {
    color: rgba(255,255,255,0.45);
}

.footer-tagline {
    margin-top: 1rem;
    font-size: 0.9375rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.5);
    max-width: 280px;
}

.footer-links h4,
.footer-contact h4 {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 400;
    color: var(--white);
    margin-bottom: 1.25rem;
}

.footer-links ul {
    display: grid;
    gap: 0.625rem;
}
.footer-links a {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.5);
    transition: color 0.2s, padding-left 0.2s;
}
.footer-links a:hover {
    color: var(--terracotta-light);
    padding-left: 0.25rem;
}

.footer-contact address {
    font-style: normal;
    font-size: 0.9375rem;
    line-height: 1.75;
}
.footer-contact a {
    color: rgba(255,255,255,0.5);
    border-bottom: 1px solid rgba(255,255,255,0.15);
    transition: color 0.2s, border-color 0.2s;
}
.footer-contact a:hover {
    color: var(--terracotta-light);
    border-color: var(--terracotta-light);
}

.footer-bottom {
    padding: 1.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.footer-bottom p {
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.35);
}
.footer-legal {
    max-width: 480px;
    text-align: right;
}

/* --- Scroll Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.visible {
    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; }

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

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

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

@media (max-width: 768px) {
    .section {
        padding: 5rem 0;
    }

    .nav-toggle {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(250,248,246,0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-bottom: 1px solid var(--sand-dark);
        padding: 1rem 1.5rem 1.5rem;
        transform: translateY(-105%);
        opacity: 0;
        transition: transform 0.35s var(--ease-out), opacity 0.25s;
        z-index: 999;
    }
    .main-nav.open {
        transform: translateY(0);
        opacity: 1;
    }

    .nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: 0.25rem;
    }
    .nav-list a {
        padding: 0.75rem 1rem;
    }
    .nav-list li:last-child {
        margin-top: 0.5rem;
    }

    .hero {
        padding: 6rem 0 4rem;
        min-height: auto;
    }
    .hero-headline {
        font-size: clamp(2rem, 8vw, 3rem);
    }
    .hero-stats {
        margin-top: 2rem;
    }
    .stat-card {
        min-width: unset;
    }
    .hero-scroll-indicator {
        display: none;
    }

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

    .about-image-wrapper img,
    .approach-image img {
        height: 350px;
    }

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

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

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

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    .footer-legal {
        text-align: center;
        max-width: 100%;
    }

    .team-cta {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1.25rem;
    }

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

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

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

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    html {
        scroll-behavior: auto;
    }
    .reveal {
        opacity: 1;
        transform: none;
    }
    .hero-scroll-indicator svg {
        animation: none;
    }
}
