/* =============================================
   Tracy Guerrero Real Estate — Styles
   Classic & Elegant · Charcoal + Coral
   ============================================= */

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

:root {
    --charcoal:    #1C1C1E;
    --charcoal-lt: #2C2C2E;
    --charcoal-mid:#3A3A3C;
    --warm-gray:   #6B6560;
    --sand:        #B8A99A;
    --sand-lt:     #D4C8BC;
    --cream:       #F5F0EC;
    --cream-lt:    #FAF7F4;
    --white:       #FEFCFA;
    --coral:       #C2704E;
    --coral-dark:  #A85A3A;
    --coral-lt:    #D4916F;
    --coral-pale:  #F2DFD3;
    --coral-bg:    #FBF4EF;

    --font-serif:  'Lora', Georgia, 'Times New Roman', serif;
    --font-sans:   'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --shadow-sm:  0 1px 3px rgba(28,28,30,0.08);
    --shadow-md:  0 4px 16px rgba(28,28,30,0.10);
    --shadow-lg:  0 8px 32px rgba(28,28,30,0.12);
    --shadow-xl:  0 16px 48px rgba(28,28,30,0.14);

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

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

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

body {
    font-family: var(--font-sans);
    color: var(--charcoal);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

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

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

.section-eyebrow {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--coral);
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    color: var(--charcoal);
    margin-bottom: 20px;
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    white-space: nowrap;
}

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

.btn--ghost {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.6);
}
.btn--ghost:hover { border-color: var(--white); background: rgba(255,255,255,0.1); }

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

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

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

/* ---- Header ---- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(254, 252, 250, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

.site-header.scrolled {
    border-bottom-color: var(--sand-lt);
    box-shadow: var(--shadow-sm);
}

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

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

.logo-dot { color: var(--coral); font-size: 1.5rem; line-height: 1; }
.logo-text--light { color: var(--white); }

/* ---- Navigation ---- */
.nav-list {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--charcoal-mid);
    transition: color var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--coral);
    transition: width var(--transition);
}

.nav-link:hover { color: var(--coral); }
.nav-link:hover::after { width: 100%; }

.nav-link--cta {
    background: var(--coral);
    color: var(--white) !important;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
}
.nav-link--cta::after { display: none; }
.nav-link--cta:hover { background: var(--coral-dark); }

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}

.hamburger {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--charcoal);
    border-radius: 2px;
    transition: var(--transition);
    position: relative;
}
.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 22px;
    height: 2px;
    background: var(--charcoal);
    border-radius: 2px;
    transition: var(--transition);
}
.hamburger::before { top: -7px; }
.hamburger::after  { top: 7px; }

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

/* ---- 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(
        135deg,
        rgba(28, 28, 30, 0.82) 0%,
        rgba(28, 28, 30, 0.68) 50%,
        rgba(194, 112, 78, 0.45) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 720px;
    padding: 120px 24px 80px;
}

.hero-eyebrow {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--coral-lt);
    margin-bottom: 20px;
}

.hero-title {
    font-size: clamp(2rem, 5.5vw, 3.75rem);
    color: var(--white);
    margin-bottom: 24px;
    line-height: 1.1;
}

.hero-title em {
    font-style: italic;
    color: var(--coral-lt);
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.7;
    margin-bottom: 36px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

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

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

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.5; }
    50%       { transform: translateX(-50%) translateY(8px); opacity: 1; }
}

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

/* ---- Services ---- */
.services { background: var(--cream-lt); }

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 48px;
}

.service-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    transition: var(--transition);
    border: 1px solid transparent;
}

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

.service-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--coral-bg);
    border-radius: var(--radius-md);
    margin-bottom: 20px;
}

.service-card-title {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--charcoal);
}

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

/* ---- About ---- */
.about { background: var(--white); }

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

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

.about-image-wrap img {
    width: 100%;
    height: 680px;
    object-fit: cover;
    border-radius: var(--radius-lg);
}

.about-image-accent {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 200px;
    height: 200px;
    background: var(--coral-pale);
    border-radius: var(--radius-lg);
    z-index: -1;
}

.about-eyebrow { margin-bottom: 12px; }

.about-text {
    font-size: 1rem;
    color: var(--warm-gray);
    line-height: 1.8;
    margin-bottom: 16px;
}

.about-stats {
    display: flex;
    gap: 32px;
    margin: 32px 0;
    flex-wrap: wrap;
}

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

.stat-number {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--coral);
}

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

/* ---- Testimonials ---- */
.testimonials {
    background: var(--charcoal);
    color: var(--white);
}

.testimonials .section-eyebrow { color: var(--coral-lt); }
.testimonials .section-title { color: var(--white); }

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 48px;
}

