/* ============================================================
   SUN SOL SEO — monitor.css
   Beach Conditions Monitor page styles
   ============================================================ */

/* ── HERO ───────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 72vh;
  display: grid; place-items: center;
  padding-block: 120px 80px;
  overflow: hidden;
  background: linear-gradient(165deg, #0b2028 0%, #123040 40%, #1c5060 80%, #2a6b7c 100%);
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 50% 60% at 80% 30%, rgba(200,146,42,.14) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 15% 70%, rgba(42,107,124,.35) 0%, transparent 60%);
  pointer-events: none;
}
.hero::after {
  content: ''; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(255,255,255,.015) 0px, rgba(255,255,255,.015) 1px,
    transparent 1px, transparent 40px
  );
  pointer-events: none;
}
.hero-content { position: relative; z-index: 2; max-width: 820px; text-align: center; }
.hero-pill {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(42,107,124,.3);
  border: 1px solid rgba(42,107,124,.5);
  color: #7ecfde;
  font-size: .72rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
  padding: .35rem 1rem; border-radius: 2rem; margin-bottom: 1.5rem;
  animation: fadeUp .8s ease both;
}
.hero h1 {
  font-family: var(--f-display);
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  font-weight: 300; line-height: 1.08; color: var(--white);
  margin-bottom: 1.2rem;
  animation: fadeUp .9s .1s ease both;
}
.hero h1 em { font-style: italic; color: var(--sun-lt); }
.hero-sub {
  font-size: clamp(.92rem, 1.4vw, 1.1rem); color: rgba(255,255,255,.65);
  max-width: 580px; margin: 0 auto 2.5rem;
  animation: fadeUp .9s .2s ease both;
}
.hero-ctas {
  display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;
  animation: fadeUp .9s .3s ease both;
}
.btn-outline {
  background: transparent; border: 1px solid rgba(255,255,255,.3);
  color: rgba(255,255,255,.85);
}
.btn-outline:hover { border-color: rgba(255,255,255,.7); color: var(--white); }
.update-strip {
  background: rgba(0,0,0,.2);
  border-top: 1px solid rgba(255,255,255,.07);
  position: absolute; bottom: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: center; gap: 2rem;
  flex-wrap: wrap; padding: .9rem 1.25rem;
  color: rgba(255,255,255,.45); font-size: .78rem; letter-spacing: .07em;
  z-index: 2;
}
.update-strip span { color: rgba(255,255,255,.7); }
.update-strip a { color: rgba(255,255,255,.8); text-decoration: none; }

/* ── EXPLAINER STRIP ────────────────────────────── */
.explainer { background: var(--ink); padding-block: 70px; }
.explainer-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 4px; overflow: hidden;
}
.explainer-item { background: #1e1a16; padding: 2rem 2rem 1.8rem; }
.explainer-icon { font-size: 1.8rem; margin-bottom: .75rem; }
.explainer-item h3 {
  font-family: var(--f-display); font-size: 1.1rem; font-weight: 600;
  color: var(--white); margin-bottom: .5rem;
}
.explainer-item p { font-size: .96rem; color: rgba(255,255,255,.55); line-height: 1.75; }

/* ── DESTINATION CARDS ──────────────────────────── */
.conditions { padding-block: 60px; background: var(--white); }
.conditions-header { text-align: center; max-width: 620px; margin: 0 auto 2rem; }
.conditions-header .eyebrow { margin-bottom: .6rem; }
.conditions-header .section-title { margin-bottom: .8rem; }
.conditions-header p { color: var(--taupe); }
.legend { display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; margin-bottom: 1.75rem; }
.legend-item { display: flex; align-items: center; gap: .5rem; font-size: .78rem; font-weight: 500; letter-spacing: .07em; text-transform: uppercase; color: var(--taupe); }
.legend-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.legend-dot.clear  { background: #2e7d4f; }
.legend-dot.mild   { background: var(--amber, #c8922a); }
.legend-dot.heavy  { background: #b94040; }

.destination-grid {
  display: grid;
  /* 6-col grid: row 1 = 3 cards × 2 cols each; row 2 = 2 cards × 3 cols each (centered) */
  grid-template-columns: repeat(6, 1fr);
  gap: 1.25rem;
}
/* Row 1: first 3 cards each span 2 of 6 columns */
.destination-card:nth-child(1),
.destination-card:nth-child(2),
.destination-card:nth-child(3) { grid-column: span 2; }
/* Row 2: last 2 cards each span 3 of 6 columns — perfectly centered */
.destination-card:nth-child(4),
.destination-card:nth-child(5) { grid-column: span 3; }
.destination-card {
  display: flex; flex-direction: column; /* stretch cards to equal height */
  border: 1px solid rgba(140,123,107,.15); border-radius: 4px;
  overflow: hidden; background: var(--white);
  transition: box-shadow .25s, transform .25s;
}
.destination-card:hover { box-shadow: 0 12px 40px rgba(26,22,18,.08); transform: translateY(-3px); }
.card-header {
  padding: 1.25rem 1.5rem; border-bottom: 1px solid rgba(140,123,107,.1);
  display: flex; justify-content: space-between; align-items: flex-start; gap: .75rem;
}
.card-location h3 { font-family: var(--f-display); font-size: 1.25rem; font-weight: 600; margin-bottom: .1rem; }
.card-location span { font-size: .78rem; color: var(--taupe); }
.status-badge {
  display: flex; align-items: center; gap: .4rem;
  padding: .3rem .8rem; border-radius: 2rem;
  font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  flex-shrink: 0; white-space: nowrap;
}
.status-badge.clear  { background: rgba(46,125,79,.1);  color: #2e7d4f; }
.status-badge.mild   { background: rgba(200,146,42,.1); color: var(--sun); }
.status-badge.heavy  { background: rgba(185,64,64,.1);  color: #b94040; }
.status-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
/* Card body grows to fill available space — keeps footer pinned to bottom */
.card-body { padding: 1.25rem 1.5rem; flex: 1; }
.card-note { font-size: .92rem; color: var(--taupe); line-height: 1.7; }
.card-footer {
  background: var(--cream); border-top: 1px solid rgba(140,123,107,.1);
  padding: .75rem 1.5rem;
  display: flex; flex-direction: column; /* stack: updated text, then link */
  align-items: flex-start;
  gap: .3rem;
  margin-top: auto;
}
.card-updated {
  font-size: .72rem; color: var(--taupe); letter-spacing: .04em;
  line-height: 1.4;
}
.card-link {
  display: inline-flex; align-items: center;
  font-size: .82rem; font-weight: 500; color: var(--sea);
  white-space: nowrap; /* never breaks mid-word */
  text-decoration: none; border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.card-link:hover { border-color: var(--sea); }

/* ── SARGASSUM KNOWLEDGE ────────────────────────── */
.sargassum-explainer { padding-block: 90px; background: var(--sand); }
.explainer-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; }
.explainer-two-col .eyebrow { margin-bottom: .6rem; }
.explainer-two-col .section-title { margin-bottom: 1.1rem; }
.explainer-body { color: var(--taupe); line-height: 1.8; margin-bottom: 1rem; }

/* ── SARGASSUM EXPLAINER (redesigned) ── */
.sarg-header { max-width: 640px; margin-bottom: 3rem; }
.sarg-header .eyebrow { margin-bottom: .6rem; }
.sarg-header .section-title { margin-bottom: 0; }
.sarg-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.sarg-text .explainer-body { color: var(--taupe); line-height: 1.85; margin-bottom: 1rem; }
.sarg-data { display: flex; flex-direction: column; gap: 2.5rem; }
.sarg-data .beach-table-wrap { overflow-x: auto; }
@media (max-width: 900px) {
  .sarg-body { grid-template-columns: 1fr; gap: 2.5rem; }
}
.fact-list { display: flex; flex-direction: column; gap: .75rem; margin-top: 1.5rem; }
.fact-item {
  display: flex; gap: .75rem;
  background: var(--cream); border: 1px solid rgba(140,123,107,.12);
  border-left: 3px solid var(--sea); border-radius: var(--radius);
  padding: .9rem 1.1rem; font-size: .88rem; color: var(--ink); line-height: 1.6;
}
.fact-item::before { content: '→'; color: var(--sea); flex-shrink: 0; font-weight: 600; }

.season-timeline { margin-top: 1rem; }
.season-timeline h3 { font-family: var(--f-display); font-size: 1.3rem; font-weight: 600; margin-bottom: 1.2rem; }
.timeline-months { display: flex; border-radius: var(--radius); overflow: hidden; }
.month-block { flex: 1; text-align: center; padding: .65rem .2rem; font-size: .7rem; font-weight: 500; text-transform: uppercase; letter-spacing: .05em; }
.month-block.low    { background: rgba(46,125,79,.15);  color: #2e7d4f; }
.month-block.medium { background: rgba(200,146,42,.2);  color: #a07020; }
.month-block.high   { background: rgba(185,64,64,.2);   color: #b94040; }
.intensity-legend { display: flex; gap: 1.5rem; margin-top: .75rem; flex-wrap: wrap; }
.intensity-item { display: flex; align-items: center; gap: .4rem; font-size: .75rem; color: var(--taupe); }
.intensity-swatch { width: 12px; height: 12px; border-radius: 2px; }
.intensity-swatch.low    { background: rgba(46,125,79,.35); }
.intensity-swatch.medium { background: rgba(200,146,42,.4); }
.intensity-swatch.high   { background: rgba(185,64,64,.35); }

.beach-table-wrap { margin-top: 1.5rem; overflow-x: auto; }
.beach-table { width: 100%; border-collapse: collapse; min-width: 600px; }
.beach-table th { background: var(--cream); padding: .65rem 1rem; text-align: left; font-size: .72rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--taupe); border-bottom: 2px solid rgba(140,123,107,.15); }
.beach-table td { padding: .75rem 1rem; border-bottom: 1px solid rgba(140,123,107,.1); font-size: .88rem; }
.beach-table tr:last-child td { border-bottom: none; }
.beach-table tr:hover td { background: rgba(140,123,107,.04); }
.impact-pill { display: inline-block; padding: .2rem .7rem; border-radius: 2rem; font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.impact-pill.low    { background: rgba(46,125,79,.1);  color: #2e7d4f; }
.impact-pill.medium { background: rgba(200,146,42,.1); color: var(--sun); }
.impact-pill.high   { background: rgba(185,64,64,.1);  color: #b94040; }

/* ── STRATEGY SECTION ───────────────────────────── */
.strategy-section {
  padding-block: 90px;
  background: linear-gradient(150deg, var(--sea-dk) 0%, #0f2a35 100%);
}
.strategy-header { text-align: center; max-width: 620px; margin: 0 auto 3.5rem; }
.strategy-header .eyebrow { color: var(--sun-lt); margin-bottom: .6rem; }
.strategy-title { font-family: var(--f-display); font-size: clamp(1.9rem, 3.8vw, 3rem); font-weight: 300; color: var(--white); line-height: 1.18; margin-bottom: .8rem; }
.strategy-title em { color: var(--sun-lt); font-style: italic; }
.strategy-header p { color: rgba(255,255,255,.55); }
.benefits-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.benefit-card { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius); padding: 1.75rem 2rem; transition: background .25s; }
.benefit-card:hover { background: rgba(255,255,255,.08); }
.benefit-icon { font-size: 1.6rem; margin-bottom: .75rem; }
.benefit-card h3 { font-family: var(--f-display); font-size: 1.15rem; font-weight: 600; color: var(--white); margin-bottom: .5rem; }
.benefit-card p { font-size: .96rem; color: rgba(255,255,255,.55); line-height: 1.75; }
.strategy-cta { text-align: center; margin-top: 3rem; }
.strategy-cta p { color: rgba(255,255,255,.5); font-size: .88rem; margin-top: .75rem; }

/* ── FAQ ────────────────────────────────────────── */
.faq-section { padding-block: 90px; background: var(--cream); }
.faq-header { text-align: center; max-width: 600px; margin: 0 auto 3rem; }
.faq-header .eyebrow { margin-bottom: .6rem; }
.faq-header .section-title { margin-bottom: .8rem; }
.faq-header p { color: var(--taupe); }
.faq-list { display: flex; flex-direction: column; gap: .75rem; max-width: 800px; margin: 0 auto; }

/* ── AUDIT CTA ──────────────────────────────────── */
.audit-cta {
  padding-block: 90px;
  background: linear-gradient(155deg, #1a1612 0%, #2a1e14 50%, #1a2a32 100%);
  text-align: center;
}
.audit-cta .eyebrow { color: var(--sun-lt); margin-bottom: .8rem; }
.audit-cta-title { font-family: var(--f-display); font-size: clamp(2rem, 4vw, 3.4rem); font-weight: 300; color: var(--white); margin-bottom: 1.2rem; line-height: 1.18; }
.audit-cta-title em { color: var(--sun-lt); font-style: italic; }
.audit-cta p { color: rgba(255,255,255,.55); max-width: 540px; margin: 0 auto 2.5rem; line-height: 1.8; }
.audit-form-wrap { max-width: 560px; margin: 0 auto; text-align: left; }
.audit-form { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: 6px; padding: 2.5rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* ── MONITOR RESPONSIVE ─────────────────────────── */
@media (max-width: 900px) {
  .explainer-grid { grid-template-columns: 1fr; }
  .destination-grid { grid-template-columns: repeat(2, 1fr); } /* 2 cols on tablet */
  .explainer-two-col { grid-template-columns: 1fr; gap: 3rem; }
  .benefits-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero { min-height: 90svh; padding: 100px 1.5rem 80px; }
  .hero h1 { font-size: clamp(2rem, 8vw, 3rem); }
  .hero-ctas { flex-direction: column; align-items: center; }
  .hero-ctas .btn { width: 100%; max-width: 320px; text-align: center; }
  .update-strip { display: none; }
  .legend { gap: 1rem; justify-content: flex-start; }
  .audit-form { padding: 1.5rem; }
  .faq-list { gap: .6rem; }
}
@media (max-width: 480px) {
  .strategy-title { font-size: 1.8rem; }
  .timeline-months { font-size: .6rem; }
}

/* ── OVERFLOW PROTECTION (mobile) ──────────────────
   Prevents any section or grid child from causing
   horizontal scroll on narrow screens.
   These rules target the specific elements that
   tend to overflow on mobile without breaking layout.
─────────────────────────────────────────────────── */
@media (max-width: 768px) {
  /* Every direct grid/flex child must respect its cell */
  .container > * { min-width: 0; }

  /* Text-heavy elements always wrap */
  h1, h2, h3, h4, p, li, td, th, span, a {
    overflow-wrap: break-word;
    word-break: break-word;
  }

  /* All sections clip overflow */
  section, header, footer, nav, aside, main { overflow-x: hidden; }
}
@media (max-width: 600px) {
  .destination-grid { grid-template-columns: 1fr; }
}
