/* =============================================
   Riley's Real Estate — Custom Styles
   ============================================= */

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

:root {
    --emerald-50:  #ecfdf5;
    --emerald-100: #d1fae5;
    --emerald-200: #a7f3d0;
    --emerald-300: #6ee7b7;
    --emerald-400: #34d399;
    --emerald-500: #10b981;
    --emerald-600: #059669;
    --emerald-700: #047857;
    --emerald-800: #065f46;
    --emerald-900: #064e3b;
    --emerald-950: #022c22;

    --cream-50:   #faf9f6;
    --cream-100:  #f5f0e8;
    --cream-200:  #ece4d4;
    --cream-300:  #e0d4bc;

    --stone-50:   #fafaf9;
    --stone-100:  #f5f5f4;
    --stone-200:  #e7e5e4;
    --stone-300:  #d6d3d1;
    --stone-400:  #a8a29e;
    --stone-500:  #78716c;
    --stone-600:  #57534e;
    --stone-700:  #44403c;
    --stone-800:  #292524;
    --stone-900:  #1c1917;

    --font-serif: 'DM Serif Display', Georgia, serif;
    --font-sans:  'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    --shadow-sm:  0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md:  0 4px 12px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.04);
    --shadow-lg:  0 12px 32px rgba(0,0,0,0.08), 0 4px 8px rgba(0,0,0,0.04);
    --shadow-xl:  0 20px 48px rgba(0,0,0,0.10), 0 8px 16px rgba(0,0,0,0.05);

    --radius-sm:  10px;
    --radius-md:  16px;
    --radius-lg:  24px;
    --radius-xl:  32px;

    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.65;
    color: var(--stone-800);
    background-color: var(--cream-50);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

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

/* Skip link */
.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    background: var(--emerald-700);
    color: #fff;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    z-index: 1000;
    font-weight: 600;
    transition: top var(--transition);
}
.skip-link:focus {
    top: 12px;
}

/* ---------- Section Labels & Titles ---------- */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--emerald-700);
    background: var(--emerald-50);
    border: 1px solid var(--emerald-200);
    padding: 6px 14px;
    border-radius: 100px;
    margin-bottom: 20px;
}
.section-label.light {
    color: var(--emerald-200);
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.2);
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 4vw, 2.75rem);
    line-height: 1.2;
    color: var(--stone-900);
    margin-bottom: 16px;
}
.section-title.light {
    color: #fff;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--stone-600);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

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

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: 100px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}
.btn svg {
    transition: transform var(--transition);
}
.btn:hover svg {
    transform: translate(3px, -2px);
}

.btn-primary {
    background: var(--emerald-700);
    color: #fff;
    border-color: var(--emerald-700);
    box-shadow: 0 4px 14px rgba(4,120,87,0.3);
}
.btn-primary:hover {
    background: var(--emerald-800);
    border-color: var(--emerald-800);
    box-shadow: 0 6px 20px rgba(4,120,87,0.4);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--emerald-700);
    border-color: var(--emerald-300);
}
.btn-secondary:hover {
    background: var(--emerald-50);
    border-color: var(--emerald-500);
    transform: translateY(-2px);
}

.btn-outline-light {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,0.4);
}
.btn-outline-light:hover {
    background: rgba(255,255,255,0.1);
    border-color: #fff;
    transform: translateY(-2px);
}

.btn-lg {
    padding: 17px 34px;
    font-size: 1rem;
}

.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(250, 249, 246, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    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;
}
.logo-text {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    color: var(--stone-900);
    font-weight: 400;
}
.logo-accent {
    font-weight: 700;
    color: var(--emerald-700);
}
.logo-text-light { color: #fff; }
.logo-text-light .logo-accent { color: var(--emerald-300); }

/* Nav */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
}
.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--stone-700);
    padding: 8px 16px;
    border-radius: 100px;
    transition: all var(--transition);
}
.nav-link:hover {
    color: var(--emerald-700);
    background: var(--emerald-50);
}
.nav-cta {
    background: var(--emerald-700);
    color: #fff !important;
    margin-left: 8px;
}
.nav-cta:hover {
    background: var(--emerald-800);
    color: #fff !important;
}

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--stone-800);
}

