/* ============================================
   Jodi Barcey — Real Estate Website
   Classic & Elegant | Teal + Slate Grey
   ============================================ */

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

:root {
    --teal-50: #f0fdfa;
    --teal-100: #ccfbf1;
    --teal-200: #99f6e4;
    --teal-300: #5eead4;
    --teal-400: #2dd4bf;
    --teal-500: #14b8a6;
    --teal-600: #0d9488;
    --teal-700: #0f766e;
    --teal-800: #115e59;
    --teal-900: #134e4a;
    
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
    
    --cream: #faf9f7;
    --warm-white: #fefdfb;
    
    --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.07), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
    
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
}

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

body {
    font-family: var(--font-sans);
    color: var(--slate-800);
    background-color: var(--warm-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

a:hover {
    color: var(--teal-600);
}

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

/* ---------- Typography ---------- */
h1, h2, h3 {
    font-family: var(--font-serif);
    font-weight: 500;
    line-height: 1.2;
    color: var(--slate-900);
}

/* ---------- Section Eyebrow ---------- */
.section__eyebrow {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--teal-600);
    margin-bottom: 12px;
}

/* ---------- Section Title ---------- */
.section__title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    margin-bottom: 16px;
}

/* ---------- Section Subtitle ---------- */
.section__subtitle {
    font-size: 1.0625rem;
    color: var(--slate-500);
    max-width: 600px;
    line-height: 1.7;
}

/* ---------- Section Header ---------- */
.section__header {
    text-align: center;
    margin-bottom: 56px;
}

.section__header .section__subtitle {
    margin: 0 auto;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 500;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    white-space: nowrap;
}

.btn--primary {
    background-color: var(--teal-600);
    color: #ffffff;
    border-color: var(--teal-600);
}

.btn--primary:hover {
    background-color: var(--teal-700);
    border-color: var(--teal-700);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn--outline {
    background-color: transparent;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.6);
}

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

.btn--outline-light {
    background-color: transparent;
    color: var(--teal-600);
    border-color: var(--teal-200);
}

.btn--outline-light:hover {
    background-color: var(--teal-50);
    border-color: var(--teal-400);
    color: var(--teal-700);
}

.btn--large {
    padding: 16px 32px;
    font-size: 1rem;
}

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

/* ---------- Sections ---------- */
.section {
    padding: 96px 0;
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid var(--slate-200);
    transition: box-shadow 0.3s ease;
}

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

.nav__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--slate-900);
}

.nav__logo:hover {
    color: var(--teal-700);
}

.nav__logo-icon {
    color: var(--teal-600);
}

.nav__logo-text {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.nav__menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav__link {
    font-size: 0.9375rem;
    font-weight: 400;
    color: var(--slate-600);
    text-decoration: none;
    transition: color 0.2s ease;
    position: relative;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background-color: var(--teal-600);
    transition: width 0.25s ease;
}

.nav__link:hover {
    color: var(--teal-700);
}

.nav__link:hover::after {
    width: 100%;
}

.nav__link--cta {
    background-color: var(--teal-600);
    color: #ffffff;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-weight: 500;
}

.nav__link--cta::after {
    display: none;
}

.nav__link--cta:hover {
    background-color: var(--teal-700);
    color: #ffffff;
}

.nav__toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--slate-700);
}

/* ============================================
   HERO
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

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

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(15, 23, 42, 0.55) 0%,
        rgba(15, 23, 42, 0.65) 50%,
        rgba(15, 23, 42, 0.75) 100%
    );
}

.hero__content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 780px;
    padding: 0 24px;
    padding-top: 72px;
}

.hero__eyebrow {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--teal-200);
    margin-bottom: 20px;
}

.hero__headline {
    font-size: clamp(2.25rem, 5.5vw, 4rem);
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 24px;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.hero__subhead {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero__actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero__scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    color: rgba(255, 255, 255, 0.6);
    animation: float 2s ease-in-out infinite;
}

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

/* ============================================
   SERVICES
   ============================================ */
.services {
    background-color: var(--cream);
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    background-color: #ffffff;
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    border: 1px solid var(--slate-200);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--teal-200);
}

