/* ============================================================
   Easy Sell Realty — Main Stylesheet
   ============================================================ */

:root {
  --navy:       #1a2438;
  --navy-mid:   #243050;
  --gold:       #c9a84c;
  --gold-light: #e8c97a;
  --gold-pale:  #f5edd8;
  --cream:      #faf7f2;
  --white:      #ffffff;
  --gray-light: #f0ece4;
  --gray-mid:   #a89f90;
  --gray-dark:  #5a5248;
  --text:       #1a1a1a;
  --serif:      'Cormorant Garamond', Georgia, serif;
  --sans:       'DM Sans', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); color: var(--text); background: var(--cream); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

/* ── NAVIGATION ─────────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 48px; height: 72px;
  background: rgba(26,36,56,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201,168,76,0.2);
  transition: border-color 0.3s;
}
.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-logo-mark {
  width: 36px; height: 36px; background: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 18px; font-weight: 600;
  color: var(--navy); letter-spacing: -0.5px;
}
.nav-logo-text { font-family: var(--serif); font-size: 18px; font-weight: 400; color: var(--white); letter-spacing: 0.5px; line-height: 1; }
.nav-logo-text span { display: block; font-size: 10px; font-family: var(--sans); font-weight: 300; color: var(--gold); letter-spacing: 2px; text-transform: uppercase; margin-top: 2px; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { font-family: var(--sans); font-size: 13px; font-weight: 400; color: rgba(255,255,255,0.75); text-decoration: none; letter-spacing: 0.5px; transition: color 0.2s; }
.nav-links a:hover { color: var(--gold); }
.nav-cta { background: transparent !important; border: 1px solid var(--gold); color: var(--gold) !important; padding: 8px 20px; font-size: 12px !important; letter-spacing: 1px; text-transform: uppercase; transition: all 0.2s !important; }
.nav-cta:hover { background: var(--gold) !important; color: var(--navy) !important; }
.nav-hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-hamburger span { display: block; width: 24px; height: 2px; background: var(--white); transition: all 0.2s; }

/* ── HERO ────────────────────────────────────────────────────── */
.hero { min-height: 100vh; background: var(--navy); display: grid; grid-template-columns: 1fr 1fr; position: relative; overflow: hidden; }
.hero-left { display: flex; flex-direction: column; justify-content: center; padding: 120px 64px 80px; position: relative; z-index: 2; }
.hero-eyebrow { font-family: var(--sans); font-size: 11px; font-weight: 500; letter-spacing: 3px; text-transform: uppercase; color: var(--gold); margin-bottom: 24px; opacity: 0; animation: fadeUp 0.8s 0.2s forwards; }
.hero-title { font-family: var(--serif); font-weight: 300; font-size: clamp(48px, 5vw, 72px); line-height: 1.05; color: var(--white); margin-bottom: 28px; opacity: 0; animation: fadeUp 0.8s 0.35s forwards; }
.hero-title em { font-style: italic; color: var(--gold-light); }
.hero-sub { font-family: var(--sans); font-size: 15px; font-weight: 300; line-height: 1.7; color: rgba(255,255,255,0.65); max-width: 400px; margin-bottom: 44px; opacity: 0; animation: fadeUp 0.8s 0.5s forwards; }
.hero-actions { display: flex; gap: 16px; align-items: center; opacity: 0; animation: fadeUp 0.8s 0.65s forwards; }
.hero-stats { display: flex; gap: 40px; margin-top: 64px; padding-top: 40px; border-top: 1px solid rgba(255,255,255,0.1); opacity: 0; animation: fadeUp 0.8s 0.8s forwards; }
.hero-stat-num { font-family: var(--serif); font-size: 36px; font-weight: 300; color: var(--gold-light); line-height: 1; }
.hero-stat-label { font-family: var(--sans); font-size: 11px; font-weight: 300; color: rgba(255,255,255,0.5); letter-spacing: 1px; text-transform: uppercase; margin-top: 4px; }
.hero-right { position: relative; overflow: hidden; }
.hero-right::before { content: ''; position: absolute; inset: 0; background: linear-gradient(to right, var(--navy) 0%, transparent 30%); z-index: 1; }
.hero-right img { width: 100%; height: 100%; object-fit: cover; opacity: 0.5; }
.hero-img-wrap { width: 100%; height: 100%; }
.hero-img-wrap img { width: 100%; height: 100%; object-fit: cover; opacity: 0.5; }
.hero-img-placeholder { width: 100%; height: 100%; background: linear-gradient(135deg,#243050 0%,#1a2438 40%,#0d1826 100%); display: flex; align-items: center; justify-content: center; }
.hero-pattern { position: absolute; inset: 0; background-image: linear-gradient(rgba(201,168,76,0.06) 1px,transparent 1px), linear-gradient(90deg,rgba(201,168,76,0.06) 1px,transparent 1px); background-size: 48px 48px; }
.hero-address-card { position: absolute; bottom: 48px; right: 48px; z-index: 2; background: rgba(255,255,255,0.06); border: 1px solid rgba(201,168,76,0.25); backdrop-filter: blur(16px); padding: 24px 28px; min-width: 220px; opacity: 0; animation: fadeUp 0.8s 1s forwards; }
.hero-address-label { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.hero-address-val { font-family: var(--serif); font-size: 22px; color: var(--white); line-height: 1.2; }
.hero-address-sub { font-size: 12px; color: rgba(255,255,255,0.5); margin-top: 4px; }

/* ── SEARCH BAR ─────────────────────────────────────────────── */
.search-section { background: var(--white); padding: 0 48px; border-bottom: 1px solid var(--gray-light); }
.search-bar { display: flex; align-items: stretch; max-width: 900px; margin: 0 auto; transform: translateY(-28px); box-shadow: 0 20px 60px rgba(26,36,56,0.15); }
.search-field { flex: 1; display: flex; flex-direction: column; padding: 18px 24px; background: var(--white); border-right: 1px solid var(--gray-light); cursor: pointer; }
.search-field:last-of-type { border-right: none; }
.search-field-label { font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gray-mid); margin-bottom: 4px; }
.search-field-val { font-size: 14px; color: var(--text); }
.search-btn { background: var(--navy); color: var(--white); padding: 0 36px; font-family: var(--sans); font-size: 13px; font-weight: 500; letter-spacing: 0.5px; border: none; cursor: pointer; text-transform: uppercase; transition: background 0.2s; white-space: nowrap; text-decoration: none; display: flex; align-items: center; gap: 8px; }
.search-btn:hover { background: var(--gold); color: var(--navy); }
.search-btn svg { width: 16px; height: 16px; }

/* ── BUTTONS ─────────────────────────────────────────────────── */
.btn-primary { background: var(--gold); color: var(--navy); padding: 14px 32px; font-family: var(--sans); font-size: 13px; font-weight: 500; letter-spacing: 0.5px; text-decoration: none; display: inline-block; transition: all 0.25s; }
.btn-primary:hover { background: var(--gold-light); transform: translateY(-1px); }
.btn-outline { border: 1px solid rgba(255,255,255,0.3); color: rgba(255,255,255,0.8); padding: 14px 32px; font-family: var(--sans); font-size: 13px; font-weight: 400; letter-spacing: 0.5px; text-decoration: none; display: inline-block; transition: all 0.25s; }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-navy { background: var(--navy); color: var(--gold); padding: 16px 40px; font-family: var(--sans); font-size: 13px; font-weight: 500; letter-spacing: 1px; text-transform: uppercase; text-decoration: none; display: inline-block; transition: all 0.25s; margin: 0 8px; }
.btn-navy:hover { background: var(--navy-mid); transform: translateY(-2px); }
.btn-outline-navy { border: 2px solid var(--navy); color: var(--navy); padding: 16px 40px; font-family: var(--sans); font-size: 13px; font-weight: 500; letter-spacing: 1px; text-transform: uppercase; text-decoration: none; display: inline-block; transition: all 0.25s; margin: 0 8px; }
.btn-outline-navy:hover { background: var(--navy); color: var(--gold); }

/* ── SECTION BASE ────────────────────────────────────────────── */
section { padding: 96px 48px; }
.section-eyebrow { font-family: var(--sans); font-size: 11px; font-weight: 500; letter-spacing: 3px; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.section-title { font-family: var(--serif); font-weight: 300; font-size: clamp(36px,4vw,52px); line-height: 1.1; color: var(--navy); margin-bottom: 20px; }
.section-title em { font-style: italic; }
.section-sub { font-size: 15px; font-weight: 300; line-height: 1.7; color: var(--gray-dark); max-width: 520px; }

/* ── SERVICES ────────────────────────────────────────────────── */
.services { background: var(--cream); }
.services-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 2px; margin-top: 56px; background: var(--gray-light); }
.service-card { background: var(--white); padding: 48px 36px; transition: all 0.3s; position: relative; overflow: hidden; }
.service-card::before { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: var(--gold); transform: scaleX(0); transition: transform 0.3s; }
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover { transform: translateY(-4px); box-shadow: 0 24px 48px rgba(26,36,56,0.1); }
.service-num { font-family: var(--serif); font-size: 56px; font-weight: 300; color: var(--gold-pale); line-height: 1; margin-bottom: 20px; }
.service-title { font-family: var(--serif); font-size: 24px; font-weight: 400; color: var(--navy); margin-bottom: 12px; line-height: 1.2; }
.service-desc { font-size: 14px; font-weight: 300; line-height: 1.7; color: var(--gray-dark); }
.service-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 20px; font-size: 12px; font-weight: 500; letter-spacing: 1px; text-transform: uppercase; color: var(--gold); text-decoration: none; transition: gap 0.2s; }
.service-link:hover { gap: 10px; }

/* ── WHY US ──────────────────────────────────────────────────── */
.why { background: var(--navy); }
.why .section-title { color: var(--white); }
.why .section-sub { color: rgba(255,255,255,0.6); }
.why-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 1px; margin-top: 56px; background: rgba(255,255,255,0.06); }
.why-item { background: var(--navy); padding: 44px 40px; border: 1px solid rgba(201,168,76,0.1); transition: border-color 0.3s; }
.why-item:hover { border-color: rgba(201,168,76,0.35); }
.why-icon { width: 40px; height: 40px; border: 1px solid rgba(201,168,76,0.3); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.why-icon svg { width: 18px; height: 18px; stroke: var(--gold); fill: none; stroke-width: 1.5; }
.why-title { font-family: var(--serif); font-size: 20px; font-weight: 400; color: var(--white); margin-bottom: 10px; }
.why-desc { font-size: 14px; font-weight: 300; line-height: 1.7; color: rgba(255,255,255,0.55); }

/* ── LISTINGS ────────────────────────────────────────────────── */
.listings { background: var(--cream); }
.listings-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 48px; }
.listings-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.listing-card { background: var(--white); overflow: hidden; transition: transform 0.3s, box-shadow 0.3s; text-decoration: none; color: inherit; display: block; }
.listing-card:hover { transform: translateY(-6px); box-shadow: 0 32px 64px rgba(26,36,56,0.12); }
.listing-img { height: 220px; position: relative; overflow: hidden; }
.listing-img-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.lp-1 { background: linear-gradient(135deg,#2d4a6b 0%,#1a2c40 100%); }
.lp-2 { background: linear-gradient(135deg,#3d5a3e 0%,#243528 100%); }
.lp-3 { background: linear-gradient(135deg,#5a3d28 0%,#382516 100%); }
.listing-badge { position: absolute; top: 16px; left: 16px; background: var(--gold); color: var(--navy); font-size: 10px; font-weight: 500; letter-spacing: 1.5px; text-transform: uppercase; padding: 5px 12px; }
.listing-body { padding: 24px; }
.listing-price { font-family: var(--serif); font-size: 26px; font-weight: 400; color: var(--navy); margin-bottom: 4px; }
.listing-address { font-size: 13px; color: var(--gray-dark); margin-bottom: 16px; }
.listing-details { display: flex; gap: 16px; padding-top: 16px; border-top: 1px solid var(--gray-light); }
.listing-detail { font-size: 12px; color: var(--gray-mid); }
.listing-detail strong { display: block; font-size: 14px; font-weight: 500; color: var(--text); }

/* ── MARKET ──────────────────────────────────────────────────── */
.market { background: var(--white); }
.market-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.market-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.market-stat { padding: 28px; border-left: 2px solid var(--gold); }
.market-stat-num { font-family: var(--serif); font-size: 40px; font-weight: 300; color: var(--navy); line-height: 1; }
.market-stat-label { font-size: 12px; color: var(--gray-mid); margin-top: 4px; letter-spacing: 0.5px; }
.market-stat-change { display: inline-block; font-size: 11px; font-weight: 500; margin-top: 6px; padding: 2px 8px; background: #e8f5e9; color: #2e7d32; }

/* ── AI SECTION ──────────────────────────────────────────────── */
.ai-section { background: var(--gold-pale); border-top: 1px solid rgba(201,168,76,0.3); border-bottom: 1px solid rgba(201,168,76,0.3); }
.ai-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.ai-features { display: flex; flex-direction: column; gap: 24px; }
.ai-feature { display: flex; gap: 20px; align-items: flex-start; padding: 24px; background: rgba(255,255,255,0.6); border: 1px solid rgba(201,168,76,0.2); }
.ai-feature-icon { width: 36px; height: 36px; flex-shrink: 0; background: var(--navy); display: flex; align-items: center; justify-content: center; }
.ai-feature-icon svg { width: 16px; height: 16px; stroke: var(--gold); fill: none; stroke-width: 1.5; }
.ai-feature-title { font-size: 14px; font-weight: 500; color: var(--navy); margin-bottom: 4px; }
.ai-feature-desc { font-size: 13px; font-weight: 300; line-height: 1.6; color: var(--gray-dark); }

/* ── TESTIMONIALS ────────────────────────────────────────────── */
.testimonials { background: var(--cream); }
.testimonials-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; margin-top: 56px; }
.testimonial-card { background: var(--white); padding: 36px; position: relative; }
.testimonial-card::before { content: '\201C'; font-family: var(--serif); font-size: 80px; font-weight: 300; color: var(--gold-pale); position: absolute; top: 12px; left: 24px; line-height: 1; }
.testimonial-text { font-family: var(--serif); font-size: 16px; font-weight: 300; font-style: italic; line-height: 1.7; color: var(--navy); margin-bottom: 24px; position: relative; z-index: 1; padding-top: 20px; }
.testimonial-author { font-size: 12px; font-weight: 500; letter-spacing: 1px; text-transform: uppercase; color: var(--gray-mid); }
.testimonial-stars { color: var(--gold); font-size: 13px; margin-bottom: 4px; }

/* ── ABOUT ───────────────────────────────────────────────────── */
.about { background: var(--navy); }
.about-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 96px; align-items: center; }
.about .section-title { color: var(--white); }
.about .section-sub { color: rgba(255,255,255,0.6); margin-bottom: 32px; }
.credentials { display: flex; flex-direction: column; gap: 12px; }
.credential { display: flex; align-items: center; gap: 12px; font-size: 13px; color: rgba(255,255,255,0.7); }
.credential-dot { width: 6px; height: 6px; background: var(--gold); flex-shrink: 0; }
.about-card { background: rgba(255,255,255,0.04); border: 1px solid rgba(201,168,76,0.2); padding: 48px; }
.about-card-title { font-family: var(--serif); font-size: 32px; font-weight: 300; font-style: italic; color: var(--gold-light); margin-bottom: 16px; line-height: 1.2; }
.about-card-body { font-size: 14px; font-weight: 300; line-height: 1.8; color: rgba(255,255,255,0.65); }

/* ── CTA BANNER ──────────────────────────────────────────────── */
.cta-banner { background: var(--gold); padding: 72px 48px; text-align: center; }
.cta-banner-title { font-family: var(--serif); font-size: clamp(32px,4vw,52px); font-weight: 300; color: var(--navy); margin-bottom: 16px; line-height: 1.1; }
.cta-banner-title em { font-style: italic; }
.cta-banner-sub { font-size: 15px; font-weight: 300; color: rgba(26,36,56,0.7); margin-bottom: 36px; }

/* ── CONTACT ─────────────────────────────────────────────────── */
.contact { background: var(--white); }
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--gray-mid); }
.required { color: var(--gold); }
.form-input, .form-select, .form-textarea { border: 1px solid var(--gray-light); background: var(--cream); padding: 12px 16px; font-family: var(--sans); font-size: 14px; color: var(--text); outline: none; transition: border-color 0.2s; width: 100%; }
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--gold); }
.form-textarea { resize: vertical; min-height: 120px; }
.form-message { font-size: 13px; padding: 10px 0; min-height: 20px; }
.form-message.success { color: #2e7d32; }
.form-message.error   { color: #c62828; }
.form-submit { background: var(--navy); color: var(--white); padding: 14px 32px; border: none; cursor: pointer; font-family: var(--sans); font-size: 13px; font-weight: 500; letter-spacing: 0.5px; text-transform: uppercase; transition: all 0.25s; align-self: flex-start; }
.form-submit:hover { background: var(--gold); color: var(--navy); }
.form-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.contact-info { display: flex; flex-direction: column; gap: 32px; }
.contact-item-label { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.contact-item-val { font-family: var(--serif); font-size: 20px; color: var(--navy); }
.contact-item-sub { font-size: 13px; color: var(--gray-mid); margin-top: 2px; }

/* ── FOOTER ──────────────────────────────────────────────────── */
footer { background: var(--navy); padding: 48px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 24px; border-top: 1px solid rgba(201,168,76,0.15); }
.footer-logo { font-family: var(--serif); font-size: 20px; color: var(--white); }
.footer-logo span { color: var(--gold); }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 12px; color: rgba(255,255,255,0.4); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--gold); }
.footer-legal { font-size: 11px; color: rgba(255,255,255,0.3); }

/* ── ANIMATIONS ──────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 900px) {
  nav { padding: 0 24px; }
  .nav-links { display: none; position: absolute; top: 72px; left: 0; right: 0; background: rgba(26,36,56,0.98); flex-direction: column; align-items: flex-start; padding: 24px; gap: 20px; }
  .nav-links.open { display: flex; }
  .nav-hamburger { display: flex; }
  .hero { grid-template-columns: 1fr; }
  .hero-right { display: none; }
  .hero-left { padding: 100px 32px 60px; }
  section { padding: 64px 24px; }
  .services-grid, .why-grid, .listings-grid, .testimonials-grid { grid-template-columns: 1fr; }
  .market-layout, .ai-layout, .about-layout, .contact-layout { grid-template-columns: 1fr; gap: 40px; }
  .search-bar { flex-direction: column; transform: none; margin-top: 24px; }
  .search-field { border-right: none; border-bottom: 1px solid var(--gray-light); }
  .listings-header { flex-direction: column; align-items: flex-start; gap: 16px; }
  .form-row { grid-template-columns: 1fr; }
  footer { flex-direction: column; text-align: center; padding: 36px 24px; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
}