@media (max-width: 768px) {
    .nav-toggle { display: flex; align-items: center; justify-content: center; }
    
    .nav {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(250,249,246,0.98);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        padding: 16px 24px 24px;
        border-bottom: 1px solid rgba(0,0,0,0.06);
        box-shadow: var(--shadow-lg);
        transform: translateY(-110%);
        opacity: 0;
        transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        pointer-events: none;
    }
    .nav.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }
    .nav-menu {
        flex-direction: column;
        gap: 4px;
        width: 100%;
    }
    .nav-link {
        width: 100%;
        padding: 12px 16px;
        border-radius: var(--radius-sm);
    }
    .nav-cta {
        margin-left: 0;
        text-align: center;
        margin-top: 8px;
    }
}

/* ========== HERO ========== */
.hero {
    position: relative;
    padding-top: 72px;
    background: linear-gradient(135deg, var(--cream-50) 0%, var(--cream-100) 50%, var(--emerald-50) 100%);
    overflow: hidden;
    min-height: 90vh;
    display: flex;
    flex-direction: column;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    padding: 60px 0 80px;
    flex: 1;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.7);
    border: 1px solid var(--emerald-200);
    color: var(--emerald-800);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 100px;
    margin-bottom: 28px;
    backdrop-filter: blur(8px);
}
.hero-badge svg { opacity: 0.7; }

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    line-height: 1.15;
    color: var(--stone-900);
    margin-bottom: 24px;
    letter-spacing: -0.01em;
}
.hero-title em {
    color: var(--emerald-700);
    font-style: normal;
}

.hero-description {
    font-size: 1.08rem;
    line-height: 1.75;
    color: var(--stone-600);
    margin-bottom: 36px;
    max-width: 480px;
}

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

.hero-stats {
    display: flex;
    align-items: center;
    gap: 0;
    background: rgba(255,255,255,0.6);
    border: 1px solid rgba(255,255,255,0.8);
    border-radius: var(--radius-md);
    padding: 20px 28px;
    backdrop-filter: blur(12px);
    max-width: 400px;
}
.stat {
    flex: 1;
    text-align: center;
}
.stat-number {
    display: block;
    font-family: var(--font-serif);
    font-size: 1.3rem;
    color: var(--emerald-700);
    line-height: 1.2;
}
.stat-suffix { font-size: 0.9em; }
.stat-label {
    display: block;
    font-size: 0.78rem;
    color: var(--stone-500);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 500;
}
.stat-divider {
    width: 1px;
    height: 36px;
    background: var(--stone-200);
}

/* Hero images */
.hero-image-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.hero-image-main {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}
.hero-image-main img {
    width: 100%;
    height: 480px;
    object-fit: cover;
}
.hero-image-accent {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    margin-left: 40px;
    max-width: 280px;
}
.hero-image-accent img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.hero-floating-card {
    position: absolute;
    bottom: 52px;
    left: -24px;
    background: #fff;
    border-radius: var(--radius-md);
    padding: 14px 20px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--stone-800);
    z-index: 2;
}
.hero-floating-card svg {
    flex-shrink: 0;
}

.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    line-height: 0;
}
.hero-wave svg {
    width: 100%;
    height: 60px;
}

@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 40px 0 60px;
    }
    .hero-content { max-width: 100%; text-align: center; }
    .hero-description { margin-left: auto; margin-right: auto; }
    .hero-actions { justify-content: center; }
    .hero-stats { margin: 0 auto; }
    .hero-image-wrapper { max-width: 480px; margin: 0 auto; }
    .hero-image-main img { height: 360px; }
}

@media (max-width: 480px) {
    .hero-image-accent { margin-left: 0; max-width: 200px; }
    .hero-floating-card { left: 12px; bottom: 40px; }
    .hero-stats { flex-direction: column; gap: 12px; padding: 16px 20px; }
    .stat-divider { width: 40px; height: 1px; }
}

/* ========== ABOUT ========== */
.about {
    background: var(--cream-100);
    padding: 80px 0;
}

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

.about-image-stack {
    position: relative;
}
.about-img-main {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}
.about-img-main img {
    width: 100%;
    height: 520px;
    object-fit: cover;
}
.about-img-secondary {
    position: absolute;
    bottom: -32px;
    right: -24px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 4px solid var(--cream-100);
}
.about-img-secondary img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.about-experience-badge {
    position: absolute;
    top: -20px;
    right: 24px;
    background: var(--emerald-700);
    color: #fff;
    border-radius: var(--radius-md);
    padding: 16px 20px;
    text-align: center;
    box-shadow: var(--shadow-lg);
}
.about-experience-badge .exp-number {
    display: block;
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.2;
}
.about-experience-badge .exp-label {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.8;
    margin-top: 2px;
}

