/* ==========================================================================
   Royal Heights Inc. | Mockup 01: "The Royal Perspective"
   Editorial Heritage Brochure Magazine Design System
   Palette: Deep Royal Navy (#232450), Warm Goldenrod (#E6B333),
            Antique Gold (#C59326), Warm Ivory Linen (#FAF7F0),
            Crisp White (#FFFFFF), Charcoal Ink (#1F2433)
   ========================================================================== */

:root {
  --navy: #232450;
  --navy-deep: #181A3B;
  --navy-soft: #31346E;
  --gold: #E6B333;
  --gold-antique: #C59326;
  --gold-deep: #9E7318;
  --gold-cream: #FCF4DD;
  --ivory: #FAF7F0;
  --ivory-deep: #F1EBDC;
  --white: #FFFFFF;
  --ink: #1F2433;
  --ink-muted: #4A5168;
  --border: #E4DCC8;
  --border-strong: #D2C6A8;
  --success-bg: #EDF6F0;
  --success-ink: #1F5B3A;

  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 4px 16px rgba(35, 36, 80, 0.06);
  --shadow-md: 0 12px 32px rgba(35, 36, 80, 0.10);
  --shadow-lg: 0 22px 52px rgba(24, 26, 59, 0.18);

  --container: 1200px;
  --transition: 0.24s ease;
}

/* Base Reset & Senior-Friendly Typography */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17.5px;
  line-height: 1.7;
  color: var(--ink);
  background-color: var(--ivory);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: var(--navy);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  transition: color var(--transition), background-color var(--transition), border-color var(--transition);
}

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

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--navy);
  line-height: 1.2;
  margin-top: 0;
  font-weight: 700;
}

h1 {
  font-size: clamp(2.2rem, 4.2vw, 3.35rem);
  letter-spacing: -0.015em;
}

h2 {
  font-size: clamp(1.75rem, 3vw, 2.45rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.3rem, 2vw, 1.6rem);
}

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

p:last-child {
  margin-bottom: 0;
}

:focus-visible {
  outline: 3px solid var(--gold);
  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 {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--navy);
  color: var(--white);
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  z-index: 2000;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

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

.section {
  padding-block: 76px;
}

.section-tight {
  padding-block: 52px;
}

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

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

.bg-ivory-deep {
  background-color: var(--ivory-deep);
}

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

.bg-navy h2,
.bg-navy h3,
.bg-navy h4 {
  color: var(--white);
}

/* ==========================================================================
   Top Golden Utility Bar
   ========================================================================== */
.utility-bar {
  background-color: var(--gold);
  color: var(--navy-deep);
  font-size: 0.92rem;
  font-weight: 600;
  border-bottom: 1px solid var(--gold-antique);
}

.utility-bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
  padding-block: 9px;
}

.utility-address {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.utility-phones {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
}

.utility-bar a {
  color: var(--navy-deep);
  text-decoration: none;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.utility-bar a:hover {
  text-decoration: underline;
}

.utility-sep {
  opacity: 0.45;
  font-weight: 400;
}

/* ==========================================================================
   Sticky Navy & White Editorial Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background-color: var(--white);
  border-bottom: 3px solid var(--navy);
  box-shadow: 0 4px 18px rgba(35, 36, 80, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 82px;
  padding-block: 10px;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-crest {
  width: 58px;
  height: 58px;
  object-fit: contain;
  flex-shrink: 0;
}

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

.brand-name {
  font-family: var(--font-serif);
  font-size: 1.38rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.01em;
}

.brand-tagline {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--gold-deep);
  margin-top: 3px;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
}

.nav-link {
  display: inline-block;
  padding: 10px 13px;
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  border-radius: var(--radius-sm);
  position: relative;
}

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

.nav-link.is-active {
  background-color: var(--navy);
  color: var(--white);
}

.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 5px;
  height: 2px;
  background-color: var(--gold);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--navy);
  color: var(--white);
  border: 2px solid var(--navy);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.18s ease, background-color var(--transition), color var(--transition), border-color var(--transition), box-shadow var(--transition);
}

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

.btn-gold {
  background-color: var(--gold);
  color: var(--navy-deep);
  border-color: var(--gold);
  box-shadow: 0 4px 12px rgba(197, 147, 38, 0.28);
}

.btn-gold:hover {
  background-color: #DDA722;
  border-color: #DDA722;
  color: var(--navy-deep);
}

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

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

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

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

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

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

.btn-sm {
  padding: 10px 16px;
  font-size: 0.92rem;
}

/* ==========================================================================
   Editorial Motifs: Issue Eyebrows, Drop-Caps, Crown Dividers, Final Thought
   ========================================================================== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold-deep);
  margin-bottom: 14px;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background-color: var(--gold-antique);
}

.eyebrow-light {
  color: var(--gold);
}

.eyebrow-light::before {
  background-color: var(--gold);
}

.section-header {
  max-width: 760px;
  margin-bottom: 44px;
}

.section-header.centered {
  margin-inline: auto;
  text-align: center;
}

.section-header.centered .eyebrow {
  justify-content: center;
}

.section-header.centered .eyebrow::after {
  content: "";
  width: 28px;
  height: 2px;
  background-color: var(--gold-antique);
}

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

.bg-navy .lead {
  color: rgba(255, 255, 255, 0.86);
}

/* Editorial Drop-Cap Story Intro */
.drop-cap::first-letter {
  font-family: var(--font-serif);
  font-size: 3.6rem;
  font-weight: 700;
  line-height: 0.82;
  float: left;
  padding-top: 6px;
  padding-right: 12px;
  padding-bottom: 2px;
  color: var(--gold-antique);
}

/* Subtle Crown & Crest Divider */
.crest-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-block: 12px;
  color: var(--gold-antique);
}

.crest-divider::before,
.crest-divider::after {
  content: "";
  flex: 1;
  max-width: 220px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-antique), transparent);
}

