/* ============================================================================
   Living Along the Lakeshore  -  design system
   Mobile-first. Lakeshore luxury: warm sand, deep lake teal, brass accent.
   Type: Cormorant Garamond (display) + Inter (UI/body).
   ============================================================================ */

:root {
  --sand:        #fbf6ee;   /* page background */
  --sand-2:      #f3ead9;   /* alt section bg */
  --cream:       #ffffff;   /* cards */
  --ink:         #1c2b30;   /* primary text */
  --muted:       #56666c;   /* secondary text */
  --lake:        #1f4a55;   /* primary brand (deep teal) */
  --lake-2:      #2f6675;   /* hover */
  --lake-soft:   #6f9aa3;   /* light accents */
  --gold:        #b8923f;   /* brass accent */
  --gold-2:      #a07e31;
  --line:        #e4dccd;   /* hairlines */
  --shadow:      0 10px 30px rgba(28, 43, 48, .08);
  --shadow-lg:   0 24px 60px rgba(28, 43, 48, .16);
  --radius:      14px;
  --radius-sm:   8px;
  --wrap:        1180px;
  --font-ui:     'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-display:'Cormorant Garamond', Georgia, 'Times New Roman', serif;
}

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

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

body {
  margin: 0;
  font-family: var(--font-ui);
  color: var(--ink);
  background: var(--sand);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--lake); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--gold); }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; color: var(--ink); margin: 0 0 .5em; letter-spacing: .2px; }
h1 { font-size: clamp(2.1rem, 6vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 4.4vw, 2.6rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.6rem); }
h4 { font-size: 1.15rem; }
p { margin: 0 0 1.1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--lake); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-block; cursor: pointer; border: 0; border-radius: 999px;
  font-family: var(--font-ui); font-weight: 600; font-size: .98rem; line-height: 1;
  padding: 14px 26px; text-align: center; transition: transform .12s ease, background .15s ease, box-shadow .15s ease;
  letter-spacing: .2px; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: var(--gold-2); color: #fff; box-shadow: 0 8px 20px rgba(184,146,63,.3); }
