/* ==========================================================================
   Royal Heights Oshawa | Mockup 08: Skyline Clarity (55+ Accessible)
   Scandinavian-Royal Clarity | WCAG AAA Contrast | Atkinson Hyperlegible + Bitter
   ========================================================================== */

:root {
  /* Core Palette */
  --ivory: #FCFBF7;
  --white: #FFFFFF;
  --navy: #161E4A;
  --navy-deep: #0F1538;
  --navy-soft: #24306B;
  --gold: #D49B1A;
  --gold-bright: #E4AD2A;
  --gold-soft: #FDF5DF;
  --blue-tint: #EAF0FA;
  --blue-tint-strong: #DCE6F7;
  --ink: #141824;
  --ink-muted: #343C54;
  --border: #C5CEE0;
  --border-strong: #8F9DBB;
  --success-bg: #E6F4EC;
  --success-ink: #0F4B2B;
  --error-bg: #FCECEB;
  --error-ink: #8C1D18;

  /* Typography */
  --font-heading: 'Bitter', Georgia, 'Times New Roman', serif;
  --font-body: 'Atkinson Hyperlegible', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Radii & Spacing */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-card: 0 4px 18px rgba(22, 30, 74, 0.07);
  --shadow-lift: 0 10px 28px rgba(22, 30, 74, 0.13);
  --focus-ring: 3px solid #D49B1A;
  --container-max: 1180px;
}

/* Text Size Scaling via Reader Comfort Toolbar */
html {
  font-size: 19px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

html[data-text-size="large"] {
  font-size: 21.5px;
}

html[data-text-size="xlarge"] {
  font-size: 24px;
}

html[data-text-size="large"] .header-inner,
html[data-text-size="xlarge"] .header-inner {
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
}

html[data-text-size="xlarge"] .main-nav {
  flex-wrap: wrap;
  gap: 0.25rem;
}

html[data-text-size="xlarge"] .nav-link {
  font-size: 0.85rem;
  padding: 0.45rem 0.6rem;
}

html[data-text-size="xlarge"] .header-actions .btn {
  font-size: 0.88rem;
  padding: 0.55rem 0.9rem;
}

/* High Contrast Mode (Persisted Across All 5 Pages) */
html[data-contrast="high"] {
  --ivory: #FFFFFF;
  --white: #FFFFFF;
  --navy: #0B1136;
  --navy-deep: #000000;
  --navy-soft: #0B1136;
  --gold: #FFC833;
  --gold-bright: #FFD55C;
  --gold-soft: #FFF5CC;
  --blue-tint: #FFFFFF;
  --blue-tint-strong: #F2F5FC;
  --ink: #000000;
  --ink-muted: #111111;
  --border: #000000;
  --border-strong: #000000;
  --shadow-card: none;
  --shadow-lift: none;
  --focus-ring: 4px solid #000000;
}

html[data-contrast="high"] body a:not(.btn):not(.action-card):not(.nav-link):not(.brand-link) {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

html[data-contrast="high"] .card,
html[data-contrast="high"] .action-card,
html[data-contrast="high"] .rate-box,
html[data-contrast="high"] .suite-card,
html[data-contrast="high"] .amenity-card,
html[data-contrast="high"] .quote-card,
html[data-contrast="high"] .safety-card,
html[data-contrast="high"] .faq-item,
html[data-contrast="high"] .form-panel,
html[data-contrast="high"] .info-panel,
html[data-contrast="high"] .distance-table-wrap,
html[data-contrast="high"] .photo-card,
html[data-contrast="high"] .radio-card-label {
  border: 2.5px solid #000000 !important;
  box-shadow: none !important;
}

html[data-contrast="high"] .comfort-bar {
  background: #000000;
  border-bottom: 3px solid #FFC833;
}

html[data-contrast="high"] .site-header {
  border-bottom: 3px solid #000000;
}

html[data-contrast="high"] .btn-outline {
  border-width: 2.5px;
  border-color: #000000;
  color: #000000;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--ivory);
  overflow-x: hidden;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--navy);
  line-height: 1.25;
  margin-top: 0;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(1.95rem, 3.6vw, 2.75rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

h2 {
  font-size: clamp(1.55rem, 2.8vw, 2.15rem);
  font-weight: 700;
  margin-bottom: 0.65rem;
}

h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

p {
  margin-top: 0;
  margin-bottom: 1rem;
}

a {
  color: var(--navy);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--navy-deep);
}

:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 3px;
}

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

/* Skip Link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 2000;
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  padding: 0.85rem 1.25rem;
  text-decoration: none;
  border: 2px solid var(--navy);
}

.skip-link:focus {
  left: 0.75rem;
  top: 0.75rem;
}

/* Layout Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 3.75rem 0;
}

.section-white {
  background-color: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-tint {
  background-color: var(--blue-tint);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-navy {
  background-color: var(--navy);
  color: var(--white);
}

.section-navy h2,
.section-navy h3,
.section-navy p,
.section-navy a {
  color: var(--white);
}

.section-header {
  max-width: 780px;
  margin-bottom: 2.25rem;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--navy);
  background: var(--gold-soft);
  border: 1.5px solid var(--gold);
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 0.85rem;
}

.lead {
  font-size: 1.12rem;
  color: var(--ink-muted);
  line-height: 1.65;
}

/* ==========================================================================
   SIGNATURE MOTIF: Reader Comfort Toolbar (Every Page)
   ========================================================================== */
.comfort-bar {
  background-color: var(--navy);
  color: var(--white);
  border-bottom: 3px solid var(--gold);
  padding: 0.55rem 0;
  position: relative;
  z-index: 100;
}

.comfort-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
}

