/* ==========================================================================
   Mer Bleue Beach Restaurant — stylesheet
   Palette: deep sea blue (dominant) · driftwood brown · warm sand / white
   Signature: the horizon line where blue sea meets sand
   ========================================================================== */

:root {
  /* Colour */
  --sea-deep:     #133b56;   /* dominant brand blue */
  --sea:          #1d6885;   /* mid aegean */
  --sea-light:    #8fc2d4;   /* shallows / sky accent */
  --sea-wash:     #dcebf0;   /* faint blue tint */
  --driftwood:    #7a5c42;   /* warm brown, secondary */
  --driftwood-deep:#4f3b2b;  /* deep brown text accent */
  --sand:         #f6f1e7;   /* page background, warm white */
  --sand-deep:    #ece2d0;   /* deeper sand panels */
  --shell:        #ffffff;   /* clean cards */
  --ink:          #241f1a;   /* warm near-black */
  --ink-soft:     #5a5048;   /* muted body text */

  /* Type */
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Rhythm */
  --max: 1180px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-y: clamp(4rem, 9vw, 7.5rem);
  --radius: 4px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* --- Reset -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--body);
  font-size: clamp(1rem, 0.5vw + 0.95rem, 1.075rem);
  line-height: 1.65;
  color: var(--ink);
  background: var(--sand);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font-family: inherit; }

/* --- Type scale --------------------------------------------------------- */
h1, h2, h3 {
  font-family: var(--display);
  font-weight: 460;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  color: var(--sea-deep);
}
h1 { font-size: clamp(2.6rem, 7vw, 5rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3.1rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); font-weight: 500; }

.eyebrow {
  font-family: var(--body);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--driftwood);
  margin: 0 0 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.eyebrow::before {
  content: "";
  width: 1.6rem; height: 1px;
  background: var(--driftwood);
  display: inline-block;
}
.lede { font-size: clamp(1.1rem, 1.6vw, 1.35rem); color: var(--ink-soft); max-width: 46ch; }

/* --- Layout helpers ----------------------------------------------------- */
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.section--tint { background: var(--sea-wash); }
.section--sand { background: var(--sand-deep); }
.center { text-align: center; }
.center .lede { margin-inline: auto; }
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } }

/* --- Buttons ------------------------------------------------------------ */
.btn {
  --bg: var(--sea-deep); --fg: #fff;
  display: inline-flex; align-items: center; gap: 0.55rem;
  background: var(--bg); color: var(--fg);
  font-weight: 600; font-size: 0.95rem; letter-spacing: 0.01em;
  padding: 0.85rem 1.6rem; border: 1px solid var(--bg);
  border-radius: var(--radius); text-decoration: none; cursor: pointer;
  transition: transform .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -12px rgba(19,59,86,.55); }
.btn--ghost { --bg: transparent; --fg: var(--sea-deep); border-color: var(--sea-deep); }
.btn--ghost:hover { background: var(--sea-deep); color: #fff; }
.btn--wood { --bg: var(--driftwood); border-color: var(--driftwood); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 1.75rem; }

/* --- Horizon divider (signature) --------------------------------------- */
.horizon { position: relative; height: 0; }
.horizon::after {
  content: ""; position: absolute; left: 50%; transform: translateX(-50%);
  bottom: 0; width: min(var(--max), 90vw); height: 1px;
  background: linear-gradient(90deg, transparent, var(--sea-light) 18%, var(--driftwood) 50%, var(--sea-light) 82%, transparent);
}
.horizon::before {
  content: ""; position: absolute; left: 50%; bottom: -4px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--driftwood); transform: translateX(-50%);
  box-shadow: 0 0 0 4px var(--sand);
}

