/* ========================================
   Tucker Kail - Real Estate Website
   Clean Minimalist Design
   ======================================== */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --forest: #1a4d2e;
    --forest-light: #2d6a4f;
    --forest-dark: #0f3319;
    --off-white: #f8f7f4;
    --cream: #f0ece4;
    --white: #ffffff;
    --charcoal: #1a1a1a;
    --gray-900: #2d2d2d;
    --gray-700: #555555;
    --gray-500: #888888;
    --gray-300: #c4c4c4;
    --gray-100: #e8e8e8;
    --line: rgba(26, 77, 46, 0.12);
    --line-strong: rgba(26, 77, 46, 0.25);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.10);
    --font-body: 'Inter', -apple-system, sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: var(--font-body);
    font-weight: 300;
    color: var(--charcoal);
    background-color: var(--off-white);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

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

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

/* ========================================
   Typography
   ======================================== */
.eyebrow {
    display: block;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--forest);
    margin-bottom: 16px;
}

h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.2;
    color: var(--charcoal);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.25rem;
    font-weight: 400;
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    border: 1px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--forest);
    color: var(--white);
    border-color: var(--forest);
}

.btn-primary:hover {
    background: var(--forest-dark);
    border-color: var(--forest-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: var(--forest);
    border-color: var(--forest);
}

.btn-outline:hover {
    background: var(--forest);
    color: var(--white);
}

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

.btn-outline-light:hover {
    background: var(--white);
    color: var(--forest);
    border-color: var(--white);
}

.btn-text {
    background: transparent;
    color: var(--forest);
    padding: 14px 0;
    border: none;
    font-size: 0.875rem;
}

.btn-text:hover {
    color: var(--forest-light);
}

.btn-full {
    width: 100%;
}

/* ========================================
   Navbar
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(248, 247, 244, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    transition: all var(--transition);
}

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

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

.logo {
    font-family: var(--font-display);
    font-size: 1.375rem;
    font-weight: 400;
    color: var(--charcoal);
    letter-spacing: -0.01em;
}

.logo .dot {
    color: var(--forest);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-links a {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--gray-700);
    letter-spacing: 0.02em;
    transition: color var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--forest);
    transition: width var(--transition);
}

.nav-links a:hover {
    color: var(--forest);
}

.nav-links a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--charcoal);
    padding: 8px;
}

/* ========================================
   Hero
   ======================================== */
.hero {
    padding-top: 72px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--off-white);
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    width: 100%;
    padding-top: 40px;
    padding-bottom: 40px;
}

.hero-content {
    padding-right: 20px;
}

.hero h1 {
    margin-bottom: 24px;
}

.hero-sub {
    font-size: 1.125rem;
    color: var(--gray-700);
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 480px;
}

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

.hero-image {
    position: relative;
}

.img-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.img-wrapper img {
    width: 100%;
    height: 560px;
    object-fit: cover;
    border-radius: 8px;
}

.floating-card {
    position: absolute;
    bottom: 32px;
    left: -24px;
    background: var(--white);
    padding: 20px 28px;
    border-radius: 6px;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.fc-label {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gray-500);
}

.fc-value {
    font-family: var(--font-display);
    font-size: 1.125rem;
    color: var(--charcoal);
}

/* ========================================
   Sections
   ======================================== */
.section {
    padding: 120px 0;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 64px;
}

.section-header h2 {
    margin-bottom: 16px;
}

.section-sub {
    color: var(--gray-700);
    font-size: 1.0625rem;
}

/* ========================================
   About
   ======================================== */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-text {
    max-width: 520px;
}

.about-text h2 {
    margin-bottom: 24px;
}

.about-text p {
    color: var(--gray-700);
    margin-bottom: 16px;
    font-size: 1.0625rem;
}

.about-image img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    border-radius: 8px;
}

.stats {
    display: flex;
    gap: 40px;
    margin-top: 48px;
    padding-top: 40px;
    border-top: 1px solid var(--line-strong);
}

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

.stat-number {
    font-family: var(--font-display);
    font-size: 1.75rem;
    color: var(--forest);
    line-height: 1;
}

.stat-label {
    font-size: 0.8125rem;
    color: var(--gray-500);
    letter-spacing: 0.04em;
}

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

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

.service-card {
    padding: 48px 36px;
    border: 1px solid var(--line);
    border-radius: 8px;
    transition: all var(--transition);
}

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

.service-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    margin-bottom: 24px;
    color: var(--forest);
}

.service-card h3 {
    margin-bottom: 12px;
}

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

/* ========================================
   Listings
   ======================================== */
.listings-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.listing-card {
    border-radius: 8px;
    overflow: hidden;
    transition: all var(--transition);
}

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

.listing-img {
    position: relative;
    overflow: hidden;
}

.listing-img img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.listing-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--forest);
    color: var(--white);
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 3px;
}

.listing-info {
    padding: 24px 0;
    border-bottom: 1px solid var(--line);
}

.listing-info h3 {
    margin-bottom: 4px;
}

.listing-address {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-bottom: 12px;
}

.listing-details {
    display: flex;
    gap: 8px;
    font-size: 0.8125rem;
    color: var(--gray-700);
}

.listing-details .sep {
    color: var(--gray-300);
}