.comfort-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
}

.comfort-label {
  font-size: 0.86rem;
  font-weight: 700;
  color: #E7ECF8;
  margin-right: 0.15rem;
}

.size-controls {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.12);
  border: 1.5px solid rgba(255, 255, 255, 0.38);
  border-radius: var(--radius-sm);
  padding: 2px;
  gap: 3px;
}

.comfort-btn {
  appearance: none;
  border: 1.5px solid transparent;
  background: transparent;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 700;
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 40px;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.comfort-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.comfort-btn[aria-pressed="true"] {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}

.contrast-btn {
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.1);
}

.contrast-btn[aria-pressed="true"] {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}

.comfort-call-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-sm);
  min-height: 44px;
  border: 2px solid var(--gold);
  white-space: nowrap;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.comfort-call-btn:hover {
  background: var(--gold-bright);
  color: var(--navy-deep);
  transform: translateY(-1px);
}

/* ==========================================================================
   Main Header & Navigation
   ========================================================================== */
.site-header {
  background: var(--white);
  border-bottom: 2px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 90;
  box-shadow: 0 2px 10px rgba(22, 30, 74, 0.05);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo {
  height: 52px;
  width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.nav-link {
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--navy);
  padding: 0.55rem 0.8rem;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.nav-link:hover {
  background: var(--blue-tint);
  color: var(--navy-deep);
}

.nav-link[aria-current="page"] {
  background: var(--blue-tint);
  border-color: var(--navy);
  color: var(--navy-deep);
}

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

.menu-toggle {
  display: none;
  appearance: none;
  background: var(--blue-tint);
  color: var(--navy);
  border: 2px solid var(--navy);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.5rem 0.85rem;
  min-height: 46px;
  cursor: pointer;
  align-items: center;
  gap: 0.45rem;
}

/* ==========================================================================
   Buttons (AAA Contrast: Navy on Gold, White on Navy, Navy on White)
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.25;
  text-decoration: none;
  padding: 0.8rem 1.4rem;
  min-height: 52px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
  text-align: center;
}

.btn-gold {
  background-color: var(--gold);
  color: var(--navy);
  border-color: var(--navy);
}

.btn-gold:hover {
  background-color: var(--gold-bright);
  color: var(--navy-deep);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(22, 30, 74, 0.16);
}

.btn-navy {
  background-color: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.btn-navy:hover {
  background-color: var(--navy-soft);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-outline {
  background-color: var(--white);
  color: var(--navy);
  border-color: var(--navy);
}

.btn-outline:hover {
  background-color: var(--blue-tint);
  color: var(--navy-deep);
}

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

.btn-outline-light:hover {
  background-color: rgba(255, 255, 255, 0.15);
  color: var(--white);
}

.btn-sm {
  min-height: 44px;
  padding: 0.55rem 1rem;
  font-size: 0.92rem;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}

/* ==========================================================================
   Hero & Page Banners
   ========================================================================== */
.hero {
  padding: 2.75rem 0 3.25rem;
  background: linear-gradient(180deg, var(--white) 0%, var(--ivory) 100%);
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-fact-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.2rem;
  margin: 1.25rem 0 1.6rem;
  padding: 0.9rem 1.1rem;
  background: var(--blue-tint);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-md);
  font-weight: 700;
  color: var(--navy);
  font-size: 0.96rem;
}

.hero-fact-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.hero-photo-frame {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

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

.hero-photo-caption {
  padding: 0.95rem 1.2rem;
  background: var(--white);
  border-top: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  font-size: 0.92rem;
  color: var(--navy);
  font-weight: 700;
}

/* Direct Action Cards Strip */
.action-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
  margin-top: 2.25rem;
}

.action-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.35rem 1.35rem;
  background: var(--white);
  border: 2px solid var(--navy);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--shadow-card);
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
  width: 100%;
  transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.action-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
  background: var(--blue-tint);
}

