/* Bora Mediterranean: shared tokens, fonts, header, footer, mobile dock and buttons.
   Production translation of the approved Claude Design references (HANDOFF.md). Each page is one DOM; the desktop
   and mobile compositions switch at an 860px page-container width, like the references. */

@font-face { font-family: 'Bodoni Moda'; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/aFT67PxzY382XsXX63LUYL6GYFcan6NJrKp-VPjfJMShrpsGFUt8oU7awIA.ttf) format('truetype'); }
@font-face { font-family: 'Bodoni Moda'; font-style: normal; font-weight: 500; font-display: swap; src: url(/assets/fonts/aFT67PxzY382XsXX63LUYL6GYFcan6NJrKp-VPjfJMShrpsGFUt8oXzawIA.ttf) format('truetype'); }
@font-face { font-family: 'Bodoni Moda'; font-style: italic; font-weight: 400; font-display: swap; src: url(/assets/fonts/aFT07PxzY382XsXX63LUYJSPUqb0pL6OQqxrZLnVbvZedvJtj-V7tIaZKMN4sQ.ttf) format('truetype'); }
@font-face { font-family: 'Bodoni Moda'; font-style: italic; font-weight: 500; font-display: swap; src: url(/assets/fonts/aFT07PxzY382XsXX63LUYJSPUqb0pL6OQqxrZLnVbvZedvJtj-V7tIaZGsN4sQ.ttf) format('truetype'); }
@font-face { font-family: 'Hanken Grotesk'; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/ieVq2YZDLWuGJpnzaiwFXS9tYvBRzyFLlZg_f_Ncs2Za4Q.ttf) format('truetype'); }
@font-face { font-family: 'Hanken Grotesk'; font-style: normal; font-weight: 500; font-display: swap; src: url(/assets/fonts/ieVq2YZDLWuGJpnzaiwFXS9tYvBRzyFLlZg_f_NcgWZa4Q.ttf) format('truetype'); }
@font-face { font-family: 'Hanken Grotesk'; font-style: normal; font-weight: 600; font-display: swap; src: url(/assets/fonts/ieVq2YZDLWuGJpnzaiwFXS9tYvBRzyFLlZg_f_NcbWFa4Q.ttf) format('truetype'); }
@font-face { font-family: 'Hanken Grotesk'; font-style: normal; font-weight: 700; font-display: swap; src: url(/assets/fonts/ieVq2YZDLWuGJpnzaiwFXS9tYvBRzyFLlZg_f_NcVGFa4Q.ttf) format('truetype'); }

/* Metric-matched local fallbacks so text keeps its line breaks while Bodoni Moda loads (no layout shift on swap). */
@font-face { font-family: 'Bodoni Fallback'; font-style: normal; src: local('Georgia'); size-adjust: 104.2%; }
@font-face { font-family: 'Bodoni Fallback'; font-style: italic; src: local('Georgia Italic'), local('Georgia-Italic'); size-adjust: 95.6%; }

