/* NovaAroma public theme — navy #012B4B / cyan #29B6E8 (brand palette from
   the PIM's novaaroma templates), Inter body + Playfair Display headings. */

:root {
  --na-navy: #012B4B;
  --na-navy-soft: #0d3f66;
  --na-cyan: #29B6E8;
  --na-cyan-dark: #1a92c0;
  --na-bg: #ffffff;
  --na-bg-alt: #f2f7fa;
  --na-text: #22313f;
  --na-muted: #64748b;
  --na-border: #dbe6ee;
  --na-radius: 10px;
  --na-max: 1140px;
}

* { box-sizing: border-box; }

/* Full-bleed blocks (hero video, carousel) span 100vw; clip instead of
   letting them create a horizontal scrollbar on small screens. */
html, body { overflow-x: clip; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: var(--na-text);
  background: var(--na-bg);
  line-height: 1.65;
  font-size: 16px;
}

h1, h2, h3 {
  font-family: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--na-navy);
  line-height: 1.25;
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(1.65rem, 4.5vw + 0.5rem, 2.1rem); }
h2 { font-size: clamp(1.3rem, 2.5vw + 0.6rem, 1.5rem); margin-top: 1.6em; }
h3 { font-size: 1.1rem; }

a { color: var(--na-cyan-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; border-radius: var(--na-radius); }

.container { max-width: var(--na-max); margin: 0 auto; padding: 0 1.25rem; }
.container-narrow { max-width: 820px; }

.muted { color: var(--na-muted); }
.lead { font-size: 1.1rem; color: var(--na-muted); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  clip: rect(0 0 0 0); overflow: hidden;
}

/* Header — white, single line: logo + menu buttons + search */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--na-border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; padding-top: 0.6rem; padding-bottom: 0.5rem;
}
.logo-link { display: inline-flex; align-items: center; }
.logo-img { width: 150px; height: auto; border-radius: 0; display: block; }
.logo {
  font-family: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  font-size: 1.5rem; font-weight: 700; color: #fff;
}
.logo span { color: var(--na-cyan); }
.logo:hover { text-decoration: none; }
.main-nav { display: flex; align-items: center; gap: 0.5rem; flex: 1 1 auto; flex-wrap: wrap; }
/* L1 entries as pill buttons; per-button colours come as inline styles set in
   the admin (Apparence > Menu principal) and override these defaults. */
.main-nav > a, .nav-item > a {
  background: var(--na-bg-alt); color: var(--na-navy);
  font-weight: 600; font-size: 0.93rem; line-height: 1;
  padding: 0.5rem 0.95rem; border-radius: 999px;
}
.main-nav > a:hover, .nav-item > a:hover {
  filter: brightness(0.94); text-decoration: none;
}

/* L1/L2 dropdown menu */
.nav-item { position: relative; display: flex; }
.nav-item > a { display: inline-flex; align-items: center; gap: 0.3rem; }
.nav-caret { font-size: 0.6rem; line-height: 1; transform: translateY(1px); }
.sub-menu {
  display: none; position: absolute; top: 100%; left: 0; z-index: 70;
  min-width: 230px; padding: 0.4rem;
  background: #fff; border: 1px solid var(--na-border);
  border-radius: var(--na-radius); box-shadow: 0 10px 30px rgba(1, 43, 75, 0.14);
}
/* Invisible bridge so the pointer can cross the gap under the L1 link
   without the :hover dropdown closing. */
.sub-menu::before {
  content: ''; position: absolute; top: -0.8rem; left: 0; right: 0; height: 0.8rem;
}
.sub-menu a {
  display: block; padding: 0.45rem 0.7rem; border-radius: 6px;
  color: var(--na-navy); font-weight: 500; font-size: 0.9rem;
}
.sub-menu a:hover { background: var(--na-bg-alt); color: var(--na-cyan-dark); text-decoration: none; }
.nav-item.open > .sub-menu { display: block; }
.nav-item.open .nav-caret { transform: translateY(1px) rotate(180deg); }
@media (min-width: 761px) {
  .nav-item:hover > .sub-menu, .nav-item:focus-within > .sub-menu { display: block; }
}

/* Mobile header: compact logo, nav becomes a single scrollable row so the
   header stays short instead of wrapping onto 3–4 lines. */
