/* =========================================================================
   El Khabya — shared page styles (interior pages)
   Loaded after style.css. Reuses the three-colour palette and type system.
   Components: global header/footer, page hero, breadcrumb, prose, editorial,
   shop grid, product page (PDP), accordion, reviews, value grid, contact, cart.
   ========================================================================= */

/* ===== Logo as <img> (served pages) ===== */
.site-header .brand-mark { height: 48px; }
.footer-logo { height: 70px; }

/* Active nav state */
.nav a.is-active { opacity: 1; color: var(--olive); }

/* ===== Page hero (interior) ===== */
.page-hero {
  padding: 92px 0 64px;
  text-align: center;
  background:
    radial-gradient(120% 80% at 50% -20%, rgba(90,87,40,0.07), transparent 60%),
    var(--eggshell);
}
.page-hero .wrap { max-width: 820px; }
.page-hero h1 {
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.14;
  margin-bottom: 20px;
}
.page-hero .lede {
  font-size: 17px;
  color: var(--walnut);
  opacity: 0.85;
  max-width: 560px;
  margin: 0 auto;
}
.page-hero.compact { padding: 78px 0 44px; }

/* ===== Breadcrumb ===== */
.breadcrumb {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--walnut);
  opacity: 0.7;
  padding: 26px 0 0;
}
.breadcrumb a:hover { color: var(--olive); opacity: 1; }
.breadcrumb span { margin: 0 8px; opacity: 0.5; }

/* ===== Section rhythm ===== */
.section { padding: 100px 0; }
.section.tight { padding: 72px 0; }
.section.dark { background: var(--coffee); color: var(--eggshell); }
.section.dark h1,
.section.dark h2,
.section.dark h3 { color: var(--eggshell); }
.section.dark .eyebrow { color: var(--eggshell); opacity: 0.7; }
.section.dark p { color: rgba(242,233,216,0.78); }
.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.section-head p { color: var(--walnut); margin-top: 14px; }

/* ===== Image placeholder blocks (real photography drops in here) =====
   Brand-tone tonal panels with the arch motif. Replace <div class="ph">…
   with <img> once final §7 photography exists. */
/* Image slots show the El Khabya logo until real §7 photography exists.
   Olive logo on light surfaces, cream logo on dark/olive. The leftover
   .arch-ph / .ph-label markup inside .ph is hidden, not relied upon. */
.ph {
  position: relative;
  overflow: hidden;
  background:
    url('assets/logo-olive.svg') center / clamp(110px, 26%, 230px) no-repeat,
    linear-gradient(135deg, #e9dfca 0%, #d8c9a6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ph.dark {
  background:
    url('assets/logo-cream.svg') center / clamp(110px, 26%, 230px) no-repeat,
    linear-gradient(135deg, #3a3024 0%, #251d14 100%);
}
.ph.olive {
  background:
    url('assets/logo-cream.svg') center / clamp(110px, 26%, 230px) no-repeat,
    linear-gradient(135deg, #6a6633 0%, #4c4922 100%);
}
.ph .arch-ph,
.ph .ph-label { display: none; }
.ratio-4x5 { aspect-ratio: 4 / 5; }
.ratio-1x1 { aspect-ratio: 1 / 1; }

/* ===== Real product photography: hover swap (closed -> open) ===== */
.img-swap {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
  display: block;
}
.img-swap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.img-swap img.hover {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .45s ease;
}
.img-swap:hover img.hover,
.tile-link:hover .img-swap img.hover,
.collection-card:hover .img-swap img.hover { opacity: 1; }
.pdp-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ratio-3x2 { aspect-ratio: 3 / 2; }
.ratio-16x9 { aspect-ratio: 16 / 9; }

/* ===== Full-bleed editorial photo ===== */
.full-photo { width: 100%; }
.full-photo .ph { min-height: 460px; }

/* ===== Editorial rows (Our Story / Tunisia) ===== */
.editorial-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.editorial-row + .editorial-row { margin-top: 100px; }
.editorial-row.reverse .ed-media { order: 2; }
.editorial-row h2 { font-size: clamp(26px, 3.6vw, 36px); margin-bottom: 18px; }
.editorial-row p { color: var(--walnut); margin-bottom: 16px; max-width: 460px; }
.editorial-row .ph { aspect-ratio: 4 / 5; }

/* ===== Pull quote ===== */
.pullquote {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
  padding: 96px 0;
}
.pullquote p {
  font-family: var(--serif);
  font-size: clamp(26px, 3.6vw, 38px);
  line-height: 1.3;
  color: var(--olive);
  font-style: italic;
}
.pullquote cite {
  display: block;
  margin-top: 22px;
  font-family: var(--sans);
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--walnut);
  opacity: 0.7;
}

/* ===== Prose (legal + long-form) ===== */
.prose { max-width: 720px; margin: 0 auto; }
.prose h2 {
  font-size: 26px;
  margin: 46px 0 14px;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--coffee);
  margin: 26px 0 8px;
}
.prose p, .prose li { color: var(--walnut); margin-bottom: 14px; font-size: 15px; }
.prose ul { padding-left: 20px; margin-bottom: 18px; }
.prose a { color: var(--olive); border-bottom: 1px solid var(--line); }
.prose a:hover { border-color: var(--olive); }
.prose .meta-note {
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--walnut);
  opacity: 0.7;
  border-left: 2px solid var(--olive);
  padding: 4px 0 4px 16px;
  margin: 22px 0;
}
.prose .updated {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.6;
  margin-bottom: 40px;
}

