/* =========================================================
   Selling Sunshine Group — Cheryl Gray | Oceans Luxury Realty
   Design system: warm coastal luxury
   ========================================================= */

:root {
  /* Brand palette — Sunshine & Turquoise */
  --gold:        #FFC94B;   /* sunshine gold */
  --gold-light:  #FFE9A8;   /* soft sunshine highlight */
  --gold-deep:   #E89A3C;   /* hover / depth */
  --ocean:       #14B8C4;   /* bright turquoise */
  --ocean-deep:  #0E6E78;   /* deep turquoise (headers, footer) */
  --ocean-light: #7DE0E6;   /* light turquoise accent */
  --coral:       #FF6F59;   /* coral accent */
  --sand:        #FCE9C8;   /* sandy beige */
  --sand-light:  #FFF8EC;   /* pale sand section bg */
  --white:       #FFFDF8;   /* soft white */
  --ink:         #2B2B28;   /* warm charcoal text */
  --ink-soft:    #5B5A54;   /* secondary text */
  --line:        #F0E2C4;   /* hairline borders */

  /* Type */
  --font-head: "Playfair Display", "Georgia", serif;
  --font-body: "Poppins", "Helvetica Neue", Arial, sans-serif;

  /* Layout */
  --max: 1180px;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(15, 74, 92, 0.12);
  --shadow-soft: 0 4px 16px rgba(43, 43, 40, 0.08);
}

/* ---------- Reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }

ul { list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--ocean-deep);
  line-height: 1.2;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.4vw, 1.6rem); }

p { color: var(--ink-soft); }

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

section { padding: 72px 0; }

.section-tight { padding: 48px 0; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--gold-deep);
  margin-bottom: 14px;
}

.section-head {
  max-width: 760px;
  margin: 0 0 40px;
}

.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.lede {
  font-size: 1.1rem;
  color: var(--ink-soft);
  margin-top: 14px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-2px); }

.btn-gold {
  background: linear-gradient(135deg, var(--gold-light), var(--gold) 60%, var(--gold-deep));
  color: var(--ocean-deep);
  box-shadow: 0 8px 20px rgba(200, 134, 42, 0.35);
}
.btn-gold:hover { box-shadow: 0 12px 26px rgba(200, 134, 42, 0.45); }

.btn-ocean {
  background: var(--ocean-deep);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(15, 74, 92, 0.3);
}
.btn-ocean:hover { background: var(--ocean); }

.btn-outline {
  background: transparent;
  border-color: rgba(255,253,248,0.7);
  color: var(--white);
}
.btn-outline:hover { background: rgba(255,253,248,0.15); }

.btn-outline-dark {
  background: transparent;
  border-color: var(--ocean-deep);
  color: var(--ocean-deep);
}
.btn-outline-dark:hover { background: var(--ocean-deep); color: var(--white); }

.btn-block { width: 100%; }

.btn-sm { padding: 10px 20px; font-size: 0.85rem; }

.btn svg { width: 16px; height: 16px; flex-shrink: 0; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(255, 253, 248, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  display: flex;
  align-items: center;
  gap: 36px;
  padding: 14px 24px;
  max-width: var(--max);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--ocean-deep);
}

.logo-img {
  height: 46px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

.brand small {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink);
  position: relative;
  padding: 6px 0;
}

.nav-links a:hover { color: var(--ocean-deep); }

.nav-links a.active { color: var(--ocean-deep); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 2px;
  background: var(--gold);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.nav-phone {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--ocean-deep);
  font-size: 0.95rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 26px; height: 2.5px;
  background: var(--ocean-deep);
  border-radius: 2px;
  transition: 0.25s ease;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: var(--white);
  background:
    var(--hero-img, none) center/cover no-repeat,
    linear-gradient(190deg, var(--sand-light) 0%, var(--gold-light) 16%, var(--coral) 34%, var(--ocean) 58%, var(--ocean-deep) 100%);
  padding: 110px 0 90px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,74,92,0.05) 0%, rgba(15,74,92,0.55) 100%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}

.hero h1 {
  color: var(--white);
  text-shadow: 0 3px 18px rgba(15,74,92,0.4);
  max-width: 880px;
  margin: 0 auto;
}

.hero-logo {
  display: block;
  height: 160px;
  width: auto;
  margin: 0 auto;
  filter: drop-shadow(0 6px 20px rgba(15,74,92,0.45));
}

.hero-tagline {
  font-family: var(--font-head);
  font-style: italic;
  font-weight: 600;
  font-size: 1.55rem;
  color: var(--gold-light);
  text-shadow: 0 3px 18px rgba(15,74,92,0.45);
  max-width: 680px;
  margin: 22px auto 0;
}

.hero .lede {
  color: var(--sand-light);
  max-width: 620px;
  margin: 18px auto 0;
  font-size: 1.15rem;
}

.hero .btn-row { justify-content: center; }

.hero-search {
  margin: 48px auto 0;
  max-width: 960px;
}

.hero-search .card-label {
  color: var(--white);
}

.wave-divider {
  display: block;
  width: 100%;
  height: 70px;
  margin-top: -2px;
}

/* ---------- Sub-page hero (smaller) ---------- */
.page-hero {
  position: relative;
  color: var(--white);
  background:
    var(--hero-img, none) center/cover no-repeat,
    linear-gradient(135deg, var(--ocean-deep), var(--ocean) 70%, var(--coral));
  padding: 80px 0 64px;
  text-align: center;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(15,74,92,0.45);
}
.page-hero .hero-inner { position: relative; z-index: 2; }
.page-hero h1 { color: var(--white); }
.page-hero .lede { color: var(--sand-light); max-width: 680px; margin: 16px auto 0; }

