/* cebupiglets.ph — one stylesheet, no frameworks. Light, warm farm style. */
:root {
  --bg: #faf6ee;          /* cream page */
  --warm: #f2eadb;        /* alternate sections */
  --surface: #ffffff;     /* cards */
  --ink: #1d2a21;
  --muted: #5b6259;
  --line: #e4d9c6;
  --accent: #1f5b35;      /* dark farm green — the one button colour */
  --accent-hover: #17472a;
  --on-accent: #ffffff;
  --earth: #a3612a;       /* small labels only */
  --gap: 96px;            /* one section rhythm for the whole site */
  --pad: 16px;            /* side gutter */
  --radius: 24px;         /* one radius for photos and cards */
  --max: 1160px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  color-scheme: light;
}
@media (max-width: 720px) { :root { --gap: 64px; } }
@media (min-width: 721px) { :root { --pad: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  overflow-x: clip;
}
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { line-height: 1.12; margin: 0; }
h1, h2 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.015em; }
h1 { font-size: clamp(38px, 5.4vw, 64px); }
h2 { font-size: clamp(28px, 3.4vw, 42px); }
h3 { font-size: 20px; font-weight: 700; }
p { margin: 0; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }

/* Header */
.site-header { background: var(--bg); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; flex-wrap: wrap; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--serif); font-weight: 600; font-size: 22px; text-decoration: none; }
.logo img { width: 32px; height: 32px; }
.nav { display: flex; align-items: center; gap: 28px; font-size: 16px; font-weight: 500; }
.nav a { text-decoration: none; padding: 8px 0; }
.nav a:hover, .nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--earth); text-decoration-thickness: 2px; text-underline-offset: 8px; }
.lang { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.lang a { font-weight: 600; }
.lang a[aria-current="true"] { color: var(--ink); }
@media (max-width: 560px) {
  .site-header .wrap { min-height: 64px; }
  .logo { font-size: 19px; }
  .nav { gap: 16px; font-size: 15px; }
}

/* Sections: same air above and below everywhere */
.section { padding: var(--gap) 0; }
.section.warm { background: var(--warm); }
.section-head { max-width: 720px; margin-bottom: 40px; }

/* Hero: text + large photo */
.hero { padding-top: 32px; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1fr 1.45fr; gap: 56px; } }
.hero .lead { margin-top: 20px; font-size: 20px; color: var(--muted); max-width: 520px; }
.hero .btn { margin-top: 32px; }
.hero-img { width: 100%; border-radius: var(--radius); box-shadow: 0 24px 48px -24px rgba(45, 38, 20, .35); }
.badge { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px; padding: 6px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--muted); }
.badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--earth); }

/* One button style */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 30px; border-radius: 999px; white-space: nowrap;
  background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: 17px; text-decoration: none;
  transition: background .15s, transform .15s, box-shadow .15s;
}
.btn:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(31, 91, 53, .25); }
.btn svg { width: 20px; height: 20px; flex: none; }

/* Cards with photos */
.cards { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 721px) { .cards { grid-template-columns: repeat(3, 1fr); } .cards.cards-2 { grid-template-columns: repeat(2, 1fr); } }
.card {
  display: flex; flex-direction: column;
  border-radius: var(--radius); background: var(--surface); overflow: hidden;
  box-shadow: 0 1px 2px rgba(45, 38, 20, .06), 0 12px 32px -16px rgba(45, 38, 20, .18);
}
.card img { width: 100%; }
.card-body { display: flex; flex-direction: column; gap: 8px; padding: 24px; flex: 1; }
.card .word { font-size: 13px; font-weight: 700; color: var(--earth); text-transform: uppercase; letter-spacing: .08em; }
.card h2 { font-size: 26px; }
.card h3 { font-size: 22px; font-family: var(--serif); font-weight: 600; }
.card p { color: var(--muted); }
.card .more { margin-top: auto; padding-top: 8px; font-weight: 700; color: var(--accent); text-decoration: none; }
.card .more:hover { text-decoration: underline; text-underline-offset: 5px; }

/* Photo + text */
.split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 64px; } }
.split-img { width: 100%; border-radius: var(--radius); }
.split .section-head { margin-bottom: 32px; }

