/* ============================================================
   Saint Rick — Victorian Father Christmas
   Palette: near-black, deep crimson, aged gold, warm ivory
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;0,700;1,300;1,400&family=Cormorant+SC:wght@400;600&family=Lato:wght@300;400;700&display=swap');

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #1A0A0A;
  --bg-card:   #2E1A1A;
  --crimson:   #8B1A1A;
  --crimson-lt:#A52020;
  --gold:      #C9A84C;
  --gold-lt:   #E2C46C;
  --ivory:     #F5EFE6;
  --ivory-dim: #B8AFA4;
  --white:     #FFFFFF;

  --ff-display: 'Cormorant Garamond', Georgia, serif;
  --ff-sc:      'Cormorant SC', Georgia, serif;
  --ff-body:    'Lato', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg);
  color: var(--ivory);
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a   { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-lt); }

/* ---------- Victorian Rule ---------- */
.ornament {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0 auto 2.5rem;
  max-width: 340px;
}
.ornament::before,
.ornament::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to var(--dir, right), transparent, var(--gold));
}
.ornament::after { --dir: left; }
.ornament-diamond {
  width: 8px; height: 8px;
  background: var(--gold);
  transform: rotate(45deg);
  flex-shrink: 0;
}

/* ---------- Section Eyebrow ---------- */
.eyebrow {
  font-family: var(--ff-sc);
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  display: block;
}

/* ---------- Navigation ---------- */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2.5rem;
  background: transparent;
  transition: background 0.4s, backdrop-filter 0.4s;
}
#navbar.scrolled {
  background: rgba(26, 10, 10, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(201, 168, 76, 0.18);
}
.nav-brand {
  font-family: var(--ff-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--ivory);
  letter-spacing: 0.04em;
}
.nav-brand span { color: var(--gold); }
.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  font-family: var(--ff-sc);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  color: var(--ivory-dim);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--gold); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--ivory);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ---------- Hero ---------- */
#hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: 0 2.5rem 5rem;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('/static/images/rick_and_christmas_tree.jpg');
  background-size: cover;
  background-position: center top;
  filter: brightness(0.45);
  transform: scale(1.03);
  transition: transform 8s ease-out;
}
.hero-bg.loaded { transform: scale(1); }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(26,10,10,0.95) 0%,
    rgba(26,10,10,0.3)  50%,
    rgba(26,10,10,0.1)  100%
  );
}
.hero-content {
  position: relative;
  max-width: 780px;
}
.hero-eyebrow {
  font-family: var(--ff-sc);
  font-size: 0.85rem;
  letter-spacing: 0.28em;
  color: var(--gold);
  margin-bottom: 1rem;
  display: block;
}
.hero-title {
  font-family: var(--ff-display);
  font-size: clamp(3.8rem, 9vw, 8rem);
  font-weight: 300;
  line-height: 0.95;
  color: var(--ivory);
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}
.hero-title em {
  font-style: italic;
  color: var(--gold);
}
.hero-subtitle {
  font-family: var(--ff-display);
  font-size: clamp(1.1rem, 2.2vw, 1.5rem);
  font-weight: 300;
  color: var(--ivory-dim);
  margin-bottom: 2.5rem;
  max-width: 520px;
  line-height: 1.5;
}
.btn-primary {
  display: inline-block;
  padding: 0.85rem 2.4rem;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: var(--ff-sc);
  font-size: 0.82rem;
  letter-spacing: 0.2em;
  transition: background 0.25s, color 0.25s;
}
.btn-primary:hover {
  background: var(--gold);
  color: var(--bg);
}
.btn-secondary {
  display: inline-block;
  padding: 0.85rem 2.4rem;
  background: var(--crimson);
  color: var(--ivory);
  font-family: var(--ff-sc);
  font-size: 0.82rem;
  letter-spacing: 0.2em;
  transition: background 0.25s;
}
.btn-secondary:hover {
  background: var(--crimson-lt);
  color: var(--ivory);
}
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ---------- Sections (shared) ---------- */
.section {
  padding: 6rem 2.5rem;
  max-width: 1100px;
  margin: 0 auto;
}
.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.section-title {
  font-family: var(--ff-display);
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 300;
  line-height: 1.1;
  color: var(--ivory);
  margin-bottom: 1rem;
}
.section-lead {
  font-size: 1.05rem;
  color: var(--ivory-dim);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.75;
}

/* ---------- About ---------- */
#about { border-top: 1px solid rgba(201,168,76,0.12); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.about-image-wrap {
  position: relative;
}
.about-image-wrap img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: center top;
}
.about-image-frame {
  position: absolute;
  inset: 1rem -1rem -1rem 1rem;
  border: 1px solid rgba(201,168,76,0.3);
  pointer-events: none;
  z-index: -1;
}
.about-text h2 {
  font-family: var(--ff-display);
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  font-weight: 300;
  margin-bottom: 1.5rem;
  line-height: 1.15;
}
.about-text p {
  color: var(--ivory-dim);
  margin-bottom: 1.2rem;
  font-size: 1.02rem;
}
.about-text p:last-child { margin-bottom: 0; }

