/* ==========================================================================
   WashingtonCountyFLLandForSale.com — Creek & Pine
   Palette: Pine #1E3A2F · Creek #4A7C6F · Spring #6BA89A
            Sand #E8DFD0 · Bark #8B7355 · White #FAFAF7
   Type: Lora (headings) · Inter (body)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Lora:wght@400;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --pine:      #1E3A2F;
  --pine-deep: #152A22;
  --creek:     #4A7C6F;
  --spring:    #6BA89A;
  --sand:      #E8DFD0;
  --bark:      #8B7355;
  --bark-dark: #6E5A42;
  --body-ink:  #2A3330;
  --card-bg:   #FFFFFF;
  --page-bg:   #FAFAF7;
  --font-head: 'Lora', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --wrap:      960px;
  --wrap-text: 720px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--page-bg);
  color: var(--body-ink);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--creek); }
a:hover { color: var(--pine); }
/* Drop the underline clear of descenders. At the default offset the line is
   broken by the tails of "y"/"g"/"p" (skip-ink), and the surviving stub
   between the two y's in "yyhoop@gmail.com" reads as a stray period. */
a:not(.btn):not(.nav-cta):not(.card-link) {
  text-underline-offset: 0.18em;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--pine);
  line-height: 1.25;
  text-wrap: balance;
}

/* ---- Layout helpers ---- */
.wrap      { max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }
.wrap-text { max-width: var(--wrap-text); margin: 0 auto; padding: 0 1.25rem; }

/* ---- Agent intro (portrait beside copy) ---- */
.agent-intro {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.75rem;
  align-items: start;
  margin-bottom: 1.25rem;
}
.agent-portrait {
  width: 100%;
  height: auto;
  border-radius: 6px;
  display: block;
}
.agent-intro > div > p:first-child { margin-top: 0; }
@media (max-width: 700px) {
  .agent-intro { grid-template-columns: 1fr; gap: 1.1rem; }
  .agent-portrait { max-width: 240px; }
}

/* ---- Image band ---- */
.img-band {
  max-width: var(--wrap);
  margin: 2.25rem auto;
  padding: 0 1.25rem;
}
.img-band img {
  display: block;
  width: 100%;
  aspect-ratio: 5 / 2;      /* reserves space, so no layout shift on load */
  object-fit: cover;
  border-radius: 6px;
}
/* Inside an article the band sits in the text column, not the full grid. */
.img-band-inline {
  max-width: 100%;
  padding: 0;
  margin: 2rem 0;
}
.img-band figcaption {
  margin-top: 0.5rem;
  font-size: 0.82rem;
  color: var(--muted, #5c6b62);
}
@media (max-width: 640px) {
  .img-band img { aspect-ratio: 3 / 2; }
}

/* ---- Header / nav ---- */
.site-header {
  background: var(--pine);
  border-bottom: 3px solid var(--creek);
}
.nav-bar {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0.65rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.brand {
  display: block;
  text-decoration: none;
  line-height: 0;
}
.brand img {
  display: block;
  height: 56px;
  width: auto;
  max-width: 100%;
}
@media (max-width: 640px) {
  .brand img { height: 42px; }
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  list-style: none;
  flex-wrap: wrap;
}
.nav-links a {
  color: var(--page-bg);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  opacity: 0.9;
}
.nav-links a:hover { opacity: 1; color: var(--sand); }
.nav-links a.nav-cta {
  background: var(--creek);
  color: var(--page-bg);
  opacity: 1;
  padding: 0.45rem 1rem;
  font-weight: 600;
}
.nav-links a.nav-cta:hover { background: var(--spring); color: var(--pine); }
.nav-links a[aria-current="page"] { color: var(--sand); opacity: 1; }

/* ---- Mobile menu toggle ---- */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 5px;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--page-bg);
  border-radius: 1px;
  transition: transform 0.25s, opacity 0.25s;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---- Breadcrumbs ---- */
.breadcrumbs {
  font-size: 0.78rem;
  padding: 0.9rem 0 0;
  color: var(--bark);
}
.breadcrumbs a { color: var(--bark); text-decoration: none; }
.breadcrumbs a:hover { color: var(--creek); text-decoration: underline; }
.breadcrumbs span[aria-current] { color: var(--body-ink); }

/* ---- Hero ---- */
.hero {
  background: var(--pine);
  padding: 3.5rem 0 3rem;
  border-bottom: 3px solid var(--creek);
}
.hero .eyebrow { color: var(--spring); }
.hero h1 {
  font-size: clamp(1.9rem, 4.5vw, 2.7rem);
  color: var(--page-bg);
  margin-bottom: 1rem;
}
.hero p.lede {
  font-size: 1.05rem;
  color: var(--sand);
  max-width: 600px;
  margin-bottom: 1.75rem;
  line-height: 1.7;
}

.hero.hero-inner-page { padding: 2.25rem 0 2rem; }
.hero.hero-inner-page h1 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); }

.eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--creek);
  margin-bottom: 0.7rem;
}

