/* ========================================
   Brady Ware Real Estate — Stylesheet
   Terracotta & Sand | Editorial serif
   ======================================== */

/* --- CSS Custom Properties --- */
:root {
    --color-terracotta: #B85A38;
    --color-terracotta-dark: #9A4528;
    --color-terracotta-light: #D4845F;
    --color-sand: #F5EDE4;
    --color-sand-light: #FAF6F1;
    --color-sand-dark: #E8DDD2;
    --color-charcoal: #2C2420;
    --color-warm-gray: #6B5B52;
    --color-cream: #FFFDF9;
    --color-white: #FFFFFF;
    
    --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;
    --space-3xl: 8rem;
    
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    
    --shadow-sm: 0 1px 3px rgba(44, 36, 32, 0.08);
    --shadow-md: 0 4px 20px rgba(44, 36, 32, 0.1);
    --shadow-lg: 0 12px 40px rgba(44, 36, 32, 0.15);
    --shadow-xl: 0 20px 60px rgba(44, 36, 32, 0.2);
}

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

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

body {
    font-family: var(--font-sans);
    color: var(--color-charcoal);
    background-color: var(--color-cream);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* --- Container --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* --- Typography --- */
.section-eyebrow {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-terracotta);
    margin-bottom: var(--space-sm);
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 600;
    line-height: 1.15;
    color: var(--color-charcoal);
    margin-bottom: var(--space-md);
}

.section-title--light {
    color: var(--color-white);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 500;
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius-md);
    transition: all 0.25s ease;
    white-space: nowrap;
}

.btn--primary {
    background-color: var(--color-terracotta);
    color: var(--color-white);
    border: 2px solid var(--color-terracotta);
}

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

.btn--outline {
    background-color: transparent;
    color: var(--color-charcoal);
    border: 2px solid var(--color-charcoal);
}

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

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

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

.btn--light {
    background-color: var(--color-white);
    color: var(--color-terracotta);
    border: 2px solid var(--color-white);
}

.btn--light:hover {
    background-color: var(--color-sand);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn--ghost {
    background-color: transparent;
    color: var(--color-terracotta);
    border: none;
    padding: 0;
    font-weight: 500;
}

.btn--ghost:hover {
    color: var(--color-terracotta-dark);
}

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

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

/* --- Header --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(255, 253, 249, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-sand-dark);
    transition: box-shadow 0.3s ease;
}

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

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-charcoal);
}

.logo__mark {
    width: 32px;
    height: 32px;
    background-color: var(--color-terracotta);
    border-radius: var(--radius-sm);
    position: relative;
}

.logo__mark::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    bottom: 8px;
    background-color: var(--color-cream);
    border-radius: 1px;
}

.logo--light .logo__mark {
    background-color: var(--color-terracotta-light);
}

.logo--light .logo__mark::after {
    background-color: rgba(255, 255, 255, 0.2);
}

.nav {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.nav a {
    font-size: 0.9375rem;
    font-weight: 400;
    color: var(--color-warm-gray);
    transition: color 0.2s ease;
}

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

/* Mobile menu button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 4px;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background-color: var(--color-charcoal);
    border-radius: 2px;
    transition: all 0.3s ease;
}

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

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

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

/* --- Hero Section --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 72px;
    overflow: hidden;
    background-color: var(--color-sand);
}

.hero__bg {
    position: absolute;
    inset: 0;
    background-image: url('https://images.pexels.com/photos/3935336/pexels-photo-3935336.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=1920&h=1080');
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.hero__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(44, 36, 32, 0.75) 0%, rgba(44, 36, 32, 0.4) 60%, transparent 100%);
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero__content {
    max-width: 680px;
}

.hero__card {
    background-color: rgba(255, 253, 249, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: var(--radius-lg);
    padding: clamp(2rem, 5vw, 3.5rem);
    box-shadow: var(--shadow-xl);
}

.hero__eyebrow {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-terracotta);
    margin-bottom: var(--space-md);
}

.hero__headline {
    font-family: var(--font-serif);
    font-size: clamp(1.75rem, 4.5vw, 3rem);
    font-weight: 600;
    line-height: 1.15;
    color: var(--color-charcoal);
    margin-bottom: var(--space-md);
}

.hero__subhead {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--color-warm-gray);
    margin-bottom: var(--space-lg);
    max-width: 540px;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

/* Floating Stat Cards */
.hero__stats {
    position: absolute;
    right: var(--space-md);
    bottom: var(--space-xl);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    z-index: 2;
}

.stat-card {
    background-color: var(--color-white);
    border-radius: var(--radius-md);
    padding: var(--space-sm) var(--space-md);
    box-shadow: var(--shadow-lg);
    min-width: 220px;
    animation: float 6s ease-in-out infinite;
}

.stat-card--accent {
    background-color: var(--color-terracotta);
    color: var(--color-white);
    animation-delay: -2s;
}

.stat-card__number {
    display: block;
    font-family: var(--font-serif);
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.3;
}

.stat-card__label {
    display: block;
    font-size: 0.8125rem;
    color: var(--color-warm-gray);
    margin-top: 2px;
}

.stat-card--accent .stat-card__label {
    color: rgba(255, 255, 255, 0.8);
}

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

/* --- About Section --- */
.about {
    padding: var(--space-3xl) 0;
    background-color: var(--color-cream);
}

.about__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
}

.about__image-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.about__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-lg);
}

.about__image-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    pointer-events: none;
}

.about__content {
    padding: var(--space-md) 0;
}

