/* ==========================================================================
   Florida Senior Realtor — Shared Stylesheet
   Brand colors taken from the "Florida Senior Realtor" logo:
     - Deep navy   #1b3a5c
     - Warm gold   #c79a4b
     - Soft sky    #5a86a8 (from the logo wave)
   Design goals: modern, minimal, trustworthy, senior-friendly.
   Large readable type, strong contrast, generous spacing, simple layout.
   ========================================================================== */

/* ---- Design tokens ------------------------------------------------------- */
:root {
  --navy:        #1b3a5c;
  --navy-deep:   #122a44;
  --navy-soft:   #2c557d;
  --gold:        #c79a4b;
  --gold-dark:   #a87f33;
  --sky:         #5a86a8;
  --cream:       #f7f5ef;
  --cream-deep:  #efeadd;
  --ink:         #1f2933;
  --ink-soft:    #475569;
  --white:       #ffffff;
  --line:        #e3ddcf;
  --shadow-sm:   0 2px 8px rgba(18, 42, 68, 0.07);
  --shadow-md:   0 8px 24px rgba(18, 42, 68, 0.10);
  --shadow-lg:   0 18px 44px rgba(18, 42, 68, 0.16);
  --radius:      16px;
  --radius-lg:   24px;
  --maxw:        1160px;
  --font:        "Source Sans 3", "Segoe UI", -apple-system, BlinkMacSystemFont, Helvetica, Arial, sans-serif;
  --font-head:   "Playfair Display", Georgia, "Times New Roman", serif;
}

/* ---- Reset --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 19px;            /* large, senior-friendly base size */
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
}
img { max-width: 100%; display: block; }
a { color: var(--navy-soft); }
h1, h2, h3 { font-family: var(--font-head); color: var(--navy); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); }
p  { margin: 0 0 1.1em; }