/* ===== Value grid (Why El Khabya) ===== */
.value-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}
.value h3 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--olive);
  margin-bottom: 12px;
}
.value p { font-size: 14px; color: var(--walnut); }
.value .num {
  font-family: var(--serif);
  font-size: 30px;
  color: var(--olive);
  opacity: 0.4;
  display: block;
  margin-bottom: 14px;
  line-height: 1;
}

/* ===== Shop grid ===== */
.shop-toolbar {
  display: flex;
  gap: 26px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 56px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.shop-toolbar a { color: var(--walnut); opacity: 0.7; padding-bottom: 5px; }
.shop-toolbar a:hover { opacity: 1; color: var(--olive); }
.shop-toolbar a.is-active { opacity: 1; color: var(--olive); border-bottom: 1px solid var(--olive); }

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px 28px;
}
.product-grid > * { min-width: 0; }
.product-tile { display: flex; flex-direction: column; }
.product-tile .ph,
.product-tile .img-swap {
  aspect-ratio: 4 / 5;
  margin-bottom: 18px;
  transition: transform 0.4s ease;
}
.product-tile:hover .ph,
.product-tile:hover .img-swap { transform: translateY(-5px); }
.product-tile .tier {
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--olive);
  margin-bottom: 7px;
}
.product-tile h3 { font-size: 22px; margin-bottom: 6px; }
.product-tile .price { font-size: 14px; color: var(--walnut); }
.product-tile a.tile-link { display: block; }

/* ===== Product detail (PDP) ===== */
.pdp { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 64px; align-items: start; }
.pdp-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pdp-gallery .ph { aspect-ratio: 4 / 5; }
.pdp-gallery .ph.span-2 { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
.pdp-gallery .pdp-photo { aspect-ratio: 4 / 5; }
.pdp-gallery .pdp-photo.span-2 { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
.photo-fill { width: 100%; height: 100%; object-fit: cover; display: block; }
.full-photo .photo-fill { min-height: 460px; max-height: 78vh; }
.editorial-row .photo-fill { aspect-ratio: 4 / 5; }
.pdp-info { position: sticky; top: 100px; }
.pdp-info .tier {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--olive);
  margin-bottom: 14px;
}
.pdp-info h1 { font-size: clamp(32px, 4.2vw, 46px); line-height: 1.12; margin-bottom: 16px; }
.pdp-price { font-size: 20px; color: var(--coffee); margin-bottom: 24px; }
.pdp-info .intro { color: var(--walnut); margin-bottom: 28px; max-width: 440px; }

.pdp-meta {
  border-top: 1px solid var(--line);
  margin: 28px 0;
}
.pdp-meta div {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.pdp-meta dt {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--olive);
  align-self: center;
}
.pdp-meta dd { color: var(--walnut); }

/* gift options */
.gift-opts { margin: 26px 0; }
.gift-opts label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--walnut);
  margin-bottom: 10px;
  cursor: pointer;
}
.gift-opts input[type="text"] {
  width: 100%;
  background: transparent;
  border: 1px solid var(--line);
  padding: 11px 14px;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--coffee);
  border-radius: 2px;
  margin-top: 6px;
}
.gift-opts input[type="text"]:focus { outline: none; border-color: var(--olive); }
.pdp-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 4px; }
.pdp-actions .btn-solid { flex: 1; min-width: 200px; text-align: center; }

/* ===== Accordion ===== */
.accordion { border-top: 1px solid var(--line); margin-top: 30px; }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--coffee);
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: '+'; font-size: 18px; color: var(--olive); font-weight: 300; }
.accordion details[open] summary::after { content: '–'; }
.accordion .acc-body { padding: 0 0 22px; }
.accordion .acc-body p, .accordion .acc-body li { color: var(--walnut); font-size: 14.5px; margin-bottom: 10px; }
.accordion .acc-body ul { padding-left: 18px; }

/* Accordion on dark sections */
.section.dark .accordion,
.section.dark .accordion details { border-color: rgba(242,233,216,0.2); }
.section.dark .accordion summary { color: var(--eggshell); }
.section.dark .accordion .acc-body p,
.section.dark .accordion .acc-body li { color: rgba(242,233,216,0.78); }

/* ===== Reviews ===== */
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.review {
  border: 1px solid var(--line);
  padding: 34px 30px;
  background: var(--eggshell);
}
.review .stars { color: var(--olive); letter-spacing: 3px; font-size: 13px; margin-bottom: 16px; }
.review p {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.4;
  color: var(--coffee);
  font-style: italic;
  margin-bottom: 18px;
}
.review cite {
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--walnut);
  opacity: 0.75;
}

