:root {
  --cream: #faf6ef;
  --paper: #ffffff;
  --ink: #2b211c;
  --muted: #6b5d55;
  --burgundy: #7a1f2b;
  --burgundy-dark: #5c1520;
  --gold: #b8893b;
  --line: #e6dccd;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Source Sans 3", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 18px/1.65 var(--sans);
}

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

h1, h2, h3 { font-family: var(--serif); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
h3 { font-size: 1.25rem; color: var(--burgundy); }
p { margin: 0 0 1em; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.section { padding: 56px 20px 72px; }

/* Header + tabs */
.site-header {
  background: var(--burgundy);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #fff;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  transition: background .3s ease, box-shadow .3s ease;
}
.site-header.scrolled { box-shadow: 0 2px 12px rgba(0, 0, 0, .2); }
/* See-through only while it sits over the homepage photo */
.on-home .site-header { background: rgba(122, 31, 43, .55); }
.on-home .site-header.scrolled { background: rgba(122, 31, 43, .9); }
main { padding-top: var(--header-h, 96px); }
.panel { scroll-margin-top: var(--header-h, 96px); }
/* The homepage photo runs up underneath the header */
#home .hero { margin-top: calc(-1 * var(--header-h, 96px)); }
#home .hero-inner { padding-top: calc(var(--header-h, 96px) + 48px); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 10px;
  padding-bottom: 10px;
}
.brand { color: #fff; text-decoration: none; display: flex; align-items: center; gap: 14px; }
.brand-logo { height: 136px; width: auto; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .45)); }
.brand-sub { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: #f0d9a8; }

.tabs { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; flex-wrap: wrap; }
.tabs a {
  display: block;
  padding: 8px 16px;
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: .95rem;
}
.tabs a:hover { background: rgba(255, 255, 255, .12); }
.tabs a.active { background: var(--cream); color: var(--burgundy); }

/* Hero */
.hero {
  min-height: 70vh;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  position: relative;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(30, 15, 10, .85), rgba(30, 15, 10, .15) 70%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  padding-top: 48px;
  padding-bottom: 56px;
}
.hero-text { color: #fff; flex: 1 1 520px; }
.hero-text p { font-size: 1.2rem; max-width: 560px; }
.hero-text h1 { font-size: clamp(1.7rem, 3.6vw, 2.7rem); max-width: 780px; text-shadow: 0 2px 12px rgba(0, 0, 0, .4); }

.btn {
  display: inline-block;
  background: var(--gold);
  color: #fff;
  padding: 12px 26px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
}
.btn:hover { background: #9e7430; }

.intro { max-width: 760px; margin-bottom: 40px; }
.eyebrow { color: var(--gold); text-transform: uppercase; letter-spacing: .14em; font-size: .85rem; font-weight: 600; margin-bottom: .4em; }

/* Features */
.features {
  list-style: none;
  padding: 0;
  margin: 0 0 56px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}
.features li, .card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 4px solid var(--burgundy);
  border-radius: 6px;
  padding: 22px;
}
.features p, .card p { margin: 0; color: var(--muted); }

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}
.gallery img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 6px;
}

/* About Abingdon */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 48px;
}
.callout {
  background: var(--burgundy);
  color: #fff;
  border-radius: 8px;
  padding: 36px;
}
.callout p { max-width: 640px; }

/* Location */
.location-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 32px;
  margin-bottom: 40px;
}
.info-block { margin-bottom: 28px; }
.small-note { color: var(--muted); font-size: .9rem; }
.text-link { color: var(--burgundy); font-weight: 600; }
.hours { border-collapse: collapse; }
.hours th { text-align: left; font-weight: 400; padding: 2px 24px 2px 0; }
.map iframe {
  width: 100%;
  height: 100%;
  min-height: 380px;
  border: 0;
  border-radius: 8px;
}
.theatre-photo { margin: 0; }
.theatre-photo img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 6px 20px rgba(43, 33, 28, .18);
}
.theatre-photo figcaption { margin-top: 10px; color: var(--muted); font-size: .9rem; font-style: italic; }

