/* ============================================================
   NOIR & EMBER — Fine Dining Restaurant, London
   Shared design system
   ============================================================ */

/* ---------- Fonts ---------- */

/* ---------- Tokens ---------- */
:root {
  --black: #0a0a0a;
  --black-2: #0d0c0b;
  --panel: #141210;
  --panel-2: #1a1714;
  --panel-3: #211d18;
  --line: #2a2620;
  --line-soft: #221f1a;
  --gold: #c79a4b;
  --gold-bright: #d9b063;
  --gold-deep: #b07f33;
  --cream: #efe7d8;
  --text: #cfc7ba;
  --text-soft: #a39a8b;
  --text-dim: #8a8275;
  --white: #f4efe6;

  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Jost', 'Helvetica Neue', Arial, sans-serif;

  --maxw: 1240px;
  --gutter: 40px;
  --edge: max(var(--gutter), calc((var(--vw, 100vw) - var(--maxw)) / 2 + var(--gutter)));
  --ease: cubic-bezier(.22,.61,.36,1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 110px 0; }
.section-sm { padding: 70px 0; }

/* ---------- Typography ---------- */
.serif { font-family: var(--serif); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; color: var(--white); line-height: 1.08; letter-spacing: .01em; }
h1 { font-size: clamp(46px, 7vw, 86px); }
h2 { font-size: clamp(32px, 4.5vw, 52px); }
h3 { font-size: clamp(22px, 2.6vw, 30px); }

.overline {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow { color: var(--gold); letter-spacing: .3em; font-size: 12px; text-transform: uppercase; font-weight: 500; }
.lead { font-family: var(--sans); font-weight: 300; color: var(--text); font-size: 16px; line-height: 1.85; }
.muted { color: var(--text-soft); }
.dim { color: var(--text-dim); }
.gold { color: var(--gold); }
.center { text-align: center; }

.rule { width: 64px; height: 1px; background: var(--gold); opacity: .8; margin: 26px 0; }
.rule.center { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--sans); font-weight: 500; font-size: 12.5px;
  letter-spacing: .2em; text-transform: uppercase;
  padding: 17px 34px; border: 1px solid var(--gold);
  color: var(--gold); background: transparent;
  transition: all .35s var(--ease); cursor: pointer;
  white-space: nowrap;
}
.btn:hover { background: var(--gold); color: var(--black); }
.btn-solid { background: var(--gold); color: #1a1206; border-color: var(--gold); }
.btn-solid:hover { background: var(--gold-bright); border-color: var(--gold-bright); }
.btn-block { width: 100%; justify-content: center; }
.link-gold {
  font-family: var(--sans); font-weight: 500; font-size: 12px;
  letter-spacing: .2em; text-transform: uppercase; color: var(--gold);
  display: inline-flex; align-items: center; gap: 10px;
  transition: gap .3s var(--ease);
}
.link-gold:hover { gap: 16px; }

/* ---------- Image placeholders ---------- */
.ph {
  position: relative; overflow: hidden;
  background:
    radial-gradient(120% 90% at 30% 20%, rgba(199,154,75,.16), transparent 60%),
    linear-gradient(135deg, #1c1814 0%, #0e0c0a 55%, #161210 100%);
  display: flex; align-items: center; justify-content: center;
}
.ph::after {
  content: attr(data-label);
  font-family: var(--sans); font-size: 10.5px; letter-spacing: .28em;
  text-transform: uppercase; color: rgba(199,154,75,.45);
  text-align: center; padding: 12px; line-height: 1.8;
}
.ph-warm {
  background:
    radial-gradient(110% 100% at 50% 30%, rgba(214,140,52,.28), transparent 62%),
    linear-gradient(160deg, #2a1c0f 0%, #120c07 70%);
}
.ph-marble {
  background:
    radial-gradient(80% 60% at 70% 10%, rgba(199,154,75,.20), transparent 60%),
    linear-gradient(120deg, #16140f, #0c0b09 60%, #1b1813);
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 22px 0;
  background: linear-gradient(180deg, rgba(8,7,6,.92), rgba(8,7,6,.0));
  transition: background .4s var(--ease), padding .4s var(--ease);
}
.site-header.scrolled { background: rgba(9,8,7,.97); padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.nav {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); gap: 20px;
}
.nav-left, .nav-right { display: flex; align-items: center; gap: 30px; }
.nav-right { justify-content: flex-end; }
.nav a.navlink {
  font-family: var(--sans); font-weight: 400; font-size: 11.5px;
  letter-spacing: .18em; text-transform: uppercase; color: var(--text);
  transition: color .3s; white-space: nowrap;
}
.nav a.navlink:hover, .nav a.navlink.active { color: var(--gold); }
.brand { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.brand .mark {
  width: 38px; height: 38px; border: 1.5px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-weight: 600; font-size: 14px; color: var(--gold);
  letter-spacing: -1px;
}
.brand .name { font-family: var(--serif); font-size: 19px; letter-spacing: .12em; color: var(--white); }
.brand .sub { font-size: 8px; letter-spacing: .26em; color: var(--text-soft); text-transform: uppercase; }
.nav .btn { padding: 13px 24px; }

.nav-toggle { display: none; background: none; border: none; color: var(--gold); cursor: pointer; flex-direction: column; gap: 5px; }
.nav-toggle span { width: 24px; height: 1.5px; background: var(--gold); display: block; transition: transform .35s var(--ease), opacity .25s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------- Footer ---------- */
.site-footer { background: var(--black-2); border-top: 1px solid var(--line-soft); padding: 70px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 40px; }
.footer-brand .mark {
  width: 44px; height: 44px; border: 1.5px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-weight: 600; color: var(--gold); margin-bottom: 16px;
}
.footer-brand .fname { font-family: var(--serif); font-size: 22px; letter-spacing: .1em; color: var(--white); }
.footer-brand .fsub { font-size: 8.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--text-soft); margin-top: 4px; }
.footer-brand p.tag { margin-top: 22px; font-size: 13px; color: var(--text-soft); line-height: 1.9; }
.footer-col h5 { font-family: var(--sans); font-weight: 500; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); margin-bottom: 20px; }
.footer-col a, .footer-col p { display: block; font-size: 13.5px; color: var(--text-soft); margin-bottom: 11px; transition: color .3s; }
.footer-col a:hover { color: var(--gold); }
.news-form { display: flex; border: 1px solid var(--line); margin-top: 10px; }
.news-form input { flex: 1; background: transparent; border: none; padding: 13px 14px; color: var(--text); font-family: var(--sans); font-size: 13px; }
.news-form input::placeholder { color: var(--text-dim); }
.news-form button { background: transparent; border: none; border-left: 1px solid var(--line); color: var(--gold); padding: 0 16px; cursor: pointer; font-size: 16px; }
.social { display: flex; gap: 14px; margin-top: 22px; }
.social a { width: 34px; height: 34px; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; color: var(--gold); font-size: 14px; transition: all .3s; }
.social a:hover { background: var(--gold); color: var(--black); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 54px; padding-top: 24px; border-top: 1px solid var(--line-soft); font-size: 11.5px; color: var(--text-dim); letter-spacing: .04em; flex-wrap: wrap; gap: 12px; }
.footer-bottom .legal a { margin-left: 26px; color: var(--text-dim); }
.footer-bottom a:hover { color: var(--gold); }

/* ---------- Generic hero ---------- */
.page-hero { position: relative; min-height: 78vh; display: flex; align-items: center; padding-top: 120px; }
.page-hero .hero-split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; width: 100%; }
.hero-img { position: absolute; inset: 0; z-index: 0; }
.hero-img::before { content:""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--black) 12%, rgba(10,9,8,.5) 55%, rgba(10,9,8,.2)); z-index: 1; }

/* ---------- Cards / grids ---------- */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card { background: var(--panel); border: 1px solid var(--line-soft); }

/* ---------- Steps / icon rows ---------- */
.iconrow { display: grid; grid-template-columns: repeat(4, 1fr); }
.iconrow .cell { padding: 30px 26px; text-align: center; border-right: 1px solid var(--line-soft); }
.iconrow .cell:last-child { border-right: none; }
.iconrow .ic { color: var(--gold); font-size: 26px; margin-bottom: 16px; }
.iconrow h6 { font-family: var(--sans); font-weight: 500; font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--white); margin-bottom: 8px; }
.iconrow p { font-size: 12.5px; color: var(--text-soft); line-height: 1.7; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 24px; }
.field { display: flex; flex-direction: column; gap: 9px; }
.field.full { grid-column: 1 / -1; }
.field label { font-family: var(--sans); font-weight: 500; font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--text-soft); }
.field input, .field select, .field textarea {
  background: var(--panel); border: 1px solid var(--line); color: var(--text);
  padding: 14px 15px; font-family: var(--sans); font-size: 14px; font-weight: 300;
  transition: border-color .3s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-dim); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); }