.action-card-gold {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--navy);
}

.action-card-gold:hover {
  background: var(--gold-bright);
}

.action-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--navy);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.action-card-title {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.25rem;
}

.action-card-sub {
  display: block;
  font-size: 0.92rem;
  color: var(--ink-muted);
  line-height: 1.45;
}

.action-card-gold .action-card-sub {
  color: var(--navy-deep);
  font-weight: 700;
}

/* Interior Page Header */
.page-banner {
  background: var(--white);
  border-bottom: 2px solid var(--border);
  padding: 2.35rem 0 2.5rem;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink-muted);
  margin-bottom: 1rem;
}

.breadcrumb a {
  color: var(--navy);
  text-decoration: underline;
}

/* Numbered Quick Jump Summary */
.jump-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.9rem;
  margin-top: 1.75rem;
}

.jump-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  background: var(--blue-tint);
  border: 2px solid var(--border-strong);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--navy);
  font-weight: 700;
  font-size: 0.95rem;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.jump-link:hover {
  background: var(--gold-soft);
  border-color: var(--navy);
}

.step-badge {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-badge-gold {
  background: var(--gold);
  color: var(--navy);
  border: 2px solid var(--navy);
}

/* ==========================================================================
   Cards, Pillars & Grids
   ========================================================================== */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.35rem;
}

.card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.65rem;
  box-shadow: var(--shadow-card);
}

.pillar-card {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.pillar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.pillar-num {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--gold);
  color: var(--navy);
  border: 2px solid var(--navy);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.icon-box {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: var(--blue-tint);
  color: var(--navy);
  border: 1.5px solid var(--border-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Rate Highlight Box */
.rate-box {
  background: var(--white);
  border: 2.5px solid var(--navy);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
}

.rate-left {
  background: var(--navy);
  color: var(--white);
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.rate-left h2,
.rate-left p {
  color: var(--white);
}

.rate-price {
  font-family: var(--font-heading);
  font-size: clamp(2.1rem, 4vw, 2.95rem);
  font-weight: 700;
  color: var(--gold-bright);
  line-height: 1.1;
  margin: 0.45rem 0 0.75rem;
}

.rate-right {
  padding: 2.25rem;
  background: var(--white);
}

/* Checklists */
.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.75rem;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  line-height: 1.5;
}

.check-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--success-bg);
  color: var(--success-ink);
  border: 1.5px solid var(--success-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.info-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--blue-tint);
  color: var(--navy);
  border: 1.5px solid var(--navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Photo Cards (Zero Clutter Over Photos) */
.photo-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}

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

.photo-card-body {
  padding: 1.35rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.photo-card-body p:last-child {
  margin-bottom: 0;
}

/* Resident Quotes */
.quote-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-top: 6px solid var(--gold);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.25rem;
}

.quote-text {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink);
  margin: 0;
}

.quote-author {
  border-top: 1.5px solid var(--border);
  padding-top: 0.9rem;
}

.quote-name {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--navy);
  font-size: 1.05rem;
}

.quote-meta {
  display: block;
  font-size: 0.9rem;
  color: var(--ink-muted);
}

/* Suite Cards (Apartments Page) */
.suite-card {
  background: var(--white);
  border: 2px solid var(--navy);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}

.suite-card-head {
  background: var(--blue-tint);
  border-bottom: 2px solid var(--border);
  padding: 1.35rem 1.5rem;
}

.suite-tag {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  font-size: 0.84rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  margin-bottom: 0.55rem;
}

.suite-size {
  font-family: var(--font-heading);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0.2rem 0 0;
}

.suite-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.25rem;
}

/* Filter Tabs (Activities Page) */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.75rem;
}

