/* ==========================================================================
   SilverSingles Canada — Global Stylesheet
   Single source of truth for every page. No inline styles, no duplicate
   rules. Organized by component in the order components appear on the
   homepage, followed by inner-page layouts and utilities.
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --color-primary: #96364a;
  --color-primary-dark: #742738;
  --color-primary-light: #f4e8eb;
  --color-text: #2f3034;
  --color-text-soft: #62646b;
  --color-bg: #ffffff;
  --color-bg-soft: #f7f3ef;
  --color-bg-warm: #efe5dc;
  --color-border: #dfd9d4;
  --color-success: #356d57;
  --shadow-soft: 0 12px 34px rgba(44, 36, 39, 0.08);
  --shadow-card: 0 6px 20px rgba(44, 36, 39, 0.07);
  --radius-card: 18px;
  --radius-button: 999px;
  --font-heading: "Lora", "Georgia", serif;
  --font-body: "Source Sans 3", "Segoe UI", Arial, sans-serif;
  --container-width: 1200px;
  --section-space: 112px;
  --section-space-tablet: 80px;
  --section-space-mobile: 64px;
  --header-height: 84px;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  max-width: 100%;
  overflow-x: hidden;
}

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

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover {
  color: var(--color-primary-dark);
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  color: var(--color-text);
  line-height: 1.2;
  margin: 0 0 0.5em;
  font-weight: 700;
}

p {
  margin: 0 0 1em;
}

button {
  font-family: inherit;
}

/* ---------- Accessibility: focus states ---------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  z-index: 999;
  background: var(--color-primary);
  color: #fff;
  padding: 0.9rem 1.4rem;
  border-radius: 0 0 8px 0;
  font-weight: 600;
}

.skip-link:focus {
  left: 0;
  top: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

.section {
  padding: var(--section-space) 0;
}

.section-soft {
  background: var(--color-bg-soft);
}

.section-warm {
  background: var(--color-bg-warm);
}

.section-header {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-header.align-left {
  margin: 0 0 48px;
  text-align: left;
  max-width: 640px;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 14px;
}

.section-header h2 {
  font-size: 42px;
  margin-bottom: 16px;
}

.section-lead {
  font-size: 19px;
  color: var(--color-text-soft);
}

@media (max-width: 900px) {
  :root {
    --section-space: var(--section-space-tablet);
  }
  .section-header h2 {
    font-size: 34px;
  }
}

@media (max-width: 600px) {
  :root {
    --section-space: var(--section-space-mobile);
  }
  .section-header h2 {
    font-size: 30px;
  }
  body {
    font-size: 16px;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 28px;
  border-radius: var(--radius-button);
  font-size: 17px;
  font-weight: 700;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  color: #fff;
  box-shadow: var(--shadow-soft);
}

.btn-outline {
  background: transparent;
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn-outline:hover {
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}

.btn-ghost:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn-lg {
  min-height: 56px;
  padding: 0 36px;
  font-size: 18px;
}

.btn-block {
  width: 100%;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(160%) blur(6px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
}

.logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.logo-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 21px;
  color: var(--color-text);
}

.logo-tagline {
  font-size: 12px;
  color: var(--color-text-soft);
  letter-spacing: 0.02em;
}

.main-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-list a {
  color: var(--color-text);
  font-weight: 600;
  font-size: 15.5px;
}

.nav-list a:hover,
.nav-list a:focus-visible {
  color: var(--color-primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.btn-login {
  font-weight: 700;
  color: var(--color-text);
  font-size: 15.5px;
  padding: 8px 6px;
}

.btn-login:hover {
  color: var(--color-primary);
}

.hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}

.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav-panel {
  display: none;
  max-height: 0;
  overflow: hidden;
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  transition: max-height 0.3s ease;
}

.mobile-nav-panel.is-open {
  max-height: 640px;
}

.mobile-nav-panel .container {
  padding-top: 12px;
  padding-bottom: 20px;
}

.mobile-nav-list li {
  border-top: 1px solid var(--color-border);
}

.mobile-nav-list li:first-child {
  border-top: none;
}

.mobile-nav-list a {
  display: block;
  padding: 14px 4px;
  font-weight: 600;
  color: var(--color-text);
  font-size: 17px;
}

.mobile-nav-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

@media (max-width: 980px) {
  .main-nav {
    display: none;
  }
  .header-actions .btn-primary,
  .header-actions .btn-login {
    display: none;
  }
  .hamburger {
    display: inline-flex;
  }
  .mobile-nav-panel {
    display: block;
  }
}

@media (max-width: 480px) {
  :root {
    --header-height: 72px;
  }
  .logo-tagline {
    display: none;
  }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  padding: 64px 0 var(--section-space);
  background: linear-gradient(180deg, var(--color-bg-soft) 0%, #ffffff 100%);
}

.hero-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero-content h1 {
  font-size: 56px;
  margin-bottom: 22px;
}

.hero-lead {
  font-size: 20px;
  color: var(--color-text-soft);
  max-width: 540px;
  margin-bottom: 32px;
}

.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.hero-cta-note {
  font-size: 15px;
  color: var(--color-text-soft);
}

.hero-trustpoints {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.hero-trustpoints li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text-soft);
}

.hero-trustpoints svg {
  flex-shrink: 0;
  color: var(--color-success);
}

.hero-media {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 5;
}

@media (max-width: 980px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .hero-content h1 {
    font-size: 42px;
  }
  .hero-media {
    order: -1;
  }
  .hero-media img {
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 600px) {
  .hero-content h1 {
    font-size: 36px;
  }
  .hero-lead {
    font-size: 18px;
  }
  .hero-cta-row .btn {
    width: 100%;
  }
}

/* ==========================================================================
   Trust bar
   ========================================================================== */
