/* Ristorante Bucaneve — mobile-first, palette from the logo. */

@font-face {
  font-family: "Lora";
  src: url("/assets/fonts/lora-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Nunito Sans";
  src: url("/assets/fonts/nunito-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  --green: #55a04a;
  --green-dark: #3f7f36;
  --green-deep: #234a1f;
  --green-light: #8dc56c;
  --green-wash: #eef6e8;
  --charcoal: #3b3536;
  --ink: #2c2728;
  --muted: #6b6466;
  --cream: #fbf7ef;
  --white: #ffffff;
  --line: #e6dfd2;
  --error: #b3261e;
  --error-wash: #fdecea;
  --ok-wash: #e9f5e4;

  --radius: 20px;
  --radius-small: 12px;
  --shadow: 0 10px 30px rgba(35, 74, 31, 0.1);
  --shadow-soft: 0 4px 14px rgba(59, 53, 54, 0.08);
  --gutter: 16px;
  --max: 1120px;
  --bar-h: 64px;

  --font-serif: "Lora", Georgia, "Times New Roman", serif;
  --font-sans: "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  /* room for the fixed action bar on phones */
  padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom));
}

.privacy-page {
  padding-bottom: 0;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

figure {
  margin: 0;
}

a {
  color: var(--green-dark);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--charcoal);
}

:focus-visible {
  outline: 3px solid var(--green-light);
  outline-offset: 2px;
  border-radius: 4px;
}

h1,
h2,
h3 {
  font-family: var(--font-serif);
  color: var(--charcoal);
  line-height: 1.15;
  margin: 0 0 0.55em;
}

h1 {
  font-size: clamp(2.4rem, 9vw, 4.2rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(1.7rem, 6vw, 2.6rem);
  font-weight: 600;
}

h3 {
  font-size: 1.3rem;
  font-weight: 600;
}

p {
  margin: 0 0 1em;
}

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

.narrow {
  max-width: 740px;
}

.kicker {
  margin: 0 0 0.5em;
  color: var(--green-dark);
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ---------- notes ---------- */

.sample-note {
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 24px;
  border-radius: 999px;
  border: 2px solid transparent;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.15s, box-shadow 0.2s;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--green);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(85, 160, 74, 0.35);
}

.btn-primary:hover {
  background: var(--green-dark);
  color: var(--white);
}

.btn-light {
  background: rgba(255, 255, 255, 0.92);
  color: var(--charcoal);
}

.btn-light:hover {
  background: var(--white);
  color: var(--green-dark);
}

.btn-ghost {
  background: var(--white);
  color: var(--charcoal);
  border-color: var(--line);
}

.btn-ghost:hover {
  border-color: var(--green);
  color: var(--green-dark);
}

.btn-small {
  min-height: 40px;
  padding: 8px 18px;
  font-size: 0.95rem;
  box-shadow: none;
}

.btn-block {
  width: 100%;
}

.btn[disabled] {
  opacity: 0.65;
  cursor: progress;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(251, 247, 239, 0.92);
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 60px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--charcoal);
  text-decoration: none;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.2rem;
}

.brand img {
  border-radius: 50%;
  background: var(--white);
}

.main-nav {
  display: none;
}

/* ---------- hero: full-bleed photo ---------- */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: min(88svh, 760px);
  display: flex;
  align-items: flex-end;
  padding: 96px 0 48px;
  color: var(--white);
}

.hero-photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(20, 30, 18, 0.25) 0%, rgba(20, 30, 18, 0.6) 45%, rgba(20, 30, 18, 0.88) 100%);
}

.hero-inner {
  text-align: center;
}

.hero-logo {
  width: 96px;
  height: 96px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--white);
  padding: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.hero .eyebrow {
  margin-bottom: 0.4em;
  color: var(--white);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1 {
  color: var(--white);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

.tagline {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 4.6vw, 1.6rem);
  margin-bottom: 0.3em;
}

.hero-kinds {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 700;
  letter-spacing: 0.05em;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 22px;
}

/* ---------- sections ---------- */

.section {
  padding: 64px 0;
}

.section-tinted {
  background: var(--green-wash);
}

.section-head {
  margin-bottom: 24px;
}

.lead {
  font-size: 1.15rem;
  color: var(--charcoal);
}

.tag {
  display: inline-block;
  vertical-align: middle;
  margin-left: 6px;
  padding: 2px 10px;
  border-radius: 999px;
  background: #fff4cc;
  color: #6b5200;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.split {
  display: grid;
  gap: 28px;
  align-items: center;
}

.photo-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.photo-frame img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

/* cards: horizontal swipe strip on phones, grid on larger screens */
.cards {
  list-style: none;
  margin: 0 calc(-1 * var(--gutter));
  padding: 4px var(--gutter) 18px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 78%;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 var(--gutter);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.cards::-webkit-scrollbar {
  display: none;
}

.card {
  scroll-snap-align: start;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
}

.card-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.card:hover .card-photo img {
  transform: scale(1.04);
}

.card-photo {
  overflow: hidden;
}

.card-body {
  padding: 18px 20px 22px;
}

.card-body p {
  margin: 0;
  color: var(--muted);
}

.dishes {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.dishes li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.dish-name {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--charcoal);
}

.dish-note {
  color: var(--muted);
}

/* green band: full-bleed photo with text */
.green-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 120px 0;
  color: var(--white);
  text-align: center;
  background: var(--green-deep);
}

.green-photo img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.green-band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(35, 74, 31, 0.45), rgba(35, 74, 31, 0.78));
}

