/* ============================================
   THERESA WILBUR - REALTY OF MAINE
   Custom Stylesheet
   ============================================ */

/* --- CSS Custom Properties --- */
: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;

    --cream-50: #fefdf8;
    --cream-100: #fdf9f0;
    --cream-200: #faf3e0;
    --cream-300: #f5e9c8;
    --cream-400: #eddbaa;
    --cream-500: #e0c47a;

    --sage-50: #f6f7f4;
    --sage-100: #eef0ea;
    --sage-200: #dfe3d6;
    --sage-300: #c5ccbe;
    --sage-400: #a3ad9a;
    --sage-500: #7a8574;
    --sage-600: #5c6558;

    --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-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -1px rgba(0,0,0,0.05);
    --shadow-lg: 0 10px 25px -3px rgba(0,0,0,0.08), 0 4px 10px -2px rgba(0,0,0,0.05);
    --shadow-xl: 0 20px 40px -5px rgba(0,0,0,0.1), 0 8px 16px -4px rgba(0,0,0,0.06);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

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

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

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

body {
    font-family: var(--font-body);
    color: var(--stone-700);
    background-color: var(--cream-50);
    line-height: 1.7;
    -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;
}

ul {
    list-style: none;
}

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

/* --- Typography --- */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--stone-800);
    line-height: 1.25;
    font-weight: 700;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    white-space: nowrap;
}

.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);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(4, 120, 87, 0.4);
}

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

.btn--ghost:hover {
    background: var(--emerald-50);
    border-color: var(--emerald-400);
    transform: translateY(-2px);
}

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

.btn--outline:hover {
    background: var(--emerald-50);
    border-color: var(--emerald-600);
    transform: translateY(-2px);
}

.btn--white {
    background: #fff;
    color: var(--emerald-700);
    border-color: #fff;
    box-shadow: var(--shadow-lg);
}

.btn--white:hover {
    background: var(--cream-50);
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.btn--ghost-light {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,0.4);
}

.btn--ghost-light:hover {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.7);
}

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

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

/* --- Section Labels & Headings --- */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--emerald-600);
    margin-bottom: 0.75rem;
}

.section-label::before {
    content: '';
    width: 24px;
    height: 2px;
    background: var(--emerald-400);
    border-radius: 2px;
}

.section-heading {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    margin-bottom: 1rem;
    color: var(--stone-800);
}

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

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

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(254, 253, 248, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(4, 120, 87, 0.08);
    transition: var(--transition);
}

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

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--emerald-700);
}

.nav-logo-icon {
    color: var(--emerald-600);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-link {
    padding: 0.5rem 1rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--stone-600);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--emerald-700);
    background: var(--emerald-50);
}

.nav-link--cta {
    background: var(--emerald-700);
    color: #fff !important;
    border-radius: 50px;
    margin-left: 0.5rem;
}

.nav-link--cta:hover {
    background: var(--emerald-800);
}

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

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--stone-700);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    background: rgba(254, 253, 248, 0.98);
    backdrop-filter: blur(16px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.mobile-menu-link {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--stone-700);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.mobile-menu-link:hover {
    color: var(--emerald-700);
    background: var(--emerald-50);
}

.mobile-menu-link--cta {
    background: var(--emerald-700);
    color: #fff !important;
    border-radius: 50px;
    margin-top: 0.5rem;
}

.mobile-menu-divider {
    width: 48px;
    height: 1px;
    background: var(--stone-200);
    margin: 0.5rem 0;
}

.mobile-menu-phone {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    color: var(--emerald-600);
    font-weight: 500;
    padding: 0.75rem 1.5rem;
}

/* --- Hero --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 6rem 0 4rem;
    background: linear-gradient(135deg, var(--cream-50) 0%, var(--emerald-50) 50%, var(--cream-100) 100%);
    position: relative;
    overflow: hidden;
}

.hero-bg-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(4, 120, 87, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(16, 185, 129, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(253, 249, 240, 0.8) 0%, transparent 70%);
    pointer-events: none;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(4, 120, 87, 0.08);
    color: var(--emerald-700);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(4, 120, 87, 0.15);
}

.hero-badge svg {
    color: var(--emerald-500);
}

.hero-headline {
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    line-height: 1.15;
    color: var(--stone-800);
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}

.hero-headline em {
    font-style: italic;
    color: var(--emerald-700);
}

.hero-subheadline {
    font-size: 1.0625rem;
    color: var(--stone-500);
    line-height: 1.8;
    margin-bottom: 2rem;
    max-width: 520px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.hero-trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--stone-600);
    font-weight: 500;
}

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

/* Hero Image */
.hero-image {
    position: relative;
    display: flex;
    justify-content: flex-end;
}

.hero-image-main {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    position: relative;
    z-index: 2;
    max-width: 520px;
    width: 100%;
}

.hero-image-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 600/720;
}