.trust-bar {
  background: var(--color-primary);
}

.trust-bar-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 40px 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  color: #fff;
}

.trust-item svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.trust-item h3 {
  font-family: var(--font-body);
  color: #fff;
  font-size: 16.5px;
  margin-bottom: 4px;
}

.trust-item p {
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.82);
  margin: 0;
}

@media (max-width: 900px) {
  .trust-bar-inner {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .trust-bar-inner {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* ==========================================================================
   Three-card section (Comfortable Dating)
   ========================================================================== */
.card-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.info-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 34px 28px;
  box-shadow: var(--shadow-card);
}

.info-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--color-primary-light);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.info-card h3 {
  font-size: 22px;
  margin-bottom: 10px;
}

.info-card p {
  color: var(--color-text-soft);
  margin: 0;
}

@media (max-width: 900px) {
  .card-grid-3 {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Meaningful connections — visual card grid
   ========================================================================== */
.visual-card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.visual-card {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  aspect-ratio: 3 / 4;
}

.visual-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.visual-card-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 40px 18px 20px;
  background: linear-gradient(180deg, transparent 0%, rgba(28, 20, 22, 0.85) 45%, rgba(28, 20, 22, 0.9) 100%);
}

.visual-card-caption h3 {
  color: #fff;
  font-size: 18px;
  margin: 0 0 4px;
}

.visual-card-caption p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
  line-height: 1.4;
  margin: 0;
}

@media (max-width: 980px) {
  .visual-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .visual-card-grid {
    grid-template-columns: 1fr;
  }
  .visual-card {
    aspect-ratio: 16 / 10;
  }
}

/* ==========================================================================
   Meaningful connections copy block
   ========================================================================== */
.connections-intro {
  max-width: 780px;
  margin: 0 auto 48px;
  text-align: center;
  color: var(--color-text-soft);
  font-size: 18px;
}

/* ==========================================================================
   Product features
   ========================================================================== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 64px;
}

.feature-card {
  padding: 30px 26px;
  border-radius: var(--radius-card);
  background: var(--color-bg-soft);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  box-shadow: var(--shadow-card);
}

.feature-card h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--color-text-soft);
  margin: 0;
  font-size: 16.5px;
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.screenshot-card {
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
}

.screenshot-card img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
}

.screenshot-caption {
  padding: 18px 22px;
}

.screenshot-caption h3 {
  font-size: 18px;
  margin-bottom: 4px;
}

.screenshot-caption p {
  color: var(--color-text-soft);
  margin: 0;
  font-size: 15.5px;
}

.mock-screen {
  aspect-ratio: 16 / 11;
  background: #fff;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mock-screen-header {
  width: 48%;
  height: 14px;
  border-radius: 7px;
  background: var(--color-primary-light);
}

.mock-screen-row {
  width: 90%;
  height: 10px;
  border-radius: 6px;
  background: var(--color-border);
}

.mock-screen-row.short {
  width: 55%;
}

.mock-screen-bubble {
  align-self: flex-start;
  max-width: 65%;
  height: 34px;
  border-radius: 14px 14px 14px 4px;
  background: var(--color-bg-soft);
  margin-top: auto;
}

.mock-screen-bubble.alt {
  align-self: flex-end;
  background: var(--color-primary-light);
  border-radius: 14px 14px 4px 14px;
  margin-top: 10px;
}

@media (max-width: 980px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  .feature-grid,
  .screenshot-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   How it works — timeline
   ========================================================================== */
.steps-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}