/* ---------- Cards / Grids ---------- */
.grid {
  display: grid;
  gap: 28px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 26px;
  box-shadow: var(--shadow-soft);
  height: 100%;
}

.card .icon-badge {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 18px;
  color: var(--ocean-deep);
}

.card h3 { margin-bottom: 10px; }

.bg-sand { background: var(--sand-light); }
.bg-ocean { background: var(--ocean-deep); color: var(--white); }
.bg-ocean h2, .bg-ocean h3 { color: var(--white); }
.bg-ocean p { color: rgba(255,253,248,0.85); }

/* ---------- Photo / Logo placeholders ---------- */
.photo-slot {
  width: 100%;
  aspect-ratio: 4/5;
  border-radius: var(--radius);
  background: var(--sand-light) var(--photo-img, none) center/cover no-repeat;
  border: 2px dashed var(--gold-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--gold-deep);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 24px;
  box-shadow: var(--shadow-soft);
}

.photo-slot.wide { aspect-ratio: 16/10; }

/* ---------- Real photo frame (logo/headshot now in place) ---------- */
.photo-frame {
  width: 100%;
  aspect-ratio: 4/5;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.photo-frame.wide { aspect-ratio: 16/10; }
.photo-frame-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.photo-frame--avatar {
  width: 120px;
  aspect-ratio: 1/1;
  border-radius: 50%;
  margin: 0 auto 20px;
  box-shadow: var(--shadow-soft);
}

/* ---------- Iframe embed wrappers ---------- */
.embed-card {
  background: var(--white);
  border-radius: 20px;
  padding: 14px;
  box-shadow: var(--shadow);
}

.embed-wide {
  position: relative;
  width: 100%;
  max-width: 960px;
  padding-top: 31.25%; /* 300 / 960 */
  border-radius: 12px;
  overflow: hidden;
  margin: 0 auto;
}
.embed-wide iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 640px) {
  .embed-wide { padding-top: 0; height: 430px; }
  .embed-wide iframe { position: static; width: 100%; height: 100%; }
}

.embed-tall {
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
}
.embed-tall iframe {
  display: block;
  width: 100%;
  max-width: 280px;
  height: 680px;
  border: 0;
  border-radius: 10px;
  margin: 0 auto;
}

.embed-full {
  width: 100%;
}
.embed-full iframe {
  width: 100%;
  height: 160px;
  border: 0;
  border-radius: 10px;
}

/* Real fixed-pixel embeds (the search/valuation widgets need literal
   width/height to size themselves correctly — percentage stretch breaks
   their internal JS). overflow-x:auto keeps narrow screens safe without
   touching the iframe's own dimensions. */
.embed-frame {
  width: 100%;
  overflow-x: auto;
  display: flex;
  justify-content: center;
}
.embed-frame iframe {
  border: 0;
  border-radius: 10px;
  flex-shrink: 0;
}

/* ---------- IDX/MLS placeholder (until a live embed is connected) ---------- */
.embed-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 100%;
  text-align: center;
  padding: 24px;
  border-radius: 12px;
  background: linear-gradient(160deg, var(--sand-light), var(--white));
  border: 1.5px dashed var(--gold);
  color: var(--ocean-deep);
}
.embed-placeholder-icon {
  width: 38px;
  height: 38px;
  color: var(--gold-deep);
}
.embed-placeholder-title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  margin: 0;
  color: var(--ocean-deep);
}
.embed-placeholder-text {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin: 0;
  max-width: 220px;
}
.embed-wide .embed-placeholder { position: absolute; inset: 0; height: auto; border-radius: 12px; }
.embed-tall .embed-placeholder { height: 680px; max-width: 280px; margin: 0 auto; }
.embed-full .embed-placeholder { height: auto; min-height: 220px; }
@media (max-width: 640px) {
  .embed-tall .embed-placeholder { height: 420px; }
}