.field textarea { resize: vertical; min-height: 130px; }

/* ---------- Accessibility helpers ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link {
  position: absolute; left: 50%; top: 8px;
  transform: translateX(-50%) translateY(-150%);
  z-index: 200; background: var(--gold); color: #1a1206;
  font-family: var(--sans); font-weight: 600; font-size: 12px; letter-spacing: .12em;
  text-transform: uppercase; padding: 12px 22px; transition: transform .25s var(--ease);
}
.skip-link:focus { transform: translateX(-50%) translateY(0); outline: 2px solid var(--gold-bright); outline-offset: 2px; }

/* Visible keyboard focus everywhere (never strip without replacement) */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--gold-bright); outline-offset: 3px;
}
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: 2px solid var(--gold-bright); outline-offset: 0; border-color: var(--gold);
}

/* Icons */
.icon { width: 1em; height: 1em; display: inline-block; vertical-align: -.125em; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.iconrow .ic .icon, .micon .icon, .pillar .ic .icon { width: 1.6rem; height: 1.6rem; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ---------- Responsive ---------- */
/* Tablet: give 4/5-col grids a 2-col step before going single-column */
@media (max-width: 1080px) and (min-width: 761px) {
  .iconrow, .hiw-grid, .vouchers-grid, .accolades, .hours-band, .pillars-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .accolade, .iconrow .cell { border-bottom: 1px solid var(--line-soft); }
}
@media (max-width: 980px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cards-3 { grid-template-columns: 1fr; }
  .iconrow { grid-template-columns: 1fr 1fr; }
  .iconrow .cell { border-bottom: 1px solid var(--line-soft); }
  .page-hero .hero-split { grid-template-columns: 1fr; gap: 36px; }
  .form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .section { padding: 70px 0; }
  .nav-left, .nav-right { display: none; }
  .nav { grid-template-columns: 1fr auto; position: relative; align-items: center; }
  .nav-toggle { display: flex; justify-self: end; padding: 10px; margin-right: -10px; }
  .brand { justify-self: start; }
  /* Single ordered drawer: both groups stack in flow, no overlap */
  .mobile-open .nav-left, .mobile-open .nav-right {
    display: flex; flex-direction: column; align-items: flex-start;
    position: static; background: none; padding: 0; gap: 18px; border: none;
    justify-content: flex-start;
  }
  .mobile-open .nav::after {
    content: ""; position: absolute; top: 100%; left: 0; right: 0; bottom: auto; z-index: -1;
  }
  .mobile-open .nav {
    grid-template-columns: 1fr auto; row-gap: 22px; padding-bottom: 24px;
  }
  .mobile-open .nav-left, .mobile-open .nav-right { grid-column: 1 / -1; }
  .mobile-open .nav-left a.navlink, .mobile-open .nav-right a.navlink { font-size: 13px; }
  .mobile-open .nav-left { order: 2; }
  .mobile-open .brand { order: 1; }
  .mobile-open .nav-right { order: 3; }
  .mobile-open .nav-toggle { order: 1; }
  /* Drawer surface */
  .site-header.mobile-open, body.mobile-open .site-header { background: #090807; height: 100vh; height: 100dvh; overflow-y: auto; }
  body.mobile-open { overflow: hidden; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .iconrow, .hiw-grid, .vouchers-grid, .accolades, .hours-band, .pillars-grid { grid-template-columns: 1fr; }
  .reserve-box { grid-template-columns: 1fr !important; }
  .reserve-box .btn { width: 100%; justify-content: center; }
}
/* Small phones */
@media (max-width: 430px) {
  :root { --gutter: 22px; }
  h1 { font-size: clamp(34px, 11vw, 52px); }
  h2 { font-size: clamp(28px, 8vw, 40px); }
  .home-hero h1 { font-size: clamp(38px, 13vw, 60px) !important; }
}

/* newsletter feedback */
.news-msg { font-size: 12px; color: var(--gold); margin-top: 10px; min-height: 1em; letter-spacing: .04em; }
.news-form.is-error input { border-color: #b5553c; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #b5553c !important; }
.form-note { font-size: 13px; color: #d7917c; margin-top: 4px; }
.form-note.is-ok { color: var(--gold); }
.tab-enter { animation: tabEnter .7s cubic-bezier(.22,1,.36,1); }
@keyframes tabEnter { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .tab-enter { animation: none; } }

/* small screens: long button labels may wrap instead of overflowing */
@media (max-width: 480px) {
  .btn { white-space: normal; max-width: 100%; text-align: center; justify-content: center; line-height: 1.5; }
}

/* ===== Legal pages ===== */
.legal-hero { padding: 190px 0 40px; }
.legal-hero h1 { font-size: clamp(42px, 5.6vw, 72px); margin: 16px 0 22px; }
.legal-hero .lead { max-width: 560px; }
.legal-body { padding-top: 40px; }
.legal-grid { display: grid; grid-template-columns: 240px 1fr; gap: 70px; align-items: start; border-top: 1px solid var(--line-soft); padding-top: 50px; }
.legal-toc { position: sticky; top: 130px; display: flex; flex-direction: column; gap: 12px; }
.legal-toc .overline { margin-bottom: 8px; }
.legal-toc a { font-size: 13px; color: var(--text-soft); transition: color .3s ease, padding-left .3s ease; }
.legal-toc a:hover { color: var(--gold); padding-left: 6px; }
.prose { max-width: 720px; }
.prose h2 { font-size: clamp(22px, 2.2vw, 30px); margin: 46px 0 14px; scroll-margin-top: 130px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--text); font-size: 15px; line-height: 1.9; }
.prose ul { padding-left: 20px; margin: 10px 0; }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--gold); }
.prose a { color: var(--gold); border-bottom: 1px solid rgba(199,154,75,.4); }
.prose strong { color: var(--white); font-weight: 500; }
.legal-table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 14px; }
.legal-table th, .legal-table td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.legal-table th { font-family: var(--sans); font-weight: 500; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.legal-updated { margin-top: 50px; padding-top: 24px; border-top: 1px solid var(--line-soft); font-size: 13px !important; color: var(--text-soft) !important; }
@media (max-width: 860px) { .legal-grid { grid-template-columns: 1fr; gap: 30px; } .legal-toc { position: static; flex-direction: row; flex-wrap: wrap; gap: 10px 18px; } .legal-hero { padding-top: 150px; } }

/* ===== 404 ===== */
.nf-hero { position: relative; min-height: 100vh; display: flex; align-items: center; }
.nf-hero .hero-img::before { background: linear-gradient(90deg, rgba(8,7,6,.95) 30%, rgba(8,7,6,.55)); }
.nf-inner { position: relative; z-index: 2; }
.nf-hero h1 { font-size: clamp(44px, 6vw, 84px); margin: 16px 0 22px; }
.nf-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 30px; }

/* ===== Article reader ===== */
.article-modal { position: fixed; inset: 0; z-index: 10002; display: flex; align-items: center; justify-content: center; padding: 30px; visibility: hidden; }
.article-modal.open { visibility: visible; }
.am-backdrop { position: absolute; inset: 0; background: rgba(5,4,3,.82); opacity: 0; transition: opacity .45s ease; backdrop-filter: blur(4px); }
.article-modal.open .am-backdrop { opacity: 1; }
.am-panel { position: relative; width: min(980px, 100%); max-height: calc(100vh - 60px); overflow: auto; display: grid; grid-template-columns: 1fr 1.15fr;
  background: var(--panel, #121110); border: 1px solid var(--line); opacity: 0; transform: translateY(30px) scale(.98); transition: opacity .5s ease, transform .6s cubic-bezier(.22,1,.36,1); outline: none; }
.article-modal.open .am-panel { opacity: 1; transform: none; }
.am-img img { width: 100%; height: 100%; min-height: 340px; object-fit: cover; display: block; }
.am-body { padding: 48px 44px; }
.am-title { font-size: clamp(24px, 2.6vw, 34px); margin: 14px 0 8px; }
.am-date { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-dim); }
.am-quote { margin: 26px 0; padding-left: 20px; border-left: 1px solid var(--gold); font-family: var(--serif); font-style: italic; font-size: 20px; line-height: 1.6; color: var(--white); }
.am-note { font-size: 13px; color: var(--text-soft); }
.am-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.am-close { position: absolute; top: 10px; right: 14px; z-index: 2; background: none; border: none; color: var(--gold); font-size: 30px; line-height: 1; cursor: pointer; }
body.modal-open { overflow: hidden; }
@media (max-width: 760px) { .am-panel { grid-template-columns: 1fr; } .am-img img { min-height: 200px; max-height: 240px; } .am-body { padding: 30px 24px; } }

/* ===== Cookie notice ===== */
.cookie-bar { position: fixed; left: 24px; bottom: 24px; z-index: 10000; max-width: 420px; padding: 22px 24px; background: rgba(15,13,11,.97);
  border: 1px solid var(--line); box-shadow: 0 20px 50px rgba(0,0,0,.5); opacity: 0; transform: translateY(20px); transition: opacity .5s ease, transform .6s cubic-bezier(.22,1,.36,1); }
.cookie-bar.show { opacity: 1; transform: none; }
.cookie-bar p { font-size: 13px; line-height: 1.7; color: var(--text); }
.cookie-bar a { color: var(--gold); border-bottom: 1px solid rgba(199,154,75,.4); }
.cb-actions { display: flex; gap: 10px; margin-top: 16px; }
.cb-actions .btn { padding: 11px 20px; }
@media (max-width: 480px) { .cookie-bar { left: 12px; right: 12px; bottom: 12px; max-width: none; } }