/* Points */
.points { display: grid; gap: 24px; list-style: none; margin: 0; padding: 0; }
.points li { display: grid; grid-template-columns: 32px 1fr; gap: 16px; align-items: start; }
.points li::before {
  content: ""; width: 32px; height: 32px; border-radius: 50%; background: var(--accent)
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/16px no-repeat;
}
.points h3 { font-size: 19px; line-height: 32px; }
.points p { color: var(--muted); }

/* Sizes */
.sizes { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 721px) { .sizes { grid-template-columns: repeat(3, 1fr); } }
.size { padding: 32px 24px; border-radius: var(--radius); background: var(--surface); box-shadow: 0 1px 2px rgba(45, 38, 20, .06), 0 12px 32px -16px rgba(45, 38, 20, .18); }
.size strong { display: block; font-family: var(--serif); font-weight: 600; font-size: 36px; line-height: 1.1; color: var(--accent); }
.size span { display: block; margin-top: 8px; color: var(--muted); }

/* FAQ */
.faq { max-width: 800px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative;
  font-weight: 700; font-size: 18px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--earth); border-bottom: 2px solid var(--earth); transform: rotate(45deg); transition: transform .15s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { padding: 0 0 22px; color: var(--muted); }

/* Closing CTA */
.cta { text-align: center; }
.cta h2 { margin-bottom: 32px; }

