/* ==========================================================================
   Bowers Hotel — Landing Page Styles
   Palette: deep teal #194B56 · cream #FCF4EA · white #FFFFFF · gold #FABB46
   Type:    Fraunces (display serif) · Archivo (utility sans)
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --teal: #194B56;
  --teal-deep: #123B44;      /* darker shade for hover / footer depth */
  --cream: #FCF4EA;
  --white: #FFFFFF;
  --gold: #FABB46;
  --gold-soft: #f8cd7c;      /* lighter gold for hover states */
  --ink: #1d2b2f;            /* near-teal body text on cream */

  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Archivo", "Helvetica Neue", sans-serif;

  --container: 74rem;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-pad: clamp(4.5rem, 10vw, 8.5rem);
  --header-h: 5.25rem;

  --ease-out: cubic-bezier(0.19, 1, 0.22, 1);
}

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

html {
  scroll-behavior: smooth;
  /* keep anchored sections clear of the sticky header */
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

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

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

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link {
  position: absolute; top: -100%; left: 1rem; z-index: 200;
  background: var(--teal); color: var(--cream);
  padding: 0.75rem 1.25rem; border-radius: 0 0 6px 6px;
  font-weight: 600; text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 0; }

/* ---------- Typography helpers ---------- */
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.eyebrow::before {
  content: "";
  width: 3rem; height: 2px;
  background: var(--gold);
  flex: none;
}
.eyebrow-light { color: var(--cream); }
.eyebrow-teal { color: var(--teal); }

.display {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 700;
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--teal);
  text-wrap: balance;
}
.display em {
  font-style: italic;
  font-weight: 400;
}
.display-xl { font-size: clamp(2.75rem, 7vw, 6rem); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1.05rem 2.1rem;
  border-radius: 999px;
  border: 2px solid transparent;
  transition: transform 0.25s var(--ease-out), background 0.25s ease,
              color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-gold {
  background: var(--gold);
  color: var(--teal);
  box-shadow: 0 6px 18px rgba(250, 187, 70, 0.35);
}
.btn-gold:hover { background: var(--gold-soft); box-shadow: 0 10px 24px rgba(250, 187, 70, 0.45); }

.btn-outline {
  border-color: var(--teal);
  color: var(--teal);
  background: transparent;
}
.btn-outline:hover { background: var(--teal); color: var(--cream); }

.btn-teal {
  background: var(--teal);
  color: var(--cream);
  box-shadow: 0 6px 18px rgba(25, 75, 86, 0.3);
}
.btn-teal:hover { background: var(--teal-deep); }

.btn-outline-teal {
  border-color: var(--teal);
  color: var(--teal);
}
.btn-outline-teal:hover { background: var(--teal); color: var(--gold); }

.btn-ghost {
  color: var(--teal);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
  padding-inline: 0.5rem;
}
.btn-ghost:hover { text-decoration-thickness: 4px; }

.btn-sm { padding: 0.7rem 1.5rem; font-size: 0.8125rem; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 2.25rem;
}

.text-link {
  color: var(--teal);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 2px;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.text-link:hover { color: var(--teal-deep); border-color: var(--teal); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(252, 244, 234, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(25, 75, 86, 0.1);
  transition: box-shadow 0.3s ease;
}
.site-header.is-scrolled { box-shadow: 0 4px 24px rgba(25, 75, 86, 0.1); }

.header-inner {
  max-width: var(--container);
  margin-inline: auto;
  padding: 0.75rem var(--gutter);
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 2rem;
}

.brand img {
  width: 72px;
  height: auto;
  transition: transform 0.25s var(--ease-out);
}
.brand:hover img { transform: rotate(-2deg) scale(1.04); }

.site-nav {
  display: flex;
  gap: 2rem;
  margin-inline: auto;
}
.site-nav a {
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--teal);
  position: relative;
  padding-block: 0.25rem;
}
/* gold underline slide-in on hover */
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s var(--ease-out);
}
.site-nav a:hover::after { transform: scaleX(1); transform-origin: left; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-left: auto;
}
.header-phone {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.0625rem;
  color: var(--teal);
  text-decoration: none;
  white-space: nowrap;
}
.header-phone:hover { color: var(--teal-deep); }

/* Mobile hamburger — hidden on desktop */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px; height: 44px;
  background: none;
  border: 2px solid var(--teal);
  border-radius: 8px;
  cursor: pointer;
  padding: 0 9px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--teal);
  transition: transform 0.3s var(--ease-out);
}
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  padding-top: clamp(3.5rem, 8vw, 6.5rem);
  overflow: hidden;
}

