/* The Curry Boat — website styles
   Brand: Ink Black, Brass Gold, Kasavu Ivory · Cormorant Garamond + Jost */

:root {
  --ink: #0F0E0C;
  --charcoal: #1D1B18;
  --brass: #C9A55A;
  --deep-brass: #7A5C26;
  --ivory: #F2EADB;
  --text-soft: #3B3832;
  --text-card: #4A463F;
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Jost', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --pad-x: max(5vw, 20px);
  --pad-y: clamp(80px, 9vw, 140px);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ink); color: var(--ivory); font: 17px/1.65 var(--sans); overflow-x: clip; }
img { max-width: 100%; display: block; }
figure { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 500; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: var(--brass); }
a:hover { color: var(--ivory); }
em { font-style: italic; }
.nowrap { white-space: nowrap; }
.small { font-size: 14px; }
.muted { color: rgba(242, 234, 219, .8); }
.dot { color: var(--brass); margin: 0 8px; }

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

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--brass); color: var(--ink); padding: 10px 16px; text-decoration: none; }
.skip-link:focus { top: 12px; }

/* Quick switches (see the comment above <body> in index.html) */
body[data-drinks="off"] [data-drinks-only],
body[data-opening="off"] [data-opening-only] { display: none !important; }

/* ---------- Layout ---------- */
.container { max-width: 1200px; margin: 0 auto; }
.container--wide { max-width: 1240px; }
.section { padding: var(--pad-y) var(--pad-x); }
.section--ivory { background: var(--ivory); color: var(--ink); }
.section--ink { background: var(--ink); }
.section--char { background: var(--charcoal); }

.split { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(48px, 7vw, 110px); }
.split > * { min-width: 0; }
.split-text { flex: 1 1 400px; }
.split-text--wide { flex: 1.3 1 460px; }
.split-text > p:not(.eyebrow) { margin-top: 20px; max-width: 540px; }
.split-text h2 + p { margin-top: 28px !important; }

h2 { font-family: var(--serif); font-size: clamp(38px, 4.4vw, 60px); line-height: 1.04; text-wrap: balance; }

/* Section labels with brass rules, echoing the logo */
.eyebrow { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; font-size: 13px; letter-spacing: .32em; text-transform: uppercase; color: var(--brass); }
.eyebrow::before { content: ""; width: 44px; height: 1px; background: currentColor; flex: none; }
.eyebrow--center { justify-content: center; }
.eyebrow--center::after { content: ""; width: 44px; height: 1px; background: currentColor; flex: none; }
.eyebrow--light { color: var(--ivory); }
.eyebrow--light::before, .eyebrow--light::after { background: var(--brass); }
.section--ivory .eyebrow { color: var(--deep-brass); }

.label { font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--brass); font-weight: 500; }
.section--ivory .label { color: var(--deep-brass); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 32px; border: 1px solid transparent; border-radius: 2px; font: 500 13px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background-color .25s ease, color .25s ease, border-color .25s ease; }
.btn-sm { min-height: 46px; padding: 0 22px; font-size: 12.5px; }
.btn-gold { background: var(--brass); border-color: var(--brass); color: var(--ink); }
.btn-gold:hover { background: var(--ivory); border-color: var(--ivory); color: var(--ink); }
.btn-line { border-color: rgba(242, 234, 219, .7); color: var(--ivory); background: transparent; font-weight: 400; }
.btn-line:hover { background: var(--ivory); color: var(--ink); }
.btn-line-dark { border-color: var(--ink); color: var(--ink); background: transparent; font-weight: 400; }
.btn-line-dark:hover { background: var(--ink); color: var(--ivory); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.btn-row--center { justify-content: center; }
.link-btn { min-height: 54px; padding: 0 12px; border: 0; background: none; color: var(--brass); font: 15px var(--sans); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }

/* ---------- Top bar & navigation ---------- */
.topbar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 24px; padding: 9px var(--pad-x); background: var(--charcoal); color: rgba(242, 234, 219, .78); font-size: 13px; letter-spacing: .06em; }
.topbar a { color: rgba(242, 234, 219, .92); text-decoration: none; white-space: nowrap; }