.about__text {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--color-warm-gray);
    margin-bottom: var(--space-md);
}

.about__values {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-top: var(--space-lg);
}

.about__values li {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-charcoal);
}

.about__values svg {
    color: var(--color-terracotta);
    flex-shrink: 0;
}

/* --- Services Section --- */
.services {
    padding: var(--space-3xl) 0;
    background-color: var(--color-sand);
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto var(--space-xl);
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

.service-card {
    background-color: var(--color-white);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

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

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

.service-card__title {
    font-family: var(--font-serif);
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--color-charcoal);
    margin-bottom: var(--space-sm);
}

.service-card__text {
    font-size: 0.9375rem;
    line-height: 1.75;
    color: var(--color-warm-gray);
}

/* --- Neighborhood Section --- */
.neighborhood {
    padding: var(--space-3xl) 0;
    background-color: var(--color-cream);
}

.neighborhood__split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
}

.neighborhood__content {
    order: 1;
}

.neighborhood__text {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--color-warm-gray);
    margin-bottom: var(--space-md);
}

.neighborhood__images {
    order: 2;
}

.neighborhood__img-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-sm);
}

.neighborhood__img {
    width: 100%;
    object-fit: cover;
    border-radius: var(--radius-md);
}

.neighborhood__img--offset {
    margin-top: var(--space-lg);
}

/* --- CTA Section --- */
.cta-section {
    padding: var(--space-3xl) 0;
    background-color: var(--color-charcoal);
}

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

.cta__text {
    font-size: 1.125rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: var(--space-lg);
}

.cta__actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

/* --- Contact Section --- */
.contact {
    padding: var(--space-3xl) 0;
    background-color: var(--color-sand);
}

.contact__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
}

.contact__text {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--color-warm-gray);
    margin-bottom: var(--space-lg);
}

.contact__details {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.contact__detail {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
}

.contact__detail svg {
    color: var(--color-terracotta);
    flex-shrink: 0;
    margin-top: 2px;
}

.contact__detail-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-warm-gray);
    margin-bottom: 2px;
}

.contact__detail-value {
    font-size: 1rem;
    color: var(--color-charcoal);
    line-height: 1.5;
}

.contact__link {
    color: var(--color-terracotta);
    font-weight: 500;
    transition: color 0.2s ease;
}

.contact__link:hover {
    color: var(--color-terracotta-dark);
    text-decoration: underline;
}

/* Contact Form */
.contact__form-wrapper {
    background-color: var(--color-white);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: var(--space-md);
}

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

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    color: var(--color-charcoal);
    background-color: var(--color-sand-light);
    border: 1.5px solid var(--color-sand-dark);
    border-radius: var(--radius-md);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
}

.form-input:focus,
.form-textarea:focus {
    border-color: var(--color-terracotta);
    box-shadow: 0 0 0 3px rgba(184, 90, 56, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--color-warm-gray);
    opacity: 0.6;
}

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

.form-success {
    text-align: center;
    padding: var(--space-xl) var(--space-md);
}

.form-success svg {
    color: var(--color-terracotta);
    margin: 0 auto var(--space-md);
}

.form-success h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-charcoal);
    margin-bottom: var(--space-sm);
}

.form-success p {
    font-size: 0.9375rem;
    color: var(--color-warm-gray);
    line-height: 1.6;
}

/* --- Footer --- */
.footer {
    background-color: var(--color-charcoal);
    color: rgba(255, 255, 255, 0.7);
    padding: var(--space-2xl) 0 var(--space-md);
}

.footer__inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: var(--space-xl);
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__brand {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer__tagline {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer__license {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.35);
}

.footer__links {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer__links a {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.2s ease;
}

.footer__links a:hover {
    color: var(--color-terracotta-light);
}

.footer__contact {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer__phone {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--color-terracotta-light);
    transition: color 0.2s ease;
}

.footer__phone:hover {
    color: var(--color-white);
}

.footer__address {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.6;
}

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-sm);
    padding-top: var(--space-md);
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.35);
}

.footer__disclaimer {
    font-size: 0.75rem;
}

/* --- Scroll Reveal (progressive enhancement) --- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .hero__stats {
        position: relative;
        right: auto;
        bottom: auto;
        flex-direction: row;
        flex-wrap: wrap;
        margin-top: var(--space-lg);
    }
    
    .stat-card {
        flex: 1;
        min-width: 160px;
    }
}

@media (max-width: 768px) {
    .nav {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background-color: rgba(255, 253, 249, 0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        flex-direction: column;
        padding: var(--space-lg);
        gap: var(--space-md);
        border-bottom: 1px solid var(--color-sand-dark);
        transform: translateY(-120%);
        opacity: 0;
        transition: all 0.3s ease;
        pointer-events: none;
    }
    
    .nav.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }
    
    .nav a {
        font-size: 1.125rem;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero {
        min-height: auto;
        padding: calc(72px + var(--space-xl)) 0 var(--space-xl);
    }
    
    .hero__stats {
        flex-direction: column;
    }
    
    .stat-card {
        min-width: auto;
    }
    
    .about__grid,
    .services__grid,
    .neighborhood__split,
    .contact__grid {
        grid-template-columns: 1fr;
    }
    
    .neighborhood__content {
        order: 2;
    }
    
    .neighborhood__images {
        order: 1;
    }
    
    .neighborhood__img--offset {
        margin-top: 0;
    }
    
    .footer__inner {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .footer__bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .services__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero__card {
        padding: var(--space-md);
    }
    
    .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;
    }
}
