/* ==========================================================================
   Balanced by Angela — styles
   Sections follow the page order: base, buttons, top bar, hero, about,
   services, how it works, booking form, contact, footer, phone bottom bar.
   Each section keeps its own phone/tablet rules right underneath it.
   ========================================================================== */

/* ---------- Colors and fonts ---------- */
:root {
  --bg: #fff8e7;          /* cosmic latte page background */
  --surface: #fffdf6;     /* cards, form */
  --band: #fbf1dc;        /* alternating section background */
  --text: #2b2a24;
  --muted: #6b665a;
  --line: #efe3c8;        /* borders */
  --accent: #5e7b5c;      /* sage green: buttons, links */
  --accent-text: #ffffff; /* text on sage buttons */
  --leaf: #a3b899;        /* light sage details */
  --focus: #c9a46c;       /* keyboard focus outline */

  --font-display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  color-scheme: light;
}

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

html { background: var(--bg); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
}

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  line-height: 1.1;
  text-wrap: balance;
}
h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0; }
a { color: var(--accent); }
img { max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

/* Centered content column with safe side padding (also clears the iPhone camera in landscape) */
.wrap {
  max-width: 68rem;
  margin-inline: auto;
  padding-left: max(1.25rem, env(safe-area-inset-left, 0px));
  padding-right: max(1.25rem, env(safe-area-inset-right, 0px));
}

section { padding-block: 4.5rem; scroll-margin-top: 4.5rem; }
.band { background: var(--band); }

/* Small uppercase label above headings */
.eyebrow {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow + h2 { margin-top: .6rem; }

/* Section heading row: title on the left, short text on the right */
.section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 2.2rem;
}
.section-head > p { max-width: 30rem; color: var(--muted); }

/* Shorter labels on small screens: .label-full / .label-short swap at 480px */
.label-short { display: none; }
@media (max-width: 480px) {
  .label-full { display: none; }
  .label-short { display: inline; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.3rem;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-text);
  font: 600 .95rem var(--font-body);
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { filter: brightness(1.08); }
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--line);
}
.btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }

@media (prefers-reduced-motion: no-preference) {
  .btn { transition: filter .15s; }
}

/* ---------- Top bar ---------- */
.topbar {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 5;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: .8rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}
.logo svg { width: 26px; height: 26px; }

.menu { display: flex; align-items: center; gap: 1.4rem; }
.menu a:not(.btn) {
  color: var(--text);
  font-size: .95rem;
  font-weight: 500;
  text-decoration: none;
}
.menu a:not(.btn):hover { color: var(--accent); }
.menu .btn { font-weight: 500; }

@media (prefers-reduced-motion: no-preference) {
  .menu a { transition: color .15s; }
}

/* "Lebanon" cedar badge, shown on phones in place of the menu */
.lebanon-badge { display: none; }

@media (max-width: 720px) {
  .topbar .wrap { gap: .75rem; }
  .menu { display: none; }
  .lebanon-badge {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    margin-left: auto;
    padding: .35rem .75rem .35rem .55rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--accent);
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .02em;
    white-space: nowrap;
  }
  .lebanon-badge svg { width: 16px; height: 16px; }
}
@media (max-width: 480px) {
  .logo { font-size: 1rem; white-space: nowrap; }
}
@media (max-width: 360px) {
  .lebanon-badge { padding: .3rem .6rem .3rem .45rem; font-size: .76rem; }
  .lebanon-badge svg { width: 14px; height: 14px; }
}

/* ---------- Hero ---------- */
.hero { padding-block: 4rem 3rem; }
.hero .wrap {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  align-items: center;
  gap: 3rem;
}
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 700;
  letter-spacing: -.02em;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-lead {
  max-width: 34rem;
  margin-top: 1.2rem;
  font-size: 1.15rem;
  color: var(--muted);
}
.hero-buttons { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }

/* Plate illustration with floating labels */
.plate { position: relative; max-width: 100%; aspect-ratio: 1; margin: 0; }
.plate img { display: block; width: 100%; height: auto; }

