/* Coastal Retreat Group — shared stylesheet */

:root {
  --deep-navy: #0f2e4d;
  --ocean-blue: #2e6ba0;
  --sand: #f2ede1;
  --sand-dark: #cdd6de;
  --gold: #c9982f;
  --white: #ffffff;
  --ink: #22272e;
  --ink-soft: #566172;
  --max-width: 1120px;
  --radius: 10px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
  color: var(--deep-navy);
  line-height: 1.15;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.1rem, 4vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; color: var(--ink-soft); }

a { color: var(--ocean-blue); }

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Disclosure bar */
.disclosure-bar {
  background: var(--deep-navy);
  color: var(--white);
}
.disclosure-bar .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding-top: 8px;
  padding-bottom: 8px;
  font-size: 0.85rem;
}
.disclosure-bar strong { font-weight: 700; }
.disclosure-bar a { color: var(--white); text-decoration: underline; }

/* Header */
.site-header {
  border-bottom: 1px solid var(--sand-dark);
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
  gap: 20px;
}
.brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
}
.brand-name {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.4rem;
  color: var(--deep-navy);
  font-weight: 600;
  letter-spacing: 0.01em;
}
.brand-tag {
  font-size: 0.78rem;
  color: var(--ink-soft);
}

nav.main-nav {
  display: flex;
  gap: 28px;
  align-items: center;
}
nav.main-nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.96rem;
}
nav.main-nav a.active,
nav.main-nav a:hover {
  color: var(--gold);
}
nav.main-nav a.btn {
  background: var(--gold);
  color: var(--white);
  padding: 10px 18px;
  border-radius: 999px;
}
nav.main-nav a.btn:hover {
  background: #a97e26;
  color: var(--white);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--deep-navy);
}

@media (max-width: 760px) {
  nav.main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 24px 24px;
    border-bottom: 1px solid var(--sand-dark);
    display: none;
  }
  nav.main-nav.open { display: flex; }
  .nav-toggle { display: block; }
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--deep-navy), var(--ocean-blue));
  color: var(--white);
  padding: 90px 0 100px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  bottom: -40px;
  left: 0;
  right: 0;
  height: 90px;
  background: var(--white);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}
.hero .container { position: relative; z-index: 1; max-width: 720px; }
.hero h1 { color: var(--white); }
.hero p.lede {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.9);
  max-width: 560px;
}
.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
}
.btn-primary { background: var(--gold); color: var(--white); }
.btn-primary:hover { background: #a97e26; }
.btn-secondary { background: rgba(255,255,255,0.12); color: var(--white); border: 1.5px solid rgba(255,255,255,0.6); }
.btn-secondary:hover { background: rgba(255,255,255,0.22); }

/* Sections */
section { padding: 64px 0; }
section.tight { padding: 40px 0; }
.section-sand { background: var(--sand); }

.intro-text {
  max-width: 700px;
  font-size: 1.08rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
  margin-top: 32px;
}
.card {
  background: var(--white);
  border: 1px solid var(--sand-dark);
  border-radius: var(--radius);
  padding: 28px;
}
.card h3 { margin-bottom: 10px; }
.card p { margin-bottom: 0; }

.cta-band {
  background: var(--sand);
  border-radius: var(--radius);
  padding: 48px;
  text-align: center;
  margin: 0 24px;
}
.cta-band h2 { margin-bottom: 8px; }
.cta-band p { max-width: 520px; margin: 0 auto 24px; }

/* About page */
.about-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 720px) {
  .about-layout { grid-template-columns: 1fr; }
}
.headshot-placeholder {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  background: var(--sand);
  border: 1.5px dashed var(--sand-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.9rem;
  padding: 20px;
}

.credential-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.credential-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--sand-dark);
  color: var(--ink-soft);
}
.credential-list li:last-child { border-bottom: none; }

/* Search page */
.idx-placeholder {
  border: 1.5px dashed var(--sand-dark);
  border-radius: var(--radius);
  background: var(--sand);
  padding: 48px 24px;
  text-align: center;
  color: var(--ink-soft);
}