/* ---- Buttons ---- */
.btn-group { display: flex; gap: 0.85rem; flex-wrap: wrap; }
.btn {
  display: inline-block;
  padding: 0.72rem 1.45rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  border: none;
}
.btn-primary { background: var(--creek); color: var(--page-bg); }
.btn-primary:hover { background: var(--pine); color: var(--page-bg); }
.btn-outline-light {
  background: transparent;
  color: var(--page-bg);
  border: 1.5px solid var(--bark);
}
.btn-outline-light:hover { border-color: var(--sand); color: var(--sand); }
.btn-outline-dark {
  background: transparent;
  color: var(--creek);
  border: 1.5px solid var(--creek);
}
.btn-outline-dark:hover { background: var(--creek); color: var(--page-bg); }

/* ---- Stat strip ---- */
.stat-strip { background: var(--sand); padding: 1.2rem 0; }
.stat-strip .wrap { display: flex; gap: 2.4rem; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; }
.stat-num {
  font-family: var(--font-head);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--pine);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.stat-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--bark-dark);
  margin-top: 0.2rem;
}

/* ---- Sections ---- */
.section { padding: 3.25rem 0; }
.section-tight { padding: 2.25rem 0; }
.section-alt { padding: 2rem 0; background: var(--sand); }
.section h2 {
  font-size: clamp(1.35rem, 2.6vw, 1.8rem);
  margin-bottom: 1rem;
}
.section h3 { font-size: 1.1rem; margin: 1.75rem 0 0.6rem; }
.section p { max-width: var(--wrap-text); margin-bottom: 1rem; }
.section ul, .section ol {
  max-width: var(--wrap-text);
  margin: 0 0 1rem 1.4rem;
}
.section li { margin-bottom: 0.45rem; }

.section-dark { background: var(--pine); }
.section-dark h2, .section-dark h3 { color: var(--page-bg); }
.section-dark p { color: var(--sand); }
.section-dark .eyebrow { color: var(--spring); }
.section-dark .card { background: var(--page-bg); }
.section-dark .card h3 { color: var(--pine); }
.section-dark .card p { color: var(--bark); }

/* ---- Cards ---- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.2rem;
  margin-top: 1.75rem;
}
.card {
  background: var(--card-bg);
  border-top: 3px solid var(--creek);
  padding: 1.4rem;
  box-shadow: 0 1px 4px rgba(30, 58, 47, 0.08);
}
.card h3 { font-size: 1rem; margin: 0 0 0.5rem; }
.card p { font-size: 0.875rem; color: var(--bark); line-height: 1.6; margin: 0; }
.card a { font-size: 0.85rem; font-weight: 600; text-decoration: none; }
.card a:hover { text-decoration: underline; }
.card .card-link { display: inline-block; margin-top: 0.6rem; }

a.card-link-block {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
a.card-link-block:hover {
  box-shadow: 0 4px 14px rgba(30, 58, 47, 0.16);
  transform: translateY(-2px);
  color: inherit;
}

/* ---- Listings iframe ---- */
.idx-frame-shell {
  background: var(--card-bg);
  border: 1px solid var(--sand);
  padding: 0.5rem;
  margin-top: 1.5rem;
}
.idx-frame-shell iframe {
  width: 100%;
  height: 1100px;
  border: 0;
  display: block;
}
/* The MLS grid carries far more data than body copy, so let it break out of the
   960px reading column and use the monitor. Centred with a 50%/-50% shift so it
   escapes .wrap no matter how wide the parent is; capped at 1760px so it does
   not sprawl on an ultrawide, and 96vw leaves gutters and avoids the scrollbar
   overflow that 100vw causes. */
.idx-frame-shell.idx-wide {
  width: min(96vw, 1760px);
  margin-left: 50%;
  transform: translateX(-50%);
}
.idx-frame-shell.idx-wide iframe {
  height: clamp(900px, 85vh, 1500px);
}
/* On phones the MLS grid stacks into a single column, so it needs vertical room
   rather than viewport-proportional height. Specificity has to match .idx-wide
   or the clamp above wins inside the media query. */
@media (max-width: 640px) {
  .idx-frame-shell.idx-wide { width: auto; margin-left: 0; transform: none; }
  .idx-frame-shell.idx-wide iframe { height: 1400px; }
}
.listing-switch {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}
.listing-switch a {
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.45rem 0.95rem;
  border: 1.5px solid var(--creek);
  color: var(--creek);
}
.listing-switch a:hover { background: var(--creek); color: var(--page-bg); }
.listing-switch a[aria-current="page"] { background: var(--creek); color: var(--page-bg); }

/* ---- FAQ ---- */
.faq-list { max-width: var(--wrap-text); margin-top: 1.25rem; }
.faq-list details {
  background: var(--card-bg);
  border-left: 3px solid var(--creek);
  margin-bottom: 0.6rem;
  padding: 0.9rem 1.1rem;
}
.faq-list summary {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--pine);
  cursor: pointer;
}
.faq-list details p { margin: 0.7rem 0 0; font-size: 0.92rem; }

