/* Ribarnica Maslina - design system. Moroccan riad x Adriatic fish market. */

:root{
  --color-sea: #0e4f4a;
  --color-sea-dark: #0a3a37;
  --color-sand: #f3e9d6;
  --color-sand-deep: #e6d6ae;
  --color-driftwood: #7c6a52;
  --color-saffron: #e2a63c;
  --color-indigo: #27405a;
  --color-ink: #1c2b2a;
  --color-white: #fffaf0;
  --font-display: "Iowan Old Style", "Palatino Linotype", Georgia, "Times New Roman", serif;
  --font-body: "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "Courier New", ui-monospace, monospace;
  --radius-arch: 999px 999px 12px 12px;
  --shadow-paper: 0 1px 2px rgba(28,43,42,.08), 0 10px 24px -14px rgba(28,43,42,.35);
  --measure: 68ch;
  --nav-h: 76px;
}

*{box-sizing:border-box}
html,body{overflow-x:clip}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:var(--font-body);
  color:var(--color-ink);
  background:var(--color-sand);
  line-height:1.55;
}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
h1,h2,h3,h4{font-family:var(--font-display);margin:0 0 .5em;line-height:1.1}
.wrap{max-width:1180px;margin-inline:auto;padding-inline:24px}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
.skip-link{position:absolute;left:-999px;top:0;background:var(--color-sea);color:var(--color-white);padding:8px 14px;z-index:200}
.skip-link:focus{left:8px;top:8px}
:focus-visible{outline:3px solid var(--color-saffron);outline-offset:2px}

@media (prefers-reduced-motion: reduce){
  *{animation-duration:.001ms !important;transition-duration:.001ms !important}
}

/* ---------- reveal ---------- */
.reveal{opacity:1;transform:none}
body.js .reveal{opacity:0;transform:translateY(24px);transition:opacity .7s ease, transform .7s ease}
body.js .reveal.in-view{opacity:1;transform:none}
.reveal--clip{clip-path:inset(0 0 0 0)}
body.js .reveal--clip{clip-path:inset(0 100% 0 0);transition:clip-path .8s cubic-bezier(.65,0,.35,1)}
body.js .reveal--clip.in-view{clip-path:inset(0 0 0 0)}
.reveal--stagger > *{transition-delay:calc(var(--i, 0) * 90ms)}

/* ---------- header ---------- */
.site-header{position:sticky;top:0;z-index:100;background:var(--color-sand);border-bottom:1px solid var(--color-sand-deep)}
.site-header__inner{display:flex;align-items:center;justify-content:space-between;height:var(--nav-h);gap:16px}
.brand{display:flex;align-items:center;gap:10px}
.brand__mark{width:40px;height:40px;flex:0 0 auto}
.brand__word{font-family:var(--font-display);font-size:1.1rem;line-height:1.1;color:var(--color-sea-dark)}
.brand__word em{font-style:normal;color:var(--color-saffron);display:block;font-size:1.3rem}
.site-nav ul{display:flex;gap:22px;list-style:none;margin:0;padding:0}
.site-nav a{font-size:.95rem;position:relative;padding:4px 2px}
.site-nav a::after{content:"";position:absolute;left:0;right:100%;bottom:-4px;height:2px;background:var(--color-saffron);transition:right .25s ease}
.site-nav a:hover::after,.site-nav a.is-active::after{right:0}
.site-nav a.is-active{color:var(--color-sea-dark);font-weight:600}
.site-nav{display:flex;align-items:center;gap:28px}
.cart-link{display:flex;align-items:center;gap:6px}
.cart-link .icon{width:22px;height:22px;color:var(--color-sea-dark)}
.cart-count{background:var(--color-indigo);color:var(--color-white);font-size:.75rem;min-width:20px;height:20px;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;padding:0 5px}
.cart-count.bump{animation:bump .4s ease}
@keyframes bump{0%{transform:scale(1)}40%{transform:scale(1.4)}100%{transform:scale(1)}}
.nav-toggle{display:none;flex-direction:column;gap:5px;background:none;border:0;padding:8px;cursor:pointer;min-width:44px;min-height:44px;align-items:center;justify-content:center}
.nav-toggle span{width:24px;height:2px;background:var(--color-sea-dark)}
.zellige-rule{height:6px;background:repeating-linear-gradient(45deg, var(--color-saffron) 0 6px, var(--color-indigo) 6px 12px)}