.crest-divider svg {
  width: 28px;
  height: 20px;
  fill: var(--gold-antique);
  flex-shrink: 0;
}

/* Warm Goldenrod "A Final Thought..." Pamphlet Callout Box */
.final-thought-box {
  background: linear-gradient(135deg, var(--gold-cream) 0%, #FFFBF0 100%);
  border: 1px solid var(--gold);
  border-left: 7px solid var(--gold);
  border-radius: var(--radius-md);
  padding: 36px 40px;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.final-thought-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--navy);
  background-color: var(--gold);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.final-thought-box h2,
.final-thought-box h3 {
  font-family: var(--font-serif);
  color: var(--navy);
  margin-bottom: 14px;
}

.final-thought-box p {
  color: var(--ink);
  font-size: 1.08rem;
  max-width: 78ch;
}

.final-thought-actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

/* ==========================================================================
   Homepage Editorial Split-Cover Hero (Brochure Cover Aesthetic)
   ========================================================================== */
.hero-editorial {
  background-color: var(--navy);
  position: relative;
  overflow: hidden;
  border-bottom: 6px solid var(--gold);
}

.hero-split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  min-height: 620px;
}

.hero-cover-panel {
  padding: 58px 48px 58px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  color: var(--white);
}

.hero-issue-banner {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: var(--gold);
  color: var(--navy-deep);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 7px 14px;
  border-radius: 3px;
  width: fit-content;
  margin-bottom: 22px;
}

.hero-cover-panel h1 {
  color: var(--white);
  margin-bottom: 18px;
}

.hero-cover-panel h1 .gold-accent {
  color: var(--gold);
  font-style: italic;
}

.hero-rule {
  width: 76px;
  height: 4px;
  background-color: var(--gold);
  margin-bottom: 22px;
}

.hero-lead {
  font-size: 1.16rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 54ch;
  margin-bottom: 28px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 30px;
}

.hero-fact-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-top: 22px;
  border-top: 1px solid rgba(230, 179, 51, 0.35);
}

.hero-fact strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--gold);
}

.hero-fact span {
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.35;
  display: block;
}

.hero-visual-panel {
  position: relative;
  min-height: 480px;
  background-color: var(--navy-deep);
}

.hero-visual-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-gold-ribbon {
  position: absolute;
  top: 28px;
  left: 28px;
  background: rgba(35, 36, 80, 0.92);
  color: var(--white);
  border-left: 4px solid var(--gold);
  padding: 12px 18px;
  border-radius: 4px;
  backdrop-filter: blur(4px);
  max-width: 290px;
}

.hero-gold-ribbon strong {
  display: block;
  font-size: 0.9rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-gold-ribbon span {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.92);
}

