/* =========================================================================
   EDUCA – nastavna sredstva i oprema
   Design tokens: chalkboard green, ruler amber, birch plywood, powder-coat steel.
   ========================================================================= */

@font-face { font-family: "Bricolage Grotesque"; src: url("../fonts/BricolageGrotesque-Bold.woff") format("woff"); font-weight: 600 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("../fonts/InstrumentSans-Regular.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("../fonts/InstrumentSans-Bold.woff") format("woff"); font-weight: 600 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("../fonts/InstrumentSans-Italic.woff") format("woff"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --chalk: #1e3b33;          /* školska ploča */
  --chalk-2: #2a4d43;
  --chalk-ink: #e9efe9;
  --amber: #d69a30;          /* brand / ravnalo */
  --amber-hover: #c4891f;
  --amber-deep: #7a4f08;     /* AA text on white */
  --birch: #f3e7d3;          /* šperploča */
  --birch-2: #faf4ea;
  --steel: #8d969b;          /* plastificirane cijevi */
  --line: #e4ddd0;
  --ink: #1f2a2a;
  --muted: #55605e;
  --white: #ffffff;
  --radius: 6px;
  --radius-lg: 14px;
  --shadow: 0 1px 2px rgba(30, 59, 51, .06), 0 8px 24px -12px rgba(30, 59, 51, .18);
  --font-display: "Bricolage Grotesque", "Instrument Sans", system-ui, sans-serif;
  --font-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --header-h: 76px;

  --bs-body-font-family: var(--font-body);
  --bs-body-color: var(--ink);
  --bs-body-bg: var(--white);
  --bs-link-color: var(--amber-deep);
  --bs-link-color-rgb: 122, 79, 8;
  --bs-link-hover-color: var(--chalk);
  --bs-link-hover-color-rgb: 30, 59, 51;
  --bs-border-color: var(--line);
  --bs-border-radius: var(--radius);
  --bs-secondary-color: var(--muted);
  --bs-focus-ring-color: rgba(214, 154, 48, .45);
}

html { scroll-padding-top: calc(var(--header-h) + 16px); }
body { font-family: var(--font-body); color: var(--ink); background: var(--white); font-size: 1.0625rem; line-height: 1.6; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5, .h1, .h2, .h3, .h4, .h5 { font-family: var(--font-display); font-weight: 700; letter-spacing: -.015em; color: var(--chalk); line-height: 1.15; }
a { text-underline-offset: .18em; }
p { max-width: 75ch; }
.text-muted { color: var(--muted) !important; }
::selection { background: var(--amber); color: var(--ink); }

/* Focus visible – high contrast, never removed */
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; box-shadow: 0 0 0 5px var(--chalk); border-radius: 3px; }
.btn:focus-visible, .form-control:focus, .form-select:focus, .form-check-input:focus { outline: 3px solid var(--amber); outline-offset: 2px; box-shadow: 0 0 0 5px var(--chalk); }

.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 2000; background: var(--chalk); color: #fff; padding: .75rem 1rem; border-radius: var(--radius); font-weight: 700; }
.skip-link:focus { top: 1rem; color: #fff; }
#main:focus { outline: none; }
.hp-field { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Buttons ---------- */
.btn { --bs-btn-font-weight: 600; --bs-btn-border-radius: var(--radius); display: inline-flex; align-items: center; justify-content: center; gap: .5rem; }
.btn-lg { --bs-btn-padding-y: .8rem; --bs-btn-padding-x: 1.4rem; --bs-btn-font-size: 1.05rem; }
.btn-amber { --bs-btn-color: var(--ink); --bs-btn-bg: var(--amber); --bs-btn-border-color: var(--amber); --bs-btn-hover-color: var(--ink); --bs-btn-hover-bg: #e3aa45; --bs-btn-hover-border-color: #e3aa45; --bs-btn-active-color: var(--ink); --bs-btn-active-bg: var(--amber-hover); --bs-btn-active-border-color: var(--amber-hover); --bs-btn-disabled-bg: var(--amber); --bs-btn-disabled-color: var(--ink); }
.btn-chalk { --bs-btn-color: #fff; --bs-btn-bg: var(--chalk); --bs-btn-border-color: var(--chalk); --bs-btn-hover-color: #fff; --bs-btn-hover-bg: var(--chalk-2); --bs-btn-hover-border-color: var(--chalk-2); --bs-btn-active-color: #fff; --bs-btn-active-bg: #142a24; --bs-btn-active-border-color: #142a24; }
.btn-outline-chalk { --bs-btn-color: var(--chalk); --bs-btn-border-color: var(--chalk); --bs-btn-hover-color: #fff; --bs-btn-hover-bg: var(--chalk); --bs-btn-hover-border-color: var(--chalk); --bs-btn-active-color: #fff; --bs-btn-active-bg: var(--chalk); --bs-btn-active-border-color: var(--chalk); --bs-btn-bg: transparent; }
.btn-outline-light { --bs-btn-hover-color: var(--chalk); }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: var(--chalk); font-size: 1.1rem; }
.icon-btn:hover { background: var(--birch); }
.link-button { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; text-underline-offset: .18em; font: inherit; }
.link-arrow { font-weight: 700; color: var(--chalk); text-decoration: none; border-bottom: 2px solid var(--amber); padding-bottom: 2px; }
.link-arrow:hover { color: var(--amber-deep); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 1030; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--line); transition: box-shadow .2s ease; }
.site-header.is-scrolled { box-shadow: 0 6px 20px -14px rgba(30, 59, 51, .5); }
.site-header .navbar { min-height: var(--header-h); padding: .5rem 0; }
.brand { padding: 0; margin-right: 1rem; }
.logo-svg { display: block; height: 46px; width: auto; }
.logo-ring, .logo-pin { fill: var(--amber); }
.logo-word { fill: var(--chalk); }
.logo-tag { fill: var(--amber-deep); }
.logo-pin { transform-box: fill-box; }
.logo-ring { transform-origin: 25px 24px; }
@media (prefers-reduced-motion: no-preference) {
  .site-header .logo-ring { animation: logo-ring 1.4s cubic-bezier(.2, .8, .2, 1) .15s both; }
  .site-header .logo-pin { animation: logo-pin 1.1s cubic-bezier(.2, .9, .3, 1.2) .5s both; }
  .brand:hover .logo-pin, .brand:focus-visible .logo-pin { animation: logo-nudge .6s ease-in-out; }
}
@keyframes logo-ring { from { transform: rotate(-200deg); opacity: 0; } to { transform: rotate(0); opacity: 1; } }
@keyframes logo-pin { 0% { transform: translateX(-22px); opacity: 0; } 70% { transform: translateX(2px); opacity: 1; } 100% { transform: translateX(0); } }
@keyframes logo-nudge { 0%, 100% { transform: translateX(0); } 40% { transform: translateX(-5px); } 70% { transform: translateX(2px); } }

.navbar-nav .nav-link { font-weight: 600; color: var(--ink); padding: .6rem .9rem !important; border-radius: var(--radius); position: relative; }
.navbar-nav .nav-link:hover { color: var(--chalk); background: var(--birch-2); }
.navbar-nav .nav-link.active { color: var(--chalk); }
.navbar-nav .nav-link.active::after { content: ""; position: absolute; left: .9rem; right: .9rem; bottom: .25rem; height: 3px; background: var(--amber); border-radius: 2px; }
.dropdown-menu { border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: .5rem; min-width: 16rem; }
.dropdown-item { border-radius: 4px; padding: .5rem .75rem; }
.dropdown-item:hover, .dropdown-item:focus { background: var(--birch); color: var(--chalk); }
.dropdown-sub { padding-left: 1.75rem; font-size: .95rem; color: var(--muted); }
.header-actions { display: flex; align-items: center; gap: .35rem; margin-left: auto; }
.btn-inquiry { position: relative; padding: .55rem 1rem; }
.badge-count { display: inline-grid; place-items: center; min-width: 1.5rem; height: 1.5rem; padding: 0 .35rem; border-radius: 999px; background: var(--chalk); color: #fff; font-size: .78rem; font-weight: 700; }
.badge-count[hidden] { display: none; }
.badge-count.is-bumped { animation: bump .45s ease; }
@keyframes bump { 50% { transform: scale(1.35); } }
.navbar-toggler { border: 0; }
.navbar-toggler:focus { box-shadow: none; }
@media (max-width: 991.98px) {
  .navbar-collapse { order: 4; width: 100%; }
  .navbar-nav { padding: .5rem 0 1rem; }
  .logo-svg { height: 40px; }
}
.search-drawer { background: var(--birch-2); border-top: 1px solid var(--line); }
.search-drawer .container-xl { padding-top: 1rem; padding-bottom: 1rem; }
.search-form { display: flex; gap: .5rem; max-width: 720px; }
.search-form .form-control { flex: 1; }

.flash-wrap { padding-top: 1rem; }

/* ---------- Hero: photograph + chalkboard panel ---------- */
.hero { position: relative; background: var(--chalk); }
.hero .carousel-item { position: relative; min-height: clamp(460px, 70vh, 680px); }
.hero-media, .hero-media picture { position: absolute; inset: 0; }
.hero-img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20, 42, 36, .55) 0%, rgba(20, 42, 36, .15) 55%, rgba(20, 42, 36, 0) 100%); }
@media (prefers-reduced-motion: no-preference) {
  .hero .carousel-item.active .hero-img { animation: kenburns 14s ease-out both; }
}
@keyframes kenburns { from { transform: scale(1.06); } to { transform: scale(1); } }
.hero-content { position: relative; z-index: 2; min-height: inherit; display: flex; align-items: flex-end; padding-bottom: 5.5rem; padding-top: 3rem; }
.board { position: relative; max-width: 640px; background: var(--chalk); color: var(--chalk-ink); padding: 2.25rem 2.5rem 2.5rem; border-radius: 4px; border-top: 8px solid var(--amber); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .55); }
.board::before { /* chalk ledge */ content: ""; position: absolute; left: 1.5rem; right: 1.5rem; bottom: -10px; height: 10px; background: var(--steel); border-radius: 0 0 3px 3px; opacity: .9; }
.board::after { /* chalk dust */ content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(120% 60% at 10% 100%, rgba(255, 255, 255, .06), transparent 60%), radial-gradient(80% 40% at 90% 0%, rgba(255, 255, 255, .05), transparent 70%); border-radius: inherit; }
.board-title { color: #fff; font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3.1rem); margin-bottom: .75rem; }
.board-text { font-size: 1.12rem; color: var(--chalk-ink); margin-bottom: 1.5rem; }
.board-actions { display: flex; flex-wrap: wrap; gap: .75rem; position: relative; z-index: 1; }
.hero-controls { position: absolute; z-index: 3; left: 0; right: 0; bottom: 1.25rem; display: flex; justify-content: space-between; align-items: center; }
.hero-dots { display: flex; gap: .15rem; padding: .3rem .5rem; border-radius: 999px; background: rgba(20, 42, 36, .72); }
.hero-dots button { width: 44px; height: 24px; border: 0; padding: 0; background: transparent; position: relative; }
.hero-dots button::after { content: ""; position: absolute; left: 4px; right: 4px; top: 10px; height: 4px; background: rgba(255, 255, 255, .7); border-radius: 2px; }
.hero-dots button.active::after { background: var(--amber); }
.hero-buttons { display: flex; gap: .4rem; }
.hero-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .6); background: rgba(20, 42, 36, .6); color: #fff; display: grid; place-items: center; }
.hero-btn:hover { background: var(--chalk); }
@media (max-width: 767.98px) {
  .hero .carousel-item { min-height: 560px; }
  .hero-content { padding-bottom: 5rem; }
  .board { padding: 1.5rem 1.4rem 1.75rem; }
  .hero-media::after { background: linear-gradient(0deg, rgba(20, 42, 36, .65), rgba(20, 42, 36, .05) 70%); }
}

/* ---------- Ruler: the signature mark ---------- */
.ruler { display: block; width: 168px; height: 12px; margin: .7rem 0 1rem; background:
  linear-gradient(var(--amber), var(--amber)) left bottom / 100% 3px no-repeat,
  repeating-linear-gradient(90deg, var(--amber) 0 2px, transparent 2px 42px) left bottom / 100% 12px no-repeat,
  repeating-linear-gradient(90deg, var(--amber) 0 1.5px, transparent 1.5px 8.4px) left bottom / 100% 7px no-repeat; }
.text-center .ruler { margin-left: auto; margin-right: auto; }
.bg-chalk .ruler { filter: brightness(1.15); }

/* ---------- Sections ---------- */
.section { padding: clamp(3rem, 2rem + 4vw, 5.5rem) 0; }
.section:not(.bg-birch):not(.bg-chalk) + .section:not(.bg-birch):not(.bg-chalk) { padding-top: 0; }
.bg-birch { background: var(--birch-2); }
.bg-chalk { background: var(--chalk); color: var(--chalk-ink); }
.bg-chalk h2, .bg-chalk h3, .bg-chalk .section-title { color: #fff; }
.bg-chalk a:not(.btn) { color: #f4cf86; }
.section-head { margin-bottom: 2rem; }
.section-title { font-size: clamp(1.7rem, 1.25rem + 1.6vw, 2.5rem); margin: 0; }
.section-title a { color: inherit; text-decoration: none; }
.section-title a:hover { color: var(--amber-deep); }
.section-intro { font-size: 1.12rem; color: var(--muted); margin: 0; }
.bg-chalk .section-intro { color: var(--chalk-ink); }
.prose-narrow { max-width: 760px; }
.prose { font-size: 1.0625rem; }
.prose h2 { font-size: 1.6rem; margin: 2.25rem 0 .75rem; }
.prose h3 { font-size: 1.25rem; margin: 1.75rem 0 .5rem; }
.prose ul, .prose ol { padding-left: 1.25rem; max-width: 75ch; }
.prose li { margin-bottom: .35rem; }
.prose img { max-width: 100%; height: auto; border-radius: var(--radius); }
.prose table { width: 100%; margin: 1.5rem 0; }
.prose-legal { max-width: 820px; }
.prose-legal h2 { font-size: 1.35rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.empty-state { text-align: center; padding: 3rem 1.5rem; border: 2px dashed var(--line); border-radius: var(--radius-lg); color: var(--muted); }
.empty-state > i { font-size: 2.25rem; color: var(--steel); margin-bottom: .75rem; }
.empty-state p { margin: 0 auto 1rem; }

/* ---------- Page header ---------- */
.page-header { position: relative; background: var(--birch-2); border-bottom: 1px solid var(--line); }
.page-header-inner { position: relative; z-index: 2; padding-top: 2.5rem; padding-bottom: 2.5rem; }
.page-title { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.2rem); margin: .25rem 0 .5rem; }
.page-subtitle { font-size: 1.15rem; color: var(--muted); margin: 0; }
.page-header.has-image { background: var(--chalk); border-bottom: 0; }
.page-header.has-image .page-header-media, .page-header.has-image .page-header-media picture { position: absolute; inset: 0; }
.page-header-img { width: 100%; height: 100%; object-fit: cover; }
.page-header.has-image .page-header-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20, 42, 36, .92) 0%, rgba(20, 42, 36, .7) 50%, rgba(20, 42, 36, .35) 100%); }
.page-header.has-image .page-header-inner { padding-top: 5rem; padding-bottom: 4rem; }
.page-header.has-image .page-title { color: #fff; }
.page-header.has-image .page-subtitle { color: var(--chalk-ink); }
.page-header.has-image .crumbs, .page-header.has-image .crumbs ol, .page-header.has-image .crumbs a { color: var(--chalk-ink); }

.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem; padding: 0; margin: 0; font-size: .92rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: .3rem; opacity: .6; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--amber-deep); }
.crumbs [aria-current] { color: inherit; font-weight: 600; }