.embed-map {
  position: relative;
  width: 100%;
  padding-top: 42%;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.embed-map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
@media (max-width: 640px) {
  .embed-map { padding-top: 75%; }
}

.embed-caption {
  text-align: center;
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 10px;
}

/* ---------- Testimonials ---------- */
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 30px 26px;
  box-shadow: var(--shadow-soft);
  position: relative;
}
.testimonial-card .stars { color: var(--gold-deep); margin-bottom: 12px; letter-spacing: 2px; }
.testimonial-card p.quote { font-style: italic; color: var(--ink); margin-bottom: 16px; }
.testimonial-card .who { font-weight: 600; color: var(--ocean-deep); font-size: 0.92rem; }

/* ---------- Two column layout w/ sidebar ---------- */
.with-sidebar {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 48px;
  align-items: start;
}
.sidebar-sticky { position: sticky; top: 100px; }
.sidebar-card {
  background: var(--sand-light);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
  text-align: center;
}
.sidebar-card h3 { margin-bottom: 8px; }
.sidebar-card p { margin-bottom: 16px; font-size: 0.92rem; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--ocean-deep), var(--ocean));
  color: var(--white);
  border-radius: 20px;
  padding: 52px 40px;
  text-align: center;
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: rgba(255,253,248,0.88); }
.cta-band .btn-row { justify-content: center; }

/* ---------- Stats strip ---------- */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stats-strip .stat-num {
  font-family: var(--font-head);
  font-size: 2.2rem;
  color: var(--gold-deep);
  font-weight: 700;
}
.stats-strip .stat-label {
  font-size: 0.85rem;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ---------- Credential badges ---------- */
.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}
.badge {
  background: var(--sand-light);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ocean-deep);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ocean-deep);
  color: rgba(255,253,248,0.85);
  padding: 56px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 36px;
}
.footer-grid h4 {
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-grid a, .footer-grid p { color: rgba(255,253,248,0.78); font-size: 0.92rem; }
.footer-grid li { margin-bottom: 9px; }
.footer-grid a:hover { color: var(--gold-light); }

.footer-brand {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  row-gap: 8px;
  gap: 12px;
  margin-bottom: 14px;
}
.footer-brand .logo-plate {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.footer-brand .logo-img { height: 46px; }
.footer-brand strong {
  font-family: var(--font-head);
  font-size: 1.15rem;
  color: var(--white);
  display: block;
}
.footer-brand span { font-size: 0.78rem; color: var(--gold-light); }

.footer-disclaimer {
  border-top: 1px solid rgba(255,253,248,0.15);
  padding-top: 20px;
  margin-bottom: 18px;
  font-size: 0.74rem;
  line-height: 1.6;
  color: rgba(255,253,248,0.55);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 0.78rem;
  color: rgba(255,253,248,0.6);
}
.footer-bottom .equal-housing {
  display: flex;
  align-items: center;
  gap: 9px;
}
.footer-bottom .equal-housing svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--gold-light);
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.mt-sm { margin-top: 12px; }
.mt-md { margin-top: 24px; }
.mt-lg { margin-top: 48px; }
.flex-center { display: flex; align-items: center; justify-content: center; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) and (min-width: 761px) {
  .nav-links { gap: 16px; }
  .nav-links a { font-size: 0.86rem; }
  .brand { font-size: 1.05rem; }
}

@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .with-sidebar { grid-template-columns: 1fr; }
  .sidebar-sticky { position: static; display: flex; flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}

@media (max-width: 760px) {
  .nav-links, .nav-cta .nav-phone-text, .nav-cta .btn-gold { display: none; }
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 24px 24px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
    gap: 16px;
  }
  .nav-links.open { display: flex; }
  .nav-links:not(.open) { display: none; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  section { padding: 52px 0; }
  .hero { padding: 70px 0 60px; }
  .cta-band { padding: 38px 22px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  .btn { padding: 14px 22px; font-size: 0.92rem; }
  .logo-img { height: 36px; }
  .hero-logo { height: 100px; }
  .hero-tagline { font-size: 1.2rem; }
}