/* ---- Prose article pages ---- */
.article { padding: 2.5rem 0 3.25rem; }
.article h2 { font-size: 1.45rem; margin: 2rem 0 0.75rem; }
.article h3 { font-size: 1.1rem; margin: 1.5rem 0 0.5rem; }
.article p { margin-bottom: 1rem; }
.article ul, .article ol { margin: 0 0 1rem 1.4rem; }
.article li { margin-bottom: 0.45rem; }
.article .lede-text {
  font-size: 1.08rem;
  color: var(--pine);
  line-height: 1.7;
}

.callout {
  background: var(--card-bg);
  border-left: 3px solid var(--sand);
  padding: 1.1rem 1.3rem;
  margin: 1.5rem 0;
  font-size: 0.92rem;
}
.callout strong { color: var(--pine); }

/* ---- Tables ---- */
.table-scroll { overflow-x: auto; margin: 1.25rem 0; }
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.9rem;
  background: var(--card-bg);
}
th, td {
  text-align: left;
  padding: 0.65rem 0.9rem;
  border-bottom: 1px solid var(--sand);
}
th {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--page-bg);
  background: var(--pine);
}
td { font-variant-numeric: tabular-nums; }

/* ---- CTA band ---- */
.cta-band { background: var(--creek); padding: 2.75rem 0; }
.cta-band .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.75rem;
  flex-wrap: wrap;
}
.cta-band h2 {
  font-size: 1.35rem;
  color: var(--page-bg);
  margin: 0;
}
.cta-band p { color: var(--sand); font-size: 0.88rem; margin: 0.3rem 0 0; }
.cta-band .btn-cta {
  background: var(--page-bg);
  color: var(--creek);
  padding: 0.85rem 1.7rem;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.cta-band .btn-cta:hover { background: var(--sand); color: var(--pine); }

/* ---- Contact form ---- */
.contact-form {
  max-width: 560px;
  margin-top: 1.5rem;
  display: grid;
  gap: 1rem;
}
.form-row { display: grid; gap: 0.3rem; }
.form-row label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--pine);
}
.form-row input,
.form-row select,
.form-row textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.65rem 0.8rem;
  border: 1.5px solid var(--sand);
  background: var(--card-bg);
  color: var(--body-ink);
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: 2px solid var(--creek);
  outline-offset: 1px;
  border-color: var(--creek);
}
.form-disclaimer {
  font-size: 0.78rem;
  color: var(--bark);
  max-width: 560px;
}
.honey-field { position: absolute; left: -9999px; }

/* ---- Phone hero (contact page) ---- */
.phone-hero {
  font-family: var(--font-head);
  font-size: 1.8rem;
  font-weight: 700;
}
.phone-hero a {
  color: var(--creek);
  text-decoration: none;
}
.phone-hero a:hover { color: var(--pine); }

/* ---- Footer ---- */
.site-footer {
  background: var(--pine-deep);
  color: var(--sand);
  padding: 2.75rem 0 0;
  margin-top: 0;
  font-size: 0.85rem;
}
.footer-cols {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 1.25rem 2rem;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2.25rem;
}
.footer-logo {
  display: block;
  height: 44px;
  width: auto;
  max-width: 100%;
  margin-bottom: 0.9rem;
}
.footer-agent { color: var(--page-bg); font-weight: 600; margin-bottom: 0.35rem; }
.footer-contact a { color: var(--sand); text-decoration: none; }
.footer-contact a:hover { color: var(--page-bg); }
.footer-broker {
  margin-top: 1rem;
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--bark);
}
.footer-broker strong { color: var(--sand); }
.site-footer h3 {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--page-bg);
  opacity: 0.7;
  margin-bottom: 0.8rem;
}
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 0.45rem; }
.site-footer li a { color: var(--sand); text-decoration: none; }
.site-footer li a:hover { color: var(--page-bg); text-decoration: underline; }
.footer-bottom {
  border-top: 1px solid rgba(232, 223, 208, 0.2);
  padding: 1.1rem 1.25rem;
  max-width: var(--wrap);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.75rem;
  color: var(--bark);
}
.footer-bottom a { color: var(--bark); text-decoration: none; }
.footer-bottom a:hover { color: var(--sand); }

/* ---- Responsive ---- */
@media (max-width: 760px) {
  .footer-cols { grid-template-columns: 1fr; gap: 1.75rem; }
  .menu-toggle { display: flex; }
  .nav-bar { justify-content: space-between; flex-wrap: wrap; }
  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 0 0;
    order: 3;
  }
  .nav-links.open { display: flex; }
  .nav-links li { border-top: 1px solid rgba(255,255,255,0.1); }
  .nav-links a { display: block; padding: 0.7rem 0; font-size: 0.95rem; opacity: 1; }
  .nav-links a.nav-cta { text-align: center; margin-top: 0.25rem; display: inline-block; }
  .hero { padding: 2.5rem 0 2.25rem; }
  .stat-strip .wrap { gap: 1.5rem; }
  .idx-frame-shell iframe { height: 1400px; }
  .cta-band .wrap { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  a.card-link-block { transition: none; }
}