.filter-btn {
  appearance: none;
  background: var(--white);
  color: var(--navy);
  border: 2px solid var(--navy);
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.94rem;
  padding: 0.55rem 1.15rem;
  min-height: 46px;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.filter-btn:hover {
  background: var(--blue-tint);
}

.filter-btn[aria-pressed="true"] {
  background: var(--navy);
  color: var(--white);
}

.event-card[hidden] {
  display: none !important;
}

/* Feature Split Box (Pet Friendly / Hospital Feature) */
.feature-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  background: var(--white);
  border: 2px solid var(--navy);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.feature-split-media img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

.feature-split-body {
  padding: 2rem;
}

/* Safety Cards */
.safety-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
}

/* Distance Table (Large Print) */
.distance-table-wrap {
  background: var(--white);
  border: 2px solid var(--navy);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.distance-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.distance-table thead th {
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 1rem;
  padding: 1.05rem 1.25rem;
  border-bottom: 3px solid var(--gold);
}

.distance-table tbody td {
  padding: 1.05rem 1.25rem;
  border-bottom: 1.5px solid var(--border);
  vertical-align: middle;
}

.distance-table tbody tr:nth-child(even) {
  background: var(--blue-tint);
}

.distance-table tbody tr:last-child td {
  border-bottom: none;
}

.place-name {
  font-weight: 700;
  color: var(--navy);
  display: block;
}

.place-note {
  font-size: 0.88rem;
  color: var(--ink-muted);
}

.time-pill {
  display: inline-block;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
  background: var(--white);
  border: 1.5px solid var(--navy);
  color: var(--navy);
  white-space: nowrap;
}

.time-pill-gold {
  background: var(--gold-soft);
  border-color: var(--navy);
}

/* ==========================================================================
   Accessible Large-Input Forms & Radio Cards
   ========================================================================== */
.tour-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: start;
}

.form-panel,
.info-panel {
  background: var(--white);
  border: 2px solid var(--navy);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-card);
}

.field-group {
  margin-bottom: 1.35rem;
}

.field-label {
  display: block;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.4rem;
  font-size: 1rem;
}

.field-hint {
  display: block;
  font-size: 0.88rem;
  color: var(--ink-muted);
  margin-bottom: 0.45rem;
}

.text-input,
.select-input,
.textarea-input {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--white);
  border: 2px solid var(--navy);
  border-radius: var(--radius-sm);
  padding: 0.8rem 1rem;
  min-height: 54px;
}

.textarea-input {
  min-height: 120px;
  resize: vertical;
}

.text-input:focus,
.select-input:focus,
.textarea-input:focus {
  outline: var(--focus-ring);
  outline-offset: 2px;
  border-color: var(--navy-deep);
}

.radio-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.radio-card-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.radio-card {
  position: relative;
}

.radio-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.radio-card-label {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0.9rem 1rem;
  min-height: 62px;
  background: var(--ivory);
  border: 2px solid var(--border-strong);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.radio-card-title {
  font-weight: 700;
  color: var(--navy);
  display: block;
  line-height: 1.3;
}

.radio-card-sub {
  font-size: 0.86rem;
  color: var(--ink-muted);
  display: block;
  margin-top: 0.15rem;
}

.radio-card input[type="radio"]:checked + .radio-card-label {
  background: var(--gold-soft);
  border: 2.5px solid var(--navy);
  box-shadow: inset 0 0 0 2px var(--gold);
}

.radio-card input[type="radio"]:focus-visible + .radio-card-label {
  outline: var(--focus-ring);
  outline-offset: 2px;
}

.field-error {
  color: var(--error-ink);
  background: var(--error-bg);
  border: 1.5px solid var(--error-ink);
  border-radius: 6px;
  padding: 0.45rem 0.7rem;
  font-size: 0.9rem;
  font-weight: 700;
  margin-top: 0.45rem;
  display: none;
}

.field-error.visible {
  display: block;
}

.form-success {
  background: var(--success-bg);
  color: var(--success-ink);
  border: 2px solid var(--success-ink);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-top: 1rem;
  display: none;
}

.form-success.visible {
  display: block;
}

.form-success h3 {
  color: var(--success-ink);
}

/* ==========================================================================
   FAQ Accordion
   ========================================================================== */
.faq-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.faq-list {
  display: grid;
  gap: 0.85rem;
}

.faq-item {
  background: var(--white);
  border: 2px solid var(--border-strong);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-trigger {
  width: 100%;
  background: var(--white);
  color: var(--navy);
  border: none;
  padding: 1.2rem 1.4rem;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  min-height: 60px;
}

.faq-trigger:hover {
  background: var(--blue-tint);
}

.faq-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--blue-tint);
  border: 1.5px solid var(--navy);
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: var(--font-body);
  font-size: 1.3rem;
  line-height: 1;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.faq-trigger[aria-expanded="true"] .faq-icon {
  background: var(--gold);
  transform: rotate(45deg);
}

.faq-panel {
  padding: 0 1.4rem 1.35rem;
  border-top: 1.5px solid var(--border);
  background: var(--ivory);
  color: var(--ink);
}

.faq-panel p:first-child {
  margin-top: 1rem;
}

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

/* ==========================================================================
   CTA Banner & Footer
   ========================================================================== */
.cta-band {
  background: var(--navy);
  color: var(--white);
  padding: 3.5rem 0;
  border-top: 4px solid var(--gold);
}

.cta-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: center;
}