.plate-tag {
  position: absolute;
  display: flex;
  align-items: center;
  gap: .45rem;
  padding: .4rem .85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: 0 6px 18px -10px rgba(90, 70, 30, .35);
  font-size: .82rem;
  font-weight: 600;
  white-space: nowrap;
}
.plate-tag::before {
  content: "";
  flex: none;
  width: .6rem;
  height: .6rem;
  border-radius: 50%;
  background: var(--dot);
}
.tag-veg     { --dot: #7fa86a; top: 50%; left: 0; }
.tag-protein { --dot: #d39a55; top: 6%; right: 0; }
.tag-grains  { --dot: #c49a5e; bottom: 6%; right: 4%; }
.tag-fats    { --dot: #d4b13e; top: 0; left: 26%; }

@media (prefers-reduced-motion: no-preference) {
  .plate-tag { animation: float 6s ease-in-out infinite; }
  .tag-protein { animation-delay: -1.5s; }
  .tag-grains  { animation-delay: -3s; }
  .tag-fats    { animation-delay: -4.5s; }
}
@keyframes float { 50% { transform: translateY(-5px); } }

@media (max-width: 800px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .plate { width: 100%; max-width: 380px; margin-inline: auto; }
}

/* ---------- About ---------- */
.about { isolation: isolate; }
.about .wrap {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  align-items: center;
  gap: 4rem;
}

.portrait { position: relative; max-width: 100%; margin: 0; }
.portrait img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 720 / 899;
  object-fit: cover;
  border-radius: 22px 22px 22px 120px;
  box-shadow: 0 24px 50px -28px rgba(70, 55, 25, .45);
}
/* Sage outline offset behind the photo */
.portrait::before {
  content: "";
  position: absolute;
  inset: 1.2rem -1.2rem -1.2rem 1.2rem;
  z-index: -1;
  border: 2px solid var(--leaf);
  border-radius: 22px 22px 22px 120px;
}
.portrait figcaption {
  position: absolute;
  right: -1rem;
  bottom: 1.6rem;
  padding: .7rem 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 10px 24px -14px rgba(70, 55, 25, .4);
  font-family: var(--font-display);
  font-weight: 700;
}
.portrait figcaption span {
  display: block;
  font: 500 .82rem var(--font-body);
  color: var(--accent);
}

.about-text blockquote {
  margin: 1.2rem 0 1.4rem;
  padding-left: 1.1rem;
  border-left: 3px solid var(--accent);
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.2vw, 1.45rem);
  font-weight: 500;
  line-height: 1.3;
  text-wrap: balance;
}
.about-text > p:not(.eyebrow) { max-width: 36rem; font-size: 1.06rem; }
.about-text > p:not(.eyebrow) + p { margin-top: 1rem; }

.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}
.principles li {
  display: grid;
  align-content: start;
  gap: .35rem;
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}
.principles b { font-family: var(--font-display); font-size: 1.05rem; color: var(--accent); }
.principles span { font-size: .9rem; line-height: 1.5; color: var(--muted); }

@media (max-width: 800px) {
  .about .wrap { grid-template-columns: 1fr; gap: 3rem; }
  .portrait { max-width: 360px; margin-inline: auto 1.2rem; }
  .portrait figcaption { right: -.6rem; }
}
@media (max-width: 620px) {
  .principles { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .portrait::before { inset: .8rem -.8rem -.8rem .8rem; }
}

/* ---------- Services ---------- */
.services {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.service {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}
.service svg { width: 30px; height: 30px; color: var(--accent); }
.service p { font-size: .95rem; color: var(--muted); }

@media (max-width: 900px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .services { grid-template-columns: 1fr; } }

/* ---------- How it works ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps li {
  padding-top: 1rem;
  border-top: 2px solid var(--accent);
  counter-increment: step;
}
.steps li::before {
  content: "Step " counter(step);
  display: block;
  margin-bottom: .4rem;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
}
.steps p { margin-top: .35rem; font-size: .95rem; color: var(--muted); }

@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Booking form ---------- */
.booking .wrap {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  align-items: start;
  gap: 3rem;
}
.booking-intro > p:not(.eyebrow) { margin-top: 1rem; color: var(--muted); }

.booking-form {
  display: grid;
  gap: 1rem;
  padding: 1.6rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  scroll-margin-top: 5rem; /* stops below the sticky top bar */
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.booking-form label { display: grid; gap: .35rem; font-size: .9rem; font-weight: 600; }
.booking-form input,
.booking-form select,
.booking-form textarea {
  width: 100%;
  min-width: 0;
  padding: .65rem .8rem;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-weight: 400;
}
.booking-form input:focus,
.booking-form select:focus,
.booking-form textarea:focus { outline: none; border-color: var(--accent); }
/* One height for every single-line field (name, date, time) */
.booking-form input,
.booking-form select { height: 2.9rem; }
.booking-form textarea { min-height: 4.5rem; resize: vertical; }

/* iPhones draw date fields larger than other fields; keep the same look as the others */
.booking-form input[type="date"] {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  line-height: 1.6;
}
.booking-form input[type="date"]::-webkit-date-and-time-value {
  margin: 0;
  text-align: left;
}

fieldset { display: grid; gap: .45rem; min-width: 0; margin: 0; padding: 0; border: 0; }
legend { margin-bottom: .35rem; padding: 0; font-size: .9rem; font-weight: 600; }

/* Pill-shaped choice buttons (radio inputs with styled labels) */
.choices { display: flex; flex-wrap: wrap; gap: .5rem; }
.choices input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.booking-form .choices label {
  display: block;
  padding: .5rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.choices input:checked + label {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-text);
}
.choices input:focus-visible + label { outline: 3px solid var(--focus); outline-offset: 2px; }

/* "Book a consultation" label shortens to "Book a session" on the smallest phones */
.choice-tiny { display: none; }

.message-preview {
  padding: 1rem;
  border-radius: 12px;
  background: var(--band);
  font-size: .9rem;
  white-space: pre-wrap;
  word-break: break-word;
}
.message-label { margin-bottom: .4rem; }

.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.form-hint { font-size: .85rem; color: var(--muted); }

@media (max-width: 860px) {
  .booking .wrap { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .form-row { grid-template-columns: 1fr; }

  /* Keep each choice row on one line */
  .choices-intent { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; }
  .booking-form .choices-intent label {
    padding: .55rem .3rem;
    font-size: clamp(.8rem, 3.5vw, .92rem);
    text-align: center;
    white-space: nowrap;
  }
  .choices-location { flex-wrap: nowrap; gap: .35rem; }
  .booking-form .choices-location label {
    flex: 1 1 auto;
    padding: .55rem .35rem;
    font-size: clamp(.8rem, 3.9vw, .92rem);
    text-align: center;
    white-space: nowrap;
  }
}
@media (max-width: 370px) {
  .choice-full { display: none; }
  .choice-tiny { display: inline; }
}

/* ---------- Contact ---------- */
.contact .wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.contact h3 { margin-bottom: .4rem; }
.contact p { color: var(--muted); }
.directions {
  display: inline-block;
  margin-top: .5rem;
  font-size: .9rem;
  font-weight: 600;
}
.copyable { user-select: all; }

@media (max-width: 900px) { .contact .wrap { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .contact .wrap { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
footer {
  padding-block: 1.6rem;
  border-top: 1px solid var(--line);
  font-size: .88rem;
  color: var(--muted);
}
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .8rem; }

/* ---------- Phone bottom bar (Book / Ask about prices) ---------- */
.bottom-bar { display: none; }

@media (max-width: 720px) {
  /* On phones the bottom bar replaces the hero buttons */
  .hero-buttons { display: none; }
  body { padding-bottom: calc(5rem + env(safe-area-inset-bottom, 0px)); }

  .bottom-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 6;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .5rem;
    padding: .65rem max(1rem, env(safe-area-inset-right, 0px))
             calc(.65rem + env(safe-area-inset-bottom, 0px)) max(1rem, env(safe-area-inset-left, 0px));
    border-top: 1px solid var(--line);
    background: color-mix(in srgb, var(--bg) 92%, transparent);
    backdrop-filter: blur(10px);
    transition: transform .25s ease;
  }
  /* Slides away while the booking form is on screen */
  .bottom-bar.is-hidden { transform: translateY(110%); }
  .bottom-bar .btn {
    justify-content: center;
    padding: .8rem .4rem;
    font-size: clamp(.8rem, 3.7vw, .95rem);
    white-space: nowrap;
  }
  .bottom-bar .btn-outline { background: var(--surface); }
}
@media (prefers-reduced-motion: reduce) {
  .bottom-bar { transition: none; }
}