.step-item {
  position: relative;
  padding-top: 12px;
}

.step-number {
  font-family: var(--font-heading);
  font-size: 44px;
  font-weight: 700;
  color: var(--color-primary-light);
  -webkit-text-stroke: 1.5px var(--color-primary);
  margin-bottom: 12px;
  line-height: 1;
}

.step-item h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.step-item p {
  color: var(--color-text-soft);
  margin: 0;
}

.steps-cta {
  text-align: center;
  margin-top: 48px;
}

@media (max-width: 900px) {
  .steps-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .step-item {
    padding: 20px 0 20px 28px;
    border-left: 2px solid var(--color-primary-light);
  }
  .step-item:last-child {
    padding-bottom: 0;
  }
}

/* ==========================================================================
   Cities
   ========================================================================== */
.city-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.city-card {
  display: block;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.city-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}

.city-card-img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.city-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.city-card-body {
  padding: 20px 28px 28px;
}

.city-card h3 {
  font-size: 22px;
  margin-bottom: 8px;
  color: var(--color-text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.city-card h3 svg {
  color: var(--color-primary);
  flex-shrink: 0;
}

.city-card p {
  color: var(--color-text-soft);
  margin: 0;
  font-size: 16px;
}

.cities-cta {
  text-align: center;
}

@media (max-width: 900px) {
  .city-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .city-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Membership & pricing
   ========================================================================== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  align-items: stretch;
  margin-bottom: 32px;
}

.pricing-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
}

.pricing-card.featured {
  border: 2px solid var(--color-primary);
  box-shadow: var(--shadow-soft);
  position: relative;
}

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 32px;
  background: var(--color-primary);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: var(--radius-button);
}

.pricing-card h3 {
  font-size: 24px;
  margin-bottom: 6px;
}

.pricing-price {
  font-family: var(--font-heading);
  font-size: 32px;
  color: var(--color-primary);
  margin-bottom: 4px;
}

.pricing-price span {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--color-text-soft);
  font-weight: 400;
}

.pricing-subtext {
  font-size: 14.5px;
  color: var(--color-text-soft);
  margin-bottom: 22px;
}

.pricing-features {
  margin-bottom: 26px;
  flex: 1;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  font-size: 16px;
  border-top: 1px solid var(--color-border);
}

.pricing-features li:first-child {
  border-top: none;
}

.pricing-features svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--color-success);
}

.pricing-note {
  background: var(--color-bg-soft);
  border-radius: 12px;
  padding: 22px 24px;
  font-size: 15px;
  color: var(--color-text-soft);
}

.pricing-note dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 6px 16px;
  margin: 0;
}

.pricing-note dt {
  font-weight: 700;
  color: var(--color-text);
}

.pricing-note dd {
  margin: 0;
}

@media (max-width: 860px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Member stories
   ========================================================================== */
.story-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 36px;
}

.story-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 28px;
  box-shadow: var(--shadow-card);
}

.story-placeholder-note {
  display: block;
  font-size: 13px;
  color: var(--color-text-soft);
  background: var(--color-bg-warm);
  border-radius: 8px;
  padding: 8px 12px;
  margin-bottom: 16px;
}

.story-quote {
  font-family: var(--font-heading);
  font-size: 18px;
  font-style: italic;
  margin-bottom: 18px;
}

.story-person {
  display: flex;
  align-items: center;
  gap: 12px;
}

.story-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.story-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-name {
  font-weight: 700;
  font-size: 15.5px;
}

.story-location {
  font-size: 14px;
  color: var(--color-text-soft);
}