/* ---------- Events ---------- */
#events { background: var(--bg-card); }
#events .section { max-width: 1100px; }
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}
.event-card {
  border: 1px solid rgba(201,168,76,0.2);
  padding: 2rem 1.75rem;
  transition: border-color 0.25s, background 0.25s;
}
.event-card:hover {
  border-color: var(--gold);
  background: rgba(201,168,76,0.04);
}
.event-icon {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}
.event-card h3 {
  font-family: var(--ff-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ivory);
  margin-bottom: 0.5rem;
}
.event-card p {
  font-size: 0.92rem;
  color: var(--ivory-dim);
  line-height: 1.6;
}

/* ---------- Gallery ---------- */
#gallery { border-top: 1px solid rgba(201,168,76,0.12); }
.carousel {
  position: relative;
  overflow: hidden;
}
.carousel-track {
  display: flex;
  transition: transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.carousel-slide {
  flex: 0 0 100%;
  max-height: 620px;
  overflow: hidden;
  position: relative;
}
.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.carousel-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 1.5rem 2rem;
  background: linear-gradient(to top, rgba(26,10,10,0.85), transparent);
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--ivory-dim);
}
.carousel-btn {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  background: rgba(26,10,10,0.7);
  border: 1px solid rgba(201,168,76,0.35);
  color: var(--gold);
  width: 48px; height: 48px;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, border-color 0.2s;
  z-index: 2;
}
.carousel-btn:hover { background: rgba(139,26,26,0.8); border-color: var(--gold); }
.carousel-btn.prev { left: 1rem; }
.carousel-btn.next { right: 1rem; }
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1.5rem;
}
.carousel-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(201,168,76,0.3);
  cursor: pointer;
  transition: background 0.2s;
  border: none;
}
.carousel-dot.active { background: var(--gold); }

/* ---------- Book ---------- */
#book {
  background: var(--bg-card);
  border-top: 1px solid rgba(201,168,76,0.12);
}
.book-inner {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 5rem;
  align-items: start;
}
.book-info h2 {
  font-family: var(--ff-display);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 300;
  margin-bottom: 1.2rem;
  line-height: 1.15;
}
.book-info p {
  color: var(--ivory-dim);
  font-size: 1rem;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}
.contact-detail {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 2rem;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--ivory-dim);
}
.contact-item .label {
  font-family: var(--ff-sc);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--gold);
  min-width: 60px;
}
.contact-item a { color: var(--ivory-dim); }
.contact-item a:hover { color: var(--ivory); }

/* ---------- Booking Form ---------- */
.booking-form { display: flex; flex-direction: column; gap: 1.2rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label {
  font-family: var(--ff-sc);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--gold);
}
.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(201,168,76,0.25);
  color: var(--ivory);
  padding: 0.75rem 1rem;
  font-family: var(--ff-body);
  font-size: 0.95rem;
  width: 100%;
  transition: border-color 0.2s;
  appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.form-group select option { background: var(--bg-card); color: var(--ivory); }
.form-group textarea { resize: vertical; min-height: 110px; }
.form-submit { margin-top: 0.4rem; }
.form-submit .btn-secondary { width: 100%; text-align: center; cursor: pointer; border: none; }

/* ---------- Flash Messages ---------- */
.flash-messages { padding: 1rem 2.5rem 0; max-width: 1100px; margin: 0 auto; }
.flash {
  padding: 1rem 1.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}
.flash.success { background: rgba(201,168,76,0.12); border-left: 3px solid var(--gold); color: var(--ivory); }
.flash.error   { background: rgba(139,26,26,0.2);  border-left: 3px solid var(--crimson); color: var(--ivory); }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid rgba(201,168,76,0.12);
  padding: 2.5rem 2.5rem;
  text-align: center;
  color: rgba(184,175,164,0.45);
  font-size: 0.82rem;
  letter-spacing: 0.05em;
}
footer .footer-name {
  font-family: var(--ff-display);
  font-size: 1.15rem;
  color: rgba(201,168,76,0.4);
  display: block;
  margin-bottom: 0.5rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .about-grid  { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-image-frame { display: none; }
  .book-inner  { grid-template-columns: 1fr; gap: 2.5rem; }
  .form-row    { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  #hero        { padding: 0 1.25rem 4rem; }
  .section     { padding: 4rem 1.25rem; }
  .nav-links   { display: none; }
  .nav-toggle  { display: flex; }
  #navbar      { padding: 1rem 1.25rem; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(26,10,10,0.97);
    align-items: center;
    justify-content: center;
    gap: 2rem;
    z-index: 99;
  }
  .nav-links.open a { font-size: 1.1rem; }
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .hero-bg, .carousel-track { transition: none; }
  html { scroll-behavior: auto; }
}
