/* ==========================================================================
   Royal Heights Inc. Oshawa | "A Day in the Life" Warm Interactive Slideshow
   Palette: Warm Sunlight Cream, Honey Gold, Antique Gold, Royal Navy, Sage
   ========================================================================== */

:root {
  --navy: #1E2456;
  --navy-deep: #14193E;
  --navy-soft: #2B3370;
  --gold: #E6B333;
  --gold-soft: #FBF1D5;
  --gold-deep: #B58214;
  --cream: #FDF9F1;
  --cream-warm: #F6EFE0;
  --white: #FFFFFF;
  --sage: #2F6653;
  --sage-soft: #E9F3EE;
  --ink: #1D2233;
  --muted: #4C5368;
  --border: #E5DCCB;
  --shadow-lg: 0 24px 60px rgba(20, 25, 62, 0.14);
  --shadow-md: 0 12px 30px rgba(20, 25, 62, 0.10);
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius-xl: 26px;
  --radius-lg: 18px;
  --radius-md: 12px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
}

html.large-text {
  font-size: 18.5px;
}

body {
  font-family: var(--font-sans);
  background: radial-gradient(circle at top left, #FFFDF7 0%, var(--cream-warm) 60%, #EFE5D1 100%);
  color: var(--ink);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

button, input, select {
  font-family: inherit;
}

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

/* ==========================================================================
   Top Presentation Bar
   ========================================================================== */
.topbar {
  background: var(--navy-deep);
  color: var(--white);
  border-bottom: 3px solid var(--gold);
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  z-index: 50;
}

.topbar-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--white);
}

.topbar-brand img {
  height: 44px;
  width: auto;
}

.topbar-title {
  display: flex;
  flex-direction: column;
}

.topbar-title strong {
  font-family: var(--font-serif);
  font-size: 1.08rem;
  letter-spacing: 0.01em;
  color: var(--white);
}

.topbar-title span {
  font-size: 0.78rem;
  color: var(--gold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
}

.topbar-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ctrl-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.ctrl-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: var(--gold);
}

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

.ctrl-btn--cta {
  background: var(--gold);
  color: var(--navy-deep);
  border-color: var(--gold);
  font-weight: 700;
}

.ctrl-btn--cta:hover {
  background: #F3C44E;
  color: var(--navy-deep);
}

/* Autoplay progress bar */
.progress-track {
  height: 4px;
  background: rgba(30, 36, 86, 0.12);
  width: 100%;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 8.33%;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold));
  transition: width 0.35s ease;
}

/* ==========================================================================
   Main Slideshow Stage
   ========================================================================== */
.stage-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 24px 20px 18px;
  position: relative;
}

.deck {
  width: 100%;
  max-width: 1220px;
  position: relative;
}

.slide {
  display: none;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  min-height: 600px;
  animation: slideFadeIn 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.slide.is-active {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
}

.slide--cover.is-active,
.slide--cta.is-active {
  grid-template-columns: 1fr;
}

@keyframes slideFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.992);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ==========================================================================
   Slide 1: Warm Cover Slide
   ========================================================================== */
.cover-inner {
  position: relative;
  min-height: 600px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 60%, #2C336E 100%);
  color: var(--white);
}

.cover-copy {
  padding: 52px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
}

.cover-crest {
  height: 76px;
  width: auto;
  align-self: flex-start;
}

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  background: rgba(230, 179, 51, 0.18);
  border: 1px solid rgba(230, 179, 51, 0.55);
  color: var(--gold);
  padding: 6px 15px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.cover-copy h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 3.6vw, 3.3rem);
  line-height: 1.12;
  color: var(--white);
}

.cover-copy p {
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.88);
  max-width: 540px;
}

.cover-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cover-tag {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 7px 14px;
  border-radius: 10px;
  font-size: 0.88rem;
  color: var(--white);
  font-weight: 600;
}

.cover-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}

.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--gold);
  color: var(--navy-deep);
  border: none;
  border-radius: 999px;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s, background 0.2s;
}

