/* Santa Booking: the main website's header and footer, so these pages match it.
   Copied from src/styles/site.css (tokens, Header, Footer). If those change, copy them again. */
:root {
  --ink: #1d1512;
  --ink-2: #4b403a;
  --ink-3: #7b6f67;
  --paper: #f8f5ef;
  --paper-2: #efe8dc;
  --line: #e0d6c7;
  --maroon: #571607;
  --maroon-2: #7a1914;
  --maroon-deep: #2b0b05;
  --green: #143822;
  --gold: #b08a3e;

  --f-serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --f-sans: 'IBM Plex Sans', 'IBM Plex Sans Arabic', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-ar: 'IBM Plex Sans Arabic', 'IBM Plex Sans', 'Segoe UI', Tahoma, sans-serif;
  --f-ar-display: 'Markazi Text', 'IBM Plex Sans Arabic', serif;

  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(44px, 6vw, 84px);
  --radius-s: 4px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes fadeInUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }

/* =====================================================================
   Header
   ===================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(248, 245, 239, 0.96);
  border-bottom: 1px solid var(--line);
  font-family: var(--f-sans);
  transition: box-shadow 0.25s;
}
.site-header.is-scrolled { box-shadow: 0 6px 20px -14px rgba(29, 21, 18, 0.35); }
@supports (backdrop-filter: blur(8px)) {
  .site-header { background: rgba(248, 245, 239, 0.86); backdrop-filter: saturate(1.2) blur(10px); }
}
.header-inner {
  max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); min-width: 0; }
.brand:hover { text-decoration: none; }
.brand img { width: 46px; height: 46px; flex: none; }
.brand-text { display: grid; line-height: 1.2; font-family: var(--f-serif); font-weight: 600; font-size: 1.02rem; letter-spacing: -0.005em; }
.brand-text small { font-family: var(--f-ar); font-weight: 500; font-size: 0.8rem; color: var(--ink-3); letter-spacing: 0; direction: rtl; text-align: left; }

.site-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.site-nav a {
  display: block; padding: 10px 12px; color: var(--ink); text-decoration: none;
  font-size: 0.95rem; font-weight: 500; border-radius: var(--radius-s); white-space: nowrap;
}
.site-nav a:hover { color: var(--maroon); text-decoration: none; }
.site-nav a[aria-current='page'] { color: var(--maroon); box-shadow: inset 0 -2px 0 var(--maroon); border-radius: 0; }

.nav-toggle { display: none; }
.nav-backdrop { display: none; }

@media (max-width: 979px) {
  .header-inner { min-height: 64px; }
  .brand img { width: 40px; height: 40px; }
  .brand-text { font-size: 0.95rem; }
  .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; padding: 0 10px; border: 1px solid var(--line); border-radius: var(--radius-s);
    background: #fff; cursor: pointer; flex: none; position: relative; z-index: 62;
  }
  .nav-toggle-bar { display: block; height: 2px; background: var(--ink); border-radius: 1px; transition: transform 0.25s var(--ease), opacity 0.2s; }
  .nav-toggle.is-open .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.is-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
  .nav-toggle.is-open .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .site-nav {
    position: fixed; top: 0; right: 0; bottom: 0; width: min(86vw, 360px); z-index: 61;
    background: var(--paper); border-left: 1px solid var(--line); padding: 84px 20px 28px; overflow-y: auto;
    transform: translateX(100%); transition: transform 0.3s var(--ease); visibility: hidden;
  }
  .site-nav.is-open { transform: none; visibility: visible; }
  .site-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav > ul > li { border-bottom: 1px solid var(--line); }
  .site-nav a { padding: 14px 4px; font-size: 1.05rem; }
  .site-nav a[aria-current='page'] { box-shadow: none; font-weight: 600; }
  .nav-backdrop { display: block; position: fixed; inset: 0; z-index: 60; background: rgba(29, 21, 18, 0.4); opacity: 0; transition: opacity 0.2s; }
  .nav-backdrop.is-visible { opacity: 1; }
  .nav-backdrop[hidden] { display: none; }
}
@media (max-width: 480px) {
  .brand-text { font-size: 0.9rem; }
  .brand-text small { display: none; }
}
body.nav-locked { overflow: hidden; }

/* Phones: no frosted glass on the header. backdrop-filter makes the header the
   containing block for its fixed children, which would trap the menu drawer
   and its backdrop inside the header's own height. */