/* ===== Honey region / facts cards ===== */
.fact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.fact { background: var(--eggshell); padding: 36px 30px; }
.fact h3 { font-size: 22px; margin-bottom: 10px; }
.fact p { font-size: 14px; color: var(--walnut); }
.section.dark .fact { background: transparent; }
.section.dark .fact-grid { background: rgba(242,233,216,0.16); border-color: rgba(242,233,216,0.16); }

/* ===== Contact ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
.contact-aside h3 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--olive);
  margin: 0 0 8px;
}
.contact-aside p { color: var(--walnut); margin-bottom: 26px; font-size: 15px; }
.contact-aside a { color: var(--olive); }

.form-field { margin-bottom: 20px; }
.form-field label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--walnut);
  margin-bottom: 8px;
}
.form-field input,
.form-field textarea {
  width: 100%;
  background: transparent;
  border: 1px solid var(--line);
  padding: 13px 15px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 300;
  color: var(--coffee);
  border-radius: 2px;
}
.form-field textarea { min-height: 150px; resize: vertical; }
.form-field input:focus,
.form-field textarea:focus { outline: none; border-color: var(--olive); }

/* ===== Cart ===== */
.cart-layout { display: grid; grid-template-columns: 1.6fr 0.9fr; gap: 56px; align-items: start; }
.cart-line {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: 22px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.cart-line:first-child { border-top: 1px solid var(--line); }
.cart-line .ph { width: 96px; aspect-ratio: 4 / 5; }
.cart-line .ci-tier { font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--olive); margin-bottom: 5px; }
.cart-line h3 { font-size: 20px; margin-bottom: 6px; }
.cart-line .ci-note { font-size: 13px; color: var(--walnut); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 2px; margin-top: 8px; }
.qty button { background: none; border: none; padding: 6px 12px; font-size: 15px; color: var(--olive); cursor: pointer; }
.qty span { padding: 0 8px; font-size: 14px; }
.cart-line .ci-price { font-size: 16px; color: var(--coffee); white-space: nowrap; }
.cart-remove { display: block; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--walnut); opacity: 0.6; margin-top: 10px; }
.cart-remove:hover { opacity: 1; color: var(--olive); }

.cart-summary { border: 1px solid var(--line); padding: 34px 30px; background: var(--eggshell); }
.cart-summary h2 { font-size: 24px; margin-bottom: 24px; }
.cart-summary .row { display: flex; justify-content: space-between; font-size: 14px; color: var(--walnut); padding: 9px 0; }
.cart-summary .row.total { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 16px; font-size: 17px; color: var(--coffee); }
.cart-summary .btn-solid { width: 100%; text-align: center; margin-top: 22px; }
.cart-summary .gift-msg { width: 100%; background: transparent; border: 1px solid var(--line); padding: 12px 14px; font-family: var(--sans); font-size: 14px; color: var(--coffee); border-radius: 2px; margin-top: 8px; min-height: 70px; resize: vertical; }
.cart-note { text-align: center; font-size: 12px; color: var(--walnut); opacity: 0.7; margin-top: 16px; }

/* empty cart */
.cart-empty { text-align: center; padding: 40px 0 20px; }
.cart-empty p { color: var(--walnut); margin-bottom: 26px; }

/* ===== FAQ page ===== */
.faq-group { margin-bottom: 64px; }
.faq-group > h2 { font-size: 24px; margin-bottom: 8px; }
.faq-group > .eyebrow { margin-bottom: 18px; }

/* ===== Footer columns ===== */
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.4fr;
  gap: 44px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(242,233,216,0.16);
}
.footer-brand p { font-size: 13px; opacity: 0.72; max-width: 280px; }
.footer-col h4,
.footer-newsletter h4 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--eggshell);
  opacity: 0.6;
  margin-bottom: 18px;
}
.footer-col a {
  display: block;
  font-size: 14px;
  opacity: 0.8;
  margin-bottom: 11px;
  transition: opacity 0.2s;
}
.footer-col a:hover { opacity: 1; }
.footer-legal { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-legal a:hover { opacity: 1; color: var(--eggshell); }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .editorial-row { grid-template-columns: 1fr; gap: 32px; }
  .editorial-row.reverse .ed-media { order: 0; }
  .editorial-row p { max-width: none; }
  .value-grid { grid-template-columns: repeat(2, 1fr); gap: 36px 30px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .pdp { grid-template-columns: 1fr; gap: 36px; }
  .pdp-info { position: static; }
  .review-grid { grid-template-columns: 1fr; }
  .fact-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 44px; }
  .cart-layout { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 640px) {
  .product-grid { grid-template-columns: 1fr; }
  .pdp-gallery { grid-template-columns: 1fr; }
  .pdp-gallery .ph.span-2 { aspect-ratio: 4 / 5; }
  .value-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cart-line { grid-template-columns: 72px 1fr; }
  .cart-line .ci-price { grid-column: 2; }
}

/* ===== Honey grid with oil bridge (Tunisia page) ===== */
.fact-grid.honey-grid { grid-template-columns: repeat(2, 1fr); }
.fact.oil-bridge { grid-column: 1 / -1; }
@media (max-width: 640px) {
  .fact-grid.honey-grid { grid-template-columns: 1fr; }
}