.service-card__icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--teal-50);
    border-radius: var(--radius-md);
    color: var(--teal-700);
    margin-bottom: 24px;
}

.service-card__title {
    font-size: 1.375rem;
    margin-bottom: 12px;
}

.service-card__desc {
    font-size: 0.9375rem;
    color: var(--slate-500);
    line-height: 1.7;
    margin-bottom: 20px;
}

.service-card__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.service-card__list li {
    position: relative;
    padding-left: 20px;
    font-size: 0.875rem;
    color: var(--slate-600);
}

.service-card__list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    background-color: var(--teal-400);
    border-radius: 50%;
}

/* ============================================
   ABOUT
   ============================================ */
.about {
    background-color: #ffffff;
}

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

.about__image-wrap {
    position: relative;
}

.about__image-wrap img {
    border-radius: var(--radius-xl);
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.about__image-accent {
    position: absolute;
    bottom: -16px;
    right: -16px;
    width: 120px;
    height: 120px;
    background-color: var(--teal-100);
    border-radius: var(--radius-lg);
    z-index: -1;
}

.about__content {
    max-width: 520px;
}

.about__body {
    font-size: 1rem;
    color: var(--slate-600);
    line-height: 1.8;
    margin-bottom: 16px;
}

.about__stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--slate-200);
}

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

.stat__number {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--teal-700);
}

.stat__label {
    font-size: 0.8125rem;
    color: var(--slate-500);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ============================================
   NEIGHBORHOODS
   ============================================ */
.neighborhoods {
    background-color: var(--cream);
}

.neighborhoods__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.neighborhood-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--slate-200);
    transition: all 0.3s ease;
}

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

.neighborhood-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.neighborhood-card:hover img {
    transform: scale(1.03);
}

.neighborhood-card__info {
    padding: 24px;
    background-color: #ffffff;
}

.neighborhood-card__name {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.neighborhood-card__desc {
    font-size: 0.875rem;
    color: var(--slate-500);
    line-height: 1.7;
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials {
    background-color: var(--slate-900);
}

.testimonials .section__eyebrow {
    color: var(--teal-300);
}

.testimonials .section__title {
    color: #ffffff;
}

.testimonials__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.testimonial-card {
    background-color: var(--slate-800);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    border: 1px solid var(--slate-700);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    border-color: var(--teal-700);
    transform: translateY(-2px);
}

.testimonial-card__stars {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
}

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

.testimonial-card__author {
    font-size: 0.875rem;
    color: var(--teal-300);
    font-weight: 500;
}

/* ============================================
   CTA
   ============================================ */
.cta {
    background: linear-gradient(135deg, var(--teal-700) 0%, var(--teal-900) 100%);
    padding: 80px 0;
}

.cta__inner {
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}

.cta__eyebrow {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--teal-200);
    margin-bottom: 16px;
}

.cta__title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    color: #ffffff;
    margin-bottom: 16px;
}

.cta__body {
    font-size: 1.0625rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    margin-bottom: 40px;
}

.cta__actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn--outline-light {
    border-color: rgba(255, 255, 255, 0.4);
    color: #ffffff;
}

.btn--outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.7);
    color: #ffffff;
}

/* ============================================
   CONTACT
   ============================================ */
.contact {
    background-color: #ffffff;
}

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

.contact__info {
    max-width: 460px;
}

.contact__body {
    font-size: 1rem;
    color: var(--slate-500);
    line-height: 1.7;
    margin-bottom: 36px;
}

.contact__details {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact__item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.contact__item-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--teal-50);
    border-radius: var(--radius-md);
    color: var(--teal-700);
    flex-shrink: 0;
}

.contact__item-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--slate-400);
    margin-bottom: 4px;
}

.contact__item-value {
    font-size: 0.9375rem;
    color: var(--slate-700);
    line-height: 1.6;
}

.contact__link {
    color: var(--teal-700);
    font-weight: 500;
}

.contact__link:hover {
    color: var(--teal-600);
}

/* ---------- Contact Form ---------- */
.contact__form-wrap {
    background-color: var(--slate-50);
    border-radius: var(--radius-xl);
    padding: 40px;
    border: 1px solid var(--slate-200);
}