.nav { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; padding: 14px var(--pad-x); background: rgba(15, 14, 12, .92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(201, 165, 90, .2); }
.nav-logo img { height: 44px; width: auto; }
.nav-right { display: flex; align-items: center; gap: 30px; }
.nav-links { display: flex; align-items: center; gap: 30px; font-size: 12.5px; letter-spacing: .2em; text-transform: uppercase; }
.nav-links a { display: block; padding: 12px 0; color: var(--ivory); text-decoration: none; }
.nav-links a:hover { color: var(--brass); }
.nav-toggle { display: none; width: 46px; height: 46px; align-items: center; justify-content: center; border: 1px solid rgba(242, 234, 219, .35); border-radius: 2px; background: transparent; color: var(--ivory); cursor: pointer; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(860px, 100svh); display: flex; flex-direction: column; justify-content: center; background: var(--ink); }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(0deg, var(--ink) 0%, rgba(15, 14, 12, .58) 38%, rgba(15, 14, 12, .58) 100%); }
.hero-inner { position: relative; max-width: 900px; margin: 0 auto; padding: 96px var(--pad-x) 64px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero-icon { width: 58px; height: auto; margin-bottom: 26px; }
.pill { margin-bottom: 26px; padding: 7px 18px; border: 1px solid rgba(201, 165, 90, .7); border-radius: 999px; background: rgba(15, 14, 12, .35); color: var(--brass); font-size: 12.5px; letter-spacing: .22em; text-transform: uppercase; }
.hero h1 { font-family: var(--serif); font-size: clamp(46px, 7vw, 96px); line-height: 1; letter-spacing: -.01em; text-wrap: balance; }
.hero-lead { margin-top: 28px; max-width: 600px; font-size: clamp(17px, 1.5vw, 19px); color: rgba(242, 234, 219, .9); }
.hero .btn-row { margin-top: 38px; }
.hero-facts { position: relative; width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 auto; padding: 0 var(--pad-x) 40px; text-align: center; }
.hero-facts > div { padding: 22px 12px 0; border-top: 1px solid rgba(201, 165, 90, .35); }
.fact { margin-top: 6px; font-family: var(--serif); font-size: 22px; line-height: 1.3; }
.hero-facts .fact a { color: var(--ivory); text-decoration: none; }

/* ---------- Story ---------- */
.story-media { flex: 1 1 420px; position: relative; padding-bottom: 40px; }
.frame { position: absolute; top: 28px; left: 28px; right: -28px; bottom: 12px; border: 1px solid rgba(122, 92, 38, .55); }
.story-photo { position: relative; height: clamp(360px, 42vw, 580px); }
.story-badge { position: absolute; left: -36px; bottom: 0; width: clamp(110px, 12vw, 160px); height: auto; filter: drop-shadow(0 10px 24px rgba(15, 14, 12, .35)); }
.signoff { margin-top: 30px !important; font-family: var(--serif); font-style: italic; font-size: 30px; line-height: 1.2; color: var(--deep-brass); }
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); margin-top: clamp(64px, 7vw, 100px); border-top: 1px solid rgba(122, 92, 38, .4); }
.pillars > div { padding: 34px 32px 0 0; color: var(--deep-brass); }
.pillars h3 { margin-top: 16px; font-family: var(--serif); font-weight: 600; font-size: 25px; line-height: 1.2; color: var(--ink); }
.pillars p { margin-top: 8px; font-size: 15.5px; line-height: 1.6; color: var(--text-soft); }

/* Photo hover */
.ph { overflow: hidden; }
.ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s cubic-bezier(.2, .7, .2, 1); }
.ph:hover img { transform: scale(1.04); }