/* ---------- Facts strip ---------- */
.facts { background: var(--birch); border-bottom: 1px solid var(--line); }
.facts-list { list-style: none; margin: 0; padding: 1.75rem 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.25rem 2rem; }
.fact { display: flex; gap: .9rem; align-items: flex-start; }
.fact-icon { flex: 0 0 auto; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: var(--chalk); color: var(--amber); font-size: 1.15rem; }
.fact-text { display: flex; flex-direction: column; line-height: 1.35; }
.fact-text strong { font-family: var(--font-display); font-size: 1.1rem; color: var(--chalk); }
.fact-text span { color: var(--muted); font-size: .95rem; }

/* ---------- Category columns ---------- */
.cat-column { height: 100%; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.25rem; background: #fff; }
.cat-column-head { display: block; text-decoration: none; color: var(--chalk); border-radius: var(--radius); overflow: hidden; }
.cat-column-media { display: block; aspect-ratio: 16 / 7; overflow: hidden; border-radius: var(--radius); background: var(--birch); }
.cat-column-img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.cat-column-head:hover .cat-column-img { transform: scale(1.03); }
.cat-column-title { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; margin: 1rem 0 .25rem; }
.cat-column-head:hover .cat-column-title { color: var(--amber-deep); }
.cat-column-desc { color: var(--muted); margin-bottom: 1rem; }
.cat-column-lists { display: grid; gap: 1rem 2rem; margin-bottom: 1.25rem; flex: 1; }
.cat-column.is-wide .cat-column-lists { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.cat-sub { border-top: 3px solid var(--amber); padding-top: .75rem; }
.cat-sub-title { font-size: 1.1rem; margin: 0 0 .5rem; display: flex; align-items: center; gap: .5rem; }
.cat-sub-title a { color: var(--chalk); text-decoration: none; }
.cat-sub-title a:hover { color: var(--amber-deep); text-decoration: underline; }
.count { display: inline-grid; place-items: center; min-width: 1.6rem; height: 1.4rem; padding: 0 .4rem; border-radius: 999px; background: var(--birch); color: var(--chalk); font-size: .78rem; font-weight: 700; font-family: var(--font-body); }
.cat-sub-list { list-style: none; padding: 0; margin: 0; }
.cat-sub-list li { padding: .3rem 0; border-bottom: 1px dotted var(--line); }
.cat-sub-list a { color: var(--ink); text-decoration: none; }
.cat-sub-list a:hover { color: var(--amber-deep); text-decoration: underline; }

/* ---------- Category tiles ---------- */
.cat-tile { display: block; height: 100%; text-decoration: none; color: var(--ink); border-radius: var(--radius-lg); overflow: hidden; background: var(--chalk); position: relative; }
.cat-tile-media { display: block; aspect-ratio: 4 / 3; overflow: hidden; }
.cat-tile-img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, opacity .3s; opacity: .92; }
.cat-tile:hover .cat-tile-img { transform: scale(1.04); opacity: 1; }
.cat-tile-body { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.25rem; color: #fff; border-top: 5px solid var(--amber); }
.cat-tile-name { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; }
.cat-tile-meta { font-size: .9rem; color: var(--chalk-ink); white-space: nowrap; }
.cat-tile-media picture, .cat-column-media picture, .doc-cover picture, .gallery-grid a picture { display: block; width: 100%; height: 100%; }
.doc-img { object-position: center 78%; }
.cat-column.is-wide { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: auto auto 1fr auto; column-gap: 2rem; }
.cat-column.is-wide .cat-column-head { grid-row: 1 / 5; display: flex; flex-direction: column; }
.cat-column.is-wide .cat-column-media { aspect-ratio: auto; flex: 1; min-height: 260px; }
.cat-column.is-wide .cat-column-title { font-size: 1.75rem; }
@media (max-width: 767.98px) { .cat-column.is-wide { display: flex; } .cat-column.is-wide .cat-column-media { aspect-ratio: 16 / 9; } }
.img-placeholder { display: grid; place-items: center; width: 100%; height: 100%; min-height: 180px; background: var(--birch); color: var(--steel); font-size: 2.5rem; }

/* ---------- Product card ---------- */
.product-card { height: 100%; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: border-color .2s; }
.product-card:hover { border-color: var(--amber); }
.product-media { display: block; aspect-ratio: 1 / 1; background: #fff; padding: 1rem; border-bottom: 1px solid var(--line); }
.product-media picture, .product-img { display: block; width: 100%; height: 100%; object-fit: contain; }
.product-body { padding: 1.1rem 1.25rem 1.25rem; display: flex; flex-direction: column; flex: 1; }
.product-name { font-size: 1.15rem; margin: 0 0 .4rem; }
.product-name a { color: var(--chalk); text-decoration: none; }
.product-name a:hover { color: var(--amber-deep); text-decoration: underline; }
.product-desc { color: var(--muted); font-size: .95rem; margin-bottom: 1rem; }
.product-actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: .5rem; }
.product-actions form { margin: 0; }
.product-actions .btn { min-height: 40px; padding-left: .85rem; padding-right: .85rem; }

/* ---------- Catalogue nav ---------- */
.catalog-nav { position: sticky; top: calc(var(--header-h) + 1rem); background: var(--birch-2); border-radius: var(--radius-lg); padding: 1.25rem; }
.catalog-nav-title { font-size: 1.1rem; margin-bottom: .75rem; }
.catalog-nav-title a { color: var(--chalk); text-decoration: none; }
.tree { list-style: none; margin: 0; padding: 0; }
.tree .tree { padding-left: .9rem; border-left: 2px solid var(--line); margin-left: .35rem; }
.tree a { display: flex; justify-content: space-between; gap: .5rem; padding: .4rem .5rem; border-radius: 4px; color: var(--ink); text-decoration: none; }
.tree a:hover { background: var(--birch); }
.tree a.is-current { background: var(--chalk); color: #fff; font-weight: 600; }
.tree a.is-current .count { background: var(--amber); color: var(--ink); }
.tree a.is-open { font-weight: 600; color: var(--chalk); }
.catalog-group + .catalog-group { margin-top: 4rem; }
.catalog-group-head { margin-bottom: 1.5rem; }
.sub-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { display: inline-flex; align-items: center; gap: .5rem; padding: .5rem .9rem; border: 1px solid var(--line); border-radius: 999px; color: var(--chalk); text-decoration: none; font-weight: 600; background: #fff; }
.chip:hover { border-color: var(--amber); background: var(--birch-2); }

/* ---------- Product page ---------- */
.product-top { background: var(--birch-2); border-bottom: 1px solid var(--line); padding: 1rem 0; }
.product-page { padding-top: 3rem; }
.product-stage { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); aspect-ratio: 1 / 1; display: grid; place-items: center; overflow: hidden; position: relative; }
.product-stage a { display: block; width: 100%; height: 100%; padding: 1.5rem; cursor: zoom-in; }
.product-stage picture, .stage-img { display: block; width: 100%; height: 100%; object-fit: contain; }
.stage-zoom { position: absolute; right: 1rem; bottom: 1rem; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--chalk); color: #fff; }
.thumbs { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: .75rem 0 0; }
.thumb { width: 84px; height: 84px; border: 2px solid var(--line); border-radius: var(--radius); background: #fff; padding: 4px; }
.thumb img { width: 100%; height: 100%; object-fit: contain; }
.thumb.is-active { border-color: var(--amber); }
.product-cat { margin-bottom: .25rem; font-weight: 600; }
.product-cat a { color: var(--amber-deep); }
.product-title { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.8rem); margin-bottom: .75rem; }
.product-facts { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; color: var(--muted); }
.product-facts span { font-weight: 600; color: var(--ink); }
.product-lead { font-size: 1.15rem; }
.inquiry-box { background: var(--birch-2); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.5rem; margin-top: 1.5rem; }
.inquiry-note { margin: 1rem 0 0; font-size: .93rem; color: var(--muted); }
.spec-sheet { margin: 0; border-top: 3px solid var(--chalk); }
.spec-row { display: grid; grid-template-columns: minmax(130px, 38%) 1fr; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.spec-row dt { font-weight: 600; color: var(--chalk); }
.spec-row dd { margin: 0; }
.product-description { margin-top: 4rem; max-width: 860px; }

/* ---------- Documents / e-catalogues ---------- */
.doc-card { height: 100%; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.doc-cover { aspect-ratio: 16 / 9; background: var(--chalk); display: grid; place-items: center; overflow: hidden; }
.doc-img { width: 100%; height: 100%; object-fit: cover; }
.doc-icon { font-size: 3rem; color: var(--amber); }
.doc-body { padding: 1.25rem; display: flex; flex-direction: column; flex: 1; }
.doc-title { font-size: 1.2rem; margin-bottom: .4rem; }
.doc-desc { color: var(--muted); font-size: .95rem; }
.doc-meta { color: var(--muted); font-size: .9rem; margin-bottom: 1rem; }
.doc-ext { display: inline-block; font-weight: 700; color: var(--chalk); background: var(--birch); border-radius: 4px; padding: 0 .4rem; margin-right: .35rem; }
.doc-actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: .5rem; }

/* ---------- Split, gallery, FAQ ---------- */
.split-figure { margin: 0; position: relative; }
.split-figure::before { content: ""; position: absolute; inset: 1.25rem -1.25rem -1.25rem 1.25rem; border: 3px solid var(--amber); border-radius: var(--radius-lg); z-index: 0; }
.split-figure picture, .split-img { position: relative; z-index: 1; display: block; width: 100%; height: auto; border-radius: var(--radius-lg); }
@media (max-width: 575.98px) { .split-figure::before { inset: .75rem -.5rem -.75rem .75rem; } }
.gallery-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.gallery-grid figure { margin: 0; }
.gallery-grid a { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); }
.gallery-img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery-grid a:hover .gallery-img { transform: scale(1.04); }
.gallery-grid figcaption { font-size: .9rem; color: var(--muted); margin-top: .4rem; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { cursor: pointer; padding: 1rem 2.5rem 1rem 0; font-weight: 700; font-family: var(--font-display); color: var(--chalk); font-size: 1.1rem; list-style: none; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: .5rem; top: .8rem; font-size: 1.5rem; color: var(--amber-deep); }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { padding-bottom: 1rem; margin: 0; }

/* ---------- CTA ---------- */
.cta-band { background: var(--chalk); color: var(--chalk-ink); border-top: 8px solid var(--amber); position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 120% at 0% 100%, rgba(255, 255, 255, .06), transparent 60%); pointer-events: none; }
.cta-inner { position: relative; display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; justify-content: space-between; align-items: center; padding-top: 3.5rem; padding-bottom: 3.5rem; }
.cta-title { color: #fff; font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.3rem); margin-bottom: .5rem; }
.cta-text { margin: 0; font-size: 1.1rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- Contact ---------- */
.contact-card { height: 100%; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.5rem; background: #fff; }
.contact-card h3 { font-size: 1.05rem; margin: .75rem 0 .35rem; }
.contact-card address { margin: 0; }
.contact-card a { font-weight: 600; word-break: break-word; }
.contact-icon { width: 46px; height: 46px; border-radius: 50%; background: var(--birch); color: var(--chalk); display: grid; place-items: center; font-size: 1.1rem; }
.form-panel { background: var(--birch-2); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.25rem, 1rem + 2vw, 2.5rem); }
.form-label { font-weight: 600; color: var(--chalk); }
.form-control, .form-select { border-color: #cfc6b6; padding: .65rem .85rem; background-color: #fff; }
.form-control:hover, .form-select:hover { border-color: var(--steel); }
.form-check-input { border-color: #8f8778; width: 1.2em; height: 1.2em; }
.form-check-input:checked { background-color: var(--chalk); border-color: var(--chalk); }
.form-check-label { padding-left: .25rem; }
.invalid-feedback { color: #b02a1a; font-weight: 600; }
.form-control.is-invalid, .form-check-input.is-invalid { border-color: #b02a1a; }
.map-frame { position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 21 / 8; min-height: 340px; background: var(--birch-2); }
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 1.5rem; gap: .75rem; }
.map-placeholder > i { font-size: 2.5rem; color: var(--chalk); }
.map-placeholder p { max-width: 52ch; margin: 0; color: var(--muted); }

/* ---------- Inquiry ---------- */
.steps { list-style: none; counter-reset: step; display: flex; flex-wrap: wrap; gap: .75rem 2rem; padding: 0; margin: 0 0 2.5rem; }
.steps li { counter-increment: step; display: flex; align-items: center; gap: .6rem; color: var(--muted); font-weight: 600; }
.steps li::before { content: counter(step); width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--line); background: #fff; color: var(--muted); }
.steps li.is-current { color: var(--chalk); }
.steps li.is-current::before { background: var(--amber); border-color: var(--amber); color: var(--ink); }
.steps li.is-done::before { content: "✓"; background: var(--chalk); border-color: var(--chalk); color: #fff; }
.inquiry-lines { list-style: none; padding: 0; margin: 0 0 1.25rem; border-top: 1px solid var(--line); }
.inquiry-line { display: grid; grid-template-columns: 84px 1fr 110px 44px; gap: 1rem; align-items: center; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.line-media { width: 84px; height: 84px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--steel); font-size: 1.5rem; }
.line-media img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.line-name { font-size: 1.05rem; margin: 0; }
.line-name a { color: var(--chalk); }
.line-variant { margin: .2rem 0 0; color: var(--muted); font-size: .92rem; }
.line-qty .form-label { margin-bottom: .15rem; }
@media (max-width: 575.98px) {
  .inquiry-line { grid-template-columns: 64px 1fr 44px; }
  .line-media { width: 64px; height: 64px; }
  .line-qty { grid-column: 2 / 3; }
  .line-remove { grid-row: 1; grid-column: 3; }
}
.done-panel { max-width: 640px; margin: 0 auto; text-align: center; padding: 2rem 0; }
.done-icon { font-size: 3.5rem; color: var(--chalk); display: block; margin-bottom: .5rem; }
.done-icon.is-muted { color: var(--steel); }
.done-panel .lead { margin-left: auto; margin-right: auto; }
.done-panel .search-form { margin-left: auto; margin-right: auto; }
.ref-code { display: inline-block; background: var(--birch); border-radius: var(--radius); padding: .5rem 1rem; }
.result-list { list-style: none; padding: 0; }
.result-list li { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.result-list a { font-weight: 700; font-size: 1.1rem; }
.result-list p { margin: .25rem 0 0; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--chalk); color: var(--chalk-ink); padding: 4rem 0 0; border-top: 8px solid var(--amber); }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: #f4cf86; text-decoration: underline; }
.footer-logo .logo-svg { height: 52px; }
.site-footer .logo-word { fill: #fff; }
.site-footer .logo-tag { fill: var(--amber); }
.footer-about { margin-top: 1.25rem; max-width: 38ch; }
.footer-title { color: var(--amber); font-size: 1.05rem; font-family: var(--font-body); font-weight: 700; margin-bottom: 1rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { padding: .25rem 0; }
.footer-links li.sub { padding-left: 1rem; }
.footer-contact { font-style: normal; line-height: 1.9; }
.footer-contact i { width: 1.25rem; color: var(--amber); }
.footer-text p { margin-bottom: .5rem; }
.social-list { list-style: none; display: flex; gap: .5rem; padding: 0; margin: 1.25rem 0 0; }
.social-list a { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .35); }
.social-list a:hover { background: var(--amber); color: var(--ink); border-color: var(--amber); text-decoration: none; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; align-items: center; margin-top: 3rem; padding: 1.5rem 0; border-top: 1px solid rgba(255, 255, 255, .15); font-size: .92rem; }
.legal-links { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; padding: 0; margin: 0; }
.legal-links .link-button { color: #fff; }
.to-top { position: fixed; right: 1rem; bottom: 1rem; z-index: 1020; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--amber); color: var(--ink); box-shadow: var(--shadow); }
.to-top[hidden] { display: none; }
.to-top:hover { background: #e3aa45; color: var(--ink); }

/* ---------- Cookie banner ---------- */
.cookie-banner { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 1080; max-width: 640px; background: #fff; border: 1px solid var(--line); border-top: 6px solid var(--amber); border-radius: var(--radius-lg); box-shadow: 0 24px 60px -20px rgba(30, 59, 51, .45); }
.cookie-banner[hidden] { display: none; }
.cookie-inner { padding: 1.25rem 1.5rem 1.5rem; }
.cookie-title { font-size: 1.2rem; margin-bottom: .5rem; }
.cookie-title i { color: var(--amber-deep); }
.cookie-options { margin: 1rem 0; padding: 1rem; background: var(--birch-2); border-radius: var(--radius); }
.cookie-options .form-check + .form-check { margin-top: .75rem; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.cookie-actions .btn { flex: 1 1 auto; }

/* ---------- Lightbox ---------- */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 94vh; }
.lightbox::backdrop { background: rgba(14, 28, 24, .9); }
.lightbox img { display: block; max-width: 92vw; max-height: 84vh; width: auto; height: auto; border-radius: var(--radius); background: #fff; }
.lightbox p { color: #fff; text-align: center; margin: .75rem auto 0; }
.lightbox-close { position: fixed; top: 1rem; right: 1rem; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--amber); color: var(--ink); font-size: 1.25rem; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .carousel-item { transition: none !important; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .cookie-banner, .to-top, .hero-controls, .product-actions, .inquiry-box { display: none !important; }
  body { font-size: 11pt; }
  a { color: #000; }
}

/* ---------- Toast (added to inquiry) ---------- */
.educa-toast { position: fixed; left: 50%; bottom: 1.25rem; z-index: 1090; transform: translate(-50%, 150%); display: flex; gap: 1rem; align-items: center; background: var(--chalk); color: #fff; padding: .85rem 1.25rem; border-radius: var(--radius); border-left: 6px solid var(--amber); box-shadow: var(--shadow); transition: transform .3s ease; max-width: calc(100vw - 2rem); }
.educa-toast.is-visible { transform: translate(-50%, 0); }
.educa-toast.is-error { border-left-color: #e0705f; }
.educa-toast a { color: #f4cf86; font-weight: 700; white-space: nowrap; }
.cat-column .link-arrow { align-self: flex-start; justify-self: start; }
@media (max-width: 991.98px) {
  .navbar-nav .nav-link.active::after { left: .9rem; right: auto; width: 32px; }
}
@media (max-width: 575.98px) {
  .logo-svg { height: 34px; }
  .brand { margin-right: .25rem; min-width: 0; flex-shrink: 1; }
  .header-actions { gap: .1rem; flex-shrink: 0; }
  .btn-inquiry { padding: .5rem .7rem; }
  .board-title { font-size: 1.75rem; }
  .board-text { font-size: 1rem; }
}
.educa-toast { width: max-content; }
.educa-toast span { white-space: nowrap; }
@media (max-width: 420px) { .educa-toast span { white-space: normal; } }
