/* ============================================================
   MILSOM PLACE — styles.css
   Brand: deep warm maroon #1A0505 · cream #F0DFB0
   Fonts: Playfair Display (serif) · Jost (sans)
   ============================================================ */

/* --- Custom Properties --- */
:root {
  --bg:           #1A0505;
  --bg-2:         #200808;
  --bg-card:      #270A0A;
  --cream:        #F0DFB0;
  --cream-dim:    #C4B48E;
  --cream-muted:  #8A7A62;
  --border:       rgba(240, 223, 176, 0.10);
  --border-hover: rgba(240, 223, 176, 0.28);

  --ff-serif: 'Playfair Display', Georgia, serif;
  --ff-sans:  'Jost', system-ui, sans-serif;

  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);

  --max-w:  1180px;
  --gutter: clamp(1.5rem, 5vw, 3rem);
  --nav-h:  72px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg);
  color: var(--cream);
  font-family: var(--ff-sans);
  font-weight: 300;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; color: inherit; }
ul { list-style: none; }

/* --- Film grain overlay --- */
.grain {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

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

/* --- Shared typography helpers --- */
.section-label {
  display: block;
  font-family: var(--ff-sans);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cream-muted);
  margin-bottom: 1.25rem;
}

.section-title {
  font-family: var(--ff-serif);
  font-size: clamp(2.25rem, 5vw, 4.5rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.section-title em {
  font-style: italic;
  font-weight: 400;
  color: rgba(240, 223, 176, 0.60);
}

.section-header {
  text-align: center;
  margin-bottom: clamp(3rem, 7vw, 5.5rem);
}

.dot { color: var(--cream-muted); }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-sans);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.9rem 2.25rem;
  transition: background 0.22s var(--ease-out),
              border-color 0.22s var(--ease-out),
              transform 0.22s var(--ease-out),
              box-shadow 0.22s var(--ease-out);
  white-space: nowrap;
}

.btn--primary {
  background: var(--cream);
  color: var(--bg);
}
.btn--primary:hover {
  background: #fffaed;
  transform: translateY(-2px);
}

.btn--ghost {
  border: 1px solid rgba(240, 223, 176, 0.30);
  color: var(--cream);
}
.btn--ghost:hover {
  border-color: rgba(240, 223, 176, 0.65);
  background: rgba(240, 223, 176, 0.04);
}

.btn--cream {
  background: var(--cream);
  color: var(--bg);
}
.btn--cream:hover {
  background: #fffaed;
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(240, 223, 176, 0.14);
}

.btn--large {
  font-size: 0.75rem;
  padding: 1.2rem 3.5rem;
  letter-spacing: 0.18em;
}

/* ============================================================
   NAVIGATION
   ============================================================ */

.nav {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 200;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: var(--gutter);
  transition: background 0.4s var(--ease-out), backdrop-filter 0.4s;
}

.nav.scrolled {
  background: rgba(26, 5, 5, 0.90);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav__logo { display: flex; align-items: center; }

.nav__mp {
  font-family: var(--ff-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--cream);
  letter-spacing: -0.03em;
  line-height: 1;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 3vw, 2.25rem);
}

.nav__links a {
  font-family: var(--ff-sans);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cream-dim);
  transition: color 0.2s;
}
.nav__links a:hover { color: var(--cream); }

.nav__cta {
  border: 1px solid rgba(240, 223, 176, 0.35) !important;
  padding: 0.5rem 1.4rem !important;
  color: var(--cream) !important;
  transition: background 0.2s, border-color 0.2s !important;
}
.nav__cta:hover {
  background: rgba(240, 223, 176, 0.07) !important;
  border-color: var(--cream) !important;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 6px;
  z-index: 300;
}
.nav__toggle span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--cream);
  transition: transform 0.3s var(--ease-out), opacity 0.2s;
  transform-origin: center;
}