@media (max-width: 760px) {
  .logo-img { width: 110px; }
  .header-inner { padding-top: 0.45rem; padding-bottom: 0.35rem; }
  /* Logo + recherche sur la ligne 1, le menu redescend en rangée défilante. */
  .main-nav {
    order: 3; flex: 1 1 100%;
    flex-wrap: nowrap; overflow-x: auto;
    gap: 0.5rem; padding-bottom: 0.45rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .main-nav::-webkit-scrollbar { display: none; }
  .main-nav a { white-space: nowrap; }
  /* Sub-menus drop as a full-width panel under the header (the nav row
     scrolls horizontally, so item-relative dropdowns would be clipped). */
  .site-header { position: relative; }
  .nav-item { position: static; }
  .sub-menu {
    left: 0; right: 0; top: 100%;
    border-radius: 0 0 var(--na-radius) var(--na-radius);
    box-shadow: 0 14px 24px rgba(1, 43, 75, 0.18);
  }
  .sub-menu::before { content: none; }
}

/* Hero */
.hero {
  background: linear-gradient(160deg, var(--na-navy) 0%, var(--na-navy-soft) 100%);
  color: #fff; padding: clamp(2rem, 6vw, 3.5rem) 0;
}
.hero h1 { color: #fff; font-size: clamp(1.8rem, 5vw + 0.5rem, 2.4rem); }
.hero .lead { color: #c4d9ea; max-width: 640px; }

/* Hero (light, white background) */
.hero-light {
  background: #fff;
  border-bottom: 1px solid var(--na-border);
  color: var(--na-text);
  padding: clamp(1.8rem, 5vw, 3rem) 0 clamp(1.5rem, 4vw, 2.5rem);
}
.hero-light h1 { color: var(--na-navy); font-size: clamp(1.7rem, 4.5vw + 0.5rem, 2.2rem); }
.hero-light .lead { color: var(--na-muted); max-width: 680px; font-size: 1.05rem; }
.hero-grid {
  display: grid; grid-template-columns: 1fr auto; gap: 2.5rem; align-items: center;
}
.hero-emblem { width: 220px; height: 220px; }
@media (max-width: 760px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-emblem { display: none; }
}

/* Home sections */
.home-section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 0.25rem 1rem; flex-wrap: wrap;
}
.home-section-head h2 { margin-top: 0; }
.home-section-head h2 a { color: var(--na-navy); }
.home-section-head h2 a:hover { color: var(--na-cyan-dark); text-decoration: none; }
.see-all { font-size: 0.9rem; font-weight: 600; white-space: nowrap; }
.card-grid-4 { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
@media (min-width: 900px) { .card-grid-4 { grid-template-columns: repeat(4, 1fr); } }

/* Sections & cards */
.home-section { margin: 2.5rem auto; }
.page-head { margin: 1.5rem 0 2rem; }
.card-grid {
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  margin: 1.5rem 0;
}
.card {
  border: 1px solid var(--na-border);
  border-radius: var(--na-radius);
  padding: 1rem;
  background: #fff;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.card:hover { box-shadow: 0 6px 18px rgba(1, 43, 75, 0.12); transform: translateY(-2px); }
.card a { color: inherit; text-decoration: none; display: block; }
.card h3 { margin: 0.6rem 0 0.3rem; }
.card img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.product-card img { aspect-ratio: 1; }
.card-sub { color: var(--na-muted); font-size: 0.9rem; margin: 0.2rem 0; }
.card-price { color: var(--na-navy); font-weight: 600; margin: 0.4rem 0 0; }
/* Seconde photo révélée au survol (cartes produit) */
.card-media { position: relative; display: block; }
.card-media .img-alt {
  position: absolute; inset: 0; height: 100%;
  opacity: 0; transition: opacity 0.2s ease;
}
.product-card:hover .card-media .img-alt,
.product-card:focus-within .card-media .img-alt { opacity: 1; }
/* Boutons Fiche / Acheter */
.card-actions { display: flex; gap: 0.5rem; margin-top: 0.8rem; }
.card-actions .btn-card {
  flex: 1; text-align: center; font-size: 0.85rem;
  padding: 0.45rem 0.6rem;
}
/* .card a { color: inherit } est plus spécifique que .btn : on refixe les
   couleurs des boutons de carte explicitement. */
.card a.btn-card { color: #fff; }
.card a.btn-card.btn-outline { color: var(--na-navy); }
.card a.btn-card:hover, .card a.btn-card.btn-outline:hover { color: #fff; }
.card-label {
  display: inline-block; font-size: 0.75rem; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--na-cyan-dark); font-weight: 600;
}

/* Chips */
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0; margin: 0.8rem 0; }
.chips a {
  display: inline-block; padding: 0.35rem 0.9rem;
  background: var(--na-bg-alt); border: 1px solid var(--na-border);
  border-radius: 999px; color: var(--na-navy); font-size: 0.9rem; font-weight: 500;
}
.chips a:hover { background: var(--na-cyan); border-color: var(--na-cyan); color: #fff; text-decoration: none; }

/* Breadcrumb */
.breadcrumb { font-size: 0.85rem; color: var(--na-muted); margin: 1rem 0; }
.breadcrumb a { color: var(--na-muted); }

/* Product page */
.product-hero {
  display: grid; gap: 2rem; grid-template-columns: minmax(280px, 480px) 1fr;
  margin-bottom: 2rem; align-items: start;
}
@media (max-width: 760px) { .product-hero { grid-template-columns: 1fr; } }
.product-gallery img { width: 100%; }
.thumbs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.5rem; }
.thumbs img { width: 90px; height: 90px; object-fit: cover; }
.badges { list-style: none; display: flex; gap: 0.5rem; flex-wrap: wrap; padding: 0; margin: 0.8rem 0; }
.badges li {
  font-size: 0.8rem; font-weight: 600; color: var(--na-navy);
  background: #e5f6fd; border-radius: 999px; padding: 0.25rem 0.75rem;
}
.sku-table { border-collapse: collapse; margin: 1rem 0; min-width: 260px; }
.sku-table td { border-bottom: 1px solid var(--na-border); padding: 0.5rem 1rem 0.5rem 0; }
.btn {
  display: inline-block; background: var(--na-cyan); color: #fff;
  font-weight: 600; padding: 0.7rem 1.4rem; border-radius: 999px;
  border: none; cursor: pointer;
}
.btn:hover { background: var(--na-cyan-dark); color: #fff; text-decoration: none; }
.btn-buy { margin-top: 1rem; font-size: 1.05rem; }

.product-section { margin: 2.5rem 0; }
.rich-text p { margin: 0.8em 0; }
.rich-text ul { padding-left: 1.2em; }
/* PIM-pushed HTML can contain tables and embeds wider than a phone screen:
   tables scroll inside themselves, embeds shrink to fit. */
.rich-text table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.rich-text td, .rich-text th { border: 1px solid var(--na-border); padding: 0.4rem 0.7rem; }
.rich-text iframe, .rich-text video, .rich-text embed, .rich-text object { max-width: 100%; }
.rich-text iframe[src*="youtube"], .rich-text iframe[src*="vimeo"] {
  width: 100%; aspect-ratio: 16 / 9; height: auto;
}
.precautions {
  background: #fff8ed; border: 1px solid #f3dfb8;
  border-radius: var(--na-radius); padding: 1rem 1.4rem;
}
.disclaimer { font-size: 0.85rem; color: var(--na-muted); margin-top: 2rem; }
.protocol {
  background: var(--na-bg-alt); border-radius: var(--na-radius);
  padding: 1rem 1.4rem;
}

/* Tabs (shared component: product tabs, indication tabs, plant tabs) */
.tabs .tab-bar {
  display: flex; gap: 0.25rem; overflow-x: auto;
  border-bottom: 2px solid var(--na-border); margin-bottom: 1.25rem;
  -webkit-overflow-scrolling: touch; scrollbar-width: thin;
}
.tab-btn {
  background: none; border: none; cursor: pointer;
  font: 600 0.95rem "Plus Jakarta Sans", "Inter", sans-serif;
  color: var(--na-muted); padding: 0.7rem 1rem; white-space: nowrap;
  border-bottom: 3px solid transparent; margin-bottom: -2px;
}
.tab-btn:hover { color: var(--na-navy); }
.tab-btn.active { color: var(--na-navy); border-bottom-color: var(--na-cyan); }
.tab-panel.hidden { display: none; }
.tab-panel img { max-width: 100%; height: auto; }
.tab-panel .page-width { max-width: 100%; padding: 0; }

/* PIM-pushed tab layout (Shopify-style markup): the plant tab's image/text
   grid becomes a real 50/50 split — photo left, text right, stacked on
   mobile. The grid gap replaces the markup's inline padding-left. */
.tab-panel .grid--2-col-tablet {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1.75rem; align-items: start;
}
.tab-panel .grid--2-col-tablet .grid__item { min-width: 0; padding-left: 0 !important; }
@media (max-width: 760px) {
  .tab-panel .grid--2-col-tablet { grid-template-columns: 1fr; gap: 1rem; }
}

/* Gallery built by JS out of a multi-photo PIM tab cell: first photo large,
   the rest as clickable thumbnails (same look as the product hero). */
.pim-gallery > img { width: 100%; }
.thumbs img { cursor: pointer; border: 2px solid transparent; }
.thumbs img:hover { border-color: var(--na-cyan); }

/* Image carousel (distillation photos): centre mode — the current slide is
   full size in the middle, its neighbours peek on both sides slightly smaller
   (.is-current is kept up to date by the scroll handler in base.html). */
.na-carousel { position: relative; margin: 1rem 0; }
.na-carousel-track {
  --slide-w: 64%;
  display: flex; overflow-x: auto;
  scroll-snap-type: x mandatory; scrollbar-width: none;
  padding-inline: calc((100% - var(--slide-w)) / 2);
  border-radius: var(--na-radius); background: var(--na-bg-alt);
}
.na-carousel-track::-webkit-scrollbar { display: none; }
.na-carousel-slide {
  flex: 0 0 var(--slide-w); min-width: var(--slide-w); scroll-snap-align: center;
  display: flex; align-items: center; justify-content: center;
  height: clamp(260px, 50vw, 440px); padding: 0.75rem;
  transform: scale(0.86); transition: transform 0.25s ease;
}
.na-carousel-slide.is-current { transform: scale(1); }
.na-carousel-slide img {
  max-height: 100%; max-width: 100%; width: auto; height: auto;
  object-fit: contain;
}
@media (max-width: 700px) { .na-carousel-track { --slide-w: 82%; } }
.na-carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 50%; border: none;
  display: flex; align-items: center; justify-content: center;
  background: rgba(1, 43, 75, 0.55); color: #fff;
  font-size: 1.1rem; line-height: 1; cursor: pointer;
}
.na-carousel-btn:hover { background: var(--na-navy); }
.na-carousel-prev { left: 0.6rem; }
.na-carousel-next { right: 0.6rem; }
.na-carousel-dots { display: flex; gap: 0.45rem; justify-content: center; margin: 0.6rem 0 0; }
.na-carousel-dot {
  width: 9px; height: 9px; border-radius: 50%; border: none; padding: 0;
  background: var(--na-border); cursor: pointer;
}
.na-carousel-dot.active { background: var(--na-cyan); }

/* Page header with the page's icon left of the title */
.page-head-icon { display: flex; align-items: center; gap: 1.25rem; }
.page-icon {
  width: 96px; height: 96px; flex: 0 0 96px;
  /* Pictograms fill their canvas edge to edge: contain + padding keeps the
     square artwork inside the circular mask (inscribed square of 96px ≈ 68px). */
  object-fit: contain; padding: 14px; border-radius: 50%;
  border: 1px solid var(--na-border); background: #fff;
}
@media (max-width: 560px) { .page-icon { width: 64px; height: 64px; flex-basis: 64px; padding: 10px; } }

/* Recette page: indication panel (icon + presentation, as on Shopify) */
.indication-panel {
  display: flex; gap: 1.25rem; align-items: flex-start;
  background: var(--na-bg-alt); border-radius: var(--na-radius);
  padding: 1.25rem 1.4rem; margin: 1.5rem 0;
}
/* The icon is wrapped in an <a>, so the anchor (not the img) is the flex
   item: forbid it from shrinking or the icon collapses next to long text. */
.indication-panel > a { flex: 0 0 auto; line-height: 0; }
.indication-panel h2 { margin: 0 0 0.5rem; }
.indication-panel h2 a { color: var(--na-navy); }
@media (max-width: 560px) { .indication-panel { flex-direction: column; } }

/* Plant page: distillation gallery */
.distillation-gallery { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.distillation-gallery img {
  height: 260px; width: auto; max-width: 100%;
  object-fit: contain; border-radius: var(--na-radius); background: #fff;
}

/* Recette 1-2-3 list: one vertical row per recette, small HE/HA icons */
.recette-list { list-style: none; padding: 0; margin: 1rem 0; }
.recette-row a {
  display: flex; align-items: center; gap: 1rem;
  padding: 0.7rem 0.9rem; margin: 0.4rem 0;
  border: 1px solid var(--na-border); border-radius: var(--na-radius);
  background: #fff; color: inherit; text-decoration: none;
  transition: box-shadow 0.15s ease;
}
.recette-row a:hover { box-shadow: 0 4px 14px rgba(1, 43, 75, 0.12); }
.recette-row-icons { display: flex; gap: 0.35rem; flex: 0 0 auto; }
.recette-row-icons img {
  width: 52px; height: 52px; object-fit: cover; border-radius: 50%;
  border: 1px solid var(--na-border); background: #fff;
}
.recette-row-title { font-weight: 600; color: var(--na-navy); }
.recette-row-arrow { margin-left: auto; color: var(--na-cyan-dark); font-weight: 600; }

/* FAQ */
.faq details {
  border: 1px solid var(--na-border); border-radius: var(--na-radius);
  padding: 0.8rem 1.1rem; margin: 0.6rem 0; background: #fff;
}
.faq summary { font-weight: 600; color: var(--na-navy); cursor: pointer; }

.page-hero-img { width: 100%; max-height: 420px; object-fit: cover; margin-bottom: 1.5rem; }
.blog-hero-img { max-height: 30vh; }

/* Byline */
.byline { font-size: 0.85rem; color: var(--na-muted); margin: -1.2rem 0 1.5rem; }
.byline a { color: var(--na-muted); text-decoration: underline; }

/* Footer */
.site-footer { background: var(--na-navy); color: #c4d9ea; margin-top: 4rem; }
/* .container already provides the side padding — only pad vertically here. */
.footer-inner { padding: 2.5rem 0; display: grid; gap: 1.5rem; }
.site-footer a { padding: 0.15rem 0; }
.footer-logo { font-size: 1.2rem; margin: 0 0 0.4rem; }
.footer-tagline { font-size: 0.9rem; margin: 0; }
.site-footer nav { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.site-footer a { color: #dceaf5; font-size: 0.9rem; }
.footer-legal { font-size: 0.8rem; color: #8fb0c9; margin: 0; }
.footer-about { font-size: 0.85rem; color: #a9c4d8; margin: 0; }
.footer-about a { text-decoration: underline; }
.footer-legal-links { display: flex; gap: 1rem; flex-wrap: wrap; }
.footer-legal-links a { font-size: 0.8rem; color: #8fb0c9; }

/* Page-builder blocks */
/* Inter-block spacing — change --cx-block-gap to adjust the default space
   around every builder block. Individual blocks can override with the
   padding top/bottom fields in the editor's Style panel. */
:root { --cx-block-gap: 1.5rem; }
.cx-block { padding-block: var(--cx-block-gap); }
.cx-block .cx-block { padding-block: 0.5rem; } /* nested (columns/lines) blocks stay tight */

/* Outline variant of the site button (Bouton / CTA block) */
.btn-outline {
  background: transparent;
  color: var(--na-navy);
  border: 1px solid var(--na-cyan-dark);
}
.btn-outline:hover { background: var(--na-cyan); border-color: var(--na-cyan); color: #fff; }

/* Statement (left): big uppercase line, dot flush with the first line */
.cxsl {
  position: relative;
  font-size: clamp(1.8rem, 5vw, 4rem);
}
.cxsl-dot {
  position: absolute;
  left: 0;
  top: calc(0.45em - 0.5cap); /* centre of dot = midpoint of first line */
  width: 1cap;
  height: 1cap;
  border-radius: 50%;
  background: var(--na-cyan);
}
.cxsl-text {
  text-indent: 2.2em;
  font-size: 1em;
  font-weight: 500;
  letter-spacing: -.01em;
  line-height: 1em;
  text-transform: uppercase;
  margin: 0;
  color: inherit;
}

/* Statement (centre): same scale, centred, dot after the last word */
.cxsc {
  text-align: center;
  font-size: clamp(1.8rem, 5vw, 4rem);
}
.cxsc-text {
  font-size: 1em;
  font-weight: 500;
  letter-spacing: -.01em;
  line-height: 1em;
  text-transform: uppercase;
  margin: 0;
  color: inherit;
}
.cxsc-dot {
  display: inline-block;
  width: 1cap;
  height: 1cap;
  border-radius: 50%;
  background: var(--na-cyan);
  margin-left: 0.2em;
}

/* Hero video: full-bleed 100vw section with overlaid headline */
.na-hero {
  position: relative;
  width: 100vw;
  left: 50%;
  transform: translateX(-50%);
  min-height: 320px;
  overflow: hidden;
}
.na-hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0;
}
/* Dark gradient at the bottom so white text stays legible */
.na-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(1,43,75,.15) 0%, rgba(1,43,75,.55) 100%);
  pointer-events: none;
}
.na-hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 1;
}
.na-hero-headline {
  font-size: clamp(2rem, 6vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.05em;
  color: #ffffff;
  margin: 0;
}
.na-hero-subheadline {
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  color: #e6f4fb;
  margin: 0.8rem 0 0;
  max-width: 640px;
}

/* Link list */
.na-linklist-title { font-weight: 700; font-size: 1.05rem; margin: 0 0 .75rem; color: var(--na-navy); }
.na-linklist-items li { margin-bottom: .4rem; }

/* Social icons */
.na-social-icon {
  width: 34px;
  height: 34px;
  border: 1px solid var(--na-border);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--na-navy);
  text-decoration: none;
}
.na-social-icon:hover { border-color: var(--na-cyan); color: var(--na-cyan-dark); }
.na-social-letter { font-weight: 700; }

/* Header search + suggestions */
.header-search { position: relative; display: flex; align-items: center; }
.header-search input {
  width: 200px; padding: 0.25rem 1.9rem 0.25rem 0.75rem;
  border: 1px solid var(--na-border); border-radius: 999px;
  font: inherit; font-size: 0.85rem; color: var(--na-text); background: var(--na-bg-alt);
  transition: width 0.15s ease, border-color 0.15s ease;
}
.header-search input:focus {
  width: 280px; outline: none; border-color: var(--na-cyan); background: #fff;
}
.header-search button {
  position: absolute; right: 0.35rem; display: inline-flex; padding: 0.25rem;
  border: none; background: none; color: var(--na-navy); cursor: pointer;
}
.header-search button:hover { color: var(--na-cyan-dark); }
.search-suggest {
  position: absolute; top: calc(100% + 0.4rem); right: 0; z-index: 60;
  min-width: 300px; max-width: 90vw; overflow: hidden;
  background: #fff; border: 1px solid var(--na-border); border-radius: var(--na-radius);
  box-shadow: 0 10px 30px rgba(1, 43, 75, 0.12);
}
.search-suggest a {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  padding: 0.55rem 0.85rem; color: var(--na-navy); font-size: 0.9rem; font-weight: 600;
}
.search-suggest a + a { border-top: 1px solid var(--na-bg-alt); }
.search-suggest a:hover { background: var(--na-bg-alt); text-decoration: none; }
.search-suggest small { color: var(--na-muted); font-weight: 400; white-space: nowrap; }
@media (max-width: 760px) {
  .header-search input { width: 130px; }
  .header-search input:focus { width: 165px; }
}

/* Search results page */
.search-page-form { display: flex; gap: 0.5rem; max-width: 480px; margin: 0.75rem 0; }
.search-page-form input {
  flex: 1; padding: 0.6rem 0.9rem; font: inherit; color: var(--na-text);
  border: 1px solid var(--na-border); border-radius: var(--na-radius);
}
.search-page-form input:focus { outline: none; border-color: var(--na-cyan); }
.search-page-form button {
  padding: 0.6rem 1.2rem; font: inherit; font-weight: 600; cursor: pointer;
  background: var(--na-navy); color: #fff; border: none; border-radius: var(--na-radius);
}
.search-page-form button:hover { background: var(--na-navy-soft); }
.search-group h2 { margin-top: 1.2em; }
.search-results { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; gap: 0.6rem; }
.search-result a {
  display: flex; gap: 1rem; align-items: flex-start; padding: 0.75rem 0.9rem;
  border: 1px solid var(--na-border); border-radius: var(--na-radius); color: inherit;
}
.search-result a:hover { border-color: var(--na-cyan); text-decoration: none; }
.search-result img { width: 64px; height: 64px; object-fit: cover; flex: none; }
.search-result h3 { margin: 0; font-size: 1rem; }
.search-result .result-kind {
  font-family: "Inter", system-ui, sans-serif; font-size: 0.78rem; font-weight: 500;
  color: var(--na-muted); margin-left: 0.35rem; white-space: nowrap;
}
.search-result p { margin: 0.25rem 0 0; font-size: 0.9rem; color: var(--na-muted); }
.search-empty { margin: 1.5rem 0 3rem; }

/* Comments & questions (site/_comments.html, on every page) */
.comments-section { margin-top: 4rem; padding: 2.5rem 0; background: var(--na-bg-alt); }
.comments-section h2 { margin-top: 0; }
.comment-list { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; gap: 0.9rem; }
.comment {
  background: #fff; border: 1px solid var(--na-border);
  border-radius: var(--na-radius); padding: 1rem 1.2rem;
}
.comment-meta {
  display: flex; align-items: baseline; gap: 0.6rem; flex-wrap: wrap;
  font-size: 0.88rem; margin-bottom: 0.35rem;
}
.comment-meta time { color: var(--na-muted); }
.comment-kind {
  font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em;
  padding: 0.1rem 0.5rem; border-radius: 99px;
  background: var(--na-border); color: var(--na-navy);
}
.comment-kind.is-question { background: #fdf0d5; color: #8a5a00; }
.comment-kind.is-admin { background: var(--na-cyan); color: #fff; }
.comment-body { white-space: normal; }
.comment-body p { margin: 0; }
.comment-reply {
  margin-top: 0.9rem; padding: 0.75rem 1rem;
  border-left: 3px solid var(--na-cyan); background: var(--na-bg-alt);
  border-radius: 0 var(--na-radius) var(--na-radius) 0;
}

/* Shared form styles (comment form + newsletter) */
.comment-form { max-width: 640px; }
.comment-form h3 { margin-bottom: 0.8rem; }
.comment-form label { display: block; font-size: 0.9rem; font-weight: 500; margin-bottom: 0.9rem; }
.comment-form input[type=text],
.comment-form input[type=email],
.comment-form textarea {
  display: block; width: 100%; margin-top: 0.25rem; padding: 0.55rem 0.8rem;
  font: inherit; color: var(--na-text); background: #fff;
  border: 1px solid var(--na-border); border-radius: var(--na-radius);
}
.comment-form input:focus, .comment-form textarea:focus {
  outline: none; border-color: var(--na-cyan);
}
.comment-form .form-row { display: grid; gap: 0 1rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .comment-form .form-row { grid-template-columns: 1fr; } }
.form-kind { border: none; margin: 0 0 0.9rem; padding: 0; display: flex; gap: 1.4rem; }
.form-kind label { display: flex; align-items: center; gap: 0.4rem; margin: 0; font-weight: 500; }
.form-note { font-size: 0.82rem; margin: 0 0 0.9rem; }
.comment-form .btn, .newsletter-form .btn { border: none; cursor: pointer; font: inherit; font-weight: 600; }
.form-feedback { font-size: 0.92rem; font-weight: 600; color: #1a7a3c; margin: 0.6rem 0; }
.form-feedback.is-error { color: #b3261e; }
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Footer newsletter */
.footer-newsletter-title {
  font-size: 0.8rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; color: #fff; margin: 0 0 0.2rem;
}
.footer-newsletter-text { font-size: 0.9rem; margin: 0 0 0.6rem; }
.newsletter-form { max-width: 420px; }
.newsletter-row { display: flex; gap: 0.5rem; }
.newsletter-row input {
  flex: 1; min-width: 0; padding: 0.55rem 0.8rem; font: inherit;
  border: 1px solid rgba(255, 255, 255, 0.25); border-radius: var(--na-radius);
  background: rgba(255, 255, 255, 0.08); color: #fff;
}
.newsletter-row input::placeholder { color: #9db8cc; }
.newsletter-row input:focus { outline: none; border-color: var(--na-cyan); }
.site-footer .form-feedback { color: #7be3a4; }
.site-footer .form-feedback.is-error { color: #ffb4ab; }


/* Mobile: two cards per row */
@media (max-width: 640px) {
  .card-grid, .card-grid-4 {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  .card { padding: 0.7rem; }
  .card h3 { font-size: 0.95rem; }
  .card-sub { font-size: 0.8rem; }
  .card-actions { gap: 0.4rem; }
  .card-actions .btn-card { font-size: 0.78rem; padding: 0.4rem 0.3rem; }
}
