/* Cinagro — site styles */
:root {
  /* Brand colours from the Cinagro logo guide (brand/cinagro-logo-set) */
  --navy: #204884;        /* Cinagro Navy: wordmark, links, headings accents */
  --navy-dark: #16315a;
  --navy-soft: #e9eef6;
  --chili: #EB470D;       /* Chili Red: large text and decoration only (3.9:1 on white) */
  --chili-btn: #C93C0A;   /* darker chili for buttons / small text (5.1:1) */
  --chili-deep: #a8320a;
  --leaf: #72C507;        /* Leaf Green: decoration only */
  --leaf-soft: #eef8e1;
  --stem: #367A09;        /* darker Stem Green, safe for text (5.3:1) */
  --turmeric: #FFA604;    /* Turmeric Yellow: decoration only */
  --turmeric-soft: #fff4dd;
  --stripe: linear-gradient(90deg, var(--leaf) 0 33.3%, var(--turmeric) 33.3% 66.6%, var(--chili) 66.6%);
  --ink: #1f2633;
  --muted: #5b6475;
  --line: #e4e2dc;
  --cream: #f9f8f4;
  --card: #fff;
  --radius: 14px;
  --shadow: 0 1px 2px rgb(43 37 32 / .06), 0 6px 20px rgb(43 37 32 / .07);
  --wrap: 1160px;
  --head: "Adamina", Georgia, "Times New Roman", serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 98px; }