.btn-lake { background: var(--lake); color: #fff; }
.btn-lake:hover { background: var(--lake-2); color: #fff; box-shadow: 0 8px 20px rgba(31,74,85,.28); }
.btn-ghost { background: transparent; color: var(--lake); border: 1.5px solid var(--lake); }
.btn-ghost:hover { background: var(--lake); color: #fff; }
.btn-light { background: #fff; color: var(--lake); }
.btn-light:hover { background: var(--sand-2); color: var(--lake); }
.btn-lg { padding: 17px 34px; font-size: 1.05rem; }

/* ── Announcement bar ────────────────────────────────────────────────── */
.announce { background: var(--lake); color: #eaf2f3; font-size: .86rem; }
.announce-inner { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 20px; flex-wrap: wrap; }
.announce i { color: var(--gold); }
.announce-phone { color: #fff; font-weight: 600; white-space: nowrap; }
.announce-phone:hover { color: var(--gold); }

/* ── Header / nav ────────────────────────────────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(251,246,238,.96); backdrop-filter: saturate(140%) blur(8px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 74px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-logo { height: 58px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--font-display); font-size: 1.18rem; font-weight: 700; color: var(--lake); }
.brand-text small { font-size: .7rem; letter-spacing: .3px; color: var(--muted); white-space: nowrap; }

.nav-toggle { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; background: transparent; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; height: 2px; width: 26px; background: var(--ink); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.primary-nav { display: none; }
.primary-nav.open { display: block; }
.primary-nav ul { list-style: none; margin: 0; padding: 0; }
.primary-nav > ul { display: flex; flex-direction: column; gap: 2px; padding: 8px 0 16px; }
.primary-nav a { display: block; padding: 12px 4px; color: var(--ink); font-weight: 500; border-bottom: 1px solid var(--line); }
.primary-nav a:hover { color: var(--gold); }
.primary-nav .sub { display: none; padding-left: 14px; }
.primary-nav .has-sub.sub-open .sub { display: block; }
.primary-nav .sub a { font-size: .95rem; color: var(--muted); border-bottom: 1px dashed var(--line); }
.primary-nav .has-sub > a i { float: right; transition: transform .2s ease; }
.primary-nav .has-sub.sub-open > a i { transform: rotate(180deg); }
.nav-cta { padding-top: 10px; }
.nav-cta a { border-bottom: 0 !important; text-align: center; }

/* ── Sections / layout ───────────────────────────────────────────────── */
.section { padding: 56px 0; }
.section-sm { padding: 38px 0; }
.section-alt { background: var(--sand-2); }
.section-lake { background: var(--lake); color: #e9f1f2; }
.section-lake h1, .section-lake h2, .section-lake h3 { color: #fff; }
.section-lake p { color: #d6e4e6; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 36px; }
.eyebrow { display: inline-block; font-family: var(--font-ui); font-weight: 600; letter-spacing: 2px; text-transform: uppercase; font-size: .76rem; color: var(--gold); margin-bottom: 12px; }
.lead { font-size: 1.15rem; color: var(--muted); }

/* ── Hero ────────────────────────────────────────────────────────────── */
.hero { position: relative; color: #fff; background: var(--lake); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,42,48,.55), rgba(20,42,48,.78)); z-index: 1; }
.hero-inner { position: relative; z-index: 2; padding: 52px 0 60px; max-width: 760px; }
.hero h1 { color: #fff; margin-bottom: .35em; text-shadow: 0 2px 20px rgba(0,0,0,.25); }
.hero p { color: #eef4f4; font-size: 1.2rem; max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 24px; }
.hero-phone { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 600; font-size: 1.05rem; }
.hero-phone i { color: var(--gold); }

/* page hero (interior pages) */
.page-hero { position: relative; color: #fff; background: #1f4a55 url('https://images.unsplash.com/photo-1761963506420-4090aa6c6933?w=1600&q=72&auto=format&fit=crop') center/cover no-repeat; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,42,48,.5), rgba(20,42,48,.72)); z-index: 1; }
.page-hero .hero-bg { position: absolute; inset: 0; z-index: 0; }
.page-hero-inner { position: relative; z-index: 2; padding: 56px 0; max-width: 760px; }
.page-hero h1 { color: #fff; }
.page-hero p { color: #eef4f4; font-size: 1.15rem; }
.breadcrumb { font-size: .82rem; color: #cfe0e2; margin-bottom: 12px; }
.breadcrumb a { color: #cfe0e2; }
.breadcrumb a:hover { color: #fff; }

/* ── Search bar (wraps the Buying Buddy quick-search widget) ──────────── */
.search-panel { position: relative; z-index: 3; background: var(--cream); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 22px; margin: -44px auto 0; max-width: 960px; }
.search-panel h2 { font-size: 1.4rem; margin-bottom: 14px; text-align: center; }
.idx-slot { min-height: 60px; }

/* ── IDX placeholder (shown until Buying Buddy account id is set) ─────── */
.idx-placeholder { border: 1.5px dashed var(--lake-soft); border-radius: var(--radius-sm); background: var(--sand); padding: 26px; text-align: center; color: var(--muted); }
.idx-placeholder i { font-size: 1.8rem; color: var(--lake-soft); margin-bottom: 8px; }
.idx-placeholder strong { display: block; color: var(--ink); font-family: var(--font-display); font-size: 1.25rem; margin-bottom: 4px; }
.idx-fallback-form { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 16px; max-width: 720px; margin-left: auto; margin-right: auto; }
.idx-fallback-form select, .idx-fallback-form input { width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; font: inherit; color: var(--ink); }

/* ── Cards / grids ───────────────────────────────────────────────────── */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr 1fr; }

.card { display: block; color: inherit; background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); transition: transform .15s ease, box-shadow .15s ease; }
a.card:hover { color: inherit; }
a.card h3 { color: var(--lake); }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card .card-icon { width: 50px; height: 50px; border-radius: 12px; background: var(--sand-2); color: var(--lake); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; margin-bottom: 14px; }
.card h3 { margin-bottom: .35em; }
.card p { color: var(--muted); margin-bottom: 0; font-size: .98rem; }

/* type / area tiles */
.tile { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 200px; display: flex; align-items: flex-end; color: #fff; box-shadow: var(--shadow); background: linear-gradient(135deg, var(--lake), var(--lake-2)); }
.tile .tile-icon { position: absolute; top: 16px; right: 18px; z-index: 2; font-size: 1.5rem; color: rgba(255,255,255,.55); }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,42,48,0) 30%, rgba(20,42,48,.8)); z-index: 1; }
.tile span { position: relative; z-index: 2; padding: 18px 20px; font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; }
.tile:hover { color: #fff; }
.tile:hover img { transform: scale(1.05); }
.tile img { transition: transform .4s ease; }

/* ── Split feature (image + text) ────────────────────────────────────── */
.split { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: center; }
.split.reverse { direction: ltr; }
.split-media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
.split-body h2 { margin-bottom: .4em; }

/* ── Stat strip ──────────────────────────────────────────────────────── */
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.stat { text-align: center; padding: 18px; }
.stat b { display: block; font-family: var(--font-display); font-size: 2.2rem; color: var(--gold); line-height: 1; }
.stat span { font-size: .9rem; color: var(--muted); }
.section-lake .stat span { color: #cde0e2; }

/* ── Steps / numbered list ───────────────────────────────────────────── */
.steps { display: grid; gap: 18px; grid-template-columns: 1fr; counter-reset: step; }
.step { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; position: relative; }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: -14px; left: 22px; width: 34px; height: 34px; border-radius: 50%; background: var(--gold); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; font-family: var(--font-ui); }
.step h4 { margin: 6px 0 .3em; }
.step p { color: var(--muted); margin: 0; font-size: .96rem; }

/* ── Testimonials ────────────────────────────────────────────────────── */
.quote { background: var(--cream); border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.quote .stars { color: var(--gold); margin-bottom: 10px; letter-spacing: 2px; }
.quote blockquote { margin: 0 0 14px; font-size: 1.05rem; color: var(--ink); font-style: italic; }
.quote cite { font-style: normal; font-weight: 600; color: var(--lake); }
.quote cite span { display: block; font-weight: 400; font-size: .86rem; color: var(--muted); }

/* ── FAQ ─────────────────────────────────────────────────────────────── */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 12px; padding: 4px 20px; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "\002B"; font-size: 1.4rem; color: var(--gold); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--muted); margin: 0 0 14px; }

/* ── CTA band ────────────────────────────────────────────────────────── */
.cta-band { background: var(--lake); color: #fff; border-radius: var(--radius); padding: 40px 28px; text-align: center; box-shadow: var(--shadow-lg); }
.cta-band h2 { color: #fff; }
.cta-band p { color: #d6e4e6; max-width: 560px; margin: 0 auto 22px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── Forms ───────────────────────────────────────────────────────────── */
.form { display: grid; gap: 16px; }
.form .row { display: grid; gap: 16px; grid-template-columns: 1fr; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; color: var(--ink); }
.field input, .field select, .field textarea { width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; font: inherit; color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--lake-soft); border-color: var(--lake); }
.field textarea { min-height: 130px; resize: vertical; }
.form-msg { padding: 12px 14px; border-radius: var(--radius-sm); font-size: .95rem; }
.form-ok { background: #e7f3ec; color: #1f6b3d; border: 1px solid #bfe0cc; }
.form-err { background: #fbeaea; color: #9a2c2c; border: 1px solid #efc9c9; }

/* ── Prose (long-form pages) ─────────────────────────────────────────── */
.prose { max-width: 800px; margin: 0 auto; }
.prose h2 { margin-top: 1.4em; }
.prose h3 { margin-top: 1.2em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .5em; }
.content-cols { display: grid; grid-template-columns: 1fr; gap: 36px; }

/* ── Newsletter (footer) ─────────────────────────────────────────────── */
.news-form { margin-top: 4px; }
.news-label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 8px; color: #fff; }
.news-row { display: flex; gap: 8px; flex-wrap: wrap; }
.news-input { flex: 1 1 160px; padding: 12px 14px; border: 1px solid rgba(255,255,255,.25); border-radius: var(--radius-sm); background: rgba(255,255,255,.08); color: #fff; font: inherit; }
.news-input::placeholder { color: #bcd0d2; }

/* ── Footer ──────────────────────────────────────────────────────────── */
.site-footer { background: #16363d; color: #cddee0; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 32px; padding: 52px 20px 36px; }
.footer-logo { height: 64px; width: auto; margin-bottom: 14px; }
.footer-cb { display: inline-block; margin-top: 14px; background: #fff; padding: 8px 14px; border-radius: 8px; }
.footer-cb img { height: 30px; width: auto; }
.footer-brand p { color: #aac4c7; font-size: .95rem; }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; color: #fff; }
.footer-social a:hover { background: var(--gold); color: #fff; }
.footer-col h4 { color: #fff; font-family: var(--font-ui); font-size: .82rem; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 9px; }
.footer-col a { color: #cddee0; font-size: .95rem; }
.footer-col a:hover { color: var(--gold); }
.footer-contact p { color: #cddee0; font-size: .95rem; margin-bottom: 10px; }
.footer-contact i { color: var(--gold); width: 18px; }
.footer-contact a { color: #cddee0; }
.footer-legal { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; }
.footer-legal p { font-size: .8rem; color: #9fbabd; margin-bottom: 8px; }
.idx-disclaimer { font-size: .72rem; color: #82a0a3; line-height: 1.5; }

/* ── Utilities ───────────────────────────────────────────────────────── */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-24 { margin-top: 24px; }
.narrow { max-width: 760px; margin-left: auto; margin-right: auto; }

/* ============================================================================
   Tablet / desktop
   ============================================================================ */
@media (min-width: 700px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .idx-fallback-form { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.4fr; padding: 60px 20px 36px; }
  .split { grid-template-columns: 1fr 1fr; }
  .split.reverse .split-media { order: 2; }
  .content-cols { grid-template-columns: 2fr 1fr; }
}

@media (min-width: 992px) {
  .nav-toggle { display: none; }
  .primary-nav { display: block; }
  .primary-nav > ul { flex-direction: row; align-items: center; gap: 2px; padding: 0; }
  .primary-nav a { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; border-bottom: 0; padding: 10px 13px; font-size: .95rem; }
  .primary-nav > ul > li { position: relative; }
  .primary-nav .has-sub > a i { float: none; margin-left: 0; font-size: .62rem; opacity: .65; position: relative; top: 1px; }
  .primary-nav .sub { display: block; position: absolute; top: 100%; left: 0; min-width: 220px; background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); padding: 8px; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .15s ease, transform .15s ease, visibility .15s; padding-left: 8px; }
  .primary-nav .has-sub:hover .sub { opacity: 1; visibility: visible; transform: translateY(0); }
  .primary-nav .sub a { border-bottom: 0; border-radius: 6px; padding: 9px 12px; }
  .primary-nav .sub a:hover { background: var(--sand-2); }
  .nav-cta { padding-top: 0; margin-left: 6px; }
}

@media (min-width: 1000px) {
  .hero-inner { padding: 90px 0 110px; }
  .section { padding: 72px 0; }
}

/* ============================================================================
   Phone polish (<= 600px)
   ============================================================================ */
@media (max-width: 600px) {
  body { font-size: 16px; }

  /* Announcement bar: drop the long location line, center the phone */
  .announce-inner { justify-content: center; padding: 8px 16px; }
  .announce-inner > span { display: none; }
  .announce-phone { font-size: .95rem; }

  /* Header: tighter brand, hide the small affiliation line on tiny screens */
  .nav-inner { min-height: 62px; }
  .brand { gap: 9px; }
  .brand-logo { height: 42px; }
  .brand-text strong { font-size: 1.02rem; }
  .brand-text small { display: none; }
  .nav-toggle { width: 42px; height: 42px; }

  /* Hero: smaller type, full-width stacked CTAs */
  h1 { font-size: 2rem; }
  .hero p, .page-hero p { font-size: 1.05rem; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 12px; }
  .hero-actions .btn { width: 100%; }
  .hero-phone { justify-content: center; padding-top: 4px; }

  /* Section rhythm */
  .section { padding: 40px 0; }
  .section-sm { padding: 28px 0; }
  .section-head { margin-bottom: 26px; }
  .page-hero-inner { padding: 40px 0; }
  .wrap { padding: 0 16px; }

  /* Search panel sits flush, not floating off-screen */
  .search-panel { margin-top: 18px; padding: 16px; }
  .search-panel h2 { font-size: 1.2rem; }

  /* Cards / tiles / steps a touch tighter */
  .card { padding: 20px; }
  .tile { min-height: 150px; }
  .tile span { font-size: 1.2rem; padding: 14px 16px; }
  .cta-band { padding: 30px 20px; }
  .cta-actions { flex-direction: column; }
  .cta-actions .btn { width: 100%; }

  /* Forms / footer */
  .news-row { flex-direction: column; }
  .news-row .btn { width: 100%; }
  .footer-grid { padding: 40px 16px 28px; gap: 26px; }
  .idx-fallback-form { gap: 10px; }
}

/* Small phones */
@media (max-width: 380px) {
  h1 { font-size: 1.8rem; }
  .brand-text strong { font-size: .95rem; }
}

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