.hero-caption-card {
  position: absolute;
  bottom: 24px;
  right: 24px;
  left: 24px;
  background-color: rgba(250, 247, 240, 0.96);
  color: var(--ink);
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  border-top: 3px solid var(--gold);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.hero-caption-card p {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.45;
}

.hero-caption-card strong {
  color: var(--navy);
}

/* ==========================================================================
   Interior Page Editorial Masthead Banner
   ========================================================================== */
.page-masthead {
  background: linear-gradient(125deg, var(--navy-deep) 0%, var(--navy) 65%, #2D316A 100%);
  color: var(--white);
  padding-block: 62px 58px;
  border-bottom: 5px solid var(--gold);
  position: relative;
}

.page-masthead-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 36px;
  align-items: center;
}

.page-masthead h1 {
  color: var(--white);
  margin-bottom: 16px;
}

.page-masthead .lead {
  color: rgba(255, 255, 255, 0.88);
  max-width: 58ch;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0 0 18px 0;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.76);
}

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

.breadcrumb a:hover {
  text-decoration: underline;
}

.masthead-side-card {
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(230, 179, 51, 0.45);
  border-top: 4px solid var(--gold);
  border-radius: var(--radius-md);
  padding: 24px 26px;
}

.masthead-side-card h2 {
  font-size: 1.22rem;
  color: var(--gold);
  margin-bottom: 10px;
}

.masthead-side-card ul {
  margin: 0;
  padding-left: 18px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.96rem;
}

.masthead-side-card li + li {
  margin-top: 6px;
}

/* ==========================================================================
   Editorial Story Chapters (Magazine Alternating Spreads)
   ========================================================================== */
.chapter-list {
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.chapter-spread {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.chapter-spread.is-reversed .chapter-media {
  order: 2;
}

.chapter-spread.is-reversed .chapter-body {
  order: 1;
}

.chapter-number {
  font-family: var(--font-serif);
  font-size: 0.92rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--gold-deep);
  margin-bottom: 8px;
  display: block;
}

.chapter-media {
  position: relative;
}

.editorial-frame {
  background: var(--white);
  padding: 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.editorial-frame img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
}

.editorial-frame figcaption {
  padding: 12px 6px 4px;
  font-size: 0.88rem;
  color: var(--ink-muted);
  font-style: italic;
}

.chapter-highlights {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: grid;
  gap: 10px;
}

.chapter-highlights li {
  position: relative;
  padding-left: 26px;
  font-size: 0.98rem;
  color: var(--ink);
}

.chapter-highlights li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--gold-deep);
  font-weight: 800;
}

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

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

.editorial-card {
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}

.editorial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.editorial-card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background-color: var(--ivory-deep);
}

.editorial-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.editorial-card:hover .editorial-card-media img {
  transform: scale(1.03);
}

.card-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background-color: var(--navy);
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 4px;
}

