:root {
  --blue: #1ba1e2;
  --blue-ink: #096693;
  --green: #154734;
  --green-soft: #e8f1ec;
  --ink: #1f2a2e;
  --muted: #5b6a70;
  --line: #dfe6e8;
  --bg: #ffffff;
  --bg-alt: #f5f8f7;
  --radius: 14px;
  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
}

* { box-sizing: border-box; }
/* Component display rules (e.g. .order-panel's flex) must never override the hidden attribute */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  font: 16px/1.65 Poppins, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-ink); }
h1, h2, h3, h4 { font-family: Comfortaa, Poppins, system-ui, sans-serif; line-height: 1.2; color: var(--green); margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.sr, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip:focus { position: fixed; top: 8px; left: 8px; z-index: 100; background: #fff; padding: 8px 12px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

/* Buttons */
.btn {
  display: inline-block; padding: .75em 1.6em; border-radius: 100px;
  background: var(--blue-ink); color: #fff; font-weight: 600; text-decoration: none;
  border: 2px solid var(--blue-ink); transition: background .15s, color .15s;
}
.btn:hover { background: var(--green); border-color: var(--green); }
.btn-outline { background: transparent; color: var(--blue-ink); }
.btn-outline:hover { color: #fff; }
.btn-light { background: #fff; color: var(--green); border-color: #fff; }
.btn-light:hover { background: var(--green-soft); border-color: var(--green-soft); color: var(--green); }
.btn-sm { padding: .45em 1.1em; font-size: .9rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.2em; }

/* Member strip */
.member-strip { background: var(--green); color: #fff; font-size: .82rem; text-align: center; padding-block: 6px; }
.member-strip a { color: #cfe9f7; }

/* Order list */
.product-order { display: flex; gap: 8px; margin-bottom: 10px; }
.product-order .btn { flex: 1; padding-inline: 1em; }
.qty { width: 64px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
.order-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 80; }
.order-panel { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: #fff; z-index: 90; display: flex; flex-direction: column; box-shadow: -10px 0 30px rgba(0,0,0,.15); }
.order-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.order-head h2 { margin: 0; font-size: 1.4rem; }
.order-close { width: 44px; height: 44px; border: 0; background: none; font-size: 1.8rem; cursor: pointer; color: var(--ink); }
.order-empty { padding: 20px; color: var(--muted); }
.order-items { list-style: none; margin: 0; padding: 0 20px; overflow-y: auto; flex: 1; }
.order-item { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.order-item span { display: block; font-size: .8rem; color: var(--muted); }
.order-remove, .order-clear { background: none; border: 0; color: #a3261c; cursor: pointer; font: inherit; font-size: .85rem; text-decoration: underline; padding: 8px 4px; }
.order-foot { padding: 16px 20px 24px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.order-member, .order-note { font-size: .85rem; color: var(--muted); margin: 0; }
.order-country { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-weight: 600; font-size: .9rem; }
.order-store { flex: 1; max-width: 230px; padding: 8px; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-weight: 400; }
.order-checkout:disabled { opacity: .5; cursor: not-allowed; }
.footer-member { font-size: .88rem; line-height: 1.6; }
.strip-short { display: none; }
.order-fab { display: none; }

@media (max-width: 960px) {
  .site-nav .order-open { display: none; }
  .order-fab {
    display: block; position: fixed; right: 16px; bottom: 16px; z-index: 70;
    padding: 12px 20px; border: 0; border-radius: 100px; background: var(--blue-ink); color: #fff;
    font: 600 .95rem Poppins, sans-serif; box-shadow: 0 6px 20px rgba(0,0,0,.25); cursor: pointer;
  }
  .site-footer { padding-bottom: 88px; } /* keep the floating button off the last footer line */
  .site-footer li a, .site-footer h3 a, .footer-member a { display: inline-block; padding-block: 8px; }
  .site-footer li { margin-bottom: 0; }
}
@media (max-width: 640px) {
  .strip-long { display: none; }
  .strip-short { display: inline; }
  .member-strip a { display: inline-block; padding-block: 4px; }
  .product-actions a { display: inline-block; padding-block: 8px; }
}

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(6px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--green); font-family: Comfortaa, sans-serif; font-weight: 700; line-height: 1.2; }
.brand small { display: block; font-family: Poppins, sans-serif; font-weight: 400; font-size: .75rem; color: var(--muted); }
.site-nav { display: flex; align-items: center; gap: 20px; }
.site-nav > ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.site-nav li > a, .site-nav .menu-toggle, .site-nav .btn { white-space: nowrap; }
.site-search { flex: 0 1 160px; min-width: 96px; }
.site-search input { width: 100%; padding: 7px 12px; border: 1px solid var(--line); border-radius: 100px; font: inherit; font-size: .9rem; background: #fff; }
/* Not enough room beside the full nav on small laptops; the products page keeps its own search box */
@media (min-width: 961px) and (max-width: 1179px) { .site-search { display: none; } }
@media (max-width: 960px) { .site-search input { width: 100%; padding: 10px 14px; margin-block: 8px; } }
.site-nav li { position: relative; }
.site-nav li > a, .menu-toggle {
  display: block; padding: 10px 12px; font: 500 .95rem Poppins, sans-serif; color: var(--ink);
  text-decoration: none; background: none; border: 0; cursor: pointer; border-radius: 8px;
}
.menu-toggle::after { content: ""; display: inline-block; margin-left: 6px; border: 4px solid transparent; border-top-color: currentColor; transform: translateY(2px); }
.site-nav li > a:hover, .menu-toggle:hover, .site-nav .active > a, .site-nav .active > .menu-toggle { color: var(--blue-ink); background: var(--bg-alt); }
.submenu { list-style: none; margin: 0; padding: 6px; position: absolute; top: 100%; left: 0; min-width: 220px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.08); display: none; }
.submenu a { display: block; padding: 8px 12px; border-radius: 6px; text-decoration: none; color: var(--ink); }
.submenu a:hover { background: var(--bg-alt); color: var(--blue-ink); }
.has-menu.open .submenu { display: block; }
@media (hover: hover) and (min-width: 961px) { .has-menu:hover .submenu, .has-menu:focus-within .submenu { display: block; } }
.nav-toggle { display: none; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; }
.bars, .bars::before, .bars::after { display: block; width: 24px; height: 2px; background: var(--ink); position: relative; margin: auto; transition: transform .2s; }
.bars::before, .bars::after { content: ""; position: absolute; }
.bars::before { top: -7px; } .bars::after { top: 7px; }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 8px var(--gutter) 20px; max-height: calc(100vh - 72px); overflow-y: auto; }
  .site-nav.open { display: flex; }
  .site-nav > ul { flex-direction: column; }
  .submenu { position: static; box-shadow: none; border: 0; padding: 0 0 0 12px; }
  .site-nav .btn { align-self: flex-start; }
}

/* Sections */
section { padding-block: clamp(48px, 8vw, 88px); }
.alt { background: var(--bg-alt); }
.page-title { padding-block: clamp(40px, 6vw, 64px) 0; }
.page-title p { color: var(--muted); max-width: 70ch; }
.lead { font-size: 1.1rem; color: var(--muted); }
.eyebrow { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--blue-ink); font-weight: 600; margin-bottom: .4em; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.split.reverse > :first-child { order: 2; }
.split img { border-radius: var(--radius); width: 100%; }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } .split.reverse > :first-child { order: 0; } }
.checks { list-style: none; padding: 0; margin: 0 0 1em; }
.checks li { position: relative; padding-left: 30px; margin-bottom: .6em; font-weight: 500; }
.checks li::before { content: ""; position: absolute; left: 0; top: .35em; width: 18px; height: 18px; border-radius: 50%; background: var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23154734' stroke-width='2'/%3E%3C/svg%3E") center/12px no-repeat; }
blockquote { margin: 1.2em 0 0; padding: .2em 0 .2em 1em; border-left: 4px solid var(--blue); font-style: italic; color: var(--green); }
blockquote cite { display: block; font-style: normal; font-size: .9rem; color: var(--muted); margin-top: .4em; }

/* Hero */
.hero { position: relative; color: #fff; background: var(--green) center/cover no-repeat; padding-block: clamp(90px, 16vw, 180px); }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,40,28,.85), rgba(10,40,28,.35)); }
.hero .wrap { position: relative; }
/* Comfortaa tops out at 700; a same-color stroke makes the hero heading heavier */
.hero h1 { color: #fff; max-width: 16ch; font-weight: 700; -webkit-text-stroke: .045em currentColor; paint-order: stroke fill; text-shadow: 0 2px 10px rgba(0, 0, 0, .35); letter-spacing: .01em; }
.typed { color: var(--blue); display: inline-block; min-height: 1.2em; }
.typed::after { content: "|"; margin-left: 2px; font-weight: 400; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .typed::after { animation: none; } }
.hero p { max-width: 46ch; font-size: 1.15rem; }

/* Cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.card img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.card-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.card-body .btn { margin-top: auto; align-self: flex-start; }

/* Featured product */
.feature { display: grid; grid-template-columns: minmax(200px, 360px) 1fr; gap: 40px; align-items: center; }
@media (max-width: 700px) { .feature { grid-template-columns: 1fr; } .feature img { max-width: 280px; } }

/* Products */
.shop { display: grid; grid-template-columns: 1fr 240px; gap: 32px; align-items: start; }
.filters { position: sticky; top: 96px; display: flex; flex-wrap: wrap; gap: 8px; }
.filters h2 { font-size: 1rem; width: 100%; margin: 0 0 4px; }
@media (max-width: 900px) { .shop { grid-template-columns: 1fr; } .filters { position: static; order: -1; } }
.product-search { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; margin-bottom: 4px; }
.page-store { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; background: #fff; }
.store-note { width: 100%; margin: 4px 0 12px; font-size: .85rem; color: var(--muted); }
.order-item .order-warn { display: block; margin-top: 2px; font-size: .8rem; color: #a3261c; }
.order-item.is-unavailable strong { text-decoration: line-through; }
.search-count { width: 100%; margin: 0 0 8px; font-size: .85rem; color: var(--muted); min-height: 1.2em; }
.no-results { grid-column: 1 / -1; padding: 24px; border: 1px dashed var(--line); border-radius: var(--radius); text-align: center; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--blue-ink); text-decoration: underline; cursor: pointer; }
.chip { font: 500 .85rem Poppins, sans-serif; padding: 6px 14px; border-radius: 100px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; text-decoration: none; display: inline-block; }
.chip:hover { border-color: var(--blue-ink); color: var(--blue-ink); }
.chip.is-on { background: var(--green); border-color: var(--green); color: #fff; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; }
.product { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; display: flex; flex-direction: column; }
.product img { aspect-ratio: 1; object-fit: contain; padding: 16px; background: var(--bg-alt); border-radius: var(--radius) var(--radius) 0 0; }
.product-body { padding: 16px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.product h3 { margin-bottom: .3em; }
.product-sub { font-size: .9rem; color: var(--muted); }
.product details { margin-bottom: 14px; font-size: .9rem; }
.product summary { cursor: pointer; font-weight: 600; color: var(--blue-ink); }
.product details ul { padding-left: 1.1em; margin: .5em 0 0; }
.product-actions { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: .85rem; }
.product[hidden] { display: none; }
.acc { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; background: #fff; }
.acc summary { cursor: pointer; padding: 16px 20px; font: 700 1.1rem Comfortaa, sans-serif; color: var(--green); }
.acc-body { padding: 0 20px 20px; }

/* Downloads */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: .92rem; }
th, td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: center; }
thead th { background: var(--green); color: #fff; font-weight: 600; }
tbody th { text-align: left; font-weight: 600; }
tbody tr:nth-child(even) { background: var(--bg-alt); }
.pdf { display: inline-block; padding: 3px 10px; border-radius: 6px; background: #fdecec; color: #a3261c; font-weight: 600; font-size: .8rem; text-decoration: none; }
.pdf:hover { background: #a3261c; color: #fff; }
.na { color: #b5bfc2; }
.dl-section { padding-block: 32px; }

/* Testimonials */
.quote-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.quote { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin: 0; }
.quote p { font-style: italic; }
.quote figcaption { font-weight: 600; color: var(--green); }
.disclaimer { font-size: .85rem; color: var(--muted); font-style: italic; }
.video { position: relative; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.video-grid h3 { margin-top: .8em; margin-bottom: .2em; }
.carousel { position: relative; }
.slides { display: grid; }
.slide { grid-area: 1 / 1; display: grid; grid-template-columns: 180px 1fr; gap: 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; visibility: hidden; opacity: 0; transition: opacity .25s; }
.slide.is-active { visibility: visible; opacity: 1; }
.slide img { border-radius: 50%; width: 180px; height: 180px; object-fit: cover; }
@media (max-width: 640px) { .slide { grid-template-columns: 1fr; } .slide img { width: 120px; height: 120px; } }
.carousel-controls { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 16px; }
.carousel-controls button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: 1.2rem; color: var(--green); }
.carousel-controls button:hover { background: var(--green); color: #fff; }

/* CTA band */
.cta { background: var(--green); color: #fff; }
.cta h2 { color: #fff; }
.cta a:not(.btn) { color: #cfe9f7; }

/* Blog */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 24px; }
.post { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; display: flex; flex-direction: column; }
.post-img img, .post-img-blank { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.post-img-blank { background: linear-gradient(135deg, var(--green), var(--blue-ink)); }
.post-body { padding: 16px 20px 20px; }
.post-body h3 { font-size: 1.15rem; }
.post-body h3 a { color: inherit; text-decoration: none; }
.post-body h3 a:hover { color: var(--blue-ink); text-decoration: underline; }
.post-body p:last-child { margin: 0; font-size: .92rem; color: var(--muted); }
.post-more { text-align: center; margin-top: 32px; }
.social-links { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; padding: 0; }
.site-footer .social-links a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 10px; border-radius: 100px; background: rgba(255,255,255,.12); color: #fff; text-decoration: none; font-size: .9rem; }
.site-footer .social-links a:hover { background: rgba(255,255,255,.22); }

/* Footer */
.site-footer { background: #0f2e22; color: #d6e2dc; padding-block: 56px 24px; margin-top: 0; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer h3 { font-size: 1rem; margin-bottom: .6em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .4em; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 28px; }
.footer-brand img { background: #fff; border-radius: 12px; padding: 6px; margin-bottom: 12px; }
.footer-brand p { font-size: .9rem; }
.footer-legal { border-top: 1px solid rgba(255,255,255,.15); margin-top: 36px; padding-top: 20px; font-size: .8rem; color: #9fb3a9; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