/* ---------- Menu ---------- */
.section-head { max-width: 680px; margin: 0 auto clamp(44px, 5vw, 72px); text-align: center; }
.section-head p:last-child { margin-top: 18px; color: rgba(242, 234, 219, .75); }
.menu-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) minmax(0, 1fr); grid-template-rows: repeat(2, minmax(0, 1fr)); grid-template-areas: "a card b" "a card c"; gap: 20px; }
.menu-photo { position: relative; min-height: 260px; }
.menu-photo img { position: absolute; inset: 0; }
.menu-photo--a { grid-area: a; }
.menu-photo--b { grid-area: b; }
.menu-photo--c { grid-area: c; }
.menu-card { grid-area: card; background: var(--ivory); color: var(--ink); padding: 10px; }
.menu-card-inner { height: 100%; padding: clamp(28px, 4vw, 48px) clamp(22px, 3.6vw, 48px); border: 1px solid rgba(122, 92, 38, .6); outline: 1px solid rgba(122, 92, 38, .25); outline-offset: -6px; }
.menu-card-title { text-align: center; font-family: var(--serif); font-style: italic; font-size: 32px; line-height: 1.1; color: var(--deep-brass); }
.dishes { margin-top: 26px; }
.dishes li { padding: 13px 0; }
.dish-line { display: flex; align-items: baseline; gap: 12px; }
.dish-line h3 { font-family: var(--serif); font-weight: 600; font-size: 24px; line-height: 1.2; }
.leader { flex: 1; min-width: 20px; border-bottom: 1px dotted rgba(122, 92, 38, .6); transform: translateY(-5px); }
.price { font-family: var(--serif); font-weight: 600; font-size: 24px; white-space: nowrap; }
.dishes li > p { margin-top: 2px; font-size: 15px; color: var(--text-card); }
.menu-card-foot { margin-top: 26px; padding-top: 24px; border-top: 1px solid rgba(122, 92, 38, .4); text-align: center; }
.menu-card-sub { font-family: var(--serif); font-style: italic; font-size: 24px; color: var(--deep-brass); }
.menu-card-foot p:nth-child(2) { max-width: 400px; margin: 8px auto 0; font-size: 15px; color: var(--text-card); }
.menu-card-foot .small { margin-top: 18px; font-size: 13px; letter-spacing: .08em; color: #5A554C; }

.dishes--dark { margin-top: 30px; }
.dishes--dark li { padding: 12px 0; }
.dishes--dark .leader { border-bottom-color: rgba(201, 165, 90, .55); }
.dishes--dark .price { color: var(--brass); font-weight: 500; }
.dishes--dark li > p { color: rgba(242, 234, 219, .7); }

/* ---------- Quote band ---------- */
.band { position: relative; min-height: 520px; display: flex; align-items: center; justify-content: center; padding: 96px var(--pad-x); text-align: center; background: var(--ink); }
.band-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 55%; }
.band-shade { position: absolute; inset: 0; background: rgba(15, 14, 12, .66); }
.band-inner { position: relative; max-width: 820px; }
.band-quote { font-family: var(--serif); font-style: italic; font-size: clamp(34px, 4.6vw, 62px); line-height: 1.12; text-wrap: balance; }
.band .btn { margin-top: 36px; }

/* ---------- Breakfast ---------- */
.breakfast-media { flex: 1.3 1 460px; position: relative; height: clamp(380px, 40vw, 540px); }
.bf-a { position: absolute; left: 0; top: 0; width: 68%; height: 82%; }
.bf-b { position: absolute; right: 0; bottom: 0; width: 44%; height: 66%; border: 10px solid var(--ivory); }

/* ---------- Drinks ---------- */
.drinks-media { flex: 1 1 340px; position: relative; height: clamp(440px, 46vw, 620px); }
.drinks-media .ph { position: absolute; inset: 0; }
.inset-frame { position: absolute; inset: 16px; border: 1px solid rgba(242, 234, 219, .6); pointer-events: none; }
.drink-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 24px; margin-top: 30px; padding-top: 26px; border-top: 1px solid rgba(201, 165, 90, .25); }
.drink-groups p { margin-top: 8px; font-size: 15px; color: rgba(242, 234, 219, .8); }
#drinks .small { margin-top: 26px; }

/* ---------- Booking ---------- */
.book-card { display: flex; flex-wrap: wrap; background: var(--charcoal); border: 1px solid rgba(201, 165, 90, .3); }
.book-info { flex: 1 1 340px; display: flex; flex-direction: column; padding: clamp(32px, 4.5vw, 64px); border-right: 1px solid rgba(201, 165, 90, .2); }
.book-info h2 { font-size: clamp(38px, 4.4vw, 58px); }
.book-info > .muted { margin-top: 22px; }
.book-facts { display: flex; flex-direction: column; gap: 20px; margin-top: 32px; font-size: 16px; }
.book-facts p:last-child { margin-top: 4px; }
.book-badge { width: 120px; height: auto; margin-top: auto; padding-top: 40px; }
.book-form-wrap { flex: 1.6 1 460px; min-width: 0; padding: clamp(32px, 4.5vw, 64px); }