/* ============================================================
   HERO
   ============================================================ */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: clamp(4.5rem, 10vh, 7rem);
  padding-inline: var(--gutter);
  overflow: hidden;
}

/* Rich multi-stop radial gradient — richer in the centre */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 100% 90% at 65% 35%, #471010 0%, #200808 45%, #0E0404 100%);
  z-index: 0;
}

/* Subtle vignette at the edges */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 120% 120% at 50% 50%, transparent 50%, rgba(10,0,4,0.55) 100%);
  z-index: 0;
}

/* Ghosted watermark "MP" */
.hero__watermark {
  position: absolute;
  inset-block-end: -8%;
  inset-inline-end: -2%;
  font-family: var(--ff-serif);
  font-size: clamp(18rem, 40vw, 42rem);
  font-weight: 700;
  font-style: italic;
  color: transparent;
  -webkit-text-stroke: 1px rgba(240, 223, 176, 0.055);
  line-height: 1;
  pointer-events: none;
  z-index: 0;
  user-select: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 860px;
}

.hero__eyebrow {
  font-family: var(--ff-sans);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--cream-muted);
  margin-bottom: 1.75rem;
}

.hero__headline {
  font-family: var(--ff-serif);
  font-size: clamp(2.75rem, 7.5vw, 7rem);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.025em;
  color: var(--cream);
  margin-bottom: 2.75rem;
}
.hero__headline em {
  font-style: italic;
  font-weight: 400;
  color: rgba(240, 223, 176, 0.65);
}

.hero__actions {
  display: flex;
  gap: 0.875rem;
  flex-wrap: wrap;
}

/* Animated scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: 2.75rem;
  right: var(--gutter);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--ff-sans);
  font-size: 0.5625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream-muted);
  z-index: 1;
}
.hero__scroll-line {
  width: 1px;
  height: 56px;
  background: linear-gradient(to bottom, var(--cream-muted), transparent);
  animation: scrollPulse 2.2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50%       { opacity: 0.3; transform: scaleY(0.5); }
}

/* ============================================================
   MARQUEE STRIP
   ============================================================ */

.marquee {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding-block: 0.9rem;
}

.marquee__track {
  display: flex;
  gap: 1.75rem;
  white-space: nowrap;
  width: max-content;
  animation: marqueeScroll 40s linear infinite;
  font-family: var(--ff-serif);
  font-size: 0.8125rem;
  font-style: italic;
  color: var(--cream-dim);
  letter-spacing: 0.04em;
}
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================
   ETHOS / ABOUT
   ============================================================ */

.ethos {
  padding-block: clamp(5rem, 13vw, 11rem);
  border-top: 1px solid var(--border);
}

.ethos__grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(2rem, 7vw, 7rem);
  align-items: start;
}

/* Large ghosted numeral */
.ethos__num {
  font-family: var(--ff-serif);
  font-size: clamp(5rem, 14vw, 13rem);
  font-weight: 700;
  color: rgba(240, 223, 176, 0.05);
  line-height: 1;
  user-select: none;
  margin-top: -0.08em;
}

.ethos__heading {
  font-family: var(--ff-serif);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: -0.015em;
  margin-bottom: 1.75rem;
}
.ethos__heading em { font-style: italic; font-weight: 400; }

.ethos__body {
  font-size: 1.0625rem;
  color: var(--cream-dim);
  max-width: 52ch;
  margin-bottom: 1.1rem;
  line-height: 1.8;
}
.ethos__body:last-child { margin-bottom: 0; }

/* ============================================================
   CLASSES
   ============================================================ */

.classes {
  padding-block: clamp(5rem, 13vw, 11rem);
  border-top: 1px solid var(--border);
}

.classes__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border: 1px solid var(--border);
}

.class-card {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 1.75rem;
  padding: 2.75rem;
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
  transition: background 0.3s;
}
.class-card:nth-child(even)        { border-right: none; }
.class-card:nth-last-child(-n + 2) { border-bottom: none; }
.class-card:hover { background: rgba(240, 223, 176, 0.025); }