:root {
  /* Brand kit */
  --olive: #4F523A;        /* Secret Garden */
  --terra: #A85E39;        /* Earthen Jug: never for text under ~24px on cream */
  --cream: #F4EFE4;        /* Whitetail */
  /* Derived */
  --ink: #3A3D2A;          /* olive-deep */
  --terra-deep: #8C4A2B;   /* small terracotta text on cream (AA) */
  --cream-lift: #FBF7EF;
  --line: #DCD2BE;
  --body-2: #5C5F47;
  --input: #83866E;        /* input border, 3:1 */
  --error: #B3261E;
  --error-deep: #8A1C14;
  --error-bg: #FBEDEA;
  --sand: #E3C9A8;         /* accent text on olive */
  --runner: #EADFC8;
  --spit-bg: #EDE4D2;
  --on-olive: #ECE6D6;
  --olive-line: #6E7154;
  --serif: 'Bodoni Moda', 'Bodoni Fallback', Georgia, serif;
  --sans: 'Hanken Grotesk', system-ui, sans-serif;
  --rise: boraRise .9s cubic-bezier(.2, .65, .3, 1) both;
  --pestemal: repeating-linear-gradient(90deg, #3A3D2A 0 44px, #A85E39 44px 56px, #F4EFE4 56px 60px, #A85E39 60px 72px, #4F523A 72px 96px, #F4EFE4 96px 99px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); -webkit-font-smoothing: antialiased; }
a { color: var(--ink); }
:focus-visible { outline: 3px solid var(--terra); outline-offset: 3px; }
img { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
address { font-style: normal; }
button, input, select, textarea { font: inherit; }
[hidden] { display: none !important; }
@keyframes boraRise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -80px; z-index: 100; display: inline-flex; align-items: center; min-height: 44px;
  padding: 0 18px; background: var(--ink); color: var(--cream-lift);
  font: 700 15px/1 var(--sans); border-radius: 3px; text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--cream-lift); }

/* Page container: the references switch composition at an 860px container width. */
.page {
  container: page / inline-size;
  position: relative; background: var(--cream); color: var(--ink); font-family: var(--sans);
}
@container page (width < 860px) { .d-only { display: none !important; } }
@container page (width >= 860px) { .m-only { display: none !important; } }

.rise { animation: var(--rise); }

/* Buttons: 3px radius, uppercase 14-15px 700, tracking .06em. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 56px; padding: 0 26px;
  border: 0; border-radius: 3px; font-family: var(--sans); font-size: 15px; font-weight: 700; letter-spacing: .06em;
  line-height: 1.2; text-transform: uppercase; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}
.btn-terra { background: var(--terra); color: var(--cream-lift); }
.btn-outline { border: 1.5px solid var(--ink); background: transparent; color: var(--ink); }
.btn-olive { background: var(--olive); color: var(--cream-lift); }

/* Header */
.masthead { position: sticky; top: 0; z-index: 30; }
.site-header {
  display: flex; align-items: center; justify-content: space-between; height: 64px; padding: 0 20px;
  background: var(--cream); border-bottom: 1px solid var(--line); font-family: var(--sans);
}
.site-logo { display: flex; align-items: center; min-height: 44px; line-height: 0; order: -1; }
.site-logo img { height: 42px; width: auto; }
.site-nav { display: flex; gap: 4px; }
.site-nav a {
  display: flex; align-items: center; min-height: 44px; padding: 0 12px; font-size: 15px; font-weight: 700; color: var(--ink);
  text-decoration: none;
}
.site-nav a[data-nav="menu"] { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.site-nav a[data-nav="menu"][aria-current="page"] { text-decoration-color: var(--terra); }
.site-nav a[data-nav="visit"] { padding: 0 0 0 12px; }
.header-actions { display: flex; gap: 12px; justify-content: flex-end; align-items: center; }
.header-btn { height: 46px; padding: 0 20px; font-size: 14px; }
.header-btn.btn-terra { padding: 0 22px; }
.header-join { border: 1.5px solid var(--olive); color: var(--ink); background: transparent; }
.order-note {
  display: inline-flex; align-items: center; height: 46px; padding: 0 16px; border: 1.5px dashed var(--input); border-radius: 3px;
  color: var(--olive); font-size: 13px; font-weight: 700; letter-spacing: .04em; white-space: nowrap;
}
@container page (width >= 860px) {
  .site-header { display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; height: 96px; padding: 0 48px; }
  .site-logo { display: block; min-height: 0; order: 0; }
  .site-logo img { height: 58px; }
  .site-nav { gap: 32px; }
  .site-nav a, .site-nav a[data-nav="visit"] {
    display: inline; min-height: 0; padding: 8px 0; font-size: 15px; font-weight: 600; letter-spacing: .02em;
    text-decoration: none; border-bottom: 2px solid transparent;
  }
  .site-nav a[data-nav="menu"][aria-current="page"] { border-bottom-color: var(--terra); }
}

/* Mobile quick-actions dock: sticky at the bottom, padded for the safe area. */
.dock {
  position: sticky; bottom: 0; z-index: 40; display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: var(--cream-lift);
  border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(58, 61, 42, .08);
}
.dock .btn { height: 52px; padding: 0 10px; font-size: 14px; gap: 8px; text-align: center; }
.dock-note {
  display: flex; flex-direction: column; align-items: center; justify-content: center; height: 52px; margin: 0;
  border: 1.5px dashed var(--input); border-radius: 3px; color: var(--olive); font-size: 12px; font-weight: 700;
  letter-spacing: .06em; line-height: 1.25; text-transform: uppercase; text-align: center;
}
.dock-note span { font-weight: 600; letter-spacing: .02em; text-transform: none; }
.dock-jump { background: var(--cream-lift); border: 1.5px solid var(--ink); color: var(--ink); font-size: 13px !important; line-height: 1.2; white-space: normal; }

/* Footer */
.site-footer { background: var(--ink); color: #D9D5C4; font-family: var(--sans); }
.pestemal { height: 24px; background: var(--pestemal); }
.footer-main { display: flex; flex-direction: column; gap: 36px; padding: 56px 24px 40px; }
.footer-brand img { width: 200px; height: auto; }
.footer-tagline { margin-top: 28px; font-family: var(--serif); font-style: italic; font-size: 26px; line-height: 1.3; color: var(--cream); }
.footer-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.footer-eyebrow { margin: 0 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: #C98A64; }
.footer-nav { display: flex; flex-direction: column; gap: 4px; }
.footer-nav a { display: flex; align-items: center; min-height: 44px; color: var(--cream); text-decoration: none; font-size: 16px; }
.footer-nav a:hover { color: #F0D9C4; }
.footer-visit { display: flex; flex-direction: column; gap: 10px; }
.footer-visit address, .footer-visit .footer-hours { font-size: 15px; line-height: 1.55; color: var(--cream); }
.footer-phone { display: inline-flex; align-items: center; min-height: 44px; color: var(--cream); font-size: 15px; font-weight: 700; text-underline-offset: 4px; white-space: nowrap; } /* a phone number never wraps: its 44px+ hit box stays on one line */
.footer-phone:hover, .footer-maps-inline a:hover, .footer-review-link:hover { color: var(--cream-lift); }
.footer-maps { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.footer-maps a {
  display: flex; align-items: center; justify-content: center; min-height: 48px; border: 1.5px solid var(--cream); border-radius: 3px;
  color: var(--cream); font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; text-decoration: none;
}
.footer-review-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 0 4px;
  border-top: 1px solid var(--olive-line); border-bottom: 1px solid var(--olive-line); color: var(--cream); font-size: 16px; text-decoration: none;
}
.footer-review-row strong { color: #F0D9C4; }
.footer-review-row:hover { color: var(--cream-lift); }
.footer-small { font-size: 13px; line-height: 1.6; color: #B7B5A2; }
.footer-small a { color: #B7B5A2; text-underline-offset: 3px; }
.footer-small a:hover { color: var(--cream); }
.footer-actions { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.footer-actions .btn { height: 52px; padding: 0 24px; font-size: 14px; }
.footer-join { border: 1.5px solid var(--cream); color: var(--cream); background: transparent; }
.footer-order-note { font-size: 14px; line-height: 1.5; color: #D9D5C4; }
.footer-enjoyed { margin-top: 20px !important; font-size: 15px; line-height: 1.5; color: #D9D5C4; }
.footer-review-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: #F0D9C4; font-size: 15px; font-weight: 700; text-underline-offset: 4px; }
.footer-maps-inline { display: flex; flex-wrap: wrap; gap: 0 16px; }
.footer-maps-inline a { display: inline-flex; align-items: center; min-height: 44px; color: #F0D9C4; font-size: 14px; font-weight: 700; text-underline-offset: 4px; }
.footer-bottom { display: none; }
@container page (width >= 860px) {
  .footer-main { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 2fr) minmax(0, 2fr) minmax(0, 3fr); gap: 48px; padding: 88px 48px 64px; }
  .footer-brand img { width: 300px; }
  .footer-cols { display: contents; }
  .footer-nav { gap: 0; }
  .footer-visit { gap: 12px; }
  .footer-visit address, .footer-visit .footer-hours { font-size: 16px; line-height: 1.6; }
  .footer-phone { display: inline; min-height: 0; font-size: 16px; font-weight: 400; text-decoration: underline; }
  .footer-bottom {
    display: flex; justify-content: space-between; gap: 24px; padding: 22px 48px 28px; border-top: 1px solid var(--olive);
    font-size: 13px; letter-spacing: .04em; color: #B7B5A2;
  }
  .footer-bottom a { color: #B7B5A2; text-underline-offset: 3px; }
  .footer-bottom a:hover { color: var(--cream); }
}

/* Hit areas of at least 44 x 44px (HANDOFF accessibility checklist) for links set in a line of text or a compact
   row: a transparent box centred on the link takes the taps, so neither the type nor the layout moves. The box is
   48px, so a border or subpixel rounding cannot leave it short of 44. Short in-text links do not wrap, so the box
   stays on the words. */
.site-nav a, .footer-phone, .footer-small a, .footer-bottom a, .prose a, .submit-row a, .kahvalti-link, .phone-link { position: relative; }
.site-nav a::after, .footer-phone::after, .footer-small a::after, .footer-bottom a::after, .prose a::after, .submit-row a::after,
.kahvalti-link::after, .phone-link::after {
  content: ''; position: absolute; left: 50%; top: 50%; width: max(100%, 48px); height: max(100%, 48px); transform: translate(-50%, -50%);
}
.footer-small a, .footer-bottom a, .prose p a, .submit-row a { white-space: nowrap; }

/* Hover colour changes only where hover exists, so taps do not leave buttons stuck in their hover state. */
@media (hover: hover) {
  a:hover { color: var(--terra-deep); }
  .btn-terra:hover { background: var(--terra-deep); color: var(--cream-lift); }
  .btn-outline:hover { background: var(--ink); color: var(--cream-lift); }
  .btn-olive:hover { background: var(--ink); color: var(--cream-lift); }
  .header-join:hover { background: var(--olive); color: var(--cream-lift); }
  .footer-join:hover { background: var(--cream); color: var(--ink); }
}