@media (max-width: 860px){
  .nav-toggle{display:flex}
  .site-nav{position:fixed;inset:var(--nav-h) 0 0 auto;width:min(320px,80vw);height:calc(100vh - var(--nav-h));background:var(--color-white);flex-direction:column;align-items:flex-start;padding:28px;gap:20px;
    transform:translateX(100%);visibility:hidden;transition:transform .3s ease, visibility .3s ease;box-shadow:var(--shadow-paper);overflow-y:auto}
  .site-nav.is-open{transform:translateX(0);visibility:visible}
  .site-nav ul{flex-direction:column;gap:16px}
}

/* ---------- icons ---------- */
.icon{width:24px;height:24px;color:currentColor}

/* ---------- buttons ---------- */
.btn{position:relative;display:inline-flex;align-items:center;justify-content:center;gap:8px;font-family:var(--font-body);font-weight:600;font-size:.95rem;padding:13px 26px;border-radius:var(--radius-arch);border:2px solid transparent;cursor:pointer;min-height:44px;overflow:hidden;isolation:isolate;transition:color .3s ease,border-color .3s ease}
.btn::before{content:"";position:absolute;inset:0;left:-100%;width:100%;background:currentColor;z-index:-1;transition:left .35s ease}
.btn--primary{background:var(--color-sea);color:var(--color-white)}
.btn--primary::before{background:var(--color-saffron)}
.btn--primary:hover::before{left:0}
.btn--primary:hover{color:var(--color-sea-dark)}
.btn--secondary{background:transparent;color:var(--color-sea-dark);border-color:var(--color-sea-dark)}
.btn--secondary::before{background:var(--color-sea-dark)}
.btn--secondary:hover::before{left:0}
.btn--secondary:hover{color:var(--color-white)}
.btn--ghost{background:transparent;color:var(--color-white);border-color:rgba(255,255,255,.5)}
.btn--ghost::before{background:rgba(255,255,255,.18)}
.btn--ghost:hover::before{left:0}
.btn--small{padding:9px 18px;font-size:.85rem}
.btn:disabled{opacity:.5;cursor:not-allowed}

/* ---------- hero (home) ---------- */
.hero{position:relative;overflow:hidden;background:linear-gradient(180deg,var(--color-sand),var(--color-sand-deep))}
.hero__wrap{display:grid;grid-template-columns:1.1fr .9fr;gap:40px;align-items:center;padding-block:64px}
.hero__title{font-size:clamp(2.6rem,6vw,4.6rem);color:var(--color-sea-dark)}
.hero__title em{font-style:normal;color:var(--color-saffron)}
.hero__lede{max-width:46ch;font-size:1.15rem;color:var(--color-driftwood)}
.hero__art{position:relative}
.hero__art svg{width:100%;height:auto}
@media (max-width:860px){.hero__wrap{grid-template-columns:1fr;padding-block:40px}}

/* ---------- sticky-narrative home composition ---------- */
.story{display:grid;grid-template-columns:.9fr 1.1fr;gap:48px;align-items:start}
.story__sticky{position:sticky;top:calc(var(--nav-h) + 24px);align-self:start}
.story__scroll{display:flex;flex-direction:column;gap:72px}
@media (max-width:900px){.story{grid-template-columns:1fr}.story__sticky{position:static}}

/* ---------- sections / grid utilities ---------- */
.section{padding-block:72px}
.section--tight{padding-block:40px}
.grid{display:grid;gap:28px}
.grid--2{grid-template-columns:repeat(2,1fr)}
.grid--3{grid-template-columns:repeat(3,1fr)}
.grid--4{grid-template-columns:repeat(4,1fr)}
@media (max-width:860px){.grid--2,.grid--3,.grid--4{grid-template-columns:1fr}}
.stack-sm{display:flex;flex-direction:column;gap:12px}
.stack-md{display:flex;flex-direction:column;gap:24px}
.mt-sm{margin-top:12px}.mt-md{margin-top:24px}.mt-lg{margin-top:48px}

/* ---------- page hero (inner pages) ---------- */
.page-hero{background:var(--color-sea-dark);color:var(--color-white);padding-block:72px 56px;position:relative;overflow:hidden}
.page-hero h1{color:var(--color-white);font-size:clamp(2.2rem,5vw,3.4rem)}
.page-hero p{max-width:60ch;color:rgba(255,250,240,.85)}
.page-hero .arch-ornament{position:absolute;right:-60px;top:-40px;width:260px;height:260px;opacity:.35}