.class-card__num {
  font-family: var(--ff-serif);
  font-size: 0.75rem;
  font-style: italic;
  color: var(--cream-muted);
  padding-top: 0.2em;
}

.class-card__name {
  font-family: var(--ff-serif);
  font-size: 1.3125rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
}

.class-card__desc {
  font-size: 0.875rem;
  color: var(--cream-dim);
  line-height: 1.75;
  margin-bottom: 1.25rem;
}

.class-card__meta {
  display: flex;
  gap: 0.5rem;
  font-family: var(--ff-sans);
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream-muted);
}

/* ============================================================
   SCHEDULE
   ============================================================ */

.schedule {
  padding-block: clamp(5rem, 13vw, 11rem);
  border-top: 1px solid var(--border);
}

.day-tabs {
  display: flex;
  border: 1px solid var(--border);
  margin-bottom: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.day-tabs::-webkit-scrollbar { display: none; }

.day-tab {
  flex: 1;
  min-width: 76px;
  padding: 0.9rem 0.75rem;
  font-family: var(--ff-sans);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream-muted);
  border-right: 1px solid var(--border);
  transition: background 0.2s, color 0.2s;
  text-align: center;
}
.day-tab:last-child { border-right: none; }
.day-tab:hover { color: var(--cream); background: rgba(240, 223, 176, 0.04); }
.day-tab.active { color: var(--bg); background: var(--cream); }

.schedule__slots {
  border: 1px solid var(--border);
  border-top: none;
  min-height: 180px;
}

.schedule-slot {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 2rem;
  align-items: center;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}
.schedule-slot:last-child { border-bottom: none; }
.schedule-slot:hover { background: rgba(240, 223, 176, 0.025); }

.slot__time {
  font-family: var(--ff-serif);
  font-size: 1.0625rem;
  font-style: italic;
  color: var(--cream-dim);
  white-space: nowrap;
}

.slot__name {
  font-family: var(--ff-sans);
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  margin-bottom: 0.2rem;
}

.slot__detail {
  font-family: var(--ff-sans);
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream-muted);
}

.slot__actions {
  display: flex;
  gap: 0.4rem;
  flex-shrink: 0;
}

.slot__btn {
  font-family: var(--ff-sans);
  font-size: 0.5625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--border);
  color: var(--cream-muted);
  transition: border-color 0.2s, color 0.2s;
  white-space: nowrap;
}
.slot__btn:hover { border-color: var(--border-hover); color: var(--cream); }

.schedule__empty {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  font-family: var(--ff-serif);
  font-size: 1.125rem;
  font-style: italic;
  color: var(--cream-muted);
}

/* ============================================================
   COFFEE
   ============================================================ */

.coffee {
  padding-block: clamp(5rem, 13vw, 11rem);
  border-top: 1px solid var(--border);
  background: linear-gradient(160deg, var(--bg-2) 0%, var(--bg) 60%);
}

.coffee__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 7vw, 7rem);
  align-items: start;
}

.coffee__body {
  margin-top: 0.75rem;
}
.coffee__body p {
  font-size: 1.0625rem;
  color: var(--cream-dim);
  max-width: 40ch;
  line-height: 1.8;
  margin-bottom: 1rem;
}
.coffee__body p:last-child { margin-bottom: 0; }

.coffee__menu {
  border-top: 1px solid var(--border);
}

.menu-item {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding-block: 1.25rem;
  border-bottom: 1px solid var(--border);
}
.menu-item:last-child { border-bottom: none; }

.menu-item__name {
  font-family: var(--ff-serif);
  font-size: 1.0625rem;
  font-weight: 500;
  min-width: 140px;
  white-space: nowrap;
}

.menu-item__rule {
  flex: 1;
  height: 1px;
  background: var(--border);
  align-self: center;
}