.kicker-light {
  color: var(--green-light);
}

.btn-facebook {
  gap: 10px;
  min-height: 56px;
  padding-inline: 28px;
  font-size: 1.1rem;
  background: #1877f2;
  color: var(--white);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

.btn-facebook:hover {
  background: #0f63d6;
  color: var(--white);
}

.green-band h2 {
  color: var(--white);
}

.green-inner p {
  font-size: 1.15rem;
  margin-bottom: 1.4em;
}

.hours {
  margin: 0 0 16px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 4px 22px;
}

.hours div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.hours div:last-child {
  border-bottom: 0;
}

.hours dt {
  font-weight: 700;
}

.hours dd {
  margin: 0;
  color: var(--muted);
}

.note {
  color: var(--muted);
}

/* ---------- booking form ---------- */

.section-booking {
  background: linear-gradient(180deg, var(--green-wash), var(--cream));
}

.booking-form,
.booking-success {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 18px;
}

.field {
  margin-bottom: 18px;
}

/* stacked on phones (iOS large text needs the full width); side by side from 600px */
.field-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0 12px;
}

label {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
  color: var(--charcoal);
}

.optional {
  font-weight: 400;
  color: var(--muted);
}

input[type="text"],
input[type="tel"],
input[type="date"],
input[type="number"],
select,
textarea {
  width: 100%;
  min-width: 0;
  min-height: 3.125rem; /* rem: grows with the user's text size */
  padding: 0.625rem 0.875rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-small);
  background: var(--cream);
  color: var(--ink);
  font: inherit;
  font-size: max(16px, 1rem); /* >= 16px prevents iOS zoom on focus, scales with text size */
  line-height: 1.4;
}

/* iOS Safari renders date inputs natively: centred text, own height */
input[type="date"] {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  text-align: left;
}

input[type="date"]::-webkit-date-and-time-value {
  text-align: left;
  margin: 0;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--green);
  background: var(--white);
  outline: none;
  box-shadow: 0 0 0 3px rgba(85, 160, 74, 0.2);
}

input.is-invalid,
select.is-invalid,
textarea.is-invalid {
  border-color: var(--error);
  background: var(--error-wash);
}

.stepper {
  display: flex;
  align-items: stretch;
  width: 100%;
  max-width: 14rem;
}

.stepper input {
  text-align: center;
  border-radius: 0;
  -moz-appearance: textfield;
  appearance: textfield;
}

.stepper input::-webkit-outer-spin-button,
.stepper input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.stepper-btn {
  flex: 0 0 auto;
  width: 3.25rem;
  min-height: 3.125rem;
  border: 1.5px solid var(--line);
  background: var(--white);
  color: var(--charcoal);
  font-size: 1.4rem;
  font-weight: 700;
  cursor: pointer;
}

.stepper-btn:first-child {
  border-radius: var(--radius-small) 0 0 var(--radius-small);
  border-right: 0;
}

.stepper-btn:last-child {
  border-radius: 0 var(--radius-small) var(--radius-small) 0;
  border-left: 0;
}

.field-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.field-check input {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  margin-top: 2px;
  accent-color: var(--green);
}

.field-check label {
  font-weight: 400;
  margin: 0;
}

/* honeypot: off-screen for humans, visible to naive bots */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-message {
  margin: 0 0 16px;
}

.form-message:empty {
  display: none;
}

.form-message.is-error {
  padding: 12px 14px;
  border-radius: var(--radius-small);
  background: var(--error-wash);
  color: var(--error);
  font-weight: 700;
}

.booking-success {
  text-align: center;
}

.success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: var(--ok-wash);
  color: var(--green-dark);
  font-size: 2rem;
  line-height: 64px;
  font-weight: 800;
}

/* ---------- where ---------- */

.address {
  font-style: normal;
  margin-bottom: 20px;
}

.where-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ---------- footer ---------- */

.site-footer {
  background: var(--charcoal);
  color: #e9e4e5;
  padding: 40px 0 32px;
}

.site-footer a {
  color: var(--white);
}

.footer-inner {
  display: grid;
  gap: 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-brand img {
  border-radius: 50%;
  background: var(--white);
}

.footer-brand p {
  margin: 0;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
}

.footer-links a {
  display: inline-block;
  padding: 6px 0;
}

.legal {
  margin: 0;
  font-size: 0.85rem;
  color: #bdb5b7;
}

/* ---------- mobile action bar ---------- */

.action-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr 1.3fr 1fr;
  height: calc(var(--bar-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--white);
  border-top: 1px solid var(--line);
  box-shadow: 0 -4px 18px rgba(59, 53, 54, 0.08);
}

.action-bar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--charcoal);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 700;
}