.editorial-card-body {
  padding: 26px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.suite-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--gold-deep);
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.editorial-card-footer {
  margin-top: auto;
  padding-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Value Ribbon Banner */
.value-banner {
  background-color: var(--navy);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: 34px 38px;
  border-top: 5px solid var(--gold);
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 28px;
  align-items: center;
  box-shadow: var(--shadow-md);
}

.value-banner h2 {
  color: var(--white);
  margin-bottom: 10px;
}

.value-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.value-pill {
  background-color: rgba(230, 179, 51, 0.16);
  border: 1px solid rgba(230, 179, 51, 0.55);
  color: var(--gold);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
}

/* ==========================================================================
   Resident Voices / Editorial Pull-Quotes
   ========================================================================== */
.story-card {
  background-color: var(--white);
  border: 1px solid var(--border);
  border-top: 4px solid var(--gold);
  border-radius: var(--radius-md);
  padding: 32px 30px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.quote-mark {
  font-family: var(--font-serif);
  font-size: 3.4rem;
  line-height: 0.6;
  color: var(--gold);
  margin-bottom: 14px;
  display: block;
}

.story-quote {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--navy);
  line-height: 1.62;
  margin-bottom: 20px;
}

.story-author {
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.story-author strong {
  display: block;
  color: var(--navy);
  font-size: 1rem;
}

.story-author span {
  font-size: 0.88rem;
  color: var(--ink-muted);
}

/* ==========================================================================
   Interactive Suite Photo Gallery (suites.html)
   ========================================================================== */
.gallery-stage {
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: var(--shadow-md);
}

.gallery-main {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background-color: var(--navy-deep);
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-caption-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 6px 10px;
}

.gallery-caption-bar strong {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--navy);
  display: block;
}

.gallery-caption-bar span {
  font-size: 0.95rem;
  color: var(--ink-muted);
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin-top: 12px;
}

.gallery-thumb {
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  padding: 0;
  overflow: hidden;
  background: none;
  cursor: pointer;
  aspect-ratio: 4 / 3;
  opacity: 0.72;
  transition: opacity var(--transition), border-color var(--transition), transform var(--transition);
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-thumb:hover,
.gallery-thumb.is-active {
  opacity: 1;
  border-color: var(--gold);
  transform: translateY(-2px);
}

/* ==========================================================================
   Comparison Table (Home vs. Royal Heights)
   ========================================================================== */
.table-wrap {
  overflow-x: auto;
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 640px;
}

.comparison-table th,
.comparison-table td {
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.comparison-table thead th {
  background-color: var(--navy);
  color: var(--white);
  font-family: var(--font-serif);
  font-size: 1.12rem;
}

.comparison-table thead th.col-royal {
  background-color: var(--gold);
  color: var(--navy-deep);
}

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

.comparison-table tbody tr:nth-child(even) {
  background-color: #FCFBF7;
}

.comparison-table td.col-royal {
  background-color: rgba(252, 244, 221, 0.45);
  font-weight: 600;
  color: var(--navy);
}

/* ==========================================================================
   Filter Pills (clubhouse.html & oshawa.html)
   ========================================================================== */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}

.filter-btn {
  background-color: var(--white);
  color: var(--navy);
  border: 1.5px solid var(--border-strong);
  border-radius: 999px;
  padding: 9px 18px;
  font-family: var(--font-sans);
  font-size: 0.94rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
}

.filter-btn:hover {
  border-color: var(--navy);
}

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

.is-hidden {
  display: none !important;
}

/* ==========================================================================
   Neighbourhood Distances Grid (oshawa.html)
   ========================================================================== */
.distance-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.distance-card {
  background-color: var(--white);
  border: 1px solid var(--border);
  border-left: 5px solid var(--navy);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}

.distance-card.is-landmark {
  border-left-color: var(--gold);
  background: linear-gradient(180deg, #FFFDF7 0%, var(--white) 100%);
}

.distance-cat {
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold-deep);
}

.distance-card h3 {
  font-size: 1.2rem;
  margin-bottom: 4px;
}

.distance-times {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.time-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.86rem;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 999px;
  background-color: var(--ivory);
  color: var(--navy);
  border: 1px solid var(--border);
}

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

/* ==========================================================================
   Pet Spotlight Banner (clubhouse.html)
   ========================================================================== */
.pet-spotlight {
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  box-shadow: var(--shadow-md);
}

.pet-spotlight-img img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}

.pet-spotlight-body {
  padding: 42px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ==========================================================================
   FAQ Accordion & Expandable Pamphlet Booklets
   ========================================================================== */
.accordion-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.accordion-item {
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.accordion-trigger {
  width: 100%;
  background: none;
  border: none;
  padding: 22px 26px;
  text-align: left;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
}

.accordion-trigger:hover {
  background-color: #FDFBF5;
}

.accordion-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: var(--gold-cream);
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 700;
  flex-shrink: 0;
  transition: transform var(--transition), background-color var(--transition);
}

.accordion-item.is-open .accordion-icon {
  background-color: var(--gold);
  transform: rotate(45deg);
}

.accordion-panel {
  padding: 0 26px 24px;
  color: var(--ink-muted);
  border-top: 1px solid var(--ivory-deep);
}

.accordion-panel[hidden] {
  display: none;
}

/* ==========================================================================
   Signature Interactive Feature: 10 Signs Downsizing Self-Check Quiz
   ========================================================================== */
.quiz-shell {
  background-color: var(--white);
  border: 2px solid var(--navy);
  border-top: 7px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
}

.quiz-header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.quiz-progress-wrap {
  min-width: 240px;
}

.quiz-progress-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
  display: flex;
  justify-content: space-between;
}

.quiz-progress-track {
  height: 10px;
  background-color: var(--ivory-deep);
  border-radius: 999px;
  overflow: hidden;
}

.quiz-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold-antique), var(--gold));
  border-radius: 999px;
  transition: width 0.3s ease;
}

.quiz-questions {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.quiz-item {
  background-color: var(--ivory);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px 24px;
  align-items: center;
  transition: border-color var(--transition), background-color var(--transition);
}

.quiz-item.is-answered {
  border-color: var(--gold-antique);
  background-color: #FFFDF7;
}

.quiz-q-num {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--gold-deep);
  margin-right: 8px;
}

.quiz-q-text {
  font-weight: 600;
  color: var(--navy);
  font-size: 1.02rem;
}