/* Contact */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
@media (max-width: 760px) {
  .contact-layout { grid-template-columns: 1fr; }
}
.contact-card {
  background: var(--sand);
  border-radius: var(--radius);
  padding: 32px;
}
.contact-card h3 { margin-bottom: 4px; }
.contact-card .role { color: var(--ink-soft); margin-bottom: 20px; }
.contact-line { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }

form.contact-form label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
  margin-top: 16px;
}
form.contact-form input,
form.contact-form select,
form.contact-form textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--sand-dark);
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.96rem;
}
form.contact-form textarea { min-height: 120px; resize: vertical; }
form.contact-form button {
  margin-top: 22px;
  border: none;
  cursor: pointer;
}

/* Service area */
.area-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.area-chip {
  background: var(--sand);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.9rem;
  color: var(--ink);
}

/* Footer */
footer.site-footer {
  background: var(--deep-navy);
  color: rgba(255,255,255,0.85);
  padding: 48px 0 28px;
  margin-top: 40px;
}
footer.site-footer .container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
}
@media (max-width: 640px) {
  footer.site-footer .container { grid-template-columns: 1fr; }
}
footer.site-footer h4 {
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}
footer.site-footer .brand-name { color: var(--white); }
footer.site-footer .brokerage-line {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--white);
  margin: 6px 0 14px;
}
footer.site-footer p, footer.site-footer a { color: rgba(255,255,255,0.8); font-size: 0.9rem; }
footer.site-footer .fine-print {
  border-top: 1px solid rgba(255,255,255,0.18);
  margin-top: 28px;
  padding-top: 18px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
}

/* ============================================================
   Homepage v2 — photo-driven components
   ============================================================ */

/* Buttons: transitions + a navy variant */
.btn, nav.main-nav a.btn { transition: background .2s ease, transform .2s ease, box-shadow .2s ease; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(15,46,77,.18); }
.btn-navy { background: var(--deep-navy); color: var(--white); }
.btn-navy:hover { background: #163f66; }

/* Photo hero */
.hero-photo {
  position: relative;
  min-height: min(82vh, 760px);
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}
.hero-photo .hero-bg {
  position: absolute; inset: 0;
  background-image: url("../images/pro/hero-bimini-bay.jpg");
  background-size: cover;
  background-position: center 40%;
  z-index: -2;
  animation: heroZoom 28s ease-in-out infinite alternate;
}
@keyframes heroZoom { from { transform: scale(1); } to { transform: scale(1.08); } }
@media (prefers-reduced-motion: reduce) { .hero-photo .hero-bg { animation: none; } }
.hero-photo::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(10,30,52,.86) 0%, rgba(10,30,52,.62) 45%, rgba(10,30,52,.18) 100%),
    linear-gradient(180deg, rgba(10,30,52,.15) 0%, rgba(10,30,52,.55) 100%);
}
.hero-photo .container { padding-top: 72px; padding-bottom: 88px; max-width: var(--max-width); }
.hero-inner { max-width: 640px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: #e9d39a; margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 34px; height: 2px; background: var(--gold); }
.hero-photo h1 { color: var(--white); font-size: clamp(2.4rem, 5.2vw, 4rem); margin-bottom: .35em; text-shadow: 0 2px 18px rgba(0,0,0,.25); }
.hero-photo .lede { font-size: 1.18rem; color: rgba(255,255,255,.92); max-width: 540px; }
.hero-trust {
  margin-top: 34px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.28);
  font-size: .85rem; color: rgba(255,255,255,.82); display: flex; flex-wrap: wrap; gap: 8px 26px;
}
.hero-trust strong { color: var(--white); font-weight: 600; }