.hero-headline {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 800;
  color: var(--teal);
  line-height: 0.98;
  letter-spacing: -0.025em;
  font-size: clamp(3rem, 9vw, 7.25rem);
  display: flex;
  flex-direction: column;
  margin-bottom: 2.5rem;
}
.hero-headline .line { display: block; }
.hero-headline .line-italic {
  font-style: italic;
  font-weight: 500;
  color: var(--teal-deep);
}
.hero-headline .line-small {
  font-size: 0.42em;
  font-weight: 600;
  font-style: normal;
  letter-spacing: -0.01em;
  margin-top: 0.6em;
  line-height: 1.15;
}

/* gold hand-drawn-style underline for "since 1820" */
.underline-gold {
  font-style: italic;
  white-space: nowrap;
  background-image: linear-gradient(var(--gold), var(--gold));
  background-repeat: no-repeat;
  background-size: 100% 0.16em;
  background-position: 0 92%;
}

.hero-lede { max-width: 38rem; }
.hero-lede p { font-size: 1.125rem; }

.hero-figure {
  max-width: min(92rem, 100% - 2 * var(--gutter));
  margin: clamp(3.5rem, 7vw, 6rem) auto 0;
}
.hero-frame {
  position: relative;
  border-radius: 4px;
}
/* offset gold frame behind the photo */
.hero-frame::before {
  content: "";
  position: absolute;
  inset: 1.25rem -1.25rem -1.25rem 1.25rem;
  border: 3px solid var(--gold);
  border-radius: 4px;
  pointer-events: none;
}
.hero-frame img {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 30px 60px rgba(25, 75, 86, 0.25);
}
.hero-figure figcaption {
  margin-top: 2.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(25, 75, 86, 0.65);
  text-align: right;
}

/* ---------- Scrolling ribbon ---------- */
.ribbon {
  margin-top: clamp(3rem, 6vw, 5rem);
  background: var(--teal);
  color: var(--cream);
  overflow: hidden;
  padding-block: 0.9rem;
  border-block: 3px solid var(--gold);
}
.ribbon-track {
  display: flex;
  width: max-content;
  animation: ribbon-scroll 28s linear infinite;
}
.ribbon-track span {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.125rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}
@keyframes ribbon-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- About ---------- */
.about { padding-block: var(--section-pad); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}

.about-heading {
  position: sticky;
  top: calc(var(--header-h) + 2rem);
}
/* oversized ghost year behind the heading */
.ghost-year {
  display: block;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(6rem, 16vw, 13rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(25, 75, 86, 0.18);
  user-select: none;
  margin-top: 1rem;
}

.about-copy .lead {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
  font-weight: 500;
  line-height: 1.45;
  color: var(--teal);
  margin-bottom: 1.5rem;
}

.about-marks {
  list-style: none;
  margin-top: 3rem;
  display: grid;
  gap: 1.25rem;
}
.about-marks li {
  border-left: 3px solid var(--gold);
  padding-left: 1.25rem;
  transition: border-color 0.25s ease, transform 0.25s var(--ease-out);
}
.about-marks li:hover { border-color: var(--teal); transform: translateX(4px); }
.about-marks strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--teal);
}
.about-marks span { color: rgba(29, 43, 47, 0.7); font-size: 0.9375rem; }