/* Footer */
.site-footer { background: var(--warm); border-top: 1px solid var(--line); padding: 56px 0; font-size: 15px; color: var(--muted); }
.site-footer .wrap { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 721px) { .site-footer .wrap { grid-template-columns: 2fr 1fr 1fr; } }
.site-footer strong { display: block; color: var(--ink); margin-bottom: 8px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer address { font-style: normal; }

/* 404 */
.notfound { min-height: 60vh; display: flex; align-items: center; }
.notfound p { margin: 16px 0 32px; color: var(--muted); }

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

/* Breadcrumbs (inner pages) */
.crumbs { padding-top: 16px; font-size: 14px; color: var(--muted); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--line); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs + .hero { padding-top: 24px; }

/* Answer-first text */
.answer { margin-top: 20px; font-size: 18px; color: var(--muted); max-width: 560px; }
.answer strong { color: var(--ink); }
.prose { max-width: 720px; display: grid; gap: 16px; color: var(--muted); }
.prose h3 { color: var(--ink); margin-top: 8px; }
.prose a, .answer a, .src a { color: var(--accent); text-underline-offset: 3px; }

/* Calculator + reserve form: one card style */
.panel { padding: 32px; border-radius: var(--radius); background: var(--surface); box-shadow: 0 1px 2px rgba(45, 38, 20, .06), 0 12px 32px -16px rgba(45, 38, 20, .18); }
@media (max-width: 560px) { .panel { padding: 24px; } }
.panel h2 { font-size: 26px; margin-bottom: 24px; }
.fields { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
.field { display: grid; gap: 8px; font-size: 15px; font-weight: 600; }
.field input, .field select {
  width: 100%; min-height: 56px; padding: 0 16px; border: 1px solid var(--line); border-radius: 14px;
  background: var(--bg); color: var(--ink); font: inherit; font-size: 18px; font-weight: 600;
}
.field select { appearance: none; padding-right: 44px; background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b6259' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") right 16px center/18px no-repeat; }
.field input::placeholder { color: rgba(91, 98, 89, .55); }
.field input:focus, .field select:focus { outline: 3px solid var(--accent); outline-offset: 1px; }
.result { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.result output { display: block; font-family: var(--serif); font-weight: 600; font-size: 44px; line-height: 1.1; color: var(--accent); }
.src { margin-top: 8px; font-size: 14px; color: var(--muted); }
.panel .btn { margin-top: 24px; width: 100%; }

/* Price tables */
.table-wrap { overflow-x: auto; border-radius: var(--radius); background: var(--surface); box-shadow: 0 1px 2px rgba(45, 38, 20, .06), 0 12px 32px -16px rgba(45, 38, 20, .18); }
.prices { width: 100%; border-collapse: collapse; font-size: 16px; }
.prices th, .prices td { padding: 16px 24px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.prices tr:last-child td { border-bottom: 0; }
.prices th { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--earth); }
.prices td:last-child, .prices th:last-child { text-align: right; white-space: nowrap; }
.prices td small { display: block; color: var(--muted); font-size: 14px; }
.prices a { color: var(--accent); text-underline-offset: 3px; }
@media (max-width: 560px) { .prices th, .prices td { padding: 12px 16px; } .prices { font-size: 15px; } }
.stack { display: grid; gap: 40px; }
.stack h3 { margin-bottom: 16px; }

/* Steps */
.steps { counter-reset: step; }
.steps .size strong::before { counter-increment: step; content: counter(step) ". "; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.stack > *, .hero-grid > *, .split > * { min-width: 0; }
.nav a { white-space: nowrap; }
@media (max-width: 560px) {
  .site-header .wrap { padding-top: 8px; padding-bottom: 8px; row-gap: 0; }
  .nav { width: 100%; justify-content: space-between; gap: 12px; font-size: 15px; }
  .prices th, .prices td { padding: 12px 10px; }
  .prices th:first-child, .prices td:first-child { padding-left: 16px; }
  .prices th:last-child, .prices td:last-child { padding-right: 16px; }
}
form[data-reserve] .fields { grid-template-columns: .8fr 1.2fr; }

/* ===== Alive farm: full-bleed hero, product cards, gallery, photo CTA ===== */
.hero-full { position: relative; isolation: isolate; display: flex; align-items: center; min-height: min(82vh, 720px); color: #fff; overflow: hidden; background: #2a2a1e; }
.hero-full > img, .cta-photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero-full::before, .cta-photo::before { content: ""; position: absolute; inset: 0; z-index: -1; }
.hero-full::before { background: linear-gradient(90deg, rgba(12, 20, 14, .8) 0%, rgba(12, 20, 14, .6) 34%, rgba(12, 20, 14, 0) 66%); }
.hero-full .wrap { width: 100%; padding-top: var(--gap); padding-bottom: var(--gap); }
.hero-full .hero-text { max-width: 560px; }
.hero-full h1 { color: #fff; text-shadow: 0 2px 24px rgba(0, 0, 0, .25); }
.hero-full .answer { color: rgba(255, 255, 255, .9); font-size: 20px; }
.hero-full .answer strong { color: #fff; }
.hero-full .btn { margin-top: 32px; }
@media (max-width: 720px) {
  .hero-full { display: block; min-height: 0; background: #1d2a21; }
  .hero-full > img { position: static; height: auto; aspect-ratio: 4 / 3; object-position: 70% center; }
  .hero-full::before { display: none; }
  .hero-full .wrap { padding-top: 32px; padding-bottom: 48px; }
  .hero-full .answer { font-size: 18px; }
}

/* Product cards: four in a row, each with Reserve */
.cards-4 { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .cards-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .cards-4 { grid-template-columns: repeat(4, 1fr); } }
.card img { aspect-ratio: 3 / 2; object-fit: cover; }
.card h3 a { text-decoration: none; }
.card h3 a:hover { text-decoration: underline; text-underline-offset: 5px; }
.reserve { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 8px; font-weight: 700; color: var(--accent); text-decoration: none; }
.reserve svg { width: 18px; height: 18px; flex: none; }
.reserve:hover { text-decoration: underline; text-underline-offset: 5px; }

/* Ordering */
.steps .size strong { font-size: 26px; }
.crumbs:has(+ .hero-full) { padding-bottom: 16px; }
.order-foot-1 { grid-template-columns: 1fr !important; }
.order-foot { display: grid; gap: 40px; align-items: center; margin-top: 40px; }
@media (min-width: 900px) { .order-foot { grid-template-columns: 1fr 1.1fr; gap: 56px; } }
.order-foot .points { gap: 16px; }

/* Farm life gallery */
.gallery { display: grid; gap: 24px; grid-template-columns: 1fr; margin: 0; }
@media (min-width: 721px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.gallery figcaption { margin-top: 12px; font-weight: 600; }

/* Closing CTA on a photo */
.cta-photo { position: relative; isolation: isolate; overflow: hidden; color: #fff; background: #2a2a1e; padding: calc(var(--gap) * 1.25) 0; }
.cta-photo::before { background: rgba(12, 20, 14, .6); }
.cta-photo h2 { color: #fff; }
.split-img { aspect-ratio: 3 / 2; object-fit: cover; }

/* sticky header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid rgba(0,0,0,.06); }
html { scroll-padding-top: 80px; }