/* --- Header / nav ------------------------------------------------------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--sand) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid color-mix(in srgb, var(--driftwood) 22%, transparent);
}
.site-head__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 0.85rem; }
.brand { text-decoration: none; line-height: 1; display: flex; flex-direction: column; }
.brand__name { font-family: var(--display); font-size: 1.5rem; font-weight: 500; color: var(--sea-deep); letter-spacing: -0.01em; }
.brand__sub { font-size: 0.62rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--driftwood); margin-top: 2px; }

.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav__link { text-decoration: none; font-weight: 600; font-size: 0.95rem; color: var(--ink); position: relative; padding: 0.2rem 0; }
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--sea); transition: width .28s var(--ease);
}
.nav__link:hover::after, .nav__link[aria-current="page"]::after { width: 100%; }
.nav__link[aria-current="page"] { color: var(--sea-deep); }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 0.4rem; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--sea-deep); margin: 5px 0; transition: transform .3s var(--ease), opacity .3s var(--ease); }

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--sand); border-bottom: 1px solid var(--sand-deep);
    padding: 0.5rem var(--gutter) 1.25rem;
    clip-path: inset(0 0 100% 0); transition: clip-path .35s var(--ease);
  }
  .nav.is-open { clip-path: inset(0 0 0 0); }
  .nav__link { padding: 0.7rem 0; width: 100%; border-bottom: 1px solid color-mix(in srgb, var(--driftwood) 14%, transparent); }
  .nav .btn { margin-top: 0.8rem; }
  .nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.is-open span:nth-child(2) { opacity: 0; }
  .nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* --- Hero --------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero__scene { position: absolute; inset: 0; z-index: -1; }
.hero__scene svg { width: 100%; height: 100%; }
.hero__inner { padding-block: clamp(5rem, 14vh, 9rem) clamp(4rem, 10vh, 7rem); max-width: 40rem; }
.hero h1 { color: #fff; text-shadow: 0 2px 30px rgba(10,32,46,.45); }
.hero .eyebrow { color: var(--sand); }
.hero .eyebrow::before { background: var(--sand); }
.hero__tag { color: #f3efe6; font-size: clamp(1.15rem, 2vw, 1.5rem); max-width: 30ch; margin: 0.5rem 0 0; text-shadow: 0 1px 18px rgba(10,32,46,.4); }
.hero__meta { margin-top: 2rem; color: #eef6f8; font-size: 0.9rem; letter-spacing: 0.04em; display: flex; gap: 1.2rem; flex-wrap: wrap; }
.hero__meta span { display: inline-flex; align-items: center; gap: 0.4rem; }

/* --- Feature ("the view") ---------------------------------------------- */
.frame {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(180deg, var(--sea-light), var(--sea));
  aspect-ratio: 4 / 3; min-height: 240px;
  display: grid; place-items: center; color: #fff;
}
.frame--tall { aspect-ratio: 3 / 4; }
.frame__ph { text-align: center; font-size: 0.82rem; letter-spacing: 0.06em; opacity: 0.9; padding: 1rem; }
.frame__ph strong { display: block; font-family: var(--display); font-size: 1.1rem; letter-spacing: 0; margin-bottom: 0.3rem; }
.frame img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }

/* --- Cards / signatures ------------------------------------------------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.25rem; margin-top: 2.5rem; }
.card {
  background: var(--shell); border: 1px solid var(--sand-deep);
  border-radius: var(--radius); padding: 1.6rem 1.5rem;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -28px rgba(19,59,86,.5); border-color: var(--sea-light); }
.card__kicker { font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--driftwood); font-weight: 700; }
.card h3 { margin: 0.5rem 0 0.4rem; color: var(--sea-deep); }
.card p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }

/* --- Quote strip -------------------------------------------------------- */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; margin-top: 2.5rem; }
.quote { background: var(--shell); border-left: 3px solid var(--sea-light); padding: 1.4rem 1.5rem; border-radius: var(--radius); }
.quote p { font-family: var(--display); font-size: 1.1rem; color: var(--sea-deep); margin: 0 0 0.7rem; line-height: 1.4; }
.quote cite { font-style: normal; font-size: 0.85rem; color: var(--driftwood); font-weight: 600; letter-spacing: 0.02em; }

