/* ============================================
   J Stewart Realty Co — Custom Styles
   ============================================ */

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

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

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-weight: 300;
    font-size: 16px;
    line-height: 1.7;
    color: #1a2e23;
    background-color: #faf9f6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

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

ul {
    list-style: none;
}

.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    background: #1a5c3a;
    color: #fff;
    padding: 0.5rem 1rem;
    z-index: 100;
    border-radius: 0 0 4px 4px;
    font-size: 0.875rem;
}

.skip-link:focus {
    top: 0;
}

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

/* --- Typography --- */
h1, h2, h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 500;
    line-height: 1.25;
    color: #1a2e23;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.9375rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    border-radius: 4px;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.btn:focus-visible {
    outline: 2px solid #1a5c3a;
    outline-offset: 2px;
}

.btn--green {
    background: #1a5c3a;
    color: #faf9f6;
    border-color: #1a5c3a;
}

.btn--green:hover {
    background: #144a2e;
    border-color: #144a2e;
}

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

.btn--outline-light {
    background: transparent;
    color: #faf9f6;
    border-color: rgba(250, 249, 246, 0.5);
}

.btn--outline-light:hover {
    background: rgba(250, 249, 246, 0.1);
    border-color: #faf9f6;
}

.btn--white {
    background: #fff;
    color: #1a5c3a;
    border-color: #fff;
}

.btn--white:hover {
    background: #f0f7f2;
}

.btn--ghost {
    background: transparent;
    color: #1a5c3a;
    border: 1.5px solid #1a5c3a;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
}

.btn--ghost:hover {
    background: #1a5c3a;
    color: #faf9f6;
}

.btn--full {
    width: 100%;
}

/* --- Section labels & titles --- */
.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #1a5c3a;
    margin-bottom: 0.75rem;
    position: relative;
    padding-left: 2rem;
}

.section-label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1.25rem;
    height: 1px;
    background: #1a5c3a;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(250, 249, 246, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(26, 92, 58, 0.08);
    transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
    box-shadow: 0 1px 20px rgba(26, 46, 35, 0.06);
}

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

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.125rem;
    font-weight: 500;
    color: #1a2e23;
}

.logo--light {
    color: #faf9f6;
}

.logo-text {
    letter-spacing: -0.01em;
}

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.main-nav a {
    font-size: 0.875rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    color: #1a2e23;
    position: relative;
    transition: color 0.2s ease;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #1a5c3a;
    transition: width 0.25s ease;
}

.main-nav a:hover {
    color: #1a5c3a;
}

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

/* Nav toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    width: 40px;
    height: 40px;
    position: relative;
}

.hamburger,
.hamburger::before,
.hamburger::after {
    display: block;
    width: 20px;
    height: 1.5px;
    background: #1a2e23;
    transition: all 0.3s ease;
}

.hamburger {
    position: relative;
    margin: 0 auto;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
}

.hamburger::before { top: -6px; }
.hamburger::after { top: 6px; }

.nav-toggle[aria-expanded="true"] .hamburger {
    background: transparent;
}

.nav-toggle[aria-expanded="true"] .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}

.nav-toggle[aria-expanded="true"] .hamburger::after {
    transform: rotate(-45deg);
    top: 0;
}

/* ============================================
   HERO
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    padding-top: 72px;
    overflow: hidden;
}

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

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

.hero-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(26, 46, 35, 0.88) 0%,
        rgba(26, 60, 42, 0.78) 50%,
        rgba(20, 45, 30, 0.85) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 3rem;
    align-items: center;
    padding: 3rem 0;
    width: 100%;
}

.hero-card {
    max-width: 640px;
}

.hero-tag {
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(250, 249, 246, 0.7);
    margin-bottom: 1.25rem;
}

.hero-headline {
    font-size: clamp(2rem, 5vw, 3.25rem);
    color: #faf9f6;
    margin-bottom: 1.25rem;
    line-height: 1.15;
}

.hero-sub {
    font-size: 1.0625rem;
    color: rgba(250, 249, 246, 0.8);
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 520px;
}

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

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

.stat-card {
    background: rgba(250, 249, 246, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(250, 249, 246, 0.15);
    border-radius: 8px;
    padding: 1.5rem;
    transition: background 0.25s ease;
}

.stat-card:hover {
    background: rgba(250, 249, 246, 0.15);
}

.stat-number {
    display: block;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2rem;
    font-weight: 500;
    color: #faf9f6;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.8125rem;
    color: rgba(250, 249, 246, 0.7);
    line-height: 1.5;
}

/* ============================================
   SERVICES
   ============================================ */