/* Stats strip */
.stats-strip { background: var(--deep-navy); color: var(--white); padding: 0; }
.stats-strip .container {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}
.stat { padding: 30px 24px; text-align: center; border-right: 1px solid rgba(255,255,255,.12); }
.stat:last-child { border-right: none; }
.stat .num { font-family: 'Fraunces', Georgia, serif; font-size: 2.3rem; line-height: 1; color: #e9d39a; margin-bottom: 8px; }
.stat .label { font-size: .86rem; color: rgba(255,255,255,.8); letter-spacing: .02em; }
@media (max-width: 760px) { .stat { border-right: none; border-bottom: 1px solid rgba(255,255,255,.12); padding: 22px; } .stat:last-child { border-bottom: none; } }

/* Section headers */
.section-head { max-width: 680px; margin-bottom: 36px; }
.section-head .eyebrow { color: var(--gold); }
.section-head .eyebrow::before { background: var(--gold); }
.section-head h2 { margin-bottom: .35em; }
.section-head p { font-size: 1.05rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }

/* Meet Carmen split */
.meet-grid {
  display: grid; grid-template-columns: 380px 1fr; gap: 64px; align-items: center;
}
@media (max-width: 860px) { .meet-grid { grid-template-columns: 1fr; gap: 36px; } }
.meet-photo { position: relative; }
.meet-photo img {
  border-radius: 14px; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center top;
  box-shadow: 0 24px 60px rgba(15,46,77,.22);
}
.meet-photo::before {
  content: ""; position: absolute; inset: 18px -18px -18px 18px;
  border: 2px solid var(--gold); border-radius: 14px; z-index: -1;
}
.meet-photo .badge {
  position: absolute; left: -14px; bottom: 26px; background: var(--white);
  border-radius: 12px; padding: 12px 16px; box-shadow: 0 10px 30px rgba(15,46,77,.18);
  font-size: .82rem; color: var(--ink);
}
.meet-photo .badge strong { display: block; color: var(--deep-navy); font-size: .95rem; }
.meet-copy p { font-size: 1.05rem; }
.meet-copy .signature { font-family: 'Fraunces', Georgia, serif; font-style: italic; color: var(--deep-navy); font-size: 1.15rem; margin: 18px 0 26px; }

/* Photo feature cards */
.feature-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 26px; }
.feature-card {
  position: relative; border-radius: 14px; overflow: hidden; background: var(--white);
  border: 1px solid var(--sand-dark); transition: transform .25s ease, box-shadow .25s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 18px 44px rgba(15,46,77,.16); }
.feature-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .6s ease; }
.feature-card:hover img { transform: scale(1.04); }
.feature-card .body { padding: 22px 24px 26px; }
.feature-card h3 { margin-bottom: 8px; }
.feature-card p { margin: 0; font-size: .97rem; }

/* Featured sales strip (reuses .listing-card from search page) */
.listing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.listing-card { background: var(--white); border: 1.5px solid var(--sand-dark); border-radius: 12px; overflow: hidden; transition: transform .25s ease, box-shadow .25s ease; }
.listing-card:hover { transform: translateY(-4px); box-shadow: 0 18px 44px rgba(15,46,77,.16); }
.listing-card img { width: 100%; height: 210px; object-fit: cover; display: block; }
.listing-card .listing-body { padding: 18px 20px 20px; }
.listing-card .listing-status { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--white); background: var(--gold); padding: 3px 10px; border-radius: 999px; margin-bottom: 10px; }
.listing-card .listing-price { font-family: 'Fraunces', serif; font-size: 1.3rem; color: var(--deep-navy); margin: 0 0 4px; }
.listing-card .listing-address { font-size: .92rem; color: var(--ink); margin: 0 0 6px; }
.listing-card .listing-specs { font-size: .85rem; color: var(--ink-soft); margin: 0; }
.link-arrow { font-weight: 600; text-decoration: none; color: var(--deep-navy); border-bottom: 2px solid var(--gold); padding-bottom: 2px; }
.link-arrow:hover { color: var(--gold); }

/* Lifestyle mosaic */
.mosaic {
  display: grid; gap: 14px;
  grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px;
}
.mosaic figure { margin: 0; position: relative; overflow: hidden; border-radius: 12px; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .7s ease; }
.mosaic figure:hover img { transform: scale(1.05); }
.mosaic figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 16px 14px;
  background: linear-gradient(180deg, rgba(10,30,52,0), rgba(10,30,52,.78));
  color: var(--white); font-size: .86rem; font-weight: 500;
}
.mosaic .span-2 { grid-column: span 2; }
.mosaic .tall { grid-row: span 2; }
@media (max-width: 860px) { .mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; } .mosaic .span-2 { grid-column: span 2; } .mosaic .tall { grid-row: span 1; } }