/* ========================================
   Testimonials
   ======================================== */
.testimonials {
    background: var(--cream);
}

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

.testimonial-card {
    background: var(--white);
    padding: 40px 36px;
    border-radius: 8px;
    position: relative;
}

.quote-mark {
    font-family: var(--font-display);
    font-size: 4rem;
    line-height: 1;
    color: var(--forest);
    opacity: 0.2;
    position: absolute;
    top: 20px;
    left: 28px;
}

.testimonial-card p {
    font-size: 1rem;
    color: var(--gray-700);
    line-height: 1.8;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.client-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.client-name {
    font-weight: 500;
    font-size: 0.9375rem;
    color: var(--charcoal);
}

.client-location {
    font-size: 0.8125rem;
    color: var(--gray-500);
}

/* ========================================
   CTA Section
   ======================================== */
.cta-section {
    background: var(--forest);
    padding: 100px 0;
}

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

.cta-content h2 {
    color: var(--white);
    margin-bottom: 20px;
}

.cta-content p {
    color: rgba(255,255,255,0.75);
    font-size: 1.125rem;
    margin-bottom: 40px;
}

.cta-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cta-actions .btn-primary {
    background: var(--white);
    color: var(--forest);
    border-color: var(--white);
}

.cta-actions .btn-primary:hover {
    background: var(--cream);
    border-color: var(--cream);
}

/* ========================================
   Contact
   ======================================== */
.contact {
    background: var(--white);
}

.contact-info h2 {
    margin-bottom: 16px;
}

.contact-info > p {
    color: var(--gray-700);
    font-size: 1.0625rem;
    margin-bottom: 40px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

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

.contact-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    color: var(--forest);
    flex-shrink: 0;
}

.contact-item strong {
    display: block;
    font-weight: 500;
    font-size: 0.875rem;
    margin-bottom: 4px;
    color: var(--charcoal);
}

.contact-item p {
    color: var(--gray-700);
    font-size: 0.9375rem;
    line-height: 1.6;
}

.contact-item a {
    color: var(--forest);
    transition: color var(--transition);
}

.contact-item a:hover {
    color: var(--forest-light);
    text-decoration: underline;
}

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

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--gray-700);
}

.form-group input,
.form-group textarea {
    font-family: var(--font-body);
    font-size: 0.9375rem;
    padding: 14px 16px;
    border: 1px solid var(--gray-100);
    border-radius: 4px;
    background: var(--off-white);
    color: var(--charcoal);
    transition: all var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--forest);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(26, 77, 46, 0.08);
}

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

.form-success {
    display: none;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: rgba(26, 77, 46, 0.06);
    border: 1px solid rgba(26, 77, 46, 0.15);
    border-radius: 6px;
    color: var(--forest);
    font-size: 0.9375rem;
    margin-top: 8px;
}

.form-success svg {
    flex-shrink: 0;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--charcoal);
    padding: 64px 0 40px;
    color: rgba(255,255,255,0.6);
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 32px;
}

.footer-brand .logo {
    color: var(--white);
    margin-bottom: 12px;
    display: inline-block;
}

.footer-brand p {
    font-size: 0.9375rem;
    max-width: 300px;
}

.footer-links {
    display: flex;
    gap: 32px;
}

.footer-links a {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.5);
    transition: color var(--transition);
}

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

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.8125rem;
}

.footer-bottom a {
    color: rgba(255,255,255,0.5);
    transition: color var(--transition);
}

.footer-bottom a:hover {
    color: var(--white);
}

/* ========================================
   Animations
   ======================================== */
.reveal-up {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-left {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-right {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-up.hidden,
.reveal-left.hidden,
.reveal-right.hidden {
    opacity: 0;
    transform: translateY(30px);
}

.reveal-left.hidden {
    transform: translateX(-30px);
}

.reveal-right.hidden {
    transform: translateX(30px);
}

.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }

/* ========================================
   Mobile Menu
   ======================================== */
.nav-links.mobile-open {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(248, 247, 244, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 32px 24px;
    gap: 24px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 1024px) {
    .hero-container {
        gap: 40px;
    }
    
    .split-layout {
        gap: 48px;
    }
    
    .services-grid,
    .listings-grid,
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero {
        min-height: auto;
        padding-top: 100px;
        padding-bottom: 60px;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .hero-content {
        padding-right: 0;
        text-align: center;
    }
    
    .hero-sub {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-image {
        order: -1;
    }
    
    .img-wrapper img {
        height: 400px;
    }
    
    .floating-card {
        left: 16px;
        bottom: 16px;
    }
    
    .section {
        padding: 80px 0;
    }
    
    .split-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .split-layout.reverse-mobile {
        /* Keep image first on mobile */
    }
    
    .about-image img {
        height: 400px;
    }
    
    .stats {
        gap: 24px;
    }
    
    .services-grid,
    .listings-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .service-card {
        padding: 36px 28px;
    }
    
    .footer-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 32px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .cta-actions {
        flex-direction: column;
    }
    
    .cta-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }
    
    .hero h1 {
        font-size: 2.25rem;
    }
    
    .hero-actions {
        flex-direction: column;
        gap: 16px;
    }
    
    .stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .contact-form-wrapper {
        max-width: 100%;
    }
}