body { margin: 0; font: 16px/1.65 var(--body); color: var(--ink); background: var(--cream); }
/* keep the footer at the bottom of the window on short pages */
body { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
main { flex: 1 0 auto; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
a:hover { color: var(--navy-dark); }
h1, h2, h3, h4 { font-family: var(--head); font-weight: 400; line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--chili); outline-offset: 2px; border-radius: 4px; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgb(255 255 255 / .96); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.site-header { padding-top: 8px; }
.site-header::before { content: ""; position: absolute; inset: 0 0 auto; height: 8px; background: var(--stripe); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.brands { display: flex; align-items: center; gap: .9rem; min-width: 0; }
.brand { display: block; flex: none; }
.brand img { width: 176px; }
.brand-sep { width: 2px; height: 34px; border-radius: 2px; background: #c9cfda; }
.brand-partner { width: 180px; }
.nav ul { list-style: none; display: flex; gap: .25rem; margin: 0; padding: 0; }
.nav a { display: block; padding: .5rem .8rem; border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 500; }
.nav a:hover { background: var(--navy-soft); color: var(--navy-dark); }
.nav a[aria-current="page"] { background: var(--navy); color: #fff; }
.nav-toggle { display: none; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; align-items: center; gap: .4rem; background: none; border: 1px solid var(--line); border-radius: 999px; padding: .45rem .9rem; font: inherit; color: var(--ink); cursor: pointer; }
  .nav-toggle svg { width: 18px; height: 18px; }
  .js .nav { display: none; position: absolute; inset: 100% 0 auto; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .js .nav.open { display: block; }
  .nav ul { flex-direction: column; padding: .5rem 1.25rem 1rem; }
  html:not(.js) .site-header .wrap { flex-wrap: wrap; }
  html:not(.js) .nav ul { flex-direction: row; flex-wrap: wrap; padding: 0 0 .75rem; }
  html:not(.js) .nav-toggle { display: none; }
}
@media (max-width: 1000px) and (min-width: 901px) { .nav a { padding: .5rem .6rem; } .brand img { width: 150px; } .brand-partner { width: 150px; } }
@media (max-width: 480px) {
  .site-header .wrap { gap: .5rem; }
  .brands { gap: .45rem; }
  .brand img { width: clamp(120px, 34vw, 132px); }
  .brand-partner { width: clamp(84px, 28vw, 118px); }
  .brand-sep { height: 26px; }
  .nav-toggle .label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}

/* ---------- page header ---------- */
.page-head { position: relative; background: linear-gradient(135deg, var(--navy-dark), var(--navy)); color: #fff; padding: clamp(1.1rem, 2.6vw, 1.7rem) 0 calc(clamp(1.1rem, 2.6vw, 1.7rem) + 10px); }
.page-head::after { content: ""; position: absolute; inset: auto 0 0; height: 10px; background: var(--stripe); }
.page-head h1 { margin: 0; }
.page-head p { margin: .5rem 0 0; opacity: .9; max-width: 60ch; }

main { display: block; }
.section { padding: clamp(2.5rem, 6vw, 4rem) 0; }
.section + .section { padding-top: 0; }
.prose { max-width: 72ch; }
.prose p { color: #333b49; }
figure { margin: 0; }
.banner { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #fff; }
/* content pages: text left (aligned with the page title), photos right (aligned with the menu edge) */
.article { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.article .prose { max-width: none; }
.article .prose > :last-child { margin-bottom: 0; }
.article .media { display: grid; gap: 1.25rem; }
@media (max-width: 820px) {
  .article { grid-template-columns: 1fr; }
  .article .media { order: -1; }
}
.banner img { width: 100%; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: .4rem; background: var(--chili-btn); color: #fff; border: 0; border-radius: 999px; padding: .7rem 1.35rem; font: 600 1rem/1.2 var(--body); text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--chili-deep); color: #fff; }
.btn.ghost { background: transparent; color: var(--navy-dark); box-shadow: inset 0 0 0 2px var(--navy); }
.btn.ghost:hover { background: var(--navy-soft); }

/* ---------- home ---------- */
.hero { padding: clamp(2rem, 6vw, 4.5rem) 0; background: radial-gradient(circle at 85% 20%, var(--turmeric-soft) 0, transparent 55%), var(--cream); }
.hero .wrap { display: grid; grid-template-columns: 1fr minmax(0, 613px); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.hero h1 em { font-style: normal; color: var(--chili); }
.hero p { font-size: 1.1rem; color: var(--muted); max-width: 46ch; }
.hero .actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.slides { position: relative; aspect-ratio: 613 / 324; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #eee; }
.slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; animation: fade 30s infinite; }
.slides img:nth-child(1) { animation-delay: 0s; }
.slides img:nth-child(2) { animation-delay: 5s; }
.slides img:nth-child(3) { animation-delay: 10s; }
.slides img:nth-child(4) { animation-delay: 15s; }
.slides img:nth-child(5) { animation-delay: 20s; }
.slides img:nth-child(6) { animation-delay: 25s; }
@keyframes fade { 0% { opacity: 0; } 3% { opacity: 1; } 17% { opacity: 1; } 20% { opacity: 0; } 100% { opacity: 0; } }
@media (max-width: 820px) { .hero .wrap { grid-template-columns: 1fr; } }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.25rem; }
.feature { background: var(--card); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.feature p { color: var(--muted); flex: 1; }
.feature a { font-weight: 600; text-decoration: none; }
.feature a::after { content: " \2192"; }

.welcome { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center; background: var(--leaf-soft); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.5rem); }
.welcome img { width: 240px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; box-shadow: var(--shadow); }
.welcome h2 em { font-style: normal; color: var(--chili); }
@media (max-width: 640px) { .welcome { grid-template-columns: 1fr; } .welcome img { width: 160px; } }

.section-title { display: flex; align-items: end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.section-title h2 { margin: 0; }

/* ---------- category tiles (home) ---------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 1rem; }
.tile { position: relative; display: flex; flex-direction: column; background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); text-decoration: none; color: var(--ink); transition: transform .15s; }
.tile:hover { transform: translateY(-2px); color: var(--navy-dark); }
.tile .pic { aspect-ratio: 4 / 3; background: var(--navy-soft); display: grid; place-items: center; overflow: hidden; }
.tile .pic img { width: 100%; height: 100%; object-fit: cover; }
.tile .pic .mono { font: 2.2rem var(--head); color: var(--navy); }
.tile strong { padding: .75rem .9rem; font-weight: 600; }
.tile small { display: block; padding: 0 .9rem .8rem; margin-top: -.6rem; color: var(--muted); }

/* ---------- catalogue ---------- */
.cat-nav { position: relative; z-index: 40; background: rgb(249 248 244 / .97); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.cat-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: .45rem; padding: .75rem 0; margin: 0; }
/* pinned under the header on wide screens only; on phones the wrapped rows would cover too much of the screen */
@media (min-width: 900px) { .cat-nav { position: sticky; top: 81px; } }
.cat-nav a { white-space: nowrap; display: block; padding: .35rem .85rem; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: .92rem; }
.cat-nav a:hover { border-color: var(--navy); color: var(--navy-dark); }

.category { padding: 2.5rem 0 1rem; scroll-margin-top: 90px; }
@media (min-width: 900px) { .category { scroll-margin-top: var(--catnav-offset, 200px); } }
.category header { display: grid; grid-template-columns: auto 1fr; gap: 1.25rem; align-items: center; margin-bottom: 1.25rem; }
.category header img { width: 120px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; }
.category header h2 { margin: 0 0 .2rem; }
.category header p { margin: 0; color: var(--muted); }
.category header .count { font-size: .9rem; color: var(--muted); }
@media (max-width: 520px) { .category header { grid-template-columns: 1fr; } .category header img { width: 100%; max-height: 160px; } }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.cards.wide { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.card { display: flex; flex-direction: column; background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 0; padding: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgb(43 37 32 / .08), 0 12px 28px rgb(43 37 32 / .12); }
.card .pic { aspect-ratio: 1; background: #fff; display: grid; place-items: center; padding: .75rem; }
.cards.wide .pic { aspect-ratio: 89 / 40; padding: 0; }
.card .pic img { width: 100%; height: 100%; object-fit: contain; }
.cards.wide .pic img { object-fit: cover; }
.card .body { padding: .8rem 1rem 1rem; border-top: 1px solid var(--line); flex: 1; display: flex; flex-direction: column; gap: .2rem; }
.card .body strong { font-weight: 600; }
.card .body span { font-size: .9rem; color: var(--muted); }
.card .body .more { margin-top: auto; padding-top: .35rem; color: var(--navy); font-weight: 600; font-size: .9rem; }

.card .body .desc { color: var(--muted); font-size: .88rem; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cards.compact { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: .75rem; }
.card.compact { border-left: 4px solid var(--leaf); }
.card.compact .body { border-top: 0; padding: .85rem 1rem; }
.card.compact .body strong { color: var(--navy); }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 0; }
.chips li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .35rem .85rem; font-size: .95rem; }

.empty, .notice { background: #fff; border: 1px dashed var(--line); border-radius: var(--radius); padding: 1.5rem; color: var(--muted); }

/* ---------- product dialog ---------- */
dialog.product { width: min(100% - 2rem, 720px); max-height: calc(100dvh - 2rem); border: 0; border-radius: var(--radius); padding: 0; box-shadow: 0 20px 60px rgb(0 0 0 / .3); color: var(--ink); }
dialog.product::backdrop { background: rgb(30 25 20 / .55); }
dialog.product .pic { background: #fff; display: grid; place-items: center; padding: 1rem; border-bottom: 1px solid var(--line); }
dialog.product .pic img { max-height: 340px; width: auto; }
dialog.product .pic[hidden] { display: none; }
dialog.product .content { padding: 1.5rem; }
dialog.product h2 { margin-right: 2.5rem; }
dialog.product h3 { margin-top: 1.25rem; font-size: 1.05rem; font-family: var(--body); font-weight: 700; }
dialog.product ul { padding-left: 1.2rem; margin: 0 0 1rem; }
dialog.product .sizes { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
dialog.product .sizes li { background: var(--leaf-soft); color: var(--stem); border-radius: 999px; padding: .2rem .75rem; font-size: .9rem; }
dialog.product .extra img { margin: .5rem 0 1rem; border-radius: 8px; }
dialog.product .close { position: absolute; top: .75rem; right: .75rem; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgb(255 255 255 / .9); box-shadow: var(--shadow); font-size: 1.5rem; line-height: 1; cursor: pointer; color: var(--ink); }

/* ---------- applications ---------- */
.apps { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; margin-top: 2rem; }
.apps figure { margin: 0; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.apps a { display: block; }
.apps img { width: 100%; aspect-ratio: 1; object-fit: contain; object-position: center; background: #fff; padding: .6rem; }
.apps figcaption { padding: .75rem 1rem; font-weight: 600; border-top: 1px solid var(--line); }
.ticks { list-style: none; padding: 0; margin: 0 0 1.25rem; display: grid; gap: .5rem; }
.ticks li { padding-left: 1.75rem; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .45em; width: 1rem; height: .55rem; border-left: 3px solid var(--leaf); border-bottom: 3px solid var(--leaf); transform: rotate(-45deg); }

/* ---------- contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 2rem; align-items: start; }
@media (max-width: 820px) { .contact { grid-template-columns: 1fr; } }
.form { background: #fff; border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 2rem); box-shadow: var(--shadow); display: grid; gap: 1rem; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .form .row { grid-template-columns: 1fr; } }
.form label { display: grid; gap: .35rem; font-weight: 600; font-size: .95rem; }
.form label small { font-weight: 400; color: var(--muted); }
.form input, .form select, .form textarea { font: inherit; padding: .65rem .8rem; border: 1px solid #cfd3dc; border-radius: 8px; background: #fff; color: var(--ink); width: 100%; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--navy); outline-offset: 0; border-color: var(--navy); }
.form textarea { min-height: 150px; resize: vertical; }
.form .hp { position: absolute; left: -5000px; }
.alert { border-radius: 10px; padding: .9rem 1.1rem; margin-bottom: 1rem; }
.alert.ok { background: var(--leaf-soft); color: var(--stem); }
.alert.err { background: #fde8e6; color: var(--chili-deep); }
.aside { background: var(--turmeric-soft); border-radius: var(--radius); padding: 1.5rem; }
.aside h2 { font-size: 1.3rem; }

/* ---------- footer ---------- */
.site-footer { position: relative; background: var(--navy-dark); color: #d3dbe8; margin-top: 3rem; padding: 2.5rem 0 1.5rem; font-size: .95rem; }
.site-footer .wrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: 2rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, max-content); gap: .4rem 2rem; }
.site-footer .copy { grid-column: 1 / -1; border-top: 1px solid rgb(255 255 255 / .14); padding-top: 1rem; font-size: .85rem; color: #aebbd0; }
.site-footer::before { content: ""; position: absolute; inset: 0 0 auto; height: 10px; background: var(--stripe); }
.footer-logo { display: inline-block; margin-bottom: .9rem; }
.footer-logo img { width: 190px; }
@media (max-width: 640px) { .site-footer .wrap { grid-template-columns: 1fr; } }

/* ---------- where to buy ---------- */
.wtb { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); gap: 1.25rem; align-items: stretch; }
.wtb-group h3 { font-size: 1.35rem; margin-bottom: .35rem; }
.wtb-group.wholesale { background: linear-gradient(135deg, var(--navy-dark), var(--navy)); color: #fff; border-radius: var(--radius); padding: 1.5rem; display: flex; flex-direction: column; align-items: flex-start; gap: .5rem; box-shadow: var(--shadow); }
.wtb-group.wholesale p { color: #d3dbe8; margin: 0 0 .5rem; }
.wtb-group.retail { background: var(--card); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
@media (max-width: 820px) { .wtb { grid-template-columns: 1fr; } }
.stores { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(175px, 1fr)); gap: .85rem; }
.store { background: var(--cream); border-radius: 12px; border: 1px solid var(--line); padding: 1rem 1.1rem 1.15rem; display: flex; flex-direction: column; align-items: flex-start; gap: .5rem; border-top: 5px solid var(--leaf); }
.store.soon { border-top-color: var(--turmeric); }
.store strong { font: 1.35rem/1.2 var(--head); color: var(--navy); }
.store p { margin: 0; color: var(--muted); font-size: .92rem; }
.store .btn { margin-top: .35rem; }
.badge { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .02em; padding: .2rem .65rem; border-radius: 999px; }
.badge.now { background: var(--leaf-soft); color: var(--stem); }
.badge.soon { background: var(--turmeric-soft); color: #8a5a00; }
.btn.small { padding: .5rem 1rem; font-size: .92rem; }
.wtb-intro { color: var(--muted); margin: 0; }

/* ---------- photo credits ---------- */
.credits { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; gap: 1rem; max-width: 860px; }
.credits li { display: grid; grid-template-columns: 160px 1fr; gap: 1.25rem; align-items: center; background: #fff; border-radius: var(--radius); padding: .75rem; box-shadow: var(--shadow); }
.credits img { width: 160px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; }
@media (max-width: 520px) { .credits li { grid-template-columns: 1fr; } .credits img { width: 100%; } }
.site-footer .copy a { color: #d3dbe8; text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .slides img:first-child { opacity: 1; }
}

.h3 { font-size: 1.25rem; }
.brands { flex-wrap: nowrap; }
.brands img { height: auto; }
