/* Guido's Port Alfred — site styles
   Mobile-first. No frameworks, no web fonts (system stacks keep it fast on beach 3G). */

:root {
  --cream: #f7efe3;
  --paper: #fcf8f1;
  --sand: #ead8bb;
  --terracotta: #a8482a;
  --terracotta-dark: #7e3219;
  --wood: #3a2819;
  --wood-mid: #5c3f28;
  --ocean: #1f5a74;
  --ocean-dark: #163f52;
  --ink: #2a211b;
  --muted: #5f5043;
  --line: #dcc9ab;
  --whatsapp: #1d7a4c;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Noto Serif", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius: 14px;
  --gutter: 1.25rem;
  --max: 1120px;
  --bar-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  padding-bottom: var(--bar-h); /* room for the mobile action bar */
}
@media (min-width: 900px) { body { padding-bottom: 0; } }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--ocean); text-underline-offset: .18em; }
a:hover { color: var(--ocean-dark); }

h1, h2, h3 { font-family: var(--serif); line-height: 1.15; margin: 0 0 .6em; color: var(--wood); font-weight: 700; }
h1 { font-size: clamp(2.4rem, 9vw, 4.5rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.9rem, 6vw, 2.75rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

:focus-visible { outline: 3px solid var(--ocean); outline-offset: 3px; border-radius: 4px; }
.on-dark :focus-visible, .hero :focus-visible, .site-footer :focus-visible { outline-color: #ffd89a; }

.visually-hidden {
  position: absolute !important; 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: 1rem; top: -100px; z-index: 100;
  background: var(--wood); color: #fff; padding: .7rem 1rem; border-radius: 8px;
}
.skip-link:focus { top: 1rem; color: #fff; }

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

/* ---------- Placeholders: anything still needing the owner's input ---------- */
.ph {
  background: #fff1a6;
  color: #4d3a00;
  outline: 1px dashed #a07c00;
  border-radius: 3px;
  padding: 0 .25em;
  font-family: var(--sans);
  font-size: .85em;
  font-style: normal;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.photo-ph {
  display: grid;
  place-items: center;
  text-align: center;
  padding: 1rem;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  color: #4d3a00;
  font-size: .9rem;
  font-weight: 600;
  background:
    repeating-linear-gradient(135deg, rgba(168,72,42,.08) 0 12px, transparent 12px 24px),
    var(--sand);
  border: 2px dashed #b38a3e;
}
.gallery figure { min-width: 0; }
.photo-ph span { overflow-wrap: anywhere; background: #fff1a6; padding: .3em .55em; border-radius: 4px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .75rem 1.25rem;
  border-radius: 999px; border: 2px solid transparent;
  font: 600 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn svg { width: 1.2em; height: 1.2em; flex: none; }
.btn--primary { background: var(--terracotta); color: #fff; }
.btn--primary:hover { background: var(--terracotta-dark); color: #fff; }
.btn--whatsapp { background: var(--whatsapp); color: #fff; }
.btn--whatsapp:hover { background: #155c39; color: #fff; }
.btn--ghost { border-color: currentColor; color: var(--wood); background: transparent; }
.btn--ghost:hover { background: var(--wood); color: #fff; border-color: var(--wood); }
.hero .btn--ghost { color: #fff; }
.hero .btn--ghost:hover { background: #fff; color: var(--wood); border-color: #fff; }
.btn--ocean { background: var(--ocean); color: #fff; }
.btn--ocean:hover { background: var(--ocean-dark); color: #fff; }

.btn--light { background: #fff; color: var(--ocean-dark); }
.btn--light:hover { background: #ffd89a; color: var(--wood); }
.btn--ghost-light { border-color: #fff; color: #fff; background: transparent; }
.btn--ghost-light:hover { background: #fff; color: var(--ocean-dark); }

.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(252, 248, 241, .96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.2) blur(6px);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; }
.brand { display: flex; flex-direction: column; text-decoration: none; color: var(--wood); line-height: 1.05; }
.brand__name { font-family: var(--serif); font-weight: 700; font-size: 1.6rem; }
.brand__sub { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--terracotta); font-weight: 700; margin-top: .2rem; }

.nav-toggle {
  display: inline-flex; align-items: center; gap: .4rem;
  min-height: 44px; padding: .5rem .9rem;
  background: transparent; border: 2px solid var(--wood); border-radius: 999px;
  color: var(--wood); font: 600 .95rem var(--sans); cursor: pointer;
}
.nav-toggle[aria-expanded="true"] { background: var(--wood); color: #fff; }

.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav a { display: block; padding: .8rem 0; color: var(--wood); text-decoration: none; font-weight: 600; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--terracotta); }

/* Mobile nav: collapsible panel (only hidden once JS is confirmed running) */
@media (max-width: 899px) {
  .site-nav { flex-basis: 100%; }
  .js .site-nav { display: none; }
  .js .site-nav.is-open { display: block; }
  .site-header .container { flex-wrap: wrap; }
  .site-nav ul { border-top: 1px solid var(--line); padding: .25rem 0 .75rem; }
  .site-nav li + li { border-top: 1px solid rgba(220, 201, 171, .5); }
  .header-call { display: none; }
}
@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .site-header .container { flex-wrap: nowrap; }
  .brand { margin-right: auto; }
  .site-nav { order: 1; }
  .header-call { order: 2; }
  .site-nav ul { display: flex; gap: clamp(1rem, 2vw, 1.6rem); }
  .site-nav a { padding: .5rem 0; white-space: nowrap; }
  .site-header .container { min-height: 76px; }
}
.no-js .nav-toggle { display: none; }
@media (min-width: 900px) and (max-width: 1099px) { .header-call { display: none; } }
@media (min-width: 380px) { .brand__sub { white-space: nowrap; } }
.header-call { white-space: nowrap; }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: min(88svh, 760px);
  display: flex; align-items: flex-end;
  color: #fff;
  background: #2b3f5c;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 60%; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(20,14,10,0) 25%, rgba(20,14,10,.55) 62%, rgba(20,14,10,.82) 100%);
}
.hero__content { padding-top: 6rem; padding-bottom: 2.5rem; }
.hero__eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: .8rem; font-weight: 700; color: #ffd89a; margin-bottom: .75rem; }
.hero h1 { color: #fff; margin-bottom: .35em; text-shadow: 0 2px 18px rgba(0,0,0,.35); }
.hero__hook { font-family: var(--serif); font-size: clamp(1.2rem, 4.4vw, 1.6rem); max-width: 34ch; margin-bottom: 1.6rem; text-shadow: 0 1px 10px rgba(0,0,0,.4); }
.hero__ph { position: absolute; top: .75rem; right: .75rem; font-size: .75rem; }
@media (min-width: 900px) { .hero__content { padding-bottom: 4.5rem; } }

/* ---------- Facts strip ---------- */
.facts { background: var(--terracotta); color: #fff; }
.facts ul {
  list-style: none; margin: 0; padding: 1rem 0;
  display: grid; gap: .5rem 1.5rem; grid-template-columns: 1fr;
  font-weight: 600;
}
.facts li { display: flex; align-items: center; gap: .6rem; }
.facts li::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: #ffd89a; flex: none; }
@media (min-width: 700px) { .facts ul { grid-template-columns: repeat(3, auto); justify-content: space-between; } }

/* ---------- Sections ---------- */
.section { padding: 4rem 0; }
.section--paper { background: var(--paper); }
.section--ocean { background: var(--ocean-dark); color: #eef5f8; }
.section--ocean h2, .section--ocean h3 { color: #fff; }
.section--ocean a:not(.btn) { color: #ffd89a; }
.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: .78rem; font-weight: 700; color: var(--terracotta); margin-bottom: .6rem; }
.section--ocean .eyebrow { color: #ffd89a; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }
.section--ocean .lede { color: #d7e6ee; }
@media (min-width: 900px) { .section { padding: 5.5rem 0; } }

/* About */
.split { display: grid; gap: 2rem; align-items: center; }
.split > *, .visit-grid > *, .book-grid > *, .menu-list > *, .footer-grid > * { min-width: 0; }
@media (min-width: 900px) { .split { grid-template-columns: 1.05fr .95fr; gap: 4rem; } .split--flip > :first-child { order: 2; } }
.about__photos { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.about__photos .photo-ph:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
.about__photos .photo-ph { aspect-ratio: 1; }
.ticks { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .7rem; }
.ticks li { position: relative; padding-left: 1.9rem; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 1.1rem; height: 1.1rem; border-radius: 50%;
  background: var(--terracotta) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/80% no-repeat;
}

/* Menu teaser cards */
.cards { display: grid; gap: 1rem; grid-template-columns: 1fr; margin-top: 2rem; }
@media (min-width: 600px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card {
  display: block; text-decoration: none; color: inherit;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.4rem 1.4rem 1.2rem; transition: transform .15s, box-shadow .15s, border-color .15s;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -14px rgba(58,40,25,.45); border-color: var(--terracotta); color: inherit; }
.card h3 { margin-bottom: .3em; }
.card p { color: var(--muted); margin: 0; font-size: 1rem; }
.card__more { display: inline-block; margin-top: .8rem; color: var(--terracotta); font-weight: 700; font-size: .95rem; }
.card--feature { background: var(--wood); border-color: var(--wood); color: #f5e9d6; }
.card--feature h3 { color: #fff; }
.card--feature p { color: #e6d5bc; }
.card--feature .card__more { color: #ffd89a; }
@media (min-width: 900px) { .card--feature { grid-row: span 2; display: flex; flex-direction: column; justify-content: flex-end; min-height: 100%; } }
.card--feature {
  background:
    repeating-linear-gradient(0deg, rgba(0,0,0,.09) 0 1px, transparent 1px 46px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.025) 0 2px, transparent 2px 7px),
    linear-gradient(160deg, #5c3f28, #2f2014);
}

/* Gallery */
.gallery { display: grid; gap: .75rem; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 2rem; }
.gallery figure { margin: 0; }
.gallery .photo-ph { aspect-ratio: 1; font-size: .8rem; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); }
.gallery figure:first-child { grid-column: 1 / -1; }
.gallery figure:first-child .photo-ph, .gallery figure:first-child img { aspect-ratio: 16 / 9; }
@media (min-width: 900px) {
  .gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
  .gallery figure:first-child { grid-column: span 2; grid-row: span 2; }
  .gallery figure:first-child .photo-ph, .gallery figure:first-child img { aspect-ratio: 1; height: 100%; }
}

/* Reviews */
.reviews { text-align: center; }
.reviews .lede { margin-left: auto; margin-right: auto; }
.reviews .btn-row { justify-content: center; margin-top: 1.75rem; }

/* Visit */
.visit-grid { display: grid; gap: 2rem; }
@media (min-width: 900px) { .visit-grid { grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; } }
.map {
  position: relative; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); background: var(--sand); aspect-ratio: 4 / 3;
}
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.info-block + .info-block { margin-top: 1.75rem; }
.info-block h3 { margin-bottom: .4em; }
address { font-style: normal; }
.hours { width: 100%; border-collapse: collapse; max-width: 26rem; }
.hours th, .hours td { text-align: left; padding: .45rem 0; border-bottom: 1px solid var(--line); }
.hours th { font-weight: 600; }
.hours td { text-align: right; font-variant-numeric: tabular-nums; }
.note { font-size: .95rem; color: var(--muted); margin-top: .75rem; }

/* Book / contact */
.book-grid { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .book-grid { grid-template-columns: .85fr 1.15fr; gap: 4rem; } }
.contact-list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .75rem; }
.contact-list .btn { width: 100%; justify-content: flex-start; }
@media (min-width: 600px) { .contact-list .btn { width: auto; } }

.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
@media (min-width: 600px) { .form { padding: 2rem; } }
.form-grid { display: grid; gap: 1rem; }
@media (min-width: 600px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
.field label { display: block; font-weight: 600; margin-bottom: .35rem; font-size: .95rem; }
.field .hint { font-weight: 400; color: var(--muted); }
.field input, .field textarea, .field select {
  width: 100%; min-height: 48px; padding: .7rem .85rem;
  font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--paper); border: 1.5px solid #bfa988; border-radius: 10px;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--ocean); outline-offset: 1px; border-color: var(--ocean); }
.form .btn { width: 100%; margin-top: 1.25rem; }
.form-note { font-size: .9rem; color: var(--muted); margin: 1rem 0 0; }
.form-status { margin-top: 1rem; padding: .9rem 1rem; border-radius: 10px; background: #fff1a6; color: #4d3a00; }
.form-status[hidden] { display: none; }
.honeypot { position: absolute; left: -9999px; }

/* ---------- Menu page ---------- */
.page-hero {
  color: #fff; padding: 3.5rem 0 3rem;
  background:
    repeating-linear-gradient(0deg, rgba(0,0,0,.1) 0 1px, transparent 1px 52px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.025) 0 2px, transparent 2px 7px),
    linear-gradient(160deg, #6a4a30, #2f2014);
}
.page-hero h1 { color: #fff; }
.page-hero p { color: #efe0c8; max-width: 60ch; font-size: 1.1rem; }
.page-hero .eyebrow { color: #ffd89a; }

.menu-nav {
  position: sticky; top: 64px; z-index: 40;
  background: var(--paper); border-bottom: 1px solid var(--line);
}
@media (min-width: 900px) { .menu-nav { top: 76px; } }
.menu-nav ul {
  list-style: none; margin: 0; padding: .6rem 0; display: flex; gap: .5rem;
  overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.menu-nav ul::-webkit-scrollbar { display: none; }
.menu-nav a {
  display: inline-block; white-space: nowrap; padding: .5rem .95rem; border-radius: 999px;
  border: 1.5px solid var(--line); background: #fff; color: var(--wood); text-decoration: none; font-weight: 600; font-size: .95rem;
}
.menu-nav a:hover { border-color: var(--terracotta); color: var(--terracotta); }

.menu-section { padding: 3rem 0 1rem; }
.menu-section + .menu-section { border-top: 1px solid var(--line); }
.menu-section header { max-width: 60ch; }
.menu-section header p { color: var(--muted); }
.menu-list { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 0 3rem; }
@media (min-width: 900px) { .menu-list { grid-template-columns: 1fr 1fr; } }
.menu-item { padding: 1rem 0; border-bottom: 1px dashed var(--line); }
.menu-item__top { display: flex; align-items: baseline; gap: .75rem; }
.menu-item__name { min-width: 0; }
.menu-item__name { font-family: var(--serif); font-size: 1.15rem; font-weight: 700; color: var(--wood); margin: 0; }
.menu-item__dots { flex: 1; border-bottom: 2px dotted #c9b28e; transform: translateY(-.3em); min-width: 1rem; }
.menu-item__price { font-weight: 700; color: var(--terracotta); white-space: nowrap; }
.menu-item__desc { margin: .25rem 0 0; color: var(--muted); font-size: .98rem; }
.menu-footnote { padding: 2rem 0 4rem; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer {
  color: #e9dac2; padding: 3rem 0 2rem;
  background:
    repeating-linear-gradient(0deg, rgba(0,0,0,.12) 0 1px, transparent 1px 44px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.02) 0 2px, transparent 2px 6px),
    linear-gradient(180deg, #3a2819, #24180f);
}
.site-footer a { color: #ffd89a; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.site-footer h2 { font-size: 1.1rem; color: #fff; font-family: var(--sans); letter-spacing: .08em; text-transform: uppercase; }
.site-footer .brand__name { color: #fff; font-size: 2rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
.footer-base { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,.12); font-size: .9rem; color: #bfa98a; }

/* ---------- Mobile action bar ---------- */
.action-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: grid; grid-template-columns: repeat(3, 1fr);
  height: var(--bar-h); padding-bottom: env(safe-area-inset-bottom);
  background: var(--wood); box-shadow: 0 -6px 18px rgba(0,0,0,.18);
}
.action-bar a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .15rem;
  color: #fff; text-decoration: none; font-size: .8rem; font-weight: 600;
}
.action-bar a + a { border-left: 1px solid rgba(255,255,255,.12); }
.action-bar svg { width: 22px; height: 22px; }
.action-bar a:nth-child(2) { background: var(--whatsapp); }
.action-bar a:nth-child(3) { background: var(--terracotta); }
.action-bar a:focus-visible { outline: 3px solid #ffd89a; outline-offset: -4px; border-radius: 0; }
@media (min-width: 900px) { .action-bar { display: none; } }

/* Simple centred pages (thanks / 404) */
.simple-page { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 4rem 0; }
.simple-page .btn-row { justify-content: center; }

/* ---------- Guido's logo (cut from Guidos/Logo.jpeg) ---------- */
.brand { flex-direction: row; align-items: center; gap: .6rem; }
.brand__logo { width: 88px; height: auto; flex: none; }
.brand__sub { margin-top: 0; }
@media (min-width: 900px) { .brand__logo { width: 104px; } }
/* The logo says "Guido's"; the tagline beside it only shows where it fits */
@media (max-width: 479px), (min-width: 900px) { .brand__sub { display: none; } }
.hero h1 { margin-bottom: .2em; }
.hero__logo { width: min(80vw, 460px); height: auto; filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .45)); }
.footer-logo { width: 200px; height: auto; margin-bottom: .75rem; }