.contact__form-title {
    font-size: 1.5rem;
    margin-bottom: 28px;
}

.form__group {
    margin-bottom: 20px;
}

.form__label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--slate-700);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.form__input {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    color: var(--slate-800);
    background-color: #ffffff;
    border: 1.5px solid var(--slate-300);
    border-radius: var(--radius-md);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
}

.form__input::placeholder {
    color: var(--slate-400);
}

.form__input:focus {
    border-color: var(--teal-500);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}

.form__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='%2394a3b8' 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 16px center;
    padding-right: 40px;
}

.form__textarea {
    resize: vertical;
    min-height: 120px;
}

.form__note {
    font-size: 0.8125rem;
    color: var(--slate-400);
    margin-top: 12px;
    text-align: center;
}

/* ---------- Form Success ---------- */
.form__success {
    text-align: center;
    padding: 40px 20px;
    display: none;
}

.form__success-icon {
    margin-bottom: 20px;
}

.form__success-title {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: var(--slate-900);
}

.form__success-text {
    font-size: 0.9375rem;
    color: var(--slate-500);
    line-height: 1.7;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background-color: var(--slate-900);
    padding: 64px 0 32px;
}

.footer__top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 48px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--slate-800);
}

.footer__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.footer__logo:hover {
    color: var(--teal-300);
}

.footer__tagline {
    font-size: 0.875rem;
    color: var(--slate-400);
    max-width: 280px;
    line-height: 1.6;
}

.footer__links {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
}

.footer__links a {
    font-size: 0.875rem;
    color: var(--slate-400);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer__links a:hover {
    color: var(--teal-300);
}

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding-top: 32px;
    flex-wrap: wrap;
}

.footer__bottom p {
    font-size: 0.8125rem;
    color: var(--slate-500);
}

.footer__bottom a {
    color: var(--slate-400);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer__bottom a:hover {
    color: var(--teal-300);
}

/* ============================================
   MOBILE MENU
   ============================================ */
.nav__menu {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background-color: #ffffff;
    flex-direction: column;
    padding: 24px;
    gap: 0;
    border-bottom: 1px solid var(--slate-200);
    box-shadow: var(--shadow-lg);
    transform: translateY(-120%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: 999;
}

.nav__menu.active {
    transform: translateY(0);
    opacity: 1;
}

.nav__menu .nav__link {
    padding: 14px 0;
    border-bottom: 1px solid var(--slate-100);
    width: 100%;
}

.nav__menu .nav__link:last-child {
    border-bottom: none;
}

.nav__menu .nav__link--cta {
    margin-top: 12px;
    text-align: center;
    border-bottom: none;
}

.nav__toggle {
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav__toggle.active .nav__toggle-icon line:nth-child(1) {
    transform: rotate(45deg);
    transform-origin: center;
}

.nav__toggle.active .nav__toggle-icon line:nth-child(2) {
    opacity: 0;
}

.nav__toggle.active .nav__toggle-icon line:nth-child(3) {
    transform: rotate(-45deg);
    transform-origin: center;
}

/* ============================================
   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__menu {
        display: flex;
    }
    
    .nav__toggle {
        display: flex;
    }
    
    .hero__headline {
        font-size: clamp(1.75rem, 7vw, 2.75rem);
    }
    
    .hero__actions {
        flex-direction: column;
        align-items: center;
    }
    
    .hero__actions .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .services__grid {
        grid-template-columns: 1fr;
    }
    
    .about__layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about__image-wrap {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .neighborhoods__grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials__grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials__grid .testimonial-card:last-child {
        grid-column: span 1;
        max-width: 100%;
    }
    
    .cta__actions {
        flex-direction: column;
        align-items: center;
    }
    
    .cta__actions .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .contact__layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact__form-wrap {
        padding: 28px;
    }
    
    .footer__top {
        flex-direction: column;
        gap: 32px;
    }
    
    .footer__links {
        flex-direction: column;
        gap: 16px;
    }
    
    .footer__bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .section {
        padding: 64px 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .hero__content {
        padding-top: 64px;
    }
    
    .about__stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .service-card {
        padding: 28px 24px;
    }
}

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

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