.quiz-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.quiz-opt-btn {
  background-color: var(--white);
  color: var(--navy);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 9px 14px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
}

.quiz-opt-btn:hover {
  border-color: var(--navy);
  background-color: var(--ivory);
}

.quiz-opt-btn.is-selected {
  background-color: var(--navy);
  color: var(--gold);
  border-color: var(--navy);
}

.quiz-actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.quiz-result-box {
  margin-top: 28px;
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 100%);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: 34px 36px;
  border-left: 7px solid var(--gold);
}

.quiz-result-box[hidden] {
  display: none;
}

.quiz-score-badge {
  display: inline-block;
  background-color: var(--gold);
  color: var(--navy-deep);
  font-weight: 800;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.quiz-result-box h3 {
  color: var(--white);
  font-size: 1.75rem;
  margin-bottom: 12px;
}

.quiz-result-box p {
  color: rgba(255, 255, 255, 0.92);
  max-width: 72ch;
}

/* ==========================================================================
   Forms (Inline Tour Form & Global Modal)
   ========================================================================== */
.tour-form-card {
  background-color: var(--white);
  border: 1px solid var(--border);
  border-top: 5px solid var(--navy);
  border-radius: var(--radius-md);
  padding: 36px;
  box-shadow: var(--shadow-md);
}

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

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field.full-span {
  grid-column: 1 / -1;
}

.form-field label {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--navy);
}

.form-field input,
.form-field select,
.form-field textarea {
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--ink);
  background-color: var(--ivory);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  transition: border-color var(--transition), background-color var(--transition);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--navy);
  background-color: var(--white);
  box-shadow: 0 0 0 3px rgba(230, 179, 51, 0.35);
}

.form-confirmation {
  background-color: var(--success-bg);
  border: 1.5px solid #96C9AA;
  border-left: 6px solid var(--success-ink);
  border-radius: var(--radius-md);
  padding: 24px;
  color: var(--success-ink);
}

.form-confirmation[hidden] {
  display: none;
}

.form-confirmation h3 {
  color: var(--success-ink);
  margin-bottom: 8px;
}

/* Modal Overlay */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(24, 26, 59, 0.72);
  backdrop-filter: blur(3px);
  z-index: 1500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop[hidden] {
  display: none;
}

.modal-dialog {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  border-top: 6px solid var(--gold);
  max-width: 640px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  padding: 34px 36px;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--border-strong);
  background-color: var(--ivory);
  color: var(--navy);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

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

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background-color: var(--navy-deep);
  color: rgba(255, 255, 255, 0.86);
  border-top: 6px solid var(--gold);
  padding-top: 64px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 36px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.footer-brand img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.footer-brand-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--white);
}

.footer-brand-sub {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--gold);
  display: block;
}

.site-footer h3 {
  color: var(--gold);
  font-size: 1.1rem;
  margin-bottom: 16px;
}

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

.footer-links a {
  color: rgba(255, 255, 255, 0.86);
  text-decoration: none;
  font-size: 0.96rem;
}

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

.footer-bottom {
  padding-block: 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.7);
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 1080px) {
  .primary-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--white);
    border-bottom: 4px solid var(--gold);
    padding: 20px 24px 26px;
    box-shadow: var(--shadow-lg);
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .primary-nav.is-open {
    display: flex;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }

  .nav-link {
    padding: 12px 16px;
    font-size: 1.05rem;
  }

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

  .hero-split,
  .page-masthead-grid,
  .chapter-spread,
  .value-banner,
  .pet-spotlight {
    grid-template-columns: 1fr;
  }

  .hero-cover-panel {
    padding: 48px 0 36px;
  }

  .hero-visual-panel {
    min-height: 380px;
  }

  .chapter-spread.is-reversed .chapter-media,
  .chapter-spread.is-reversed .chapter-body {
    order: initial;
  }

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

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

@media (max-width: 720px) {
  body {
    font-size: 17px;
  }

  .section {
    padding-block: 54px;
  }

  .utility-bar-inner {
    justify-content: center;
    text-align: center;
  }

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

  .hero-fact-strip,
  .card-grid-3,
  .card-grid-2,
  .distance-grid,
  .form-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .quiz-shell,
  .final-thought-box,
  .tour-form-card,
  .pet-spotlight-body,
  .modal-dialog {
    padding: 26px 22px;
  }

  .quiz-item {
    grid-template-columns: 1fr;
  }

  .hero-caption-card {
    flex-direction: column;
    align-items: flex-start;
  }
}