/* ---------- Hours ---------- */
.hours {
  background: var(--teal);
  color: var(--cream);
  padding-block: var(--section-pad);
  position: relative;
  overflow: hidden;
}
/* subtle radial glow for depth */
.hours::before {
  content: "";
  position: absolute;
  top: -20%; right: -10%;
  width: 55%; aspect-ratio: 1;
  background: radial-gradient(circle, rgba(250, 187, 70, 0.12), transparent 65%);
  pointer-events: none;
}

.hours-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
  position: relative;
}

.hours .display { color: var(--cream); font-size: clamp(3rem, 7vw, 5.5rem); }

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2rem;
  padding: 0.8rem 1.5rem;
  border: 2px solid rgba(252, 244, 234, 0.25);
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.9375rem;
}
.status-dot {
  width: 11px; height: 11px;
  border-radius: 50%;
  background: rgba(252, 244, 234, 0.4);
  flex: none;
}
/* states set by script.js */
.status-badge.is-open { border-color: var(--gold); color: var(--gold); }
.status-badge.is-open .status-dot {
  background: var(--gold);
  animation: pulse 2s ease-in-out infinite;
}
.status-badge.is-closed { border-color: rgba(252, 244, 234, 0.35); }
.status-badge.is-closed .status-dot { background: #e2765a; }

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(250, 187, 70, 0.55); }
  50%      { box-shadow: 0 0 0 9px rgba(250, 187, 70, 0); }
}

.status-note {
  margin-top: 1rem;
  color: rgba(252, 244, 234, 0.75);
  font-size: 0.9375rem;
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.0625rem;
}
.hours-table th,
.hours-table td {
  padding: 1.1rem 0.5rem;
  border-bottom: 1px solid rgba(252, 244, 234, 0.15);
  text-align: left;
}
.hours-table th {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1875rem;
  letter-spacing: 0.02em;
}
.hours-table td { text-align: right; color: rgba(252, 244, 234, 0.85); }
.hours-table tr { transition: background 0.2s ease; }
.hours-table tr:hover { background: rgba(252, 244, 234, 0.05); }

/* today's row — highlighted by script.js */
.hours-table tr.is-today {
  background: rgba(250, 187, 70, 0.1);
  box-shadow: inset 3px 0 0 var(--gold);
}
.hours-table tr.is-today th { color: var(--gold); }
.hours-table tr.is-today td { color: var(--cream); }

.tag-gold {
  display: inline-block;
  background: var(--gold);
  color: var(--teal);
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
  margin-left: 0.6rem;
  vertical-align: 2px;
}

/* ---------- Brunch ---------- */
.brunch {
  background: var(--gold);
  color: var(--teal);
  padding-block: var(--section-pad);
  text-align: center;
  position: relative;
  overflow: hidden;
}
/* faint oversized diner-script flourish */
.brunch::after {
  content: "✦";
  position: absolute;
  bottom: -4rem; right: 2rem;
  font-size: 18rem;
  color: rgba(25, 75, 86, 0.06);
  pointer-events: none;
  line-height: 1;
}

.brunch .eyebrow {
  justify-content: center;
}
.brunch .eyebrow::before { background: var(--teal); }

.brunch .display { color: var(--teal); }

.brunch-copy {
  max-width: 42rem;
  margin: 1.75rem auto 0;
  font-size: 1.125rem;
  color: rgba(25, 75, 86, 0.85);
}
.brunch .btn-row { justify-content: center; }

/* ---------- Contact ---------- */
.contact { padding-block: var(--section-pad); }