.stories-cta {
  text-align: center;
}

@media (max-width: 900px) {
  .story-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Dating advice / resource cards
   ========================================================================== */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.resource-card {
  display: block;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
  transition: transform 0.15s ease;
}

.resource-card:hover {
  transform: translateY(-3px);
}

.resource-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.resource-card-body {
  padding: 20px;
}

.resource-card-body h3 {
  font-size: 17.5px;
  margin-bottom: 6px;
  color: var(--color-text);
}

.resource-card-body p {
  font-size: 15px;
  color: var(--color-text-soft);
  margin: 0;
}

@media (max-width: 980px) {
  .resource-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .resource-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   FAQ accordion
   ========================================================================== */
.faq-list {
  max-width: 840px;
  margin: 0 auto;
  border-top: 1px solid var(--color-border);
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: transparent;
  border: none;
  text-align: left;
  padding: 22px 4px;
  font-family: var(--font-heading);
  font-size: 18.5px;
  font-weight: 700;
  color: var(--color-text);
  cursor: pointer;
  min-height: 44px;
}

.faq-icon {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  background: currentColor;
}

.faq-icon::before {
  width: 10px;
  height: 2px;
}

.faq-icon::after {
  width: 2px;
  height: 10px;
  transition: transform 0.2s ease;
}

.faq-question[aria-expanded="true"] .faq-icon::after {
  transform: scaleY(0);
}

.faq-answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.25s ease;
}

.faq-answer[data-open="true"] {
  max-height: 400px;
}

.faq-answer-inner {
  padding: 0 4px 24px;
  color: var(--color-text-soft);
  font-size: 16.5px;
}

.faq-answer-inner a {
  font-weight: 600;
}

/* ==========================================================================
   Final CTA
   ========================================================================== */
.final-cta {
  background: var(--color-primary);
  color: #fff;
  text-align: center;
}

.final-cta h2 {
  color: #fff;
  font-size: 40px;
  margin-bottom: 16px;
}

.final-cta p {
  font-size: 19px;
  color: rgba(255, 255, 255, 0.88);
  max-width: 620px;
  margin: 0 auto 32px;
}

.final-cta .btn-primary {
  background: #fff;
  color: var(--color-primary-dark);
}

.final-cta .btn-primary:hover {
  background: var(--color-bg-soft);
}

@media (max-width: 600px) {
  .final-cta h2 {
    font-size: 30px;
  }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: #211519;
  color: rgba(255, 255, 255, 0.72);
  padding: 72px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-col h4 {
  color: #fff;
  font-family: var(--font-body);
  font-size: 15px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.footer-col li {
  margin-bottom: 12px;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.72);
  font-size: 15.5px;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  padding: 24px 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
}

.footer-bottom-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 700;
  font-family: var(--font-heading);
}

.footer-bottom-logo img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .site-footer {
    padding-top: 56px;
  }
}

/* ==========================================================================
   Inner-page hero (city / advice / legal / help pages)
   ========================================================================== */
.page-hero {
  padding: 48px 0 56px;
  background: var(--color-bg-soft);
  border-bottom: 1px solid var(--color-border);
}

/* ---------- City-page hero: full-bleed photo background ---------- */
.page-hero-photo {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  padding: 72px 0;
  background: var(--color-text);
  border-bottom: none;
  overflow: hidden;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(24, 16, 18, 0.82) 0%, rgba(24, 16, 18, 0.55) 48%, rgba(24, 16, 18, 0.18) 100%);
}

.page-hero-photo .container {
  position: relative;
  z-index: 1;
}

.page-hero-photo .breadcrumb,
.page-hero-photo .breadcrumb a {
  color: rgba(255, 255, 255, 0.82);
}

.page-hero-photo .breadcrumb a:hover {
  color: #fff;
}

.page-hero-photo h1 {
  color: #fff;
}

.page-hero-photo .page-hero-lead {
  color: rgba(255, 255, 255, 0.92);
}

@media (max-width: 900px) {
  .page-hero-photo {
    min-height: 460px;
  }
  .page-hero-bg::after {
    background: linear-gradient(180deg, rgba(24, 16, 18, 0.5) 0%, rgba(24, 16, 18, 0.82) 70%);
  }
}

