/* ==========================================================
   Gabrielle Groeneveld — shared styles
   Palette: sand, sea ink, shell blush, sea glass, terracotta
   ========================================================== */

:root {
  --sand: #f5efe6;
  --sand-deep: #ebe2d4;
  --ink: #1f2a2e;
  --ink-soft: #4a5558;
  --blush: #e7cbb8;
  --seaglass: #7fa79a;
  --seaglass-deep: #4f7a6d;
  --terracotta: #c0643f;
  --white: #fffdf9;

  --serif: "Fraunces", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;

  --max: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 18px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--sand);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.6rem, 7vw, 5.2rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); margin-bottom: 0.6em; }
h3 { font-size: 1.4rem; margin-bottom: 0.4em; }

.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--seaglass-deep);
  margin-bottom: 1rem;
  display: block;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
section { padding: clamp(64px, 10vw, 120px) 0; }
.lede { font-size: 1.2rem; color: var(--ink-soft); max-width: 38em; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--sand) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--sand-deep);
}
.nav .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand {
  font-family: var(--serif);
  font-size: 1.25rem;
  text-decoration: none;
}
.nav ul { list-style: none; display: flex; gap: 2rem; }
.nav ul a {
  text-decoration: none;
  font-size: 0.95rem;
  color: var(--ink-soft);
  transition: color 0.2s;
}
.nav ul a:hover, .nav ul a[aria-current="page"] { color: var(--ink); }
.nav ul a[aria-current="page"] { border-bottom: 1px solid var(--ink); }
.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  font: inherit; font-size: 0.95rem; color: var(--ink);
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav ul {
    display: none;
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--sand);
    border-bottom: 1px solid var(--sand-deep);
    padding: 0.5rem var(--gutter) 1rem;
  }
  .nav ul.open { display: flex; }
  .nav ul a { display: block; padding: 0.7rem 0; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  text-decoration: none;
  font-size: 0.95rem;
  border: 1px solid var(--ink);
  transition: transform 0.2s, background 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.food { background: var(--terracotta); border-color: var(--terracotta); }
.btn.sea { background: var(--seaglass-deep); border-color: var(--seaglass-deep); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2rem; }

/* ---------- Photo placeholders ----------
   Swap any .ph for an <img> once real photos are in. */
.ph {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(135deg, var(--blush), var(--sand-deep));
  min-height: 220px;
}
.ph::after {
  content: attr(data-label);
  position: absolute; left: 14px; bottom: 12px;
  font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-soft); opacity: 0.8;
}
.ph.food { background: linear-gradient(135deg, #e9b99c, #f1dccb); }
.ph.sea  { background: linear-gradient(135deg, #a9c7bd, #e3ece6); }
.ph.tall { min-height: 460px; }

/* Real photos */
.photo { width: 100%; border-radius: var(--radius); object-fit: cover; }
.photo.tall { height: 560px; }
/* Full-length portraits: taller frame so head and feet both fit */
.photo.tall.full-figure { height: 660px; object-position: center 45%; }
@media (max-width: 860px) {
  .photo.tall { height: 420px; }
  .photo.tall.full-figure { height: 560px; }
}

/* ---------- Home hero ---------- */
.hero { padding-top: clamp(48px, 8vw, 96px); }
.hero-grid {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 6vw, 72px);
  align-items: center;
}
.hero h1 em { font-style: italic; color: var(--seaglass-deep); }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } }

/* ---------- Two doors (home) ---------- */
.doors { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.door {
  display: flex; flex-direction: column;
  border-radius: var(--radius);
  background: var(--white);
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.3s;
}
.door:hover { transform: translateY(-4px); }
.door .ph { border-radius: 0; min-height: 300px; }
.door-img { width: 100%; height: 300px; object-fit: cover; }
.door-body { padding: 28px 28px 32px; }
.door-body p { color: var(--ink-soft); margin-bottom: 1.2rem; }
.door .more { font-size: 0.95rem; border-bottom: 1px solid currentColor; }
.door.food .more { color: var(--terracotta); }
.door.sea .more { color: var(--seaglass-deep); }
@media (max-width: 760px) { .doors { grid-template-columns: 1fr; } }

/* ---------- About ---------- */
.about-grid {
  display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.about-grid { align-items: start; }
.about-grid > .ph, .about-grid > .photo { position: sticky; top: 100px; }
.about-grid p + p { margin-top: 1rem; }
.about-grid h2 em { font-style: italic; color: var(--seaglass-deep); }
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-grid > .ph, .about-grid > .photo { position: static; }
}

/* ---------- Page heroes (sub-pages) ---------- */
.page-hero { padding-bottom: 40px; }
.page-hero.food { background: linear-gradient(180deg, #f3dccb, var(--sand)); }
.page-hero.sea  { background: linear-gradient(180deg, #d5e5df, var(--sand)); }
.page-hero .eyebrow { color: var(--ink-soft); }

/* ---------- Steps / cards ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 2.5rem; }
.step {
  background: var(--white); border-radius: var(--radius); padding: 28px;
}
.step .num {
  font-family: var(--serif); font-size: 2.2rem; color: var(--blush);
  display: block; margin-bottom: 0.4rem;
}
.step p { color: var(--ink-soft); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Sample menu ---------- */
.menu {
  background: var(--white); border-radius: var(--radius);
  padding: clamp(28px, 5vw, 56px);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
}
.menu h3 { color: var(--terracotta); font-size: 1.15rem; font-family: var(--sans); font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; }
.menu ul { list-style: none; }
.menu li { padding: 0.5rem 0; border-bottom: 1px dashed var(--sand-deep); color: var(--ink-soft); }
@media (max-width: 860px) { .menu { grid-template-columns: 1fr; } }

/* ---------- Cooking courses ---------- */
.courses { background: var(--white); }
.course-tag { color: #a8522f; }
.courses-head {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 64px);
  align-items: end; margin-bottom: 2.5rem;
}
.courses-head h2 { margin-bottom: 0; }
.course-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.course { background: var(--sand); border-radius: var(--radius); padding: clamp(26px, 4vw, 40px); }
.course h3 { font-size: 1.6rem; }
.course p { color: var(--ink-soft); }
.course p + p { margin-top: 0.9rem; }
span.course-tag:not(.eyebrow) {
  display: inline-block; margin-bottom: 0.8rem;
  font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase;
}
.pills.food li { background: #f3dccb; color: #8a4529; }
.approach {
  margin-top: 24px; background: #f0d6c4; border-radius: var(--radius);
  padding: clamp(28px, 5vw, 48px);
  display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(20px, 4vw, 56px); align-items: center;
}
.approach h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0; }
.approach p { font-size: 1.05rem; }
@media (max-width: 860px) { .courses-head, .course-grid, .approach { grid-template-columns: 1fr; } }

/* ---------- Gallery grids ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 280px; gap: 16px; }
.gallery > :nth-child(1) { grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
@media (max-width: 760px) {
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 180px; gap: 10px; }
  .gallery > :nth-child(1) { grid-column: span 2; grid-row: span 2; }
}

/* ---------- Boards ---------- */
.filters { display: flex; gap: 0.5rem; margin-bottom: 2rem; flex-wrap: wrap; }
.filters button {
  font: inherit; font-size: 0.9rem; cursor: pointer;
  padding: 0.5rem 1.1rem; border-radius: 999px;
  border: 1px solid var(--ink-soft); background: transparent; color: var(--ink);
}
.filters button.active { background: var(--ink); color: var(--white); border-color: var(--ink); }

.boards { display: grid; grid-template-columns: repeat(2, 1fr); grid-auto-flow: dense; gap: 24px; }
.board.portrait { grid-row: span 2; }
.board.portrait .board-art { aspect-ratio: auto; flex: 1; min-height: 520px; }
.board.portrait .board-body { flex: none; }
@media (max-width: 760px) {
  .boards { grid-template-columns: 1fr; }
  .board.portrait { grid-row: auto; }
  .board.portrait .board-art { aspect-ratio: 9 / 16; flex: none; min-height: 0; }
}
.board {
  background: var(--white); border: 1px solid var(--sand-deep); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
}
.board-art {
  position: relative; aspect-ratio: 16 / 9; background: var(--sand-deep);
  display: grid; place-items: center; border-bottom: 1px solid var(--sand-deep);
}
.board-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.board-pending {
  font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft);
}
.board-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 0.3rem; flex: 1; }
.board-body h3 { margin-bottom: 0; }
.board-meta { font-size: 0.9rem; color: var(--ink-soft); }
.board-foot { margin-top: auto; padding-top: 1rem; display: flex; justify-content: space-between; align-items: center; }
.tag {
  font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.3rem 0.7rem; border-radius: 999px;
}
.tag.available { background: #dcebe5; color: var(--seaglass-deep); }
.tag.sold { background: var(--sand-deep); color: var(--ink-soft); }
.board-foot a { font-size: 0.9rem; color: var(--seaglass-deep); }
.board-title { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; }
.board-price { font-family: var(--serif); font-size: 1.35rem; }
.board-price.sold { font-family: var(--sans); font-size: 0.9rem; color: var(--ink-soft); }

/* ---------- Shell boards overview ---------- */
.overview {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 6vw, 72px);
  align-items: center;
}
.pills { list-style: none; display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 2rem; }
.pills li {
  font-size: 0.85rem; padding: 0.45rem 1rem; border-radius: 999px;
  background: #dcebe5; color: var(--seaglass-deep);
}
@media (max-width: 860px) { .overview { grid-template-columns: 1fr; } }

/* ---------- Split callout ---------- */
.callout {
  border-radius: var(--radius);
  padding: clamp(32px, 6vw, 64px);
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center;
}
.callout.food { background: #f0d6c4; }
.callout.sea { background: #d5e5df; }
.callout .btn-row { margin-top: 0; justify-content: flex-end; }
@media (max-width: 760px) { .callout { grid-template-columns: 1fr; } .callout .btn-row { justify-content: flex-start; } }

/* ---------- Contact / footer ---------- */
.contact { background: var(--ink); color: var(--sand); }
.contact .eyebrow { color: var(--blush); }
.contact .lede { color: #c9cfcf; }
.contact-links { display: flex; flex-wrap: wrap; gap: 2.5rem; margin-top: 2.5rem; }
.contact-links a { text-decoration: none; }
.contact-links span { display: block; font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; color: #9aa4a4; }
.contact-links strong { font-family: var(--serif); font-weight: 400; font-size: 1.4rem; }
.contact-links a:hover strong { color: var(--blush); }

footer {
  background: var(--ink); color: #8d9797;
  font-size: 0.85rem; padding: 24px 0 40px;
  border-top: 1px solid #33403f;
}
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