/* --- CTA band ----------------------------------------------------------- */
.band { background: var(--sea-deep); color: #fff; text-align: center; }
.band h2 { color: #fff; }
.band p { color: #d9e8ee; max-width: 44ch; margin-inline: auto; }
.band .btn--ghost { color: #fff; border-color: #fff; }
.band .btn--ghost:hover { background: #fff; color: var(--sea-deep); }

/* --- Menu --------------------------------------------------------------- */
.menu-toggle { display: inline-flex; background: var(--sand-deep); border-radius: 999px; padding: 4px; gap: 4px; margin-top: 1.5rem; }
.menu-toggle button {
  border: 0; background: transparent; cursor: pointer; font-weight: 600; font-size: 0.92rem;
  padding: 0.55rem 1.3rem; border-radius: 999px; color: var(--driftwood-deep);
  transition: background .25s var(--ease), color .25s var(--ease);
}
.menu-toggle button.is-active { background: var(--sea-deep); color: #fff; }

.menu-cat { margin-top: 3.5rem; }
.menu-cat__head { display: flex; align-items: baseline; gap: 1rem; margin-bottom: 1.5rem; }
.menu-cat__head h2 { margin: 0; font-size: clamp(1.5rem, 3vw, 2.1rem); }
.menu-cat__head .rule { flex: 1; height: 1px; background: color-mix(in srgb, var(--driftwood) 30%, transparent); }
.menu-cat__note { font-size: 0.85rem; color: var(--ink-soft); margin: -0.6rem 0 1.4rem; }

.menu-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem 3rem; }
@media (max-width: 720px) { .menu-list { grid-template-columns: 1fr; } }
.menu-item { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 0.5rem 1rem; padding: 0.7rem 0; border-bottom: 1px dotted color-mix(in srgb, var(--driftwood) 30%, transparent); }
.menu-item__name { font-weight: 600; color: var(--ink); }
.menu-item__tag { font-size: 0.66rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sea); border: 1px solid var(--sea-light); border-radius: 999px; padding: 1px 7px; margin-left: 0.5rem; vertical-align: middle; }
.menu-item__desc { grid-column: 1 / -1; font-size: 0.875rem; color: var(--ink-soft); margin-top: -0.1rem; }
.menu-item__price { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--driftwood-deep); white-space: nowrap; }

.menu-pdf { margin-top: 1.5rem; }
.menu-pdf__frame { width: 100%; height: 78vh; min-height: 460px; border: 1px solid var(--sand-deep); border-radius: var(--radius); background: var(--shell); }
.menu-note { background: var(--sea-wash); border-radius: var(--radius); padding: 1rem 1.25rem; font-size: 0.9rem; color: var(--driftwood-deep); margin-top: 1.25rem; }
.is-hidden { display: none !important; }

/* --- Reservation embed slot -------------------------------------------- */
.embed-slot { margin-top: 0.5rem; }
.embed-slot iframe { width: 100%; min-height: 640px; border: 0; border-radius: var(--radius); background: var(--shell); display: block; }
.embed-placeholder {
  border: 2px dashed color-mix(in srgb, var(--driftwood) 40%, transparent);
  border-radius: var(--radius); background: var(--shell);
  padding: 3.5rem 1.5rem; text-align: center; color: var(--ink-soft);
  font-size: 0.9rem; min-height: 360px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 0.4rem;
}
.embed-placeholder strong { font-family: var(--display); font-size: 1.25rem; color: var(--sea-deep); }
.form__note { font-size: 0.9rem; color: var(--ink-soft); margin: 0 0 1.25rem; }

/* --- Contact / map ------------------------------------------------------ */
.info-list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 1.1rem; }
.info-list li { display: grid; grid-template-columns: auto 1fr; gap: 0.85rem; align-items: start; }
.info-list .ic { width: 20px; height: 20px; color: var(--sea); margin-top: 2px; }
.info-list a { color: var(--sea-deep); text-decoration: none; font-weight: 600; }
.info-list a:hover { text-decoration: underline; }
.map-frame { width: 100%; height: 340px; border: 0; border-radius: var(--radius); margin-top: 1.5rem; filter: saturate(0.92); }

/* --- Footer ------------------------------------------------------------- */
.site-foot { background: var(--sea-deep); color: #cfe1e8; padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; }
.site-foot a { color: #eaf3f6; text-decoration: none; }
.site-foot a:hover { text-decoration: underline; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; }
@media (max-width: 720px) { .foot-grid { grid-template-columns: 1fr; gap: 2rem; } }
.foot-brand__name { font-family: var(--display); font-size: 1.7rem; color: #fff; }
.foot-brand p { color: #a9c6d1; max-width: 30ch; font-size: 0.92rem; }
.foot-col h4 { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--sea-light); margin: 0 0 1rem; }
.foot-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.55rem; font-size: 0.94rem; }
.foot-social { display: flex; gap: 0.8rem; margin-top: 1rem; }
.foot-social a { width: 38px; height: 38px; border: 1px solid #355d74; border-radius: 50%; display: grid; place-items: center; transition: background .25s var(--ease), border-color .25s var(--ease); }
.foot-social a:hover { background: var(--sea); border-color: var(--sea); }
.foot-social svg { width: 18px; height: 18px; }
.foot-base { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid #2a5067; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; font-size: 0.82rem; color: #88aab8; }

/* --- Page header (interior pages) -------------------------------------- */
.page-head { position: relative; overflow: hidden; color: #fff; isolation: isolate; }
.page-head__scene { position: absolute; inset: 0; z-index: -1; }
.page-head__scene svg { width: 100%; height: 100%; }
.page-head__inner { padding-block: clamp(3.5rem, 9vh, 6rem); }
.page-head h1 { color: #fff; margin-bottom: 0.4rem; text-shadow: 0 2px 26px rgba(10,32,46,.4); }
.page-head .eyebrow { color: var(--sand); }
.page-head .eyebrow::before { background: var(--sand); }
.page-head p { color: #eaf3f6; max-width: 48ch; margin: 0; }

/* --- Reveal animation --------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* --- Gallery ------------------------------------------------------------ */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-top: 2.5rem; }
.gallery .frame { aspect-ratio: 1; min-height: 0; }
.gallery .frame:nth-child(3n+1) { aspect-ratio: 4/5; }

/* focus visibility */
:focus-visible { outline: 2px solid var(--sea); outline-offset: 2px; border-radius: 2px; }