/* Testimonials */
.quote-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 26px; }
.quote-card { background: var(--white); border-radius: 14px; padding: 34px 28px 26px; position: relative; border: 1px solid var(--sand-dark); }
.quote-card::before {
  content: "\201C"; position: absolute; top: 6px; left: 22px;
  font-family: 'Fraunces', Georgia, serif; font-size: 4.2rem; line-height: 1; color: var(--gold); opacity: .85;
}
.quote-card p.quote { font-family: 'Fraunces', Georgia, serif; font-size: 1.12rem; color: var(--ink); line-height: 1.5; margin: 14px 0 18px; }
.quote-card .who { font-size: .85rem; color: var(--ink-soft); display: flex; align-items: center; gap: 10px; }
.quote-card .who::before { content: ""; width: 22px; height: 2px; background: var(--gold); }

/* Photo CTA band */
.cta-photo {
  position: relative; color: var(--white); text-align: center; overflow: hidden; isolation: isolate;
  padding: 96px 0;
}
.cta-photo .cta-bg { position: absolute; inset: 0; z-index: -2; background: url("../images/pro/bimini-214-aerial.jpg") center/cover no-repeat; }
.cta-photo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10,30,52,.72), rgba(10,30,52,.82)); }
.cta-photo h2 { color: var(--white); font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
.cta-photo p { color: rgba(255,255,255,.88); max-width: 560px; margin: 0 auto 28px; font-size: 1.08rem; }
.cta-photo .hero-buttons { justify-content: center; margin-top: 0; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* Awards & recognition (About) */
.awards-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 34px; }
.award-year { background: var(--white); border: 1px solid var(--sand-dark); border-radius: 14px; padding: 24px 22px; position: relative; }
.award-year.featured { border-color: var(--gold); box-shadow: 0 10px 30px rgba(15,46,77,.08); }
.award-year .year { font-family: 'Fraunces', Georgia, serif; font-size: 2rem; font-weight: 600; color: var(--deep-navy); line-height: 1; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 2px solid var(--gold); }
.award-year ul { list-style: none; margin: 0; padding: 0; }
.award-year li { padding: 10px 0; border-bottom: 1px solid var(--sand); display: flex; gap: 12px; align-items: flex-start; }
.award-icon { flex: 0 0 26px; width: 26px; height: 36px; margin-top: -2px; fill: rgba(201,152,47,.28); stroke: var(--gold); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.award-icon .base { fill: none; stroke: var(--deep-navy); stroke-width: 2; }
.award-year li:last-child { border-bottom: none; padding-bottom: 0; }
.award-year li strong { display: block; color: var(--ink); font-size: .98rem; line-height: 1.3; }
.award-year li span { display: block; color: var(--ink-soft); font-size: .86rem; margin-top: 3px; }
@media (max-width: 960px) { .awards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .awards-grid { grid-template-columns: 1fr; } }


/* Netlify Forms honeypot — must stay hidden from humans */
.hidden-field { display: none !important; }


/* Form validation + anti-spam additions */
/* :user-invalid only styles a field AFTER the visitor has interacted with it,
   so nothing is flagged red on page load. */
form.contact-form input:user-invalid,
form.contact-form textarea:user-invalid {
  border-color: #b4462f;
}
form.contact-form input:user-valid,
form.contact-form textarea:user-valid {
  border-color: #4a8a5e;
}
form.contact-form input:focus,
form.contact-form select:focus,
form.contact-form textarea:focus {
  outline: none;
  border-color: var(--ocean-blue);
  box-shadow: 0 0 0 3px rgba(46,107,160,.15);
}
form.contact-form [data-netlify-recaptcha] { margin-top: 22px; }
.form-note {
  margin-top: 14px;
  font-size: 0.82rem;
  color: var(--ink-soft);
  line-height: 1.5;
}

form.contact-form label .opt { font-weight: 400; color: var(--ink-soft); }