.services {
    padding: 7rem 0;
    background: #faf9f6;
}

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

.service-card {
    padding: 2rem;
    border: 1px solid rgba(26, 92, 58, 0.1);
    border-radius: 6px;
    transition: all 0.3s ease;
    background: #fff;
}

.service-card:hover {
    border-color: #1a5c3a;
    box-shadow: 0 8px 32px rgba(26, 92, 58, 0.08);
    transform: translateY(-2px);
}

.service-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(26, 92, 58, 0.06);
    color: #1a5c3a;
    margin-bottom: 1.25rem;
}

.service-card h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.0625rem;
    font-weight: 500;
    margin-bottom: 0.625rem;
    color: #1a2e23;
}

.service-card p {
    font-size: 0.9375rem;
    color: #4a5e53;
    line-height: 1.65;
}

/* ============================================
   AREAS
   ============================================ */
.areas {
    padding: 7rem 0;
    background: #f3f1ec;
}

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

.area-card {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    aspect-ratio: 3 / 2;
    cursor: pointer;
}

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

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

.area-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26, 46, 35, 0.85) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    transition: background 0.3s ease;
}

.area-card:hover .area-overlay {
    background: linear-gradient(to top, rgba(26, 46, 35, 0.92) 0%, rgba(26, 46, 35, 0.2) 70%);
}

.area-overlay h3 {
    font-size: 1.25rem;
    color: #faf9f6;
    margin-bottom: 0.25rem;
}

.area-overlay p {
    font-size: 0.8125rem;
    color: rgba(250, 249, 246, 0.75);
    line-height: 1.5;
}

/* ============================================
   ABOUT
   ============================================ */
.about {
    padding: 7rem 0;
    background: #faf9f6;
}

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

.about-image {
    border-radius: 6px;
    overflow: hidden;
    aspect-ratio: 7 / 9;
}

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

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

.about-content > p {
    font-size: 1rem;
    color: #4a5e53;
    margin-bottom: 1rem;
    line-height: 1.75;
}

.about-values {
    margin: 2rem 0;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(26, 92, 58, 0.1);
    border-bottom: 1px solid rgba(26, 92, 58, 0.1);
}

.value-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(26, 92, 58, 0.06);
    gap: 1rem;
}

.value-item:last-child {
    border-bottom: none;
}

.value-label {
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #1a5c3a;
}

.value-item a {
    color: #4a5e53;
    font-size: 0.9375rem;
    transition: color 0.2s ease;
}

.value-item a:hover {
    color: #1a5c3a;
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials {
    padding: 7rem 0;
    background: #1a2e23;
}

.testimonials .section-label {
    color: rgba(250, 249, 246, 0.6);
}

.testimonials .section-label::before {
    background: rgba(250, 249, 246, 0.4);
}

.testimonials .section-title {
    color: #faf9f6;
    margin-bottom: 3rem;
}

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

.testimonial-card {
    background: rgba(250, 249, 246, 0.05);
    border: 1px solid rgba(250, 249, 246, 0.08);
    border-radius: 6px;
    padding: 2rem;
    transition: background 0.3s ease;
}

.testimonial-card:hover {
    background: rgba(250, 249, 246, 0.08);
}

.testimonial-text {
    font-size: 0.9375rem;
    color: rgba(250, 249, 246, 0.85);
    line-height: 1.75;
    margin-bottom: 1.5rem;
    font-style: italic;
}

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

.testimonial-name {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1rem;
    font-weight: 500;
    color: #faf9f6;
}

.testimonial-detail {
    font-size: 0.8125rem;
    color: rgba(250, 249, 246, 0.5);
}

/* ============================================
   CTA
   ============================================ */
.cta {
    padding: 7rem 0;
    background: #f3f1ec;
}

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

.cta-label {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #1a5c3a;
    margin-bottom: 1rem;
}

.cta-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
}