.contact-copy {
  max-width: 38rem;
  margin-top: 1.5rem;
  font-size: 1.125rem;
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3.5rem;
}
.contact-card {
  background: var(--white);
  border: 1px solid rgba(25, 75, 86, 0.1);
  border-radius: 8px;
  padding: 2.25rem 2rem;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease, border-color 0.3s ease;
}
.contact-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(25, 75, 86, 0.12);
  border-color: var(--gold);
}
.contact-card h3 {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(25, 75, 86, 0.6);
  margin-bottom: 1rem;
}
.contact-card p { margin-bottom: 1.25rem; }
.contact-card .text-link { display: inline-block; margin-top: 0.25rem; }

.big-phone {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 1.875rem);
  font-weight: 700;
  color: var(--teal);
  text-decoration: none;
}
.big-phone:hover { color: var(--teal-deep); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--teal);
  color: var(--cream);
  padding-top: var(--section-pad);
  border-top: 4px solid var(--gold);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  padding-bottom: 4rem;
}

.footer-brand img { width: 140px; }
.footer-tag {
  font-family: var(--font-display);
  font-style: italic;
  margin-top: 1.5rem;
  color: rgba(252, 244, 234, 0.85);
}

.social-links {
  display: flex;
  gap: 0.85rem;
  margin-top: 1.5rem;
}
.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border: 2px solid rgba(252, 244, 234, 0.3);
  border-radius: 50%;
  color: var(--cream);
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s var(--ease-out);
}
.social-links a:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--teal);
  transform: translateY(-3px);
}

.footer-col h3 {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}
.footer-col p { color: rgba(252, 244, 234, 0.85); margin-bottom: 0.75rem; }
.footer-col a { color: rgba(252, 244, 234, 0.85); text-decoration: none; }
.footer-col a:hover { color: var(--gold); }
.footer-col nav { display: grid; gap: 0.6rem; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-block: 1.75rem;
  border-top: 1px solid rgba(252, 244, 234, 0.15);
  font-size: 0.875rem;
  color: rgba(252, 244, 234, 0.65);
}
.back-to-top {
  text-decoration: none;
  font-weight: 600;
  color: rgba(252, 244, 234, 0.85);
  transition: color 0.2s ease;
}
.back-to-top:hover { color: var(--gold); }

/* ---------- Reveal-on-scroll animation ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
[data-reveal].in-view {
  opacity: 1;
  transform: none;
}
/* stagger helpers */
[data-reveal-delay="1"] { transition-delay: 0.12s; }
[data-reveal-delay="2"] { transition-delay: 0.24s; }
[data-reveal-delay="3"] { transition-delay: 0.36s; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .ribbon-track { animation: none; }
  .status-badge.is-open .status-dot { animation: none; }
  .btn, .contact-card, .social-links a, .about-marks li { transition: none; }
}

/* ---------- Responsive: tablet ---------- */
@media (max-width: 900px) {
  .about-grid,
  .hours-grid { grid-template-columns: 1fr; }
  .about-heading { position: static; }
  .ghost-year { font-size: clamp(5rem, 20vw, 9rem); }
  .contact-cards { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .header-phone { display: none; }
}

/* ---------- Responsive: mobile ---------- */
@media (max-width: 720px) {
  :root { --header-h: 4.5rem; }

  .brand img { width: 58px; }

  /* collapse nav into a dropdown panel */
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--cream);
    border-bottom: 3px solid var(--gold);
    box-shadow: 0 20px 40px rgba(25, 75, 86, 0.15);
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a {
    padding: 1.1rem var(--gutter);
    border-top: 1px solid rgba(25, 75, 86, 0.08);
  }
  .site-nav a::after { display: none; }

  .btn-sm { padding: 0.65rem 1.1rem; }

  .hero-frame::before { inset: 0.75rem -0.6rem -0.75rem 0.6rem; border-width: 2px; }
  .hero-frame img { aspect-ratio: 4 / 3; }
  .hero-figure figcaption { text-align: left; }

  .hours-table th, .hours-table td { padding: 0.9rem 0.4rem; }
  .tag-gold { display: block; margin: 0.35rem 0 0 auto; width: fit-content; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { justify-content: center; text-align: center; }
}