.action-bar svg {
  width: 24px;
  height: 24px;
}

.action-bar .action-main {
  background: var(--green);
  color: var(--white);
}

/* ---------- scroll reveal (only when JS is running) ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- larger screens ---------- */

@media (min-width: 600px) {
  .cards {
    margin: 0;
    padding: 0;
    grid-auto-flow: row;
    grid-auto-columns: auto;
    grid-template-columns: repeat(2, 1fr);
    overflow: visible;
  }

  .hero-actions,
  .where-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .hero-actions {
    justify-content: center;
  }

  .booking-form,
  .booking-success {
    padding: 32px;
  }

  .field-row {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 900px) {
  body {
    padding-bottom: 0;
  }

  .action-bar {
    display: none;
  }

  .main-nav {
    display: flex;
    gap: 26px;
  }

  .main-nav a {
    color: var(--charcoal);
    text-decoration: none;
    font-weight: 700;
  }

  .main-nav a:hover {
    color: var(--green-dark);
  }

  .hero {
    align-items: center;
    padding: 120px 0 96px;
  }

  .hero-inner {
    text-align: left;
    max-width: var(--max);
  }

  .hero-inner > * {
    max-width: 620px;
  }

  .hero-logo {
    margin: 0 0 22px;
  }

  .hero-actions {
    justify-content: flex-start;
  }

  .hero::after {
    background:
      linear-gradient(90deg, rgba(20, 30, 18, 0.82) 0%, rgba(20, 30, 18, 0.45) 55%, rgba(20, 30, 18, 0.1) 100%);
  }

  .split {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 56px;
  }

  .cards {
    grid-template-columns: repeat(3, 1fr);
  }

  .cards-4 {
    grid-template-columns: repeat(4, 1fr);
  }

  .section {
    padding: 88px 0;
  }

  .green-band {
    padding: 140px 0;
  }

  .footer-inner {
    grid-template-columns: auto 1fr;
    align-items: center;
  }

  .footer-links {
    justify-content: flex-end;
  }

  .legal {
    grid-column: 1 / -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---------- FAQ ---------- */

.faq {
  display: grid;
  gap: 10px;
}

.faq-item {
  background: var(--white);
  border-radius: var(--radius-small);
  box-shadow: var(--shadow-soft);
  padding: 0 20px;
}

.faq-item summary {
  cursor: pointer;
  padding: 16px 0;
  font-weight: 800;
  color: var(--charcoal);
  list-style-position: outside;
}

.faq-item p {
  margin: 0 0 16px;
}

/* ---------- header Facebook link, card links, subpages ---------- */

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-fb {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  background: #1877f2;
  color: var(--white);
  font-weight: 800;
  font-size: 0.9rem;
  text-decoration: none;
}

.header-fb:hover {
  background: #0f63d6;
  color: var(--white);
}

.header-fb span {
  display: none;
}

.card {
  position: relative;
}

.card-link {
  color: inherit;
  text-decoration: none;
}

.card-link::after {
  content: "";
  position: absolute;
  inset: 0;
}

.card:hover .card-link,
.card-link:focus-visible {
  color: var(--green-dark);
}

.card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-body .card-more {
  margin-top: auto;
  padding-top: 8px;
  color: var(--green-dark);
  font-weight: 800;
}

.back-link {
  color: var(--charcoal);
  font-weight: 800;
  text-decoration: none;
}

.subpage-photo {
  margin: 0 0 24px;
}

.subpage-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.subpage h1 {
  font-size: clamp(2rem, 6vw, 2.8rem);
}

.subpage .site-footer .footer-inner {
  display: grid;
  gap: 8px;
}

.btn-facebook-small {
  min-height: 50px;
  font-size: 1rem;
}

@media (min-width: 560px) {
  .header-fb span {
    display: inline;
  }
}

/* ---------- dish cards (subpages) ---------- */

.dish-cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 20px;
}

.dish-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.dish-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.dish-card-body {
  padding: 16px 20px 20px;
}

.dish-card-body h3 {
  margin-bottom: 6px;
}

.dish-card-body p {
  margin: 0;
  color: var(--muted);
}

@media (min-width: 760px) {
  .dish-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

.dish-card-body .photo-note {
  margin-top: 8px;
  font-size: 0.75rem;
}

.photo-note a {
  color: inherit;
}

/* ---------- dining room gallery ---------- */

.gallery {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 78%;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
}

.gallery-photo {
  margin: 0;
  scroll-snap-align: start;
}

.gallery-photo img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

@media (min-width: 760px) {
  .gallery {
    grid-auto-flow: row;
    grid-template-columns: repeat(3, 1fr);
    overflow: visible;
  }
}