.about-content { max-width: 520px; }
.about-text {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--stone-600);
    margin-bottom: 20px;
}
.about-values {
    display: grid;
    gap: 14px;
    margin: 28px 0 32px;
}
.about-values li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--stone-700);
    line-height: 1.5;
}
.about-values svg {
    flex-shrink: 0;
    margin-top: 2px;
}

@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .about-image-stack { max-width: 480px; }
    .about-img-main img { height: 400px; }
    .about-content { max-width: 100%; }
}

/* ========== SERVICES ========== */
.services {
    background: var(--cream-50);
    padding: 96px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 56px;
}

.service-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    border: 1px solid var(--stone-200);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--emerald-400);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition);
}
.service-card:hover {
    border-color: var(--emerald-200);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}
.service-card:hover::before {
    transform: scaleX(1);
}

.service-card.featured {
    background: var(--emerald-700);
    border-color: var(--emerald-700);
    color: #fff;
}
.service-card.featured::before { background: var(--emerald-300); }
.service-card.featured:hover {
    border-color: var(--emerald-600);
    box-shadow: 0 16px 40px rgba(4,120,87,0.25);
}

.service-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--emerald-300);
    color: var(--emerald-900);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 4px 12px;
    border-radius: 100px;
}

.service-icon {
    width: 56px;
    height: 56px;
    background: var(--emerald-50);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}
.service-card.featured .service-icon {
    background: rgba(255,255,255,0.15);
}

.service-title {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    color: var(--stone-900);
    margin-bottom: 12px;
}
.service-card.featured .service-title { color: #fff; }

.service-description {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--stone-600);
    margin-bottom: 20px;
}
.service-card.featured .service-description { color: rgba(255,255,255,0.85); }

.service-features {
    display: grid;
    gap: 10px;
}
.service-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.88rem;
    color: var(--stone-600);
    line-height: 1.5;
}
.service-card.featured .service-features li { color: rgba(255,255,255,0.9); }
.service-features li::before {
    content: '';
    flex-shrink: 0;
    width: 6px;
    height: 6px;
    background: var(--emerald-400);
    border-radius: 50%;
    margin-top: 8px;
}
.service-card.featured .service-features li::before { background: var(--emerald-300); }

@media (max-width: 900px) {
    .services-grid { grid-template-columns: 1fr; max-width: 560px; margin-left: auto; margin-right: auto; }
}

/* ========== NEIGHBORHOODS ========== */
.neighborhoods {
    background: var(--cream-100);
    padding: 96px 0;
}

.neighborhoods-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 56px;
}

.neighborhood-card {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--stone-200);
    transition: all var(--transition);
}
.neighborhood-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.neighborhood-img {
    overflow: hidden;
    height: 200px;
}
.neighborhood-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.neighborhood-card:hover .neighborhood-img img {
    transform: scale(1.05);
}

.neighborhood-content {
    padding: 24px 28px 28px;
}
.neighborhood-name {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    color: var(--stone-900);
    margin-bottom: 8px;
}
.neighborhood-desc {
    font-size: 0.92rem;
    line-height: 1.7;
    color: var(--stone-600);
}

@media (max-width: 900px) {
    .neighborhoods-grid { grid-template-columns: 1fr; max-width: 560px; margin-left: auto; margin-right: auto; }
}

/* ========== TESTIMONIALS ========== */
.testimonials {
    background: var(--emerald-900);
    padding: 96px 0;
    position: relative;
    overflow: hidden;
}
.testimonials::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(52,211,153,0.12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.testimonials::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(52,211,153,0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.testimonials .section-label {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
}
.testimonials .section-subtitle {
    color: rgba(255,255,255,0.7);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 56px;
    position: relative;
    z-index: 1;
}

.testimonial-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    backdrop-filter: blur(8px);
    transition: all var(--transition);
}
.testimonial-card:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.18);
    transform: translateY(-4px);
}

.testimonial-quote {
    margin-bottom: 20px;
    opacity: 0.6;
}