/* Footer */
.site-footer { background: var(--ink); color: #d8cbbd; padding: 28px 0; text-align: center; }
.site-footer p { margin: 0; }
.small { font-size: .85rem; opacity: .75; }

@media (max-width: 760px) {
  body { font-size: 17px; }
  .header-inner { flex-wrap: nowrap; gap: 10px; }
  .brand-sub { display: none; }
  .tabs { justify-content: flex-end; }
  .tabs { gap: 0; flex-wrap: nowrap; }
  .tabs a { padding: 6px 8px; font-size: .8rem; white-space: nowrap; }
  .location-grid { grid-template-columns: 1fr; }
  .hero { min-height: 60vh; }
  .brand-logo { height: 84px; }
}

/* About Abingdon extras */
.facts {
  list-style: none;
  padding: 0;
  margin: 0 0 56px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 760px) { .facts { grid-template-columns: repeat(2, 1fr); } }
.facts li { border-top: 1px solid var(--line); padding-top: 12px; }
.facts strong { display: block; font-family: var(--serif); font-size: 1.6rem; color: var(--burgundy); }
.facts span { color: var(--muted); font-size: .95rem; }

.timeline { list-style: none; padding: 0; margin: 0 0 56px; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 22px 28px; max-width: 760px; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 8px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
}
.timeline .year { font-weight: 600; color: var(--burgundy); }
.timeline p { margin: 0; }

.footer-label { margin: 18px 0 10px !important; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: #f0d9a8; }
.review-links { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.review-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px 10px 12px;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  transition: transform .15s, box-shadow .15s;
}
.review-btn img { width: 24px; height: 24px; padding: 4px; border-radius: 50%; box-sizing: content-box; }
.review-btn.tripadvisor img { background: #34E0A1; }
.review-btn.yelp img { background: #fff0f0; }
.review-btn.visit-abingdon img { background: #f3e6d0; }
.review-btn.facebook img { background: #fff; }
.review-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0, 0, 0, .3); }
.footer-phone { color: #fff; font-weight: 600; text-decoration: none; }
.footer-phone:hover { text-decoration: underline; }

/* Card links */
.card { display: flex; flex-direction: column; }
.card p { flex: 1; }
.card-link { display: inline-block; margin-top: 14px; color: var(--burgundy); font-weight: 600; text-decoration: none; }
.card-link:hover { text-decoration: underline; }
.card-links { display: flex; flex-wrap: wrap; column-gap: 16px; }

.engraving { margin: 0 0 36px; max-width: 900px; }
.engraving img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  border: 1px solid var(--line);
  box-shadow: 0 6px 20px rgba(43, 33, 28, .12);
}
.engraving figcaption { margin-top: 10px; color: var(--muted); font-size: .9rem; font-style: italic; }

/* Card animations */
.cards .card {
  transition: opacity .6s ease, transform .6s ease, box-shadow .25s ease, border-top-color .25s ease;
}
.cards .card.reveal { opacity: 0; transform: translateY(24px); }
.cards .card.reveal.visible { opacity: 1; transform: none; }
.cards .card:hover,
.cards .card.reveal.visible:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(43, 33, 28, .14);
  border-top-color: var(--gold);
}
.card-link { transition: letter-spacing .2s ease; }
.card:hover .card-link { letter-spacing: .02em; }

@media (prefers-reduced-motion: reduce) {
  .cards .card, .cards .card:hover { transition: none; transform: none; }
}

/* Walkthrough video */
.walkthrough {
  display: grid;
  grid-template-columns: 1fr minmax(220px, 300px);
  gap: 40px;
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 32px;
  margin-bottom: 56px;
}
.walkthrough-text p:not(.eyebrow) { color: var(--muted); max-width: 520px; }
.walkthrough-video {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: 8px;
  background: var(--ink);
  box-shadow: 0 8px 24px rgba(43, 33, 28, .18);
}
@media (max-width: 760px) {
  .walkthrough { grid-template-columns: 1fr; padding: 24px; gap: 24px; }
  .walkthrough-video { max-width: 280px; justify-self: center; }
}

/* Phones: never let the logo get squeezed */
.brand, .brand-logo { flex-shrink: 0; }

@media (max-width: 760px) {
  /* Comfortable tap targets (about 44px) for small links */
  .tabs a { min-height: 40px; display: flex; align-items: center; }
  .card-link, .text-link, .footer-phone { display: inline-block; padding: 10px 0; }
  .card-link { margin-top: 4px; }
  .review-btn { min-height: 44px; }
  .hours th, .hours td { padding-top: 4px; padding-bottom: 4px; }
}

/* Small phones: logo on top, tabs as a full-width row underneath */
@media (max-width: 560px) {
  .header-inner { flex-direction: column; align-items: stretch; gap: 6px; padding-top: 8px; padding-bottom: 8px; }
  .brand { justify-content: center; }
  .brand-logo { height: 60px; }
  .tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
  .tabs a { justify-content: center; text-align: center; padding: 6px 4px; font-size: .85rem; white-space: normal; line-height: 1.15; min-height: 44px; }
  .section { padding: 40px 16px 56px; }
  .wrap { padding-left: 16px; padding-right: 16px; }
  .walkthrough { padding: 20px; }
  .callout { padding: 24px; }
  .hero-text h1 { font-size: 1.65rem; }
  .hero-text p { font-size: 1.05rem; }
  .facts strong { font-size: 1.35rem; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .map iframe { min-height: 300px; }
}

/* Phones turned sideways: keep the fixed header slim */
@media (max-height: 500px) and (orientation: landscape) {
  .brand-logo { height: 56px; }
  .brand-sub { display: none; }
  .header-inner { padding-top: 6px; padding-bottom: 6px; }
  .hero { min-height: 100vh; }
}

/* In the news */
.news {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 36px;
  align-items: center;
  margin-top: 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
}
.news-photo { width: 100%; height: auto; border-radius: 6px; }
.news-text p:not(.eyebrow) { color: var(--muted); }
@media (max-width: 760px) {
  .news { grid-template-columns: 1fr; gap: 20px; padding: 20px; }
}

.press { margin-top: 56px; }
.press-feature {
  background: var(--burgundy);
  color: #fff;
  border-radius: 8px;
  padding: 32px 36px;
}
.press-feature blockquote {
  margin: 0 0 18px;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.5rem, 3.2vw, 2.2rem);
  line-height: 1.25;
  color: #f0d9a8;
}
.press-feature h3 { color: #fff; margin-bottom: .3em; }
.press-meta { color: #e8d6d0; font-size: .95rem; margin-bottom: 4px; }
.press-feature .card-link { color: #f0d9a8; }
@media (max-width: 560px) { .press-feature { padding: 24px 20px; } }
