/* Where To Live — shared design system. See ../BRAND.md for the rules this implements. */

:root {
  --navy: #11334E;
  --sky: #4A90C4;
  --sage: #8CA292;
  --charcoal: #1A1A1A;
  --cream: #F5F0E6;
  --white: #FFFFFF;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 200;
  color: var(--charcoal);
  background: var(--white);
}

/* --- Header / nav / logo --- */
/* Standard (non-homepage) logo size — homepage doubles this, see index.html */
header {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 28px 5%;
}
nav { display: flex; gap: 32px; align-items: center; padding-top: 6px; }
nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.03em;
  opacity: 0.9;
}
nav a:hover { opacity: 1; }
.logo img { height: clamp(72px, 9vw, 140px); display: block; }

@media (max-width: 480px) {
  header { flex-wrap: wrap; justify-content: center; row-gap: 14px; text-align: center; }
  nav { justify-content: center; flex-wrap: wrap; gap: 14px 18px; }
}

/* --- Footer --- */
footer {
  background: var(--navy);
  color: var(--cream);
  padding: 40px 5%;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 12px;
}
footer a { color: var(--cream); opacity: 0.8; text-decoration: none; margin-left: 18px; }
footer .foot-left { opacity: 0.7; }

/* --- Standard secondary-page template (How It Works, Reviews, About, etc.) --- */
.page-hero {
  position: relative;
  min-height: 46vh;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17,51,78,0.6) 0%, rgba(26,26,26,0.75) 100%);
  pointer-events: none;
}
.page-hero header { position: relative; }
.page-hero-body {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  align-items: flex-end;
  padding: 0 5% 6vh;
  color: var(--white);
}
.page-hero h1 {
  font-weight: 900;
  font-size: clamp(32px, 4.6vw, 56px);
  text-transform: uppercase;
  line-height: 1.04;
  max-width: 780px;
}
.page-hero h1 .accent { color: var(--sky); }
.page-hero p {
  margin-top: 16px;
  font-weight: 200;
  font-size: 16px;
  line-height: 1.55;
  max-width: 560px;
  opacity: 0.92;
}

.content { max-width: 980px; margin: 0 auto; padding: 70px 5%; }
.content h2 {
  font-weight: 900;
  font-size: clamp(24px, 3vw, 32px);
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 12px;
}
.content .lead {
  font-weight: 200;
  font-size: 15.5px;
  line-height: 1.6;
  max-width: 700px;
  margin-bottom: 40px;
  opacity: 0.85;
}

.cta-band { text-align: center; padding: 60px 5% 80px; }
.cta-band p { font-weight: 200; font-size: 15px; margin-bottom: 20px; }
.cta-band .cta-btn {
  display: inline-flex;
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: 8px;
  padding: 15px 26px;
  font-family: inherit;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}

/* --- Reviews (used as homepage teaser and on the dedicated Reviews page) --- */
.reviews {
  background: var(--cream);
  color: var(--charcoal);
  padding: 70px 5%;
}
.reviews-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 36px;
}
.reviews h2 {
  font-weight: 900;
  font-size: clamp(26px, 3.4vw, 38px);
  text-transform: uppercase;
  color: var(--navy);
}
.reviews-score { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.stars { color: var(--sky); font-size: 20px; letter-spacing: 2px; }
.reviews-score .score-num { font-weight: 900; font-size: 22px; color: var(--navy); }
.reviews-score .score-count { font-weight: 200; font-size: 13px; opacity: 0.7; }
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.review-card {
  background: var(--white);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 6px 18px rgba(17,51,78,0.08);
}
.review-card .stars { display: block; margin-bottom: 10px; font-size: 16px; }
.review-card p.quote { font-weight: 200; font-size: 14.5px; line-height: 1.55; margin-bottom: 14px; }
.review-card .who { font-weight: 600; font-size: 13px; color: var(--navy); }
.review-card .who span { font-weight: 200; opacity: 0.65; }
.reviews-cta { margin-top: 36px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.reviews-cta p { font-weight: 200; font-size: 14px; max-width: 420px; }
.reviews-btn {
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: 8px;
  padding: 13px 22px;
  font-family: inherit;
  font-weight: 600;
  font-size: 13.5px;
  cursor: pointer;
}
@media (max-width: 900px) {
  .review-grid { grid-template-columns: 1fr; }
}

/* --- Share widget (assets/share.js renders into a container with this class) --- */
.share-widget {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.share-label { font-weight: 600; font-size: 13px; color: var(--navy); }
.share-buttons { display: flex; gap: 10px; flex-wrap: wrap; }
.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 20px;
  background: var(--white);
  color: var(--navy);
  font-family: inherit;
  font-weight: 600;
  font-size: 12.5px;
  text-decoration: none;
  border: 1.5px solid rgba(17,51,78,0.15);
  cursor: pointer;
}
.share-btn.share-native { background: var(--navy); color: var(--white); border-color: var(--navy); }

/* --- Cookie consent banner --- */
#cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 50;
  background: var(--navy);
  color: var(--cream);
  padding: 22px 5%;
  display: none;
}
#cookie-banner.visible { display: block; }
.cookie-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cookie-text { font-weight: 200; font-size: 13px; line-height: 1.5; max-width: 620px; }
.cookie-text a { color: var(--white); font-weight: 600; }
.cookie-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cookie-btn {
  font-family: inherit;
  font-weight: 600;
  font-size: 13px;
  border-radius: 7px;
  padding: 11px 18px;
  cursor: pointer;
  border: 1px solid var(--cream);
}
.cookie-btn.primary { background: var(--sky); color: var(--white); border-color: var(--sky); }
.cookie-btn.secondary { background: transparent; color: var(--cream); }
.cookie-btn.manage { background: transparent; color: var(--cream); text-decoration: underline; border: none; padding: 11px 4px; }
#cookie-prefs {
  display: none;
  max-width: 1100px;
  margin: 16px auto 0;
  padding-top: 16px;
  border-top: 1px solid rgba(245,240,230,0.25);
}
#cookie-prefs.visible { display: block; }
.cookie-pref-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 8px 0;
  font-size: 13px;
  font-weight: 200;
}
.cookie-pref-row strong { font-weight: 600; }