/* ---------- breadcrumbs ---------- */
.breadcrumbs{display:flex;gap:8px;font-size:.85rem;color:var(--color-driftwood);flex-wrap:wrap}
.breadcrumbs a{text-decoration:underline}
.breadcrumbs span[aria-hidden]{opacity:.6}

/* ---------- prose (legal pages) ---------- */
.prose{max-width:var(--measure);margin-inline:auto}
.prose h2{margin-top:2em;color:var(--color-sea-dark)}
.prose h3{margin-top:1.4em}
.prose p,.prose li{color:var(--color-ink)}
.prose ul,.prose ol{padding-left:1.3em}

/* ---------- legal toc ---------- */
.legal-toc{background:var(--color-white);border:1px solid var(--color-sand-deep);border-radius:12px;padding:20px 24px;max-width:var(--measure);margin:0 auto 40px}
.legal-toc h2{font-size:1rem;margin-bottom:.6em}
.legal-toc ol{margin:0;padding-left:1.2em}

/* ---------- notice ---------- */
.notice{border-radius:12px;padding:16px 20px;border:1px solid var(--color-sand-deep);background:var(--color-white)}
.notice--info{border-color:var(--color-indigo);background:#eef2f7}
.notice--success{border-color:#2f7a5a;background:#eaf5ee}
.notice--error{border-color:#a83b3b;background:#fbeeee;color:#7a2424}

/* ---------- cards ---------- */
.card{background:var(--color-white);border-radius:16px;box-shadow:var(--shadow-paper);overflow:hidden;transition:transform .3s ease,box-shadow .3s ease}
.card:hover{transform:translateY(-6px);box-shadow:0 20px 30px -18px rgba(28,43,42,.4)}
.card__media{aspect-ratio:4/3;overflow:hidden}
.card__media img{width:100%;height:100%;object-fit:cover;transition:transform .5s ease}
.card:hover .card__media img{transform:scale(1.08)}
.card__body{padding:18px 20px}
.card__price{font-weight:700;color:var(--color-sea-dark)}

/* ---------- product grid / strip ---------- */
.product-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:28px}
.product-strip{display:flex;gap:20px;overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:8px}
.product-strip .card{min-width:240px;scroll-snap-align:start}
@media (min-width:860px){.product-strip{overflow-x:visible;display:grid;grid-template-columns:repeat(4,1fr)}}

/* ---------- product detail ---------- */
.product-detail{display:grid;grid-template-columns:1fr 1fr;gap:48px;align-items:start}
.product-detail__media{aspect-ratio:1/1;border-radius:16px;overflow:hidden;box-shadow:var(--shadow-paper)}
.product-detail__media img{width:100%;height:100%;object-fit:cover}
.product-detail__price{font-size:1.6rem;color:var(--color-sea-dark);font-weight:700}
.qty-input{display:inline-flex;align-items:center;border:2px solid var(--color-sand-deep);border-radius:999px;overflow:hidden}
.qty-input button{background:none;border:0;width:40px;height:40px;cursor:pointer;font-size:1.1rem}
.qty-input input{width:48px;text-align:center;border:0;font-size:1rem;background:transparent}
@media (max-width:760px){.product-detail{grid-template-columns:1fr}}

/* ---------- forms ---------- */
.form-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:18px}
.form-grid .field--full{grid-column:1/-1}
@media (max-width:640px){.form-grid{grid-template-columns:1fr}}
.field{display:flex;flex-direction:column;gap:6px}
.field label{font-weight:600;font-size:.9rem}
.field input,.field textarea,.field select{font-family:inherit;font-size:1rem;padding:12px 14px;border:2px solid var(--color-sand-deep);border-radius:10px;background:var(--color-white);accent-color:var(--color-sea);min-height:44px}
.field input:focus,.field textarea:focus,.field select:focus{border-color:var(--color-sea)}
.field-error{color:#a83b3b;font-size:.85rem;min-height:1.2em}
.hp-field{position:absolute !important;left:-9999px;width:1px;height:1px;opacity:0}

/* ---------- contact layout ---------- */
.contact-layout{display:grid;grid-template-columns:1fr 1.1fr;gap:48px}
.contact-layout__info ul{list-style:none;padding:0;display:flex;flex-direction:column;gap:14px}
.contact-layout__info li{display:flex;gap:10px;align-items:flex-start}
@media (max-width:860px){.contact-layout{grid-template-columns:1fr}}

/* ---------- faq ---------- */
.faq{max-width:var(--measure);margin-inline:auto;display:flex;flex-direction:column;gap:12px}
.faq-item{background:var(--color-white);border:1px solid var(--color-sand-deep);border-radius:12px;padding:4px 20px}
.faq-item summary{cursor:pointer;font-weight:600;padding:16px 0;list-style:none;position:relative}
.faq-item summary::-webkit-details-marker{display:none}
.faq-item summary::after{content:"+";position:absolute;right:0;top:14px;font-size:1.3rem;color:var(--color-saffron);transition:transform .25s ease}
.faq-item[open] summary::after{transform:rotate(45deg)}
.faq-item p{padding-bottom:16px;margin:0;color:var(--color-driftwood)}

/* ---------- cart / checkout ---------- */
.cart-table{width:100%;border-collapse:collapse}
.cart-table th,.cart-table td{padding:14px 10px;border-bottom:1px solid var(--color-sand-deep);text-align:left}
.cart-table img{width:64px;height:64px;object-fit:cover;border-radius:8px}
.cart-summary{background:var(--color-white);border-radius:16px;padding:24px;box-shadow:var(--shadow-paper);display:flex;flex-direction:column;gap:14px}
.cart-summary__row{display:flex;justify-content:space-between}
.cart-summary__total{font-weight:700;font-size:1.2rem;color:var(--color-sea-dark)}
.cart-layout{display:grid;grid-template-columns:1.6fr 1fr;gap:40px;align-items:start}
@media (max-width:860px){.cart-layout{grid-template-columns:1fr}}

/* ---------- 404 ---------- */
.error-page{text-align:center;padding-block:120px}
.error-page__code{font-family:var(--font-display);font-size:clamp(4rem,14vw,8rem);color:var(--color-saffron);margin:0}

/* ---------- footer ---------- */
.site-footer{background:var(--color-sea-dark);color:rgba(255,250,240,.85);padding-top:48px;position:relative}
.divider-ornament{display:block;width:100%;height:24px;color:var(--color-saffron);opacity:.5}
.footer__grid{display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr 1.4fr;gap:32px;padding-block:32px}
.footer__brand .brand__word{color:var(--color-white)}
.footer__contact .icon{width:16px;height:16px;vertical-align:-3px;margin-right:4px}
.footer__col h3{color:var(--color-white);font-size:1rem;margin-bottom:12px}
.footer__col ul{list-style:none;padding:0;display:flex;flex-direction:column;gap:8px}
.footer__col a:hover{text-decoration:underline}
.newsletter-form .field{flex-direction:row;gap:8px}
.newsletter-form input{flex:1;background:rgba(255,250,240,.08);border-color:rgba(255,250,240,.3);color:var(--color-white)}
.newsletter-form input::placeholder{color:rgba(255,250,240,.6)}
.form-message{font-size:.85rem;min-height:1.2em}
.footer__bottom{border-top:1px solid rgba(255,250,240,.15);padding-block:20px;font-size:.85rem}
@media (max-width:900px){.footer__grid{grid-template-columns:1fr 1fr}}
@media (max-width:560px){.footer__grid{grid-template-columns:1fr}}

/* ---------- cookie banner ---------- */
.cookie-banner{position:fixed;left:16px;right:16px;bottom:16px;max-width:560px;margin-inline:auto;background:var(--color-indigo);color:var(--color-white);border-radius:16px;padding:20px 24px;box-shadow:var(--shadow-paper);display:flex;flex-wrap:wrap;gap:14px;align-items:center;justify-content:space-between;z-index:150;transition:transform .3s ease, opacity .3s ease}
.cookie-banner.is-hidden{transform:translateY(120%);opacity:0;pointer-events:none}
.cookie-banner a{text-decoration:underline}
.cookie-banner__actions{display:flex;gap:10px}

/* ---------- toast ---------- */
.rm-toast{position:fixed;left:50%;bottom:24px;transform:translate(-50%,20px);background:var(--color-sea-dark);color:var(--color-white);padding:12px 22px;border-radius:999px;opacity:0;transition:opacity .3s ease, transform .3s ease;z-index:200;pointer-events:none}
.rm-toast.is-visible{opacity:1;transform:translate(-50%,0)}

/* ---------- signature feature: season wheel ---------- */
.season-wheel{position:relative;width:min(320px,80vw);aspect-ratio:1/1;margin-inline:auto;border-radius:50%;background:radial-gradient(circle,var(--color-white) 0 58%,var(--color-sand-deep) 58% 60%,transparent 61%)}
.season-wheel__point{position:absolute;width:44px;height:44px;border-radius:50%;background:var(--color-sea);color:var(--color-white);border:0;font-size:.72rem;font-weight:700;cursor:pointer;transform:translate(-50%,-50%);transition:background .25s ease,transform .25s ease}
.season-wheel__point:hover{transform:translate(-50%,-50%) scale(1.12)}
.season-wheel__point.is-active{background:var(--color-saffron);color:var(--color-sea-dark)}
.season-wheel__center{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);text-align:center;width:120px}
.season-result{background:var(--color-white);border-radius:16px;padding:24px;box-shadow:var(--shadow-paper);min-height:140px}
.season-result h3{color:var(--color-sea-dark)}
.season-result ul{list-style:none;padding:0;display:flex;flex-wrap:wrap;gap:8px}
.season-result li{background:var(--color-sand);border-radius:999px;padding:6px 14px;font-size:.85rem}

/* ---------- grain overlay ---------- */
.grain-overlay{position:fixed;inset:0;width:100vw;height:100vh;pointer-events:none;opacity:.05;z-index:999;mix-blend-mode:multiply}

/* ---------- COMPONENTS: .class - what it is ----------
.wrap - centered max-width content container
.site-header - sticky top header bar
.site-nav - primary nav, becomes off-canvas drawer on mobile
.nav-toggle - mobile hamburger button
.cart-link / .cart-count - header cart link and animated item-count badge
.zellige-rule - decorative striped border under header
.btn / .btn--primary / .btn--secondary / .btn--ghost / .btn--small - button variants with fill-sweep hover
.hero / .hero__wrap / .hero__title / .hero__lede / .hero__art - home hero section
.story / .story__sticky / .story__scroll - sticky-left narrative + scrolling-right home composition
.section / .section--tight - vertical page section spacing
.grid / .grid--2 / .grid--3 / .grid--4 - responsive CSS grid utilities
.stack-sm / .stack-md - vertical flex stacks
.mt-sm / .mt-md / .mt-lg - margin-top spacing utilities
.page-hero - dark hero banner used on every inner page
.breadcrumbs - small breadcrumb trail nav
.prose - readable-measure long-form legal/article text
.legal-toc - boxed table of contents for legal pages
.notice / .notice--info / .notice--success / .notice--error - callout boxes
.card / .card__media / .card__body / .card__price - generic hover-lift content card
.product-grid - responsive catalog grid
.product-strip - horizontal scroll-snap product strip (mobile)
.product-detail / .product-detail__media / .product-detail__price - single product layout
.qty-input - quantity stepper control
.form-grid / .field / .field--full / .field-error - form layout and field styling
.hp-field - visually hidden honeypot field
.contact-layout / .contact-layout__info - contact page split layout
.faq / .faq-item - details/summary accordion list
.cart-table / .cart-summary / .cart-layout - cart and checkout layout
.error-page / .error-page__code - 404 page layout
.site-footer / .footer__grid / .footer__col / .footer__brand / .footer__contact / .footer__bottom - footer layout
.newsletter-form / .form-message - footer newsletter signup
.cookie-banner / .cookie-banner__actions - cookie consent banner
.rm-toast - transient confirmation toast
.reveal / .reveal--clip / .reveal--stagger / .in-view - scroll reveal animation hooks
.grain-overlay - fixed SVG noise texture overlay
.season-wheel - signature feature month selector wheel
.season-wheel__point - single month marker on the wheel
.season-result - signature feature output panel
*/

/* ---------- footer newsletter ---------- */
.footer__newsletter {
  /* Newsletter signup section */
}

/* ---------- icon sprite ---------- */
.icon-sprite {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

/* ---------- hero section ---------- */
.hero__text {
  font-size: 1.125rem;
  color: var(--color-ink);
}

/* ---------- quantity control ---------- */
.qty-ctrl {
  width: 60px;
  padding: 8px 12px;
  border: 1px solid var(--color-sand-deep);
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 1rem;
  text-align: center;
  background: var(--color-white);
  color: var(--color-ink);
}

.qty-ctrl:focus {
  border-color: var(--color-sea);
  outline: none;
}

/* ---------- remove item button ---------- */
.remove-item {
  background: none;
  border: none;
  color: var(--color-driftwood);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
}

.remove-item:hover {
  color: var(--color-sea);
}

/* ---------- product detail body ---------- */
.product-detail__body {
  padding: 24px 0;
}

@media (max-width: 640px) {
  .hero__text {
    font-size: 1rem;
  }
}