.btn-gold:hover {
  background: #F4C54C;
  transform: translateY(-2px);
}

.btn-outline-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  padding: 13px 24px;
  font-size: 0.96rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--gold);
}

.cover-collage {
  position: relative;
  padding: 28px 28px 28px 0;
  display: grid;
  grid-template-rows: 1.15fr 0.85fr;
  gap: 14px;
}

.cover-photo-main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 3px solid rgba(230, 179, 51, 0.5);
  position: relative;
}

.cover-photo-main img,
.cover-photo-row img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cover-photo-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.cover-photo-sub {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.22);
}

/* ==========================================================================
   Standard Story Slides (Slides 2 through 11)
   ========================================================================== */
.slide-media {
  position: relative;
  background: var(--navy);
  min-height: 580px;
  overflow: hidden;
}

.slide-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 6s ease-out;
}

.slide.is-active .slide-main-img {
  transform: scale(1.03);
}

.slide-time-badge {
  position: absolute;
  top: 22px;
  left: 22px;
  background: rgba(20, 25, 62, 0.92);
  color: var(--gold);
  border: 1.5px solid rgba(230, 179, 51, 0.65);
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.slide-inset {
  position: absolute;
  right: 20px;
  bottom: 20px;
  width: 225px;
  background: var(--white);
  padding: 7px;
  border-radius: 14px;
  box-shadow: 0 14px 32px rgba(15, 20, 50, 0.32);
  border: 1px solid rgba(230, 179, 51, 0.55);
}

.slide-inset img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  border-radius: 9px;
}

.slide-inset figcaption {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--navy);
  padding: 6px 4px 2px;
  text-align: center;
}

.slide-content {
  padding: 44px 44px 38px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  background: linear-gradient(180deg, #FFFFFF 0%, #FDFBF6 100%);
}

.chapter-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--gold-deep);
}

.chapter-label::before {
  content: "";
  width: 26px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
}

.slide-content h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 2.5vw, 2.35rem);
  line-height: 1.18;
  color: var(--navy);
}

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

.detail-list {
  list-style: none;
  display: grid;
  gap: 10px;
}

.detail-list li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 0.96rem;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 10px 14px;
}

.detail-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 800;
  margin-top: 2px;
}

.quote-box {
  background: var(--gold-soft);
  border-left: 4px solid var(--gold-deep);
  border-radius: 0 12px 12px 0;
  padding: 14px 18px;
  font-size: 0.94rem;
  color: var(--navy-deep);
}

.quote-box p {
  font-style: italic;
  margin-bottom: 5px;
}

.quote-box cite {
  font-style: normal;
  font-weight: 700;
  font-size: 0.84rem;
  color: var(--navy);
}

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

.dist-pill {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 10px 13px;
}

.dist-pill strong {
  display: block;
  color: var(--navy);
  font-size: 0.92rem;
}

.dist-pill span {
  font-size: 0.83rem;
  color: var(--sage);
  font-weight: 600;
}

.slide-footer-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  border-top: 1px solid var(--border);
  font-size: 0.84rem;
  color: var(--muted);
  margin-top: auto;
}

.pillar-chip {
  background: var(--sage-soft);
  color: var(--sage);
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
}

/* ==========================================================================
   Slide 12: Warm Call-to-Action Closing Slide
   ========================================================================== */
.cta-slide-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 600px;
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 100%);
  color: var(--white);
}

.cta-left {
  padding: 48px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
}

.cta-left h2 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3vw, 2.75rem);
  line-height: 1.15;
  color: var(--white);
}

.cta-left p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.03rem;
}

.cta-contact-cards {
  display: grid;
  gap: 10px;
  margin-top: 4px;
}

.cta-contact-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(230, 179, 51, 0.4);
  border-radius: 12px;
  padding: 12px 16px;
  color: var(--white);
  text-decoration: none;
  transition: background 0.2s;
}

.cta-contact-card:hover {
  background: rgba(230, 179, 51, 0.2);
}

.cta-contact-card strong {
  color: var(--gold);
  font-size: 1.05rem;
}