.cta-text {
    font-size: 1.0625rem;
    color: #4a5e53;
    margin-bottom: 2rem;
    line-height: 1.7;
}

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

/* ============================================
   CONTACT
   ============================================ */
.contact {
    padding: 7rem 0;
    background: #faf9f6;
}

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

.contact-info .section-title {
    margin-bottom: 1rem;
}

.contact-info > p {
    font-size: 0.9375rem;
    color: #4a5e53;
    margin-bottom: 2rem;
    line-height: 1.7;
}

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

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

.contact-icon {
    flex-shrink: 0;
    margin-top: 0.25rem;
    color: #1a5c3a;
}

.contact-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #1a5c3a;
    margin-bottom: 0.25rem;
}

.contact-item address {
    font-style: normal;
    font-size: 0.9375rem;
    color: #4a5e53;
    line-height: 1.6;
}

.contact-item a {
    color: #4a5e53;
    transition: color 0.2s ease;
}

.contact-item a:hover {
    color: #1a5c3a;
}

.map-wrapper {
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(26, 92, 58, 0.1);
}

/* Form */
.contact-form-wrapper {
    background: #fff;
    border: 1px solid rgba(26, 92, 58, 0.1);
    border-radius: 6px;
    padding: 2.5rem;
}

.contact-form-wrapper h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.125rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    color: #1a2e23;
}

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

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

.form-group label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: #1a2e23;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.9375rem;
    font-weight: 300;
    color: #1a2e23;
    background: #faf9f6;
    border: 1px solid rgba(26, 92, 58, 0.15);
    border-radius: 4px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #1a5c3a;
    box-shadow: 0 0 0 3px rgba(26, 92, 58, 0.08);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #9aaea3;
}

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

.form-note {
    font-size: 0.8125rem;
    color: #9aaea3;
    margin-top: 0.75rem;
    text-align: center;
}

.form-success {
    text-align: center;
    padding: 2rem;
}

.form-success svg {
    color: #1a5c3a;
    margin-bottom: 1rem;
}

.form-success h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-success p {
    font-size: 0.9375rem;
    color: #4a5e53;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: #1a2e23;
    color: rgba(250, 249, 246, 0.7);
    padding: 4rem 0 2rem;
}

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

.footer-brand p {
    font-size: 0.875rem;
    margin-top: 0.75rem;
    line-height: 1.6;
    max-width: 280px;
}

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

.footer-links a {
    font-size: 0.875rem;
    color: rgba(250, 249, 246, 0.6);
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #faf9f6;
}

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

.footer-contact a {
    font-size: 0.875rem;
    color: rgba(250, 249, 246, 0.6);
    transition: color 0.2s ease;
}

.footer-contact a:hover {
    color: #faf9f6;
}

.footer-contact span {
    font-size: 0.875rem;
}

.footer-bottom {
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8125rem;
    color: rgba(250, 249, 246, 0.35);
}

/* ============================================
   SCROLL REVEAL
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   MOBILE RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .stat-card {
        flex: 1;
        min-width: 140px;
    }

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

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

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

    .main-nav {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(250, 249, 246, 0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-bottom: 1px solid rgba(26, 92, 58, 0.08);
        padding: 1.5rem;
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: all 0.3s ease;
    }

    .main-nav.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 1rem;
    }

    .main-nav a {
        font-size: 1rem;
    }

    .hero {
        min-height: auto;
        padding: 8rem 0 4rem;
    }

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

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

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

    .about-image {
        aspect-ratio: 4 / 3;
    }

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

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

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

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

    .hero-headline {
        font-size: 1.75rem;
    }

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

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

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

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

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}