.cta-band h2 {
  color: var(--white);
}

.cta-band p {
  color: #E5EBF7;
}

.cta-phone-box {
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid var(--gold);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.cta-phone-link {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--gold-bright);
  text-decoration: none;
  margin-bottom: 0.35rem;
}

.cta-phone-link:hover {
  text-decoration: underline;
}

.site-footer {
  background: var(--navy-deep);
  color: #E5EBF7;
  padding: 3.25rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.1fr;
  gap: 2rem;
  margin-bottom: 2.25rem;
}

.footer-logo {
  height: 50px;
  width: auto;
  margin-bottom: 1rem;
}

.footer-heading {
  font-family: var(--font-heading);
  color: var(--gold-bright);
  font-size: 1.05rem;
  margin-bottom: 0.85rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.55rem;
}

.footer-links a {
  color: var(--white);
  text-decoration: none;
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--gold-bright);
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.88rem;
  color: #D2DCF0;
}

/* ==========================================================================
   Accessible Book a Private Tour Modal
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 21, 56, 0.74);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  overflow-y: auto;
}

.modal-backdrop.open {
  display: flex;
}

.modal-dialog {
  background: var(--white);
  border: 3px solid var(--navy);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 620px;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.modal-header {
  background: var(--navy);
  color: var(--white);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 3px solid var(--gold);
}

.modal-header h2 {
  color: var(--white);
  font-size: 1.35rem;
  margin: 0;
}

.modal-close {
  appearance: none;
  background: var(--white);
  color: var(--navy);
  border: 2px solid var(--gold);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0.45rem 0.85rem;
  min-height: 44px;
  cursor: pointer;
}

.modal-close:hover {
  background: var(--gold);
  color: var(--navy);
}

.modal-body {
  padding: 1.5rem;
}

/* ==========================================================================
   Responsive Design (Senior-Friendly Large Tap Targets on Mobile)
   ========================================================================== */
@media (max-width: 1060px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 3px solid var(--navy);
    padding: 1rem 1.25rem 1.25rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.45rem;
    box-shadow: var(--shadow-lift);
  }

  .main-nav.open {
    display: flex;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .hero-grid,
  .rate-box,
  .feature-split,
  .tour-layout,
  .cta-grid {
    grid-template-columns: 1fr;
  }

  .grid-4,
  .jump-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 780px) {
  .action-cards,
  .grid-3,
  .grid-2,
  .radio-card-grid,
  .radio-card-grid-3 {
    grid-template-columns: 1fr;
  }

  .header-actions .btn-gold {
    display: none;
  }

  .comfort-inner {
    justify-content: flex-start;
  }

  .comfort-call-btn {
    width: 100%;
    justify-content: center;
  }

  .section {
    padding: 2.75rem 0;
  }

  /* Responsive Large-Print Distance Table */
  .distance-table thead {
    display: none;
  }

  .distance-table,
  .distance-table tbody,
  .distance-table tr,
  .distance-table td {
    display: block;
    width: 100%;
  }

  .distance-table tr {
    padding: 1rem 1.1rem;
    border-bottom: 2px solid var(--border);
  }

  .distance-table tbody td {
    padding: 0.35rem 0;
    border-bottom: none;
  }

  .distance-table tbody td::before {
    content: attr(data-label) ": ";
    font-weight: 700;
    color: var(--navy);
  }

  .distance-table tbody td:first-child::before {
    content: none;
  }
}

@media (max-width: 560px) {
  .grid-4,
  .jump-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .brand-logo {
    height: 44px;
  }
}