@media (max-width: 979px) {
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--paper); }
}

/* =====================================================================
   Footer
   ===================================================================== */
.site-footer { background: var(--maroon-deep); color: #d9c9c0; font-family: var(--f-sans); font-size: 0.95rem; margin-top: 0; }
.site-footer a { color: #f3e9e3; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer-inner {
  max-width: var(--wrap); margin: 0 auto; padding: clamp(48px, 7vw, 80px) var(--gutter) 40px;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px;
}
.footer-brand { display: grid; gap: 14px; align-content: start; }
.footer-logo { display: flex; align-items: center; gap: 12px; }
.footer-logo img { width: 52px; height: 52px; background: #fff; border-radius: 50%; padding: 3px; }
.footer-name { font-family: var(--f-serif); font-weight: 600; font-size: 1.15rem; line-height: 1.25; color: #fff; margin: 0; }
.footer-name-ar { font-family: var(--f-ar); font-size: 0.95rem; color: #d9c9c0; margin: 0; text-align: left; }
.footer-address { margin: 0; color: #bfaea4; line-height: 1.6; }
.footer-h { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: #c9a86a; margin: 0 0 16px; }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-list small { display: block; color: #a99389; font-size: 0.78rem; }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a {
  width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 50%;
}
.footer-social a:hover { background: rgba(255, 255, 255, 0.1); text-decoration: none; }
.footer-bottom {
  max-width: var(--wrap); margin: 0 auto; padding: 20px var(--gutter) 28px; border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: 0.82rem; color: #a99389;
}
.footer-bottom p { margin: 0; }
@media (max-width: 900px) { .footer-inner { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-inner { grid-template-columns: 1fr; gap: 32px; } .footer-bottom { justify-content: center; text-align: center; } }

.site-footer { margin-top: 48px; }

/* ---------- Page hero, the same as the main site's inner pages (copied from src/styles/site.css) ---------- */
.hero, .hero-wrap { box-sizing: border-box; }
.hero { margin-inline: -16px; }
.hero-wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.hero picture { position: absolute; inset: 0; }
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.t-h1 { font-family: var(--f-serif); font-weight: 600; color: var(--ink); margin: 0; letter-spacing: -0.015em; text-wrap: balance; }
.t-h1 { font-size: clamp(2.5rem, 5.6vw, 4.6rem); line-height: 1.03; }
.t-ar-h1 { font-family: var(--f-ar-display); font-weight: 700; margin: 0; color: var(--ink); text-wrap: balance; }
.t-ar-h1 { font-size: clamp(2.3rem, 5vw, 4rem); line-height: 1.15; }
.t-meta { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--maroon); margin: 0; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 48px; padding: 0 1.5rem; border-radius: var(--radius-s);
  font: 600 0.98rem/1 var(--f-sans); text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent; transition: background 0.2s, color 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.btn--light { background: #fff; color: var(--maroon); }
.btn--light:hover { background: var(--paper-2); }
.btn--ghost { border-color: rgba(255, 255, 255, 0.7); color: #fff; }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 560px) {.btn-row .btn { flex: 1 1 auto; }}
.bi { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); position: relative; }
.bi::before { content: ''; position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; background: var(--line); }
.bi > [dir='rtl'] { text-align: right; }
@media (max-width: 760px) {.bi { grid-template-columns: 1fr; gap: 24px; }.bi::before { display: none; }.bi > [dir='rtl'] { padding-top: 24px; border-top: 1px solid var(--line); }}

.ph-titles { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 8px 40px; }
.ph-titles .t-ar-h1 { text-align: end; color: var(--maroon); }
@media (max-width: 760px) {.ph-titles { grid-template-columns: 1fr; }.ph-titles .t-ar-h1 { text-align: right; }}
.hero { position: relative; min-height: min(88svh, 820px); display: grid; align-items: end; color: #fff; overflow: hidden; background: var(--maroon-deep); }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.hero::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(20, 8, 4, 0.78) 0%, rgba(20, 8, 4, 0.5) 45%, rgba(20, 8, 4, 0) 75%),
    linear-gradient(180deg, rgba(20, 8, 4, 0) 40%, rgba(20, 8, 4, 0.7) 100%);
}
@media (max-width: 760px) {.hero::after { background: linear-gradient(180deg, rgba(20, 8, 4, 0.15) 0%, rgba(20, 8, 4, 0.6) 40%, rgba(20, 8, 4, 0.92) 100%); }}
.hero .t-meta { color: #e8cf9a; }
.hero .t-h1 { color: #fff; max-width: 19ch; }
.hero-lead { margin: 0; max-width: 56ch; font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: #efe3db; line-height: 1.6; }
.hero-lead[dir='rtl'] { text-align: left; font-size: clamp(1.1rem, 1.5vw, 1.25rem); }
.hero .btn-row { margin-top: 6px; }
.hero-img { animation: heroZoom 9s var(--ease) both; transform-origin: 50% 60%; }
@media (prefers-reduced-motion: reduce) {.hero-img { animation: none; }}
.hero--page { min-height: min(74svh, 660px); }
.hero--short { min-height: min(60svh, 520px); }
.hero--page::after {
  background:
    linear-gradient(180deg, rgba(20, 8, 4, 0.1) 0%, rgba(20, 8, 4, 0.25) 40%, rgba(20, 8, 4, 0.86) 100%);
}
.hero--page .ph-titles { gap: 6px 40px; }
.hero--page .t-h1 { color: #fff; }
.hero--page .t-ar-h1 { color: #f3e6d8; }
.hero-leads { max-width: none; }
.hero-leads::before { background: rgba(255, 255, 255, 0.25); }
.hero--page .hero-lead { max-width: none; }
.hero--page .hero-lead[dir='rtl'] { text-align: right; }
.hero-crumb { margin: 0; font-size: 0.9rem; }
.hero-crumb a { color: #e8cf9a; text-decoration: none; border-bottom: 1px solid currentColor; }
@media (max-width: 760px) {.hero--page { min-height: min(78svh, 600px); }.hero-leads > [dir='rtl'] { border-top-color: rgba(255, 255, 255, 0.25); }}
.hero--page { min-height: min(calc(var(--vh-avail) - 40px), 660px); }
@media (max-width: 420px) {.hero .t-h1 { font-size: 2.15rem; }}

:root { --vh-avail: calc(100svh - 76px); }
@media (max-width: 979px) { :root { --vh-avail: calc(100svh - 64px); } }
.hero .t-h1, .hero .t-ar-h1 { margin: 0; }
.hero-body { position: relative; z-index: 1; padding-block: clamp(40px, 7vw, 88px); display: grid; gap: 22px; }
.hero-body > * { animation: fadeInUp 0.9s var(--ease) both; }
.hero-body > *:nth-child(2) { animation-delay: 0.08s; }
.hero-body > *:nth-child(3) { animation-delay: 0.16s; }
.hero-body > *:nth-child(4) { animation-delay: 0.24s; }
.hero-body > *:nth-child(5) { animation-delay: 0.32s; }
@media (prefers-reduced-motion: reduce) { .hero-body > * { animation: none; } }

/* ---------- Santa pages tab bar, the same as About Us (copied from src/styles/site.css) ---------- */
.subnav { position: sticky; top: 76px; z-index: 40; background: rgba(248, 245, 239, 0.94); border-block: 1px solid var(--line); }
@supports (backdrop-filter: blur(8px)) { .subnav { background: rgba(248, 245, 239, 0.82); backdrop-filter: blur(10px); } }
.subnav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a {
  display: flex; align-items: baseline; gap: 8px; padding: 14px 14px 12px; white-space: nowrap;
  font-size: 0.95rem; font-weight: 500; color: var(--ink-2); text-decoration: none; border-bottom: 2px solid transparent;
}
.subnav a span { font-family: var(--f-ar); font-size: 0.92rem; color: var(--ink-3); }
.subnav a:hover { color: var(--maroon); }
.subnav a[aria-current="page"] { color: var(--maroon); border-bottom-color: var(--maroon); }
.subnav li:first-child a { padding-left: 0; }
.subnav { margin-inline: -16px; }
@media (max-width: 979px) { .subnav { top: 64px; } }
.brand-text { text-wrap: balance; }

/* Tab bar on phones: English only, so every tab fits without scrolling */
@media (max-width: 560px) {
  .subnav ul { justify-content: space-between; gap: 0; }
  .subnav a { padding: 14px 6px 12px; font-size: 0.9rem; }
  .subnav li:first-child a { padding-left: 0; }
  .subnav li:last-child a { padding-right: 0; }
  .subnav a span { display: none; }
}