.hero-image-accent {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 120px;
    height: 120px;
    background: var(--emerald-200);
    border-radius: 50%;
    opacity: 0.4;
    z-index: 0;
}

.hero-image-float {
    position: absolute;
    bottom: 2rem;
    left: -2rem;
    z-index: 3;
}

.float-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #fff;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.float-card-icon {
    width: 48px;
    height: 48px;
    background: var(--emerald-100);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--emerald-700);
    flex-shrink: 0;
}

.float-card-number {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--stone-800);
    line-height: 1;
}

.float-card-label {
    font-size: 0.8125rem;
    color: var(--stone-500);
}

/* --- Stats --- */
.stats {
    background: #fff;
    padding: 3rem 0;
    border-top: 1px solid var(--stone-100);
    border-bottom: 1px solid var(--stone-100);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-item {
    padding: 0.5rem;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    color: var(--emerald-700);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--stone-500);
    font-weight: 500;
}

/* --- About --- */
.about {
    padding: 6rem 0;
    background: var(--cream-50);
}

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

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

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

.about-image-badge {
    position: absolute;
    bottom: -1rem;
    left: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--emerald-700);
    color: #fff;
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: var(--shadow-lg);
}

.about-image-badge svg {
    color: var(--emerald-200);
}

.about-content .section-label {
    margin-bottom: 0.75rem;
}

.about-text {
    font-size: 1rem;
    color: var(--stone-600);
    line-height: 1.85;
    margin-bottom: 1rem;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 2rem;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9375rem;
    color: var(--stone-700);
    font-weight: 500;
}

.about-feature-icon {
    width: 28px;
    height: 28px;
    background: var(--emerald-100);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--emerald-600);
    flex-shrink: 0;
}

/* --- Services --- */
.services {
    padding: 6rem 0;
    background: linear-gradient(180deg, #fff 0%, var(--emerald-50) 100%);
}

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

.service-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 2rem;
    border: 1px solid var(--stone-100);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

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

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

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

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

.service-card:hover .service-card-icon {
    background: var(--emerald-100);
    transform: scale(1.05);
}

.service-card-title {
    font-size: 1.1875rem;
    margin-bottom: 0.75rem;
    color: var(--stone-800);
}

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

/* --- Listings --- */
.listings {
    padding: 6rem 0;
    background: var(--cream-50);
}

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

.listing-card {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--stone-100);
    transition: var(--transition);
}

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

.listing-card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 480/320;
}

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

.listing-card:hover .listing-card-image img {
    transform: scale(1.05);
}

.listing-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--emerald-700);
    color: #fff;
    padding: 0.375rem 0.875rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.listing-card-body {
    padding: 1.5rem;
}

.listing-card-price {
    font-family: var(--font-heading);
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--emerald-700);
    margin-bottom: 0.5rem;
}

.listing-card-title {
    font-size: 1.0625rem;
    margin-bottom: 0.375rem;
    color: var(--stone-800);
}

.listing-card-location {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    color: var(--stone-500);
    margin-bottom: 1rem;
}

.listing-card-features {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.listing-card-features span {
    font-size: 0.8125rem;
    color: var(--stone-500);
    background: var(--stone-50);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    border: 1px solid var(--stone-200);
}

/* --- Testimonials --- */
.testimonials {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--emerald-700) 0%, var(--emerald-800) 100%);
    position: relative;
    overflow: hidden;
}

.testimonials::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(255,255,255,0.03) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(255,255,255,0.03) 0%, transparent 50%);
    pointer-events: none;
}

.testimonials .section-label {
    color: var(--emerald-200);
}

.testimonials .section-label::before {
    background: var(--emerald-400);
}

.testimonials .section-heading {
    color: #fff;
}

.testimonials .section-subtitle {
    color: var(--emerald-100);
}

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

.testimonial-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
    padding: 2rem;
    backdrop-filter: blur(8px);
    transition: var(--transition);
}

.testimonial-card:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-4px);
}

.testimonial-card-stars {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1.25rem;
}