/* ---- Layout helpers ------------------------------------------------------ */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section   { padding: 84px 0; }
.section--tight { padding: 60px 0; }
.section--cream { background: var(--cream); }
.section--cream-deep { background: var(--cream-deep); }
.section--navy  { background: var(--navy); color: #e8eef4; }
.section--navy h1, .section--navy h2, .section--navy h3 { color: var(--white); }
/* Light, high-contrast body text on the navy sections */
.section--navy .lead,
.section--navy p { color: #dbe4ee; }
.center { text-align: center; }
.lead { font-size: 1.18rem; color: var(--ink-soft); max-width: 720px; }
.center .lead { margin-left: auto; margin-right: auto; }
.eyebrow {
  display: inline-block;
  font-family: var(--font);
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: .82rem;
  color: var(--gold-dark);
  margin-bottom: 14px;
}
.section--navy .eyebrow { color: var(--gold); }

/* ---- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font);
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  padding: 16px 30px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  line-height: 1.1;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.btn--primary { background: var(--gold); color: var(--navy-deep); box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--gold-dark); color: var(--white); box-shadow: var(--shadow-md); }
.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: var(--navy-deep); }
.btn--outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: var(--white); }
.btn--ghost-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,.6); }
.btn--ghost-light:hover { background: var(--white); color: var(--navy); }
.btn--lg { font-size: 1.12rem; padding: 18px 36px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; }
.center .btn-row { justify-content: center; }

/* ---- Header / navigation ------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 24px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 64px; width: auto; }
.brand-fallback {
  display: flex; flex-direction: column; line-height: 1.1;
  font-family: var(--font-head); color: var(--navy); font-weight: 700;
}
.brand-fallback span:first-child { font-size: 1.35rem; }
.brand-fallback span:last-child {
  font-family: var(--font); font-size: .72rem; letter-spacing: .22em;
  text-transform: uppercase; color: var(--gold-dark); font-weight: 700;
}
.nav { display: flex; align-items: center; gap: 30px; }
.nav-links { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  text-decoration: none;
  color: var(--navy);
  font-weight: 600;
  font-size: 1.02rem;
  padding: 6px 2px;
  border-bottom: 3px solid transparent;
}
.nav-links a:hover { border-bottom-color: var(--gold); }
.nav-links a[aria-current="page"] { border-bottom-color: var(--gold); color: var(--navy-deep); }
.header-actions { display: flex; align-items: center; gap: 18px; }
.header-phone {
  text-decoration: none;
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
}
.header-phone:hover { color: var(--gold-dark); }
.header-phone .ico { color: var(--gold-dark); }
.nav-toggle {
  display: none;
  background: var(--navy);
  border: none;
  border-radius: 10px;
  width: 50px;
  height: 50px;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block; position: relative;
  width: 24px; height: 3px; border-radius: 2px;
  background: var(--white); margin: 0 auto;
  content: "";
}
.nav-toggle span::before { position: absolute; top: -8px; }
.nav-toggle span::after  { position: absolute; top: 8px; }

/* ---- Hero ---------------------------------------------------------------- */
.hero { background: var(--cream); border-bottom: 1px solid var(--line); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
  padding: 76px 0;
}
.hero-content h1 { margin-bottom: .35em; }
.hero-content .lead { margin-bottom: 1.5em; }
.hero-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 5;
}
/* Anchor the hero headshot near the top so her head is never cropped */
.hero-photo .img-slot img { object-position: center top; }
.page-hero { background: var(--navy); color: #e8eef4; padding: 70px 0; }
.page-hero h1 { color: var(--white); }
.page-hero .lead { color: #cdd9e6; }

/* ---- Image placeholder system ------------------------------------------- */
/* Each image slot shows a styled placeholder until the real photo is added.
   Drop the matching file into /images and it will display automatically. */
.img-slot {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 220px;
  background:
    linear-gradient(135deg, rgba(199,154,75,.16), rgba(27,58,92,.18)),
    var(--cream-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.img-slot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;            /* a loaded photo covers the placeholder label */
}
.img-slot__label {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--navy);
  font-weight: 600;
  font-size: .95rem;
  padding: 20px;
  max-width: 90%;
}
.img-slot__label .ico { font-size: 2rem; display: block; margin-bottom: 8px; }
.img-slot__label small { display: block; color: var(--ink-soft); font-weight: 400; font-size: .8rem; margin-top: 6px; }

/* ---- Trust indicator bar ------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 8px;
}
.stat {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 18px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.stat__num { font-family: var(--font-head); font-size: 1.9rem; color: var(--gold-dark); font-weight: 700; }
.stat__label { font-size: .95rem; color: var(--ink-soft); font-weight: 600; }

/* ---- Card grids ---------------------------------------------------------- */
.grid { display: grid; gap: 26px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card__icon {
  width: 58px; height: 58px;
  border-radius: 14px;
  background: var(--cream-deep);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 18px;
}
.card h3 { margin-bottom: .35em; }
.card p { margin-bottom: 0; color: var(--ink-soft); font-size: 1.02rem; }

/* ---- Split content section ---------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.split--reverse .split__media { order: 2; }
.split__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 5 / 4;
}
.checklist { list-style: none; margin: 0 0 1.5em; padding: 0; }
.checklist li {
  position: relative;
  padding-left: 38px;
  margin-bottom: 14px;
  font-size: 1.05rem;
}
.checklist li::before {
  content: "✓";
  position: absolute; left: 0; top: -1px;
  width: 26px; height: 26px;
  background: var(--gold);
  color: var(--navy-deep);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: .9rem;
}

/* ---- Areas served chips -------------------------------------------------- */
.area-chips { display: flex; flex-wrap: wrap; gap: 12px; }
.area-chip {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 600;
  color: var(--navy);
  box-shadow: var(--shadow-sm);
}
.section--navy .area-chip { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.2); color: #e8eef4; }

/* ---- Area grid (listings) ----------------------------------------------- */
.area-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.area-card {
  display: block;
  text-decoration: none;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
  font-weight: 700;
  color: var(--navy);
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.area-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--gold); }
.area-card .ico { display: block; font-size: 1.5rem; margin-bottom: 6px; }
.area-card small { display: block; font-weight: 400; color: var(--ink-soft); font-size: .82rem; }

/* ---- Listing / community / blog cards ----------------------------------- */
.media-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform .15s ease, box-shadow .15s ease;
}
.media-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.media-card__img { aspect-ratio: 3 / 2; }
.media-card__body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.media-card__body h3 { margin-bottom: .25em; }
.tag {
  display: inline-block;
  align-self: flex-start;
  background: var(--cream-deep);
  color: var(--gold-dark);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.media-card__meta {
  display: flex; flex-wrap: wrap; gap: 14px;
  color: var(--ink-soft); font-size: .95rem; font-weight: 600;
  margin: 4px 0 14px;
}
.media-card__price { font-family: var(--font-head); font-size: 1.3rem; color: var(--navy); font-weight: 700; }
.media-card p { color: var(--ink-soft); font-size: 1rem; }
.media-card__link {
  margin-top: auto;
  font-weight: 700;
  color: var(--navy-soft);
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
}
.media-card__link:hover { color: var(--gold-dark); }

/* ---- Notes / disclaimers ------------------------------------------------- */
.note {
  background: var(--cream);
  border-left: 4px solid var(--gold);
  border-radius: 10px;
  padding: 20px 24px;
  font-size: .98rem;
  color: var(--ink-soft);
}
.note strong { color: var(--navy); }
.idx-placeholder {
  border: 2px dashed var(--sky);
  border-radius: var(--radius);
  background: var(--cream);
  padding: 48px 24px;
  text-align: center;
  color: var(--navy-soft);
}
.idx-placeholder .ico { font-size: 2.4rem; display: block; margin-bottom: 10px; }

/* ---- CTA band ------------------------------------------------------------ */
.cta-band {
  background: linear-gradient(135deg, var(--navy), var(--navy-deep));
  color: var(--white);
  text-align: center;
  border-radius: var(--radius-lg);
  padding: 64px 32px;
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: #cdd9e6; max-width: 640px; margin: 0 auto 1.6em; font-size: 1.12rem; }

/* ---- Contact layout ------------------------------------------------------ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 48px;
  align-items: start;
}
.info-list { list-style: none; margin: 0; padding: 0; }
.info-list li { display: flex; gap: 16px; margin-bottom: 24px; align-items: flex-start; }
.info-list .ico {
  flex: none;
  width: 50px; height: 50px;
  background: var(--cream-deep);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
}
.info-list strong { display: block; color: var(--navy); font-size: 1.05rem; }
.info-list a { color: var(--navy-soft); text-decoration: none; word-break: break-word; }
.info-list a:hover { color: var(--gold-dark); }

.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
}
.field { margin-bottom: 22px; }
.field label {
  display: block;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
  font-size: 1.02rem;
}
.field .req { color: var(--gold-dark); }
.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--font);
  font-size: 1.05rem;
  padding: 14px 16px;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: var(--cream);
  color: var(--ink);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--white);
}
.field textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: .9rem; color: var(--ink-soft); margin-top: 4px; }
.form-success {
  display: none;
  background: #e7f3ea;
  border: 1px solid #9cc7a8;
  color: #1f5b34;
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 20px;
  font-weight: 600;
}

/* ---- Footer -------------------------------------------------------------- */
.site-footer {
  background: var(--navy-deep);
  color: #c2cedb;
  padding: 60px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.2fr;
  gap: 44px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer-brand img {
  height: 58px; width: auto; margin-bottom: 18px;
  background: #fff; padding: 12px 18px; border-radius: 12px;
}
.footer-brand .brand-fallback span:first-child { color: var(--white); }
.footer-grid h4 {
  color: var(--white);
  font-family: var(--font);
  font-size: 1.05rem;
  letter-spacing: .04em;
  margin: 0 0 16px;
}
.footer-grid p { color: #aab8c7; font-size: .98rem; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: #c2cedb; text-decoration: none; }
.footer-links a:hover { color: var(--gold); }
.footer-contact a { color: #c2cedb; text-decoration: none; }
.footer-contact a:hover { color: var(--gold); }
.footer-contact div { margin-bottom: 10px; }
.disclaimer {
  font-size: .82rem;
  color: #8d9aac;
  padding-top: 24px;
  line-height: 1.6;
}
.disclaimer p { color: #8d9aac; margin-bottom: .8em; }
.copyright { font-size: .85rem; color: #8d9aac; margin-top: 8px; }

/* ---- Skip link / accessibility ------------------------------------------ */
.skip-link {
  position: absolute;
  left: -999px;
  background: var(--gold);
  color: var(--navy-deep);
  padding: 12px 20px;
  font-weight: 700;
  border-radius: 0 0 8px 0;
  z-index: 200;
}
.skip-link:focus { left: 0; top: 0; }
a:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* ---- Responsive ---------------------------------------------------------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; padding: 52px 0; }
  .hero-photo { aspect-ratio: 4 / 5; max-width: 380px; margin: 0 auto; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split--reverse .split__media { order: 0; }
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .area-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }

  /* Mobile navigation */
  .nav-toggle { display: block; }
  .nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 24px 24px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav-links { flex-direction: column; gap: 0; }
  .nav-links li { border-bottom: 1px solid var(--line); }
  .nav-links a { display: block; padding: 14px 4px; font-size: 1.1rem; border-bottom: none; }
  .nav .btn { margin-top: 16px; }
}

@media (max-width: 620px) {
  body { font-size: 18px; }
  .section { padding: 60px 0; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .area-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-card { padding: 28px 22px; }
  .cta-band { padding: 48px 22px; }
  .btn { width: 100%; }
  .btn-row { flex-direction: column; }
  .header-phone span.label { display: none; }
}
