/* Lisa Ng — realtorlisang.com · v4 rebuild
   Fully responsive: phones (360px+), tablets, laptops, desktops.
   No fixed heights — sections size to their content (fixes hero dead space). */

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

:root {
    --navy: #1a365d;
    --navy-2: #2c5282;
    --navy-dark: #0f2744;
    --gold: #c9a227;
    --gold-dark: #b8911f;
    --text: #2d3748;
    --text-light: #718096;
    --bg: #ffffff;
    --bg-alt: #f7fafc;
    --border: #e2e8f0;
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --shadow-sm: 0 1px 3px rgba(0,0,0,.1);
    --shadow-lg: 0 10px 30px rgba(0,0,0,.12);
    --radius: 8px;
}

html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.hidden { display: none !important; }
img { max-width: 100%; height: auto; }

h2 { font-family: var(--font-heading); font-size: clamp(1.5rem, 3.5vw, 2rem); color: var(--navy); }

/* ===== Header ===== */
.header { background: var(--navy); padding: 14px 0; }
.header-content { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.logo { display: flex; flex-direction: column; }
.logo-name { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 600; color: #fff; line-height: 1.2; }
.logo-title { font-size: .7rem; color: var(--gold); letter-spacing: 2px; text-transform: uppercase; }
.header-phone {
    display: inline-flex; align-items: center; gap: 8px;
    color: #fff; text-decoration: none; font-weight: 500; white-space: nowrap;
    padding: 9px 16px; border: 1px solid rgba(255,255,255,.3); border-radius: var(--radius);
    transition: background .2s;
}
.header-phone:hover { background: rgba(255,255,255,.1); }

/* ===== Hero — sized by content, no dead space ===== */
.hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
    padding: clamp(40px, 6vw, 72px) 0;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(32px, 5vw, 60px);
    align-items: center;
}
.hero-content { color: #fff; }
.hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 600; line-height: 1.15; margin-bottom: 18px;
}
.hero h1 em { color: var(--gold); font-style: italic; }
.hero-subtitle { font-size: clamp(1.05rem, 2vw, 1.25rem); opacity: .92; margin-bottom: 26px; }

.trust-badges { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 14px; margin-bottom: 30px; }
.trust-badges li {
    background: rgba(255,255,255,.14);
    padding: 8px 16px; border-radius: 100px;
    font-size: .9rem; font-weight: 500;
}

.hero-proof { display: flex; align-items: center; gap: 12px; }
.proof-stars { color: var(--gold); font-size: 1.25rem; letter-spacing: 3px; }
.hero-proof p { font-size: .95rem; opacity: .92; }
.hero-proof strong { color: var(--gold); }

/* ===== Form card ===== */
.form-card { background: #fff; border-radius: 12px; padding: clamp(22px, 3vw, 32px); box-shadow: var(--shadow-lg); }
.form-card h2 { font-size: 1.4rem; margin-bottom: 22px; text-align: center; }

.hp-field { position: absolute; left: -9999px; top: -9999px; }

.form-group { margin-bottom: 15px; }
.form-group label { display: block; font-size: .9rem; font-weight: 500; margin-bottom: 6px; color: var(--text); }
.form-group input, .form-group select {
    width: 100%; padding: 12px 14px;
    border: 1px solid var(--border); border-radius: var(--radius);
    font-size: 1rem; font-family: var(--font-body); background: #fff;
    transition: border-color .2s, box-shadow .2s;
    min-height: 46px; /* comfortable touch target */
}
.form-group input:focus, .form-group select:focus {
    outline: none; border-color: var(--navy-2);
    box-shadow: 0 0 0 3px rgba(44,82,130,.15);
}
.form-group input::placeholder { color: var(--text-light); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.consent-group { margin: 4px 0 10px; }
.checkbox-label { display: flex; gap: 10px; align-items: flex-start; font-size: .8rem; color: var(--text-light); cursor: pointer; }
.checkbox-label input { width: 18px; height: 18px; min-height: 0; margin-top: 2px; flex: none; accent-color: var(--navy-2); }

.btn-submit {
    width: 100%; padding: 15px 24px; min-height: 50px;
    background: var(--gold); color: var(--navy);
    font-size: 1rem; font-weight: 600; font-family: var(--font-body);
    border: none; border-radius: var(--radius); cursor: pointer;
    transition: background .2s, transform .1s;
}
.btn-submit:hover { background: var(--gold-dark); transform: translateY(-1px); }
.btn-submit:disabled { opacity: .7; cursor: wait; transform: none; }

.form-error { margin-top: 12px; color: #c53030; font-size: .9rem; text-align: center; }
.form-disclaimer { font-size: .72rem; color: var(--text-light); text-align: center; margin-top: 14px; line-height: 1.5; }
.form-disclaimer a { color: var(--navy-2); }

.success-message { text-align: center; padding: 40px 20px; }
.success-icon {
    width: 60px; height: 60px; background: #48bb78; color: #fff; font-size: 2rem;
    border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px;
}
.success-message h3 { font-family: var(--font-heading); font-size: 1.75rem; color: var(--navy); margin-bottom: 12px; }
.success-signature { font-style: italic; color: var(--text-light); margin-top: 16px; }

/* ===== Why section ===== */
.why-section { padding: clamp(48px, 7vw, 80px) 0; background: var(--bg-alt); }
.why-section h2 { text-align: center; margin-bottom: clamp(28px, 5vw, 48px); }
.benefits-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 3vw, 30px); }
.benefit-card { background: #fff; padding: 30px 26px; border-radius: 12px; box-shadow: var(--shadow-sm); text-align: center; }
.benefit-icon {
    width: 56px; height: 56px; margin: 0 auto 16px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(201,162,39,.12); border-radius: 50%; color: var(--navy);
}
.benefit-icon svg { width: 28px; height: 28px; }
.benefit-card h3 { font-family: var(--font-heading); font-size: 1.2rem; color: var(--navy); margin-bottom: 10px; }
.benefit-card p { color: var(--text-light); font-size: .95rem; }

/* ===== About ===== */
.about-section { padding: clamp(48px, 7vw, 80px) 0; }
.about-content { display: grid; grid-template-columns: 1fr 220px; gap: clamp(24px, 4vw, 48px); align-items: center; }
.about-text h2 { margin-bottom: 18px; }
.about-text p { margin-bottom: 14px; }
.motto { font-family: var(--font-heading); font-size: 1.2rem; color: var(--gold); font-style: italic; margin: 20px 0; }
.service-areas { background: var(--bg-alt); padding: 18px 20px; border-radius: var(--radius); margin-top: 20px; }
.service-areas h4 { font-size: .85rem; color: var(--navy); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.service-areas p { font-size: .9rem; color: var(--text-light); margin: 0; }
.headshot-img {
    width: 200px; height: 200px; object-fit: cover; object-position: top center;
    border-radius: 50%; box-shadow: 0 4px 16px rgba(0,0,0,.15); display: block; margin: 0 auto;
}

/* ===== Stats bar ===== */
.stats-bar { background: var(--navy-dark); border-top: 3px solid var(--gold); padding: clamp(24px, 4vw, 36px) 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; text-align: center; }
.stat-number {
    font-family: var(--font-heading); font-weight: 700; color: var(--gold);
    font-size: clamp(1.5rem, 3.5vw, 2.4rem); line-height: 1.1; margin-bottom: 5px;
}
.stat-label { font-size: clamp(.68rem, 1.4vw, .85rem); color: rgba(255,255,255,.85); text-transform: uppercase; letter-spacing: .5px; }

/* ===== Reviews ===== */
.social-section { padding: clamp(48px, 7vw, 80px) 0; background: var(--bg-alt); text-align: center; }
.social-note { color: var(--text-light); font-size: .9rem; margin: 6px 0 30px; }
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.4rem; text-align: left; }
.review-card {
    background: #fff; border-radius: 12px; padding: 1.5rem;
    box-shadow: var(--shadow-sm); border-left: 4px solid var(--gold);
    display: flex; flex-direction: column;
}
.review-stars { color: #f5a623; font-size: 1.05rem; margin-bottom: .7rem; letter-spacing: 2px; }
.review-text { font-size: .93rem; color: #444; font-style: italic; margin-bottom: .8rem; flex: 1; }
.review-author { font-size: .8rem; color: #888; font-weight: 600; }

/* ===== CTA ===== */
.cta-section { padding: clamp(48px, 7vw, 80px) 0; background: var(--navy); text-align: center; }
.cta-section h2 { color: #fff; margin-bottom: 10px; }
.cta-section p { color: rgba(255,255,255,.8); margin-bottom: 24px; }
.btn-cta {
    display: inline-block; padding: 16px 34px; background: var(--gold); color: var(--navy);
    font-size: 1.05rem; font-weight: 600; text-decoration: none; border-radius: var(--radius);
    transition: background .2s, transform .1s;
}
.btn-cta:hover { background: var(--gold-dark); transform: translateY(-2px); }

/* ===== Footer ===== */
.footer { padding: 36px 0; background: var(--navy-dark); color: #fff; }
.footer-content { text-align: center; }
.footer-info p { margin-bottom: 4px; font-size: .88rem; opacity: .92; }
.footer-info a { color: #fff; text-decoration: none; }
.footer-social { margin: 18px 0; }
.footer-social a { color: rgba(255,255,255,.7); text-decoration: none; margin: 0 10px; font-size: .88rem; transition: color .2s; }
.footer-social a:hover { color: #fff; }
.footer-legal { font-size: .75rem; opacity: .6; }
.footer-legal a { color: inherit; }
.eho { border: 1px solid currentColor; border-radius: 2px; padding: 0 3px; font-size: .8em; }

/* ===== Tablets & below ===== */
@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-content { text-align: center; }
    .trust-badges, .hero-proof { justify-content: center; }
    .benefits-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
    .about-content { grid-template-columns: 1fr; text-align: center; }
    .about-image { order: -1; }
    .service-areas { text-align: left; }
}

/* ===== Phones ===== */
@media (max-width: 600px) {
    .header-content { flex-direction: column; gap: 10px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 22px 10px; }
    .form-card { padding: 22px 18px; }
    .headshot-img { width: 160px; height: 160px; }
}

/* ===== Very small phones ===== */
@media (max-width: 380px) {
    .form-row { grid-template-columns: 1fr; }
    .container { padding: 0 14px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; }
}