.cta-contact-card span {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.84);
}

.cta-right {
  background: var(--cream);
  color: var(--ink);
  padding: 40px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cta-right h3 {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  color: var(--navy);
  margin-bottom: 6px;
}

.cta-right > p {
  color: var(--muted);
  font-size: 0.94rem;
  margin-bottom: 18px;
}

.tour-form {
  display: grid;
  gap: 12px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

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

.field input,
.field select {
  width: 100%;
  padding: 11px 13px;
  border-radius: 10px;
  border: 1.5px solid #D3C9B6;
  background: var(--white);
  font-size: 0.95rem;
  color: var(--ink);
}

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

.btn-submit {
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: 12px;
  padding: 14px 20px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 4px;
  transition: background 0.2s, transform 0.2s;
}

.btn-submit:hover {
  background: var(--gold-deep);
  transform: translateY(-1px);
}

.form-confirm {
  display: none;
  background: var(--sage-soft);
  border: 1.5px solid var(--sage);
  color: #184334;
  border-radius: 14px;
  padding: 20px;
  margin-top: 10px;
}

.form-confirm.is-visible {
  display: block;
}

.form-confirm h4 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  margin-bottom: 6px;
}

/* ==========================================================================
   Bottom Day-Clock Timeline & Navigation Dock
   ========================================================================== */
.dock {
  width: 100%;
  max-width: 1220px;
  margin: 16px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.nav-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--navy);
  color: var(--white);
  border: 2px solid var(--navy);
  border-radius: 999px;
  padding: 11px 20px;
  font-size: 0.94rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  white-space: nowrap;
}

.nav-arrow:hover:not(:disabled) {
  background: var(--gold-deep);
  border-color: var(--gold-deep);
  transform: translateY(-1px);
}

.nav-arrow:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.timeline {
  display: flex;
  align-items: center;
  gap: 5px;
  overflow-x: auto;
  padding: 4px 2px;
  flex: 1;
  justify-content: center;
}

.time-dot {
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--navy);
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

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

.time-dot.is-active {
  background: var(--navy);
  color: var(--gold);
  border-color: var(--navy);
  box-shadow: 0 4px 12px rgba(20, 25, 62, 0.2);
}

.slide-counter {
  font-size: 0.86rem;
  color: var(--muted);
  font-weight: 600;
  text-align: center;
  margin-top: 8px;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 980px) {
  .slide.is-active,
  .cover-inner,
  .cta-slide-inner {
    grid-template-columns: 1fr;
  }
  .slide-media {
    min-height: 320px;
    max-height: 380px;
  }
  .cover-collage {
    padding: 0 24px 28px;
    grid-template-rows: 220px 140px;
  }
  .cover-copy,
  .slide-content,
  .cta-left,
  .cta-right {
    padding: 28px 24px;
  }
  .slide-inset {
    width: 170px;
    right: 12px;
    bottom: 12px;
  }
  .slide-inset img {
    height: 95px;
  }
  .dock {
    flex-wrap: wrap;
    justify-content: center;
  }
  .timeline {
    order: 3;
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 600px) {
  .form-row,
  .pill-grid {
    grid-template-columns: 1fr;
  }
  .slide-inset {
    display: none;
  }
  .topbar {
    padding: 10px 14px;
  }
}

/* ==========================================================================
   Print / Save as PDF Slides (1 Slide Per Landscape Page)
   ========================================================================== */
@media print {
  @page {
    size: landscape;
    margin: 0.4in;
  }
  body {
    background: #FFFFFF;
  }
  .topbar,
  .progress-track,
  .dock,
  .slide-counter {
    display: none !important;
  }
  .stage-wrap {
    padding: 0;
  }
  .slide {
    display: grid !important;
    page-break-after: always;
    break-after: page;
    box-shadow: none;
    border: 1px solid #CCC;
    margin-bottom: 0;
    min-height: 6.8in;
  }
  .slide--cover,
  .slide--cta {
    grid-template-columns: 1fr !important;
  }
}