@media (max-width: 600px) {
  .page-hero-photo {
    min-height: 420px;
    padding: 56px 0;
  }
}

.breadcrumb {
  font-size: 14.5px;
  color: var(--color-text-soft);
  margin-bottom: 18px;
}

.breadcrumb a {
  color: var(--color-text-soft);
  font-weight: 600;
}

.breadcrumb a:hover {
  color: var(--color-primary);
}

.page-hero h1 {
  font-size: 44px;
  max-width: 820px;
  margin-bottom: 14px;
}

.page-hero-lead {
  font-size: 19px;
  color: var(--color-text-soft);
  max-width: 680px;
  margin: 0;
}

.page-hero-media {
  margin-top: 32px;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  max-height: 380px;
}

.page-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-height: 380px;
}

@media (max-width: 600px) {
  .page-hero h1 {
    font-size: 32px;
  }
}

/* ---------- Prose / content page ---------- */
.content-page {
  padding: var(--section-space) 0;
}

.content-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 56px;
  align-items: start;
}

.content-layout > .prose,
.content-layout > .side-panel {
  min-width: 0;
}

.prose-solo {
  max-width: 960px;
  margin: 0 auto;
  min-width: 0;
}

.prose h2 {
  font-size: 30px;
  margin-top: 1.6em;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  font-size: 22px;
  margin-top: 1.4em;
}

.prose p {
  color: var(--color-text-soft);
}

.prose ul {
  margin: 0 0 1.2em;
  padding-left: 0;
}

.prose ul li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
  color: var(--color-text-soft);
}

.prose ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-primary);
}

.prose a {
  font-weight: 600;
}

.prose strong {
  color: var(--color-text);
}

.side-panel {
  background: var(--color-bg-soft);
  border-radius: var(--radius-card);
  padding: 28px;
  position: sticky;
  top: calc(var(--header-height) + 24px);
}

.side-panel h3 {
  font-size: 18px;
  margin-bottom: 14px;
}

.side-panel li {
  margin-bottom: 10px;
}

.side-panel a {
  font-size: 15.5px;
  font-weight: 600;
}

.side-cta {
  background: var(--color-primary-light);
  border-radius: var(--radius-card);
  padding: 26px;
  margin-top: 20px;
  text-align: center;
}

.side-cta p {
  font-size: 15px;
  color: var(--color-text-soft);
  margin-bottom: 14px;
}

@media (max-width: 900px) {
  .content-layout {
    grid-template-columns: 1fr;
  }
  .side-panel {
    position: static;
  }
}

/* ---------- City page specific ---------- */
.local-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 32px 0 40px;
}

.local-stat {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 20px;
  text-align: center;
}

.local-stat strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 26px;
  color: var(--color-primary);
  margin-bottom: 4px;
}

.local-stat span {
  font-size: 14px;
  color: var(--color-text-soft);
}

.mid-cta {
  background: var(--color-bg-warm);
  border-radius: var(--radius-card);
  padding: 40px;
  text-align: center;
  margin: 48px 0;
}

.mid-cta h3 {
  font-size: 26px;
  margin-bottom: 10px;
}

.mid-cta p {
  color: var(--color-text-soft);
  max-width: 520px;
  margin: 0 auto 22px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.related-chip {
  display: block;
  text-align: center;
  padding: 14px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  font-weight: 600;
  color: var(--color-text);
}

.related-chip:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

@media (max-width: 700px) {
  .local-stats {
    grid-template-columns: 1fr;
  }
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------- Duo panel: two-sided comparison (city pages) ---------- */
.duo-panel {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin: 28px 0;
}

.duo-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-top: 4px solid var(--color-primary);
  border-radius: var(--radius-card);
  padding: 26px 24px;
  box-shadow: var(--shadow-card);
}

.duo-card h3 {
  font-size: 19px;
  margin-bottom: 10px;
}

.duo-card p {
  color: var(--color-text-soft);
  margin: 0;
  font-size: 16px;
}

@media (max-width: 560px) {
  .duo-panel {
    grid-template-columns: 1fr;
  }
}

/* ---------- Timeline list (city pages) ---------- */
.timeline-list {
  margin: 28px 0;
}

.timeline-item {
  position: relative;
  padding: 0 0 22px 28px;
  border-left: 2px solid var(--color-primary-light);
}

.timeline-item:last-child {
  border-left: 2px solid transparent;
  padding-bottom: 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-primary);
}