.menu-item__note {
  font-family: var(--ff-sans);
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream-muted);
  white-space: nowrap;
}

/* ============================================================
   BOOK CTA
   ============================================================ */

.book {
  padding-block: clamp(6rem, 16vw, 14rem);
  border-top: 1px solid var(--border);
  text-align: center;
}

.book__eyebrow {
  font-family: var(--ff-sans);
  font-size: 0.6875rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cream-muted);
  margin-bottom: 1.5rem;
}

.book__headline {
  font-family: var(--ff-serif);
  font-size: clamp(3rem, 8vw, 7.5rem);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin-bottom: 3.25rem;
}
.book__headline em {
  font-style: italic;
  font-weight: 400;
  color: rgba(240, 223, 176, 0.60);
}

.book__note {
  margin-top: 1.5rem;
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  color: var(--cream-muted);
}
.book__note a {
  color: var(--cream-dim);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(240, 223, 176, 0.25);
  transition: color 0.2s;
}
.book__note a:hover { color: var(--cream); }

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  border-top: 1px solid var(--border);
  padding-block: 3rem 2rem;
}

.footer__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.75rem;
}

.footer__mp {
  display: block;
  font-family: var(--ff-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--cream);
  letter-spacing: -0.03em;
  margin-bottom: 0.4rem;
}

.footer__name {
  font-family: var(--ff-serif);
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.footer__location {
  font-family: var(--ff-sans);
  font-size: 0.625rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream-muted);
}

.footer__nav {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  text-align: right;
}
.footer__nav a {
  font-family: var(--ff-sans);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream-muted);
  transition: color 0.2s;
}
.footer__nav a:hover { color: var(--cream); }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer__copy {
  font-family: var(--ff-sans);
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  color: var(--cream-muted);
}

.footer__social a {
  font-family: var(--ff-sans);
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream-muted);
  transition: color 0.2s;
}
.footer__social a:hover { color: var(--cream); }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   RESPONSIVE — TABLET
   ============================================================ */

@media (max-width: 900px) {
  .coffee__layout { grid-template-columns: 1fr; }
}

/* ============================================================
   RESPONSIVE — MOBILE
   ============================================================ */

@media (max-width: 768px) {
  :root { --nav-h: 64px; }

  /* Mobile nav overlay */
  .nav__links {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--bg);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.25rem;
    z-index: 250;
  }
  .nav__links.open { display: flex; }
  .nav__links a { font-size: 0.8125rem; }
  .nav__cta { padding: 0.75rem 2rem !important; }

  .nav__toggle { display: flex; }

  /* Classes: single column on mobile */
  .classes__grid { grid-template-columns: 1fr; }
  .class-card {
    border-right: none !important;
    border-bottom: 1px solid var(--border) !important;
  }
  .class-card:last-child { border-bottom: none !important; }

  /* Schedule: tighten grid */
  .schedule-slot {
    grid-template-columns: 85px 1fr;
    gap: 1rem;
    padding: 1.25rem 1.25rem;
  }
  .slot__actions {
    grid-column: 1 / -1;
    padding-top: 0.5rem;
  }

  /* Ethos: stack numerals */
  .ethos__grid { grid-template-columns: 1fr; gap: 0.5rem; }
  .ethos__num { font-size: 4rem; }

  /* Footer: stack */
  .footer__top { flex-direction: column; }
  .footer__nav { text-align: left; flex-direction: row; flex-wrap: wrap; gap: 1rem 1.5rem; }
  .footer__bottom { flex-direction: column; gap: 0.75rem; text-align: center; }
}

@media (max-width: 480px) {
  .hero__actions { flex-direction: column; align-items: flex-start; }
  .hero__actions .btn { width: 100%; }
  .menu-item { flex-wrap: wrap; }
  .menu-item__rule { display: none; }
  .menu-item__note { width: 100%; padding-bottom: 0.25rem; }
}