.testimonial-card-text {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-style: italic;
}

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

.testimonial-card-avatar {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--emerald-400), var(--emerald-600));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.testimonial-card-name {
    font-weight: 600;
    color: #fff;
    font-size: 0.9375rem;
}

.testimonial-card-role {
    font-size: 0.8125rem;
    color: var(--emerald-200);
}

/* --- CTA Banner --- */
.cta-banner {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--cream-100) 0%, var(--emerald-50) 100%);
    position: relative;
    overflow: hidden;
}

.cta-banner-bg {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 80% 50%, rgba(4, 120, 87, 0.06) 0%, transparent 60%);
    pointer-events: none;
}

.cta-banner-content {
    text-align: center;
    max-width: 680px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.cta-banner-heading {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    color: var(--stone-800);
    margin-bottom: 1rem;
}

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

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

/* --- Contact --- */
.contact {
    padding: 6rem 0;
    background: #fff;
}

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

.contact-info-text {
    font-size: 1rem;
    color: var(--stone-500);
    line-height: 1.8;
    margin-bottom: 2rem;
}

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

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

.contact-detail-icon {
    width: 48px;
    height: 48px;
    background: var(--emerald-50);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--emerald-600);
    flex-shrink: 0;
}

.contact-detail-label {
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--stone-400);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.contact-detail-value {
    font-size: 1rem;
    color: var(--stone-700);
    font-weight: 500;
    line-height: 1.6;
}

.contact-detail-value a {
    color: var(--emerald-600);
    transition: var(--transition);
}

.contact-detail-value a:hover {
    color: var(--emerald-800);
}

.contact-map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--cream-50);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    border: 1px solid var(--stone-100);
}

.contact-form-header {
    margin-bottom: 2rem;
}

.contact-form-title {
    font-size: 1.5rem;
    margin-bottom: 0.375rem;
}

.contact-form-subtitle {
    font-size: 0.9375rem;
    color: var(--stone-500);
}

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

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

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--stone-700);
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--stone-200);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.9375rem;
    color: var(--stone-700);
    background: #fff;
    transition: var(--transition);
    outline: none;
}

.form-input:focus {
    border-color: var(--emerald-400);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.form-input::placeholder {
    color: var(--stone-400);
}

.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='%2378716c' 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;
}

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

/* Form Success */
.form-success {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem;
    animation: fadeInUp 0.4s ease;
}

.form-success.show {
    display: flex;
}

.form-success-icon {
    margin-bottom: 1rem;
}

.form-success-title {
    font-size: 1.375rem;
    margin-bottom: 0.5rem;
    color: var(--stone-800);
}

.form-success-text {
    font-size: 0.9375rem;
    color: var(--stone-500);
    margin-bottom: 1.5rem;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Footer --- */
.footer {
    background: var(--stone-800);
    color: var(--stone-300);
    padding: 4rem 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    padding-bottom: 3rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
}

.footer-logo svg {
    color: var(--emerald-400);
}

.footer-tagline {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--stone-400);
    max-width: 280px;
}

.footer-heading {
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--stone-200);
    margin-bottom: 1.25rem;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.footer-links a {
    font-size: 0.9375rem;
    color: var(--stone-400);
    transition: var(--transition);
}

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

.footer-contact-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    font-size: 0.875rem;
    color: var(--stone-400);
    line-height: 1.6;
}

.footer-contact-list svg {
    color: var(--emerald-400);
    flex-shrink: 0;
    margin-top: 2px;
}

.footer-bottom {
    border-top: 1px solid var(--stone-700);
    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: var(--stone-500);
}

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

    .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) {
    .hero-container {
        gap: 2.5rem;
    }

    .hero-image-main {
        max-width: 420px;
    }

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

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

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

    .nav-toggle {
        display: flex;
    }

    .hero {
        padding: 5rem 0 3rem;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .hero-image {
        justify-content: center;
        order: -1;
    }

    .hero-image-main {
        max-width: 100%;
    }

    .hero-image-float {
        left: 1rem;
        bottom: 1rem;
    }

    .hero-trust {
        gap: 1rem;
    }

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

    .about-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .about-image-wrapper img {
        height: 400px;
    }

    .about-features {
        grid-template-columns: 1fr;
    }

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

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

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

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

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

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

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

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

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

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

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

    .float-card {
        padding: 0.75rem 1rem;
    }

    .float-card-number {
        font-size: 1.25rem;
    }
}
