/* Toorm, shared styles — palette drawn from the real sachet/box artwork
   (toorm-horeca assets + product packaging): every SKU pairs the same
   black "TOORM" wordmark with its own herbal-bud accent color (deep plum
   on Armenian Breakfast, amber on Linden, rose/coral on the bath-bag
   line). That's the actual brand system — not one flat corporate hue — so
   the site uses black/white as the one universal constant, with a warm
   floral-bud rose standing in as the shared UI accent (kickers, CTAs).
   Variable names kept as --green/--green-dark/--green-tint from the
   antaram.am pattern this was forked from, values repointed to Toorm's own
   colors so every rule that already references them picks up the brand. */
:root {
  --green: #141413;
  --green-dark: #2b2a28;
  --green-tint: #eef3f7;
  --bud: #b23a5c;
  --kraft: #b98d5f;
  --ink: #141413;
  --muted: #5b5b5b;
  --line: #ececec;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: #fff;
  line-height: 1.6;
  font-size: 17px;
}

img { max-width: 100%; display: block; }

a { color: var(--bud); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.site-header .bar {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  padding: 10px 20px; max-width: 1080px; margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 500; flex-shrink: 0; }
.brand:hover { text-decoration: none; }
.brand img { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.brand .name { font-family: var(--serif); font-size: 1.25rem; white-space: nowrap; }
.nav { display: flex; gap: 16px; margin-left: auto; align-items: center; flex-wrap: wrap; }
.nav a { color: var(--ink); font-size: .95rem; letter-spacing: .02em; white-space: nowrap; }

@media (max-width: 560px) {
  .site-header .bar { justify-content: center; gap: 8px 16px; padding: 10px 14px; }
  .nav { margin-left: 0; width: 100%; justify-content: center; gap: 10px 14px; }
}
.nav a.active { color: var(--green); font-weight: 600; }

.langs { display: flex; gap: 2px; border: 1px solid var(--line); border-radius: 999px; padding: 2px; }
.langs button {
  border: 0; background: none; font: inherit; font-size: .82rem;
  padding: 3px 10px; border-radius: 999px; cursor: pointer; color: var(--muted);
}
.langs button.active { background: var(--green); color: #fff; }

/* Hero */
.hero {
  position: relative; color: #fff; text-align: center;
  background: #141413 url("img/site/hero.jpg") center/cover no-repeat;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(rgba(20,20,19,.55), rgba(20,20,19,.68));
}
.hero .inner { position: relative; padding: 110px 20px 120px; max-width: 800px; margin: 0 auto; }
.hero .since { text-transform: uppercase; letter-spacing: .25em; font-size: .85rem; opacity: .9; }
.hero h1 { font-size: clamp(2.6rem, 7vw, 4.2rem); margin: 10px 0 14px; }
.hero .sub { font-size: clamp(1.05rem, 2.5vw, 1.35rem); max-width: 560px; margin: 0 auto; }
.hero .tag { font-family: var(--serif); font-style: italic; font-size: 1.15rem; margin-top: 18px; opacity: .95; }
.btn {
  display: inline-block; margin-top: 28px; padding: 12px 30px;
  background: var(--green); color: #fff; border-radius: 999px;
  font-size: 1rem; letter-spacing: .03em; transition: background .15s;
}
.btn:hover { background: var(--green-dark); text-decoration: none; }
.btn.ghost { background: transparent; border: 1px solid rgba(255,255,255,.7); }
.btn.ghost:hover { background: rgba(255,255,255,.12); }

/* Sections */
section { padding: 72px 0; }
section.alt { background: var(--green-tint); }
.kicker { text-transform: uppercase; letter-spacing: .22em; font-size: .8rem; color: var(--bud); font-weight: 600; }
h2.title { font-size: clamp(1.7rem, 4vw, 2.4rem); margin: 8px 0 14px; }
.lead { color: var(--muted); max-width: 640px; }

/* Values grid */
.values { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); margin-top: 38px; }
.value {
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 24px;
}
.value .ic { font-size: 1.6rem; }
.value h3 { font-size: 1.1rem; margin: 10px 0 6px; }
.value p { font-size: .95rem; color: var(--muted); }
.dash-link { margin-top: 30px; font-size: 1rem; }

/* Production strip */
.prod-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 36px; }
.prod-strip img { border-radius: 14px; width: 100%; height: 260px; object-fit: cover; }
@media (max-width: 640px) { .prod-strip { grid-template-columns: 1fr; } }

/* Product lines */
.lines { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); margin-top: 38px; }
.line-card {
  border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff;
  display: flex; flex-direction: column;
}
.line-card .imgs { display: flex; justify-content: center; gap: 8px; background: #f7f9f6; padding: 18px; }
.line-card .imgs img { height: 190px; width: auto; object-fit: contain; }
.line-card .txt { padding: 18px 20px 22px; }
.line-card h3 { font-size: 1.15rem; }
.line-card .sub { color: var(--bud); font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; margin: 2px 0 8px; }
.line-card p { font-size: .93rem; color: var(--muted); }
a.line-card { text-decoration: none; color: inherit; transition: transform .18s ease, box-shadow .18s ease; }
a.line-card:hover { text-decoration: none; transform: translateY(-3px); box-shadow: 0 12px 30px rgba(33,37,31,.12); }
a.line-card .go { color: var(--bud); font-weight: 500; font-size: .9rem; margin-top: 10px; display: inline-block; }

/* Active product-line group filter on the catalogue (?line=...) */
.line-filter { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 14px 0 2px; }
.lf-chip {
  display: inline-flex; align-items: center; gap: 10px; background: var(--green); color: #fff;
  border-radius: 999px; padding: 8px 18px; font-size: .92rem; font-weight: 500;
}
.lf-chip .lf-clear { color: rgba(255,255,255,.85); text-decoration: none; font-size: 1.1rem; line-height: 1; }
.lf-chip .lf-clear:hover { color: #fff; }
.lf-all { font-size: .88rem; }
.solar-link { display: inline-block; margin-top: 8px; font-size: .88rem; }

/* Catalogue teaser */
.teaser { text-align: center; }
.teaser .btn { margin-top: 24px; }

/* HoReCa banner — rounded promo banner card linking to horeca.antaram.am */
#horeca { padding: 26px 0 34px; }
.horeca-banner {
  display: block; position: relative; text-decoration: none; color: #fff;
  background: url("img/site/horeca-banner.jpg") center 60% / cover no-repeat, #17150f;
  overflow: hidden; border-radius: 20px;
  box-shadow: 0 18px 44px rgba(20,26,16,.28);
  transition: transform .22s ease, box-shadow .22s ease;
}
.horeca-banner::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(16,19,12,.86) 0%, rgba(16,19,12,.6) 44%, rgba(16,19,12,.12) 100%);
}
.horeca-banner::after {
  content: ""; position: absolute; inset: 10px; pointer-events: none;
  border: 1px solid rgba(255,217,168,.35); border-radius: 13px;
}
.hb-inner { position: relative; max-width: 520px; padding: 54px 48px; }
.hb-kicker { text-transform: uppercase; letter-spacing: .3em; font-size: .76rem; font-weight: 600; color: #ffd9a8; }
.hb-inner h2 { font-size: 2rem; margin: 12px 0 10px; color: #fff; }
.hb-inner p { color: rgba(255,255,255,.9); font-size: 1rem; max-width: 460px; }
.hb-btn { display: inline-block; margin-top: 20px; background: #fff; color: var(--green-dark); box-shadow: 0 8px 26px rgba(0,0,0,.35); transition: transform .18s ease; }
.horeca-banner:hover { text-decoration: none; transform: translateY(-3px); box-shadow: 0 24px 54px rgba(20,26,16,.36); }
.horeca-banner:hover .hb-btn { transform: translateY(-2px); background: var(--green-tint); }
@media (max-width: 600px) {
  .hb-inner { padding: 38px 26px; }
  .hb-inner h2 { font-size: 1.5rem; }
  .horeca-banner { background-position: 72% 60%; }
}

/* Contacts */
.contacts { display: grid; gap: 30px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 34px; }
.contacts h3 { font-size: 1.05rem; margin-bottom: 8px; }
.contacts p { font-size: .95rem; color: var(--muted); }
.contacts a { word-break: break-word; }

footer { border-top: 1px solid var(--line); padding: 26px 0 40px; color: var(--muted); font-size: .88rem; text-align: center; }

/* ---------- Catalogue page ---------- */
.cat-head { padding: 42px 0 10px; }
.controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 22px 0 10px; }
.search {
  flex: 1 1 260px; max-width: 380px;
  padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px;
  font: inherit; font-size: .95rem; outline: none;
}
.search:focus { border-color: var(--green); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 26px; }
.chip {
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  font: inherit; font-size: .85rem; padding: 6px 14px; border-radius: 999px; cursor: pointer;
}
.chip.active { background: var(--green); border-color: var(--green); color: #fff; }
.count { color: var(--muted); font-size: .88rem; margin-bottom: 14px; }

.grid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  padding-bottom: 70px;
}
.card {
  border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  background: #fff; cursor: pointer; transition: box-shadow .15s, transform .15s;
}
.card:hover { box-shadow: 0 6px 18px rgba(33,37,31,.10); transform: translateY(-2px); }
.card .ph { aspect-ratio: 1; background: #f4f7f3; position: relative; }
.card .ph img { width: 100%; height: 100%; object-fit: cover; }
/* Tall pack shots (Toorm teas, bath bags, dried fruit) sit on white
   backgrounds; letterbox them instead of cropping the wordmark off. */
.card .ph img.tall, .sheet .top .ph img.tall { object-fit: contain; background: #fff; padding: 8px; }
.card .ph.noimg::before {
  content: "\1F33F"; position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.2rem; opacity: .45;
}
.card .nm { padding: 10px 12px 12px; font-size: .88rem; line-height: 1.35; }

/* Product overlay */
.overlay {
  position: fixed; inset: 0; z-index: 100; display: none;
  background: rgba(20,26,19,.55); overflow-y: auto; padding: 30px 14px;
}
.overlay.open { display: block; }
.sheet {
  background: #fff; border-radius: 16px; max-width: 780px; margin: 0 auto;
  padding: 28px; position: relative;
}
.sheet .close {
  position: absolute; top: 14px; right: 14px; border: 0; background: var(--green-tint);
  width: 36px; height: 36px; border-radius: 50%; font-size: 1.1rem; cursor: pointer; color: var(--ink);
}
.sheet .top { display: flex; gap: 26px; align-items: flex-start; }
.sheet .top .ph { flex: 0 0 260px; border-radius: 12px; overflow: hidden; background: #f4f7f3; position: relative; aspect-ratio: 1; }
.sheet .top .ph img { width: 100%; height: 100%; object-fit: cover; }
.sheet .top .ph.noimg::before {
  content: "\1F33F"; position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center; font-size: 3rem; opacity: .4;
}
.sheet h2 { font-size: 1.5rem; margin-bottom: 10px; }
.sheet .cats { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.sheet .cats span {
  font-size: .75rem; background: var(--green-tint); color: var(--green-dark);
  padding: 3px 10px; border-radius: 999px;
}
.sheet .body p { margin-bottom: 10px; font-size: .95rem; }
.sheet .body strong { color: var(--ink); }
.sheet h3.prep { font-family: var(--sans); font-weight: 600; font-size: .95rem; text-transform: uppercase; letter-spacing: .1em; color: var(--bud); margin: 22px 0 8px; }
.sheet .fallback-note { font-size: .8rem; color: var(--muted); font-style: italic; margin-bottom: 12px; }
@media (max-width: 620px) {
  .sheet .top { flex-direction: column; }
  .sheet .top .ph { width: 100%; flex: none; }
}

/* "Founded in 1989, debt-free" (#842): one dark band so the statement reads
   as a statement, between the story and the product lines. */
section.since { background: var(--green-dark); color: #fff; }
.since .kicker { color: rgba(255,255,255,.7); }
.since .lead { color: rgba(255,255,255,.82); max-width: 680px; }
.since-head { display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: center; }
.since-year { font-family: var(--serif); font-size: clamp(4.5rem, 12vw, 8.5rem); line-height: .9; font-weight: 700; letter-spacing: -.02em; color: rgba(255,255,255,.92); }
.since-pillars { display: grid; gap: 0; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: 44px; border-top: 1px solid rgba(255,255,255,.22); }
.since-pillars > div { padding: 22px 22px 6px 0; }
.since-pillars h3 { font-size: 1.05rem; margin-bottom: 6px; }
.since-pillars p { font-size: .95rem; color: rgba(255,255,255,.75); }
.since-close { margin-top: 30px; font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: rgba(255,255,255,.92); max-width: 680px; }
@media (max-width: 640px) {
  .since-head { grid-template-columns: 1fr; gap: 6px; }
  .since-head .kicker { display: none; }  /* the big year already says it */
}

/* "Certified organic since 2017" (#944): a short, quiet paragraph after the 1989 band. */
section.organic { padding-top: 56px; padding-bottom: 56px; }
.org-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.org-tags li { border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: .9rem; font-weight: 500; }
.org-tags li::before { content: "\2713"; margin-right: 8px; color: var(--green-dark); }