.testimonial-text {
    font-size: 0.95rem;
    line-height: 1.75;
    color: rgba(255,255,255,0.88);
    margin-bottom: 24px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}
.author-avatar {
    width: 40px;
    height: 40px;
    background: var(--emerald-700);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.author-name {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: #fff;
}
.author-detail {
    display: block;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.55);
    margin-top: 2px;
}

@media (max-width: 900px) {
    .testimonials-grid { grid-template-columns: 1fr; max-width: 560px; margin-left: auto; margin-right: auto; }
}

/* ========== CTA ========== */
.cta {
    background: linear-gradient(135deg, var(--emerald-700) 0%, var(--emerald-800) 60%, var(--emerald-900) 100%);
    padding: 96px 0;
    position: relative;
    overflow: hidden;
}
.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 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='0.03'%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;
}

.cta-content {
    text-align: center;
    max-width: 680px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}
.cta-description {
    font-size: 1.05rem;
    line-height: 1.75;
    color: rgba(255,255,255,0.8);
    margin-bottom: 36px;
}
.cta-highlight {
    color: var(--emerald-200);
}
.cta-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
}

/* ========== CONTACT ========== */
.contact {
    background: var(--cream-50);
    padding: 96px 0;
}

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

.contact-info { max-width: 480px; }
.contact-text {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--stone-600);
    margin-bottom: 36px;
}

.contact-details {
    display: grid;
    gap: 24px;
    margin-bottom: 32px;
}
.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}
.contact-icon {
    width: 48px;
    height: 48px;
    background: var(--emerald-50);
    border: 1px solid var(--emerald-100);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.contact-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--stone-400);
    margin-bottom: 4px;
}
.contact-item address {
    font-style: normal;
    font-size: 0.95rem;
    color: var(--stone-800);
    line-height: 1.6;
}
.contact-item a {
    color: var(--emerald-700);
    font-weight: 500;
    transition: color var(--transition);
}
.contact-item a:hover { color: var(--emerald-500); }

.contact-map {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--stone-200);
}

/* Contact form */
.contact-form-wrapper {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 40px 36px;
    border: 1px solid var(--stone-200);
    box-shadow: var(--shadow-md);
}
.form-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--stone-900);
    margin-bottom: 6px;
}
.form-subtitle {
    font-size: 0.92rem;
    color: var(--stone-500);
    margin-bottom: 28px;
}

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

.form-group {
    margin-bottom: 18px;
}
.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--stone-700);
    margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--stone-200);
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: var(--stone-800);
    background: var(--cream-50);
    transition: all var(--transition);
    outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--emerald-500);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(16,185,129,0.12);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--stone-400);
}
.form-group textarea {
    resize: vertical;
    min-height: 120px;
}
.form-group select {
    appearance: none;
    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='%2378716c' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

.form-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 32px 24px;
    background: var(--emerald-50);
    border: 1px solid var(--emerald-200);
    border-radius: var(--radius-md);
    text-align: center;
}
.form-success p {
    font-size: 0.95rem;
    color: var(--emerald-800);
    font-weight: 500;
}

@media (max-width: 900px) {
    .contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .contact-info { max-width: 100%; }
    .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .contact-form-wrapper { padding: 28px 20px; }
}

/* ========== FOOTER ========== */
.footer {
    background: var(--stone-900);
    color: rgba(255,255,255,0.7);
    padding: 64px 0 0;
}

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

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

.footer-heading {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.4);
    margin-bottom: 20px;
}

.footer-links ul { display: grid; gap: 12px; }
.footer-links a {
    font-size: 0.92rem;
    color: rgba(255,255,255,0.65);
    transition: color var(--transition);
}
.footer-links a:hover { color: var(--emerald-400); }

.footer-contact address {
    font-style: normal;
    font-size: 0.92rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.65);
    margin-bottom: 12px;
}
.footer-contact a {
    color: var(--emerald-400);
    font-size: 0.92rem;
    transition: color var(--transition);
}
.footer-contact a:hover { color: var(--emerald-300); }

.footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 24px 0;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.35);
}
.footer-disclaimer { color: rgba(255,255,255,0.25); }

@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ========== Scroll Reveal (progressive enhancement) ========== */
@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);
    }
}

/* Default: always visible (no-JS fallback) */
.reveal {
    opacity: 1;
    transform: none;
    transition: none;
}

@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);
    }
}