#booking-form { display: flex; flex-wrap: wrap; gap: 30px 28px; }
.field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.field--half { flex: 1 1 220px; }
.field--full { flex: 1 1 100%; }
.field--date { flex: 1 1 170px; }
.field--small { flex: 1 1 120px; }
.field label { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: rgba(242, 234, 219, .75); }
.field input, .field select, .field textarea { width: 100%; height: 46px; padding: 0; border: 0; border-bottom: 1px solid rgba(242, 234, 219, .32); border-radius: 0; background: transparent; color: var(--ivory); font: 18px var(--sans); color-scheme: dark; -webkit-appearance: none; appearance: none; }
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23C9A55A' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 4px center; padding-right: 24px; }
.field textarea { height: auto; padding: 12px 0; line-height: 1.5; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--brass); }
.field input[aria-invalid="true"] { border-bottom-color: #E8A27F; }
.field option { background: var(--charcoal); color: var(--ivory); }
.field ::placeholder { color: rgba(242, 234, 219, .4); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { flex: 1 1 100%; color: #E8A27F; font-size: 15px; }
.form-actions { flex: 1 1 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.form-actions .small { color: rgba(242, 234, 219, .62); }
#bk-submit[disabled] { opacity: .7; cursor: wait; }

.result-title { margin-top: 10px; font-family: var(--serif); font-size: 38px; line-height: 1.1; }
.book-result > .muted { margin-top: 10px; font-size: 16px; }
.book-result > .small { margin-top: 20px; }
.summary { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 12px 28px; margin: 26px 0 0; padding: 22px 0; border-top: 1px solid rgba(201, 165, 90, .25); border-bottom: 1px solid rgba(201, 165, 90, .25); font-size: 17px; }
.summary dt { padding-top: 4px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: rgba(242, 234, 219, .6); }
.summary dd { margin: 0; overflow-wrap: anywhere; }
.book-result .btn-row { margin-top: 28px; }

/* ---------- Visit ---------- */
.visit { display: flex; flex-wrap: wrap; align-items: stretch; gap: clamp(40px, 6vw, 90px); }
.visit-text { flex: 1.4 1 460px; min-width: 0; }
.visit-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 34px 40px; margin-top: 40px; padding-top: 34px; border-top: 1px solid rgba(122, 92, 38, .4); }
.visit-grid .fact { margin-top: 8px; font-size: 24px; }
.visit-grid p:not(.label):not(.fact) { margin-top: 8px; font-size: 16px; }
.visit-grid .fact + p { margin-top: 2px !important; }
.visit-grid a { color: var(--ink); }
.visit-grid .fact a { text-decoration: none; white-space: nowrap; }
.visit-card { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: clamp(32px, 4vw, 52px); background: var(--ink); color: var(--ivory); text-align: center; }
.visit-card img { width: 132px; height: auto; }
.visit-address { margin-top: 26px; font-family: var(--serif); font-size: 30px; line-height: 1.2; }
.visit-card .btn { margin-top: 28px; }

/* ---------- Footer ---------- */
.footer { padding: clamp(64px, 7vw, 96px) var(--pad-x) 36px; background: var(--ink); text-align: center; }
.footer-logo { width: 210px; height: auto; margin: 0 auto; }
.footer-tagline { margin-top: 24px; font-family: var(--serif); font-style: italic; font-size: 24px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 34px; margin-top: 30px; font-size: 12.5px; letter-spacing: .2em; text-transform: uppercase; }
.footer-links a { display: block; padding: 8px 0; color: var(--ivory); text-decoration: none; }
.footer-links a:hover { color: var(--brass); }
.footer-follow { margin-top: 22px; font-size: 15px; color: rgba(242, 234, 219, .78); }
.footer-legal { max-width: 1200px; margin: 44px auto 0; padding-top: 24px; border-top: 1px solid rgba(201, 165, 90, .22); font-size: 13px; line-height: 1.7; color: rgba(242, 234, 219, .6); }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .menu-layout { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: auto 280px; grid-template-areas: "card card card" "a b c"; }
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav-right { gap: 12px; }
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--pad-x) 20px; background: rgba(15, 14, 12, .98); border-bottom: 1px solid rgba(201, 165, 90, .2); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 0; border-bottom: 1px solid rgba(242, 234, 219, .08); }
  .book-info { border-right: 0; border-bottom: 1px solid rgba(201, 165, 90, .2); }
  .book-badge { display: none; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .topbar { justify-content: center; text-align: center; font-size: 12px; }
  .topbar > span:first-child { display: none; }
  .nav-logo img { height: 36px; }
  .nav .btn-sm { min-height: 44px; padding: 0 14px; font-size: 11px; letter-spacing: .12em; white-space: nowrap; }
  .eyebrow { font-size: 12px; letter-spacing: .24em; gap: 12px; }
  .eyebrow::before, .eyebrow--center::after { width: 28px; }
  .hero-inner { padding-top: 64px; }
  .hero-facts { grid-template-columns: 1fr; }
  .hero-facts > div { padding-top: 16px; }
  .hero-facts > div + div { border-top-color: rgba(201, 165, 90, .15); }
  .frame { left: 14px; right: -10px; top: 14px; }
  .story-badge { left: -8px; width: 104px; }
  .menu-layout { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto 220px 220px; grid-template-areas: "card card" "a b" "a c"; gap: 12px; }
  .dish-line h3, .price { font-size: 21px; }
  .breakfast-media { height: 360px; }
  .bf-b { border-width: 6px; }
  .drinks-media { height: 380px; }
  .summary { grid-template-columns: 1fr; gap: 2px; }
  .summary dd { margin-bottom: 10px; }
}

@media (max-width: 380px) {
  .nav .btn-sm { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .ph img { transition: none; }
  .ph:hover img { transform: none; }
}