.testimonial-card {
    background: var(--charcoal-lt);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    position: relative;
    border: 1px solid rgba(255,255,255,0.06);
    transition: var(--transition);
}

.testimonial-card:hover {
    border-color: rgba(194,112,78,0.3);
    transform: translateY(-2px);
}

.testimonial-quote {
    margin-bottom: 20px;
    opacity: 0.8;
}

.testimonial-text {
    font-family: var(--font-serif);
    font-size: 1.0625rem;
    font-style: italic;
    line-height: 1.75;
    color: rgba(255,255,255,0.88);
    margin-bottom: 24px;
}

.testimonial-author {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--coral-lt);
    letter-spacing: 0.02em;
}

/* ---- Areas ---- */
.areas { background: var(--cream-lt); }

.areas-intro {
    font-size: 1.0625rem;
    color: var(--warm-gray);
    max-width: 560px;
    margin-bottom: 36px;
    line-height: 1.7;
}

.areas-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.area-tag {
    font-size: 0.875rem;
    font-weight: 500;
    padding: 10px 20px;
    background: var(--white);
    color: var(--charcoal-mid);
    border-radius: 100px;
    border: 1px solid var(--sand-lt);
    transition: var(--transition);
}

.area-tag:hover {
    background: var(--coral);
    color: var(--white);
    border-color: var(--coral);
}

/* ---- CTA ---- */
.cta {
    background: linear-gradient(135deg, var(--coral) 0%, var(--coral-dark) 100%);
    color: var(--white);
    padding: 80px 0;
}

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

.cta-eyebrow { color: rgba(255,255,255,0.7); margin-bottom: 16px; }

.cta-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    color: var(--white);
    margin-bottom: 20px;
}

.cta-text {
    font-size: 1.0625rem;
    color: rgba(255,255,255,0.88);
    line-height: 1.7;
    margin-bottom: 36px;
}

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

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

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

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

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

.contact-title { margin-bottom: 16px; }

.contact-text {
    font-size: 1rem;
    color: var(--warm-gray);
    line-height: 1.7;
    margin-bottom: 32px;
}

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

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    font-size: 0.9375rem;
    color: var(--charcoal);
    line-height: 1.5;
}

.contact-item svg { flex-shrink: 0; margin-top: 2px; }

.contact-item a:hover { color: var(--coral); }

/* ---- Form ---- */
.contact-form-wrap {
    background: var(--cream-lt);
    border-radius: var(--radius-lg);
    padding: 40px;
    border: 1px solid var(--sand-lt);
}

.form-group { margin-bottom: 20px; }

.form-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--charcoal-mid);
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    color: var(--charcoal);
    background: var(--white);
    border: 1.5px solid var(--sand-lt);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    outline: none;
}

.form-input::placeholder { color: var(--sand); }
.form-input:focus { border-color: var(--coral); box-shadow: 0 0 0 3px var(--coral-pale); }

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

.form-success {
    display: none;
    margin-top: 16px;
    padding: 16px;
    background: var(--coral-bg);
    border: 1px solid var(--coral-pale);
    border-radius: var(--radius-sm);
    color: var(--coral-dark);
    font-size: 0.9375rem;
    text-align: center;
}

.form-success.visible { display: block; }

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

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-tagline {
    font-size: 0.9375rem;
    line-height: 1.7;
    margin-top: 16px;
    max-width: 280px;
}

.footer-heading {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
    margin-bottom: 20px;
}

.footer-links { display: flex; flex-direction: column; gap: 12px; }

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

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 24px 0;
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.4);
}

.footer-licensing { font-style: italic; }

/* ---- Scroll Reveal (below fold only) ---- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ---- Responsive ---- */
@media (max-width: 900px) {
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image-wrap img { height: 480px; }
    .about-image-accent { display: none; }

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

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

    .nav-list {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(254,252,250,0.98);
        backdrop-filter: blur(12px);
        flex-direction: column;
        justify-content: center;
        gap: 24px;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .nav-list.open { transform: translateX(0); }

    .nav-link { font-size: 1.125rem; }
    .nav-link--cta { padding: 14px 28px; }

    .hero-content { padding: 100px 20px 80px; }

    .section { padding: 72px 0; }

    .contact-form-wrap { padding: 28px; }

    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
    .hero-actions { flex-direction: column; align-items: center; }
    .hero-actions .btn { width: 100%; justify-content: center; }
    .cta-actions { flex-direction: column; align-items: center; }
    .cta-actions .btn { width: 100%; justify-content: center; }
    .about-stats { gap: 24px; }
}

/* ---- 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; }
}