.timeline-item h3 {
  font-size: 17px;
  margin: 0 0 4px;
}

.timeline-item p {
  margin: 0;
  color: var(--color-text-soft);
  font-size: 15.5px;
}

/* ---------- Highlight panel (city pages) ---------- */
.highlight-panel {
  background: var(--color-bg-warm);
  border-radius: var(--radius-card);
  padding: 32px;
  margin: 28px 0;
}

.highlight-panel p:last-child {
  margin-bottom: 0;
}

/* ---------- Overlapping circle cluster (city pages) ---------- */
.circle-cluster {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 28px 0;
}

.circle-chip {
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
  border-radius: 999px;
  padding: 10px 22px;
  font-weight: 600;
  font-size: 15px;
}

.circle-chip:nth-child(even) {
  background: var(--color-bg-warm);
  color: var(--color-text);
}

/* ---------- Quote card grid (city pages) ---------- */
.quote-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin: 28px 0;
}

.quote-card {
  background: var(--color-bg-soft);
  border-radius: var(--radius-card);
  padding: 32px 26px 26px;
  position: relative;
  overflow: hidden;
}

.quote-card::before {
  content: "\201C";
  font-family: var(--font-heading);
  font-size: 64px;
  color: var(--color-primary-light);
  position: absolute;
  top: -6px;
  left: 16px;
  line-height: 1;
}

.quote-card p {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 17px;
  color: var(--color-text);
  margin: 22px 0 0;
  position: relative;
  z-index: 1;
}

@media (max-width: 560px) {
  .quote-card-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Profile prompt list (city pages) ---------- */
.prompt-list {
  margin: 24px 0;
  border-left: 3px solid var(--color-primary);
  padding-left: 20px;
}

.prompt-list p {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 17px;
  color: var(--color-text);
  padding: 12px 0;
  margin: 0;
  border-bottom: 1px solid var(--color-border);
}

.prompt-list p:last-child {
  border-bottom: none;
}

/* ---------- Seasonal / photo-pair / table components (city pages) ---------- */
.season-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 28px 0 40px;
}

.season-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 22px 20px;
}

.season-card h3 {
  font-size: 17px;
  margin-bottom: 12px;
  color: var(--color-primary);
}

.season-card ul li {
  padding-left: 18px;
  margin-bottom: 8px;
  font-size: 15px;
}

.season-card ul li::before {
  left: -2px;
  top: 8px;
  width: 6px;
  height: 6px;
}

.photo-pair {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 28px 0;
}

.photo-pair figure {
  margin: 0;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.photo-pair img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.photo-pair figcaption {
  padding: 12px 16px;
  font-size: 14.5px;
  color: var(--color-text-soft);
  background: var(--color-bg-soft);
}

.table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.info-table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 15.5px;
}

.info-table th,
.info-table td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--color-border);
}

.info-table th {
  background: var(--color-bg-soft);
  font-family: var(--font-heading);
  color: var(--color-text);
}

.info-table td {
  color: var(--color-text-soft);
}

@media (max-width: 900px) {
  .season-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .season-grid,
  .photo-pair {
    grid-template-columns: 1fr;
  }
  .info-table {
    font-size: 14.5px;
  }
  .info-table th,
  .info-table td {
    padding: 10px 12px;
  }
}

/* ---------- Legal / help page specific ---------- */
.legal-meta {
  font-size: 14.5px;
  color: var(--color-text-soft);
  margin-bottom: 32px;
}

.help-topic-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 8px;
}

.help-topic-card {
  display: block;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 24px;
}

.help-topic-card h3 {
  font-size: 18.5px;
  margin-bottom: 6px;
}

.help-topic-card p {
  font-size: 15px;
  color: var(--color-text-soft);
  margin: 0;
}

@media (max-width: 700px) {
  .help-topic-grid {
    grid-template-columns: 1fr;
  }
}

.verify-note {
  display: block;
  background: var(--color-bg-warm);
  border-left: 3px solid var(--color-primary);
  padding: 10px 16px;
  border-radius: 0 8px 8px 0;
  font-size: 14px;
  color: var(--color-text-soft);
  margin: 14px 0;
}
