/*
Theme Name: Merrymi
Theme URI: https://merrymivape.eu/
Author: MERRYMI
Author URI: https://merrymivape.eu/
Description: Native WordPress theme for MERRYMI — a B2B brand showcase for the European market. No page builder, no jQuery, no framework. Vanilla CSS and JavaScript only. SEO, GEO and AEO ready, multilingual ready (text domain: merrymi).
Version: 1.1.0
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 8.2
License: Proprietary
License URI: https://merrymivape.eu/terms/
Text Domain: merrymi
Tags: b2b, vape, custom-theme, seo, accessible
*/

/* ============================================================
   MERRYMI v1 — vanilla CSS. No framework.
   Brand: orange #FD8204 — pixel-exact orange sampled from the
   original logo PNG (all 37,165 opaque pixels are #FD8204).
   The old site CSS used #FF8300; the logo pixels are authoritative.
   DO NOT change the brand palette — Paul confirmed 2026-11-11:
   colors and logo unchanged from the old site. Logo: original
   merrymi-logo-bandcolor.png, never traced to SVG.
   ============================================================ */
:root {
  --brand-orange: #FD8204;
  --orange: #FD8204;
  --orange-dark: #DF7204;
  --ink: #111111;
  --ink-soft: #3d3d3d;
  --muted: #6b6b6b;
  --line: #e8e5e0;
  --paper: #ffffff;
  --cream: #fff7f0;
  --dark: #111111;
  --radius: 14px;
  --max: 1180px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .6em; font-weight: 750; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }
.section--cream { background: var(--cream); }
.section--dark { background: var(--dark); color: #fff; }
.section--dark h2, .section--dark h3 { color: #fff; }
.kicker { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; color: var(--orange-dark); margin-bottom: .5em; }
.lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 720px; }
.eyebrow { font-size: .85rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* Skip link / a11y */
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 200; }
.skip-link:focus { left: 10px; top: 10px; color: #fff; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Nicotine ticker */
.nic-ticker { background: var(--orange); color: #fff; font-size: .82rem; font-weight: 600; text-align: center; padding: 8px 16px; letter-spacing: .02em; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 90; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(6px); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.site-logo { font-size: 1.5rem; font-weight: 850; letter-spacing: .02em; color: var(--ink); text-decoration: none; white-space: nowrap; }
.site-logo span { color: var(--orange); }
.site-logo img, .footer-logo img { height: 40px; width: auto; display: block; }
.site-logo:hover { text-decoration: none; }
.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.main-nav a { display: block; padding: 10px 13px; color: var(--ink); font-weight: 600; font-size: .97rem; border-radius: 8px; }
.main-nav a:hover { color: var(--orange-dark); text-decoration: none; background: var(--cream); }
.main-nav .current-menu-item a, .main-nav .current_page_item a { color: var(--orange-dark); }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; font-size: 1rem; cursor: pointer; }
.header-cta { white-space: nowrap; }

/* Buttons */
.btn { display: inline-block; background: var(--orange); color: #fff; font-weight: 700; padding: 12px 22px; border-radius: 999px; border: 0; cursor: pointer; font-size: 1rem; }
.btn:hover { background: var(--orange-dark); color: #fff; text-decoration: none; }
.btn--dark { background: var(--ink); }
.btn--dark:hover { background: #000; }
.btn--ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; text-decoration: none; }
.btn--small { padding: 8px 16px; font-size: .92rem; }

/* Hero */
.hero { background: var(--dark); color: #fff; padding: 72px 0 64px; }
.hero h1 { color: #fff; }
.hero p { color: #d8d8d8; }
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero__slide { display: none; }
.hero__slide.is-active { display: block; animation: fadeUp .5s ease both; }
.hero__tag { display: inline-block; background: var(--orange); color: #fff; font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; margin-bottom: 14px; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.hero__dots { display: flex; gap: 8px; margin-top: 28px; }
.hero__dots button { width: 28px; height: 4px; border: 0; border-radius: 99px; background: #444; cursor: pointer; padding: 0; }
.hero__dots button.is-active { background: var(--orange); }
.hero__card { background: #1c1c1c; border: 1px solid #2c2c2c; border-radius: var(--radius); padding: 28px; }
.hero__card .puffs { font-size: 2.6rem; font-weight: 850; color: var(--orange); line-height: 1; }
.hero__card .puffs small { font-size: 1rem; font-weight: 600; color: #bbb; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Marquee */
.marquee { background: var(--orange); color: #fff; overflow: hidden; white-space: nowrap; padding: 10px 0; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; font-size: .9rem; }
.marquee span { display: inline-block; padding-right: 48px; }

/* Series tiles / cards */
.grid { display: grid; gap: 20px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.card__body { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card__body h3 { margin: 0; }
.card__body h3 a { color: var(--ink); }
.card__body p { color: var(--muted); font-size: .96rem; margin: 0; }
.card__meta { font-size: .85rem; color: var(--muted); font-weight: 600; }
.card__link { margin-top: auto; font-weight: 700; }
.series-tile { display: block; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 22px; background: #fff; color: var(--ink); }
.series-tile:hover { border-color: var(--orange); text-decoration: none; }
.series-tile h3 { margin: 0 0 6px; }
.series-tile p { margin: 0; color: var(--muted); font-size: .95rem; }
.series-tile--large { padding: 36px 28px; }
.series-tile--large h3 { font-size: 1.6rem; }
.series-tile--large .series-tile__cta { display: block; margin-top: 14px; font-weight: 700; color: var(--orange-dark); }

/* Hero trade proposition (above the fold, OXVA lesson: say the B2B offer immediately) */
.hero__prop { color: var(--orange); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; font-size: .85rem; margin: 0 0 20px; }
.hero__prop span { color: #888; font-weight: 400; padding: 0 8px; }

/* Series filter pills + product spec pills (OXVA lesson: compare at a glance) */
.filter-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.filter-pill { display: inline-block; background: #fff; border: 1.5px solid var(--line); border-radius: 999px; padding: 7px 16px; font-size: .92rem; font-weight: 700; color: var(--ink); }
.filter-pill:hover { border-color: var(--orange); text-decoration: none; }
.filter-pill.is-active { background: var(--orange); border-color: var(--orange); color: #fff; }
.spec-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.spec-pill { display: inline-block; background: var(--cream); border: 1px solid var(--line); border-radius: 999px; padding: 4px 11px; font-size: .82rem; font-weight: 700; color: var(--ink-soft); }
.card__actions { display: flex; gap: 14px; align-items: center; margin-top: auto; padding-top: 6px; flex-wrap: wrap; }

/* Reviews (MERRYMI's own testimonials) */
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px; }
.review-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: #fff; }
.review-card .stars { color: var(--orange); letter-spacing: .15em; font-size: 1.05rem; }
.review-card blockquote { margin: 12px 0; font-size: 1.05rem; font-weight: 700; }
.review-card figcaption { color: var(--muted); font-size: .9rem; }

/* Specs downloads + Standard/TPD package toggle */
.downloads { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; background: #fff; margin: 0 0 1.5em; }
.downloads h3 { margin-top: 0; }
.download-item { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.download-item:last-child { border-bottom: 0; }
.download-item strong { font-size: 1rem; }
.download-item span { color: var(--muted); font-size: .9rem; }
.package-toggle { display: inline-flex; border: 1.5px solid var(--ink); border-radius: 999px; overflow: hidden; margin-bottom: 16px; }
.package-toggle button { background: transparent; border: 0; padding: 8px 18px; font: inherit; font-weight: 700; cursor: pointer; color: var(--ink); }
.package-toggle button.is-active { background: var(--ink); color: #fff; }
.package-panel[hidden] { display: none; }
.chip { display: inline-block; background: var(--cream); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; font-size: .88rem; margin: 0 6px 8px 0; }

/* Product single */
.breadcrumbs { font-size: .88rem; color: var(--muted); padding: 18px 0 0; }
.breadcrumbs a { color: var(--muted); }
.answer { background: var(--cream); border-left: 4px solid var(--orange); border-radius: 0 10px 10px 0; padding: 18px 22px; font-size: 1.08rem; }
.specs { width: 100%; border-collapse: collapse; margin: 0 0 1.5em; }
.specs th, .specs td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs th { width: 200px; color: var(--muted); font-weight: 600; }
.product-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding: 32px 0 64px; }
.product-media { background: var(--cream); border-radius: var(--radius); min-height: 320px; display: flex; align-items: center; justify-content: center; color: var(--muted); padding: 24px; text-align: center; }
.product-media img { border-radius: 10px; }
.faq details { border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px; margin-bottom: 10px; background: #fff; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq p { margin: .6em 0 0; color: var(--ink-soft); }

/* Forms */
.merrymi-form label { display: block; font-weight: 600; margin: 0 0 4px; }
.merrymi-form input, .merrymi-form select, .merrymi-form textarea { width: 100%; padding: 11px 13px; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; margin-bottom: 16px; background: #fff; }
.merrymi-form input:focus, .merrymi-form select:focus, .merrymi-form textarea:focus { outline: 2px solid var(--orange); border-color: var(--orange); }
.form-note { font-size: .88rem; color: var(--muted); }

/* Content */
.entry-content { max-width: 760px; }
.entry-content img { border-radius: 10px; }
.post-list article { border-bottom: 1px solid var(--line); padding: 24px 0; }
.post-list h2 { margin-bottom: .3em; }
.post-list h2 a { color: var(--ink); }
.post-meta { color: var(--muted); font-size: .88rem; margin-bottom: .5em; }
.pillars { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.pillar { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: #fff; }
.pillar h3 { margin-top: 0; }

/* Footer */
.site-footer { background: var(--dark); color: #cfcfcf; margin-top: 0; }
.site-footer a { color: #fff; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding: 56px 0 32px; }
.site-footer h3 { color: #fff; font-size: 1rem; letter-spacing: .06em; text-transform: uppercase; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer__bottom { border-top: 1px solid #2c2c2c; padding: 20px 0; font-size: .85rem; color: #999; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* Age gate + cookie banner */
.age-gate { position: fixed; inset: 0; z-index: 300; background: rgba(17,17,17,.97); color: #fff; display: flex; align-items: center; justify-content: center; padding: 20px; }
.age-gate[hidden] { display: none; }
.age-gate__box { max-width: 460px; text-align: center; background: #1c1c1c; border: 1px solid #333; border-radius: 18px; padding: 36px 28px; }
.age-gate__box h2 { color: #fff; }
.age-gate__actions { display: flex; gap: 12px; justify-content: center; margin-top: 22px; flex-wrap: wrap; }
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 250; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 40px rgba(0,0,0,.18); padding: 18px 20px; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0; flex: 1; min-width: 240px; font-size: .95rem; }

/* Reveal on scroll (light, CSS + IntersectionObserver) */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* Responsive */
@media (max-width: 900px) {
  .hero__grid, .product-layout { grid-template-columns: 1fr; gap: 28px; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3, .pillars, .review-grid { grid-template-columns: 1fr 1fr; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .nav-toggle { display: block; }
  .main-nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 12px 20px 20px; }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; }
  .header-cta { display: none; }
  .section { padding: 44px 0; }
}
@media (max-width: 560px) {
  .grid--4, .grid--3, .grid--2, .pillars, .review-grid { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr; }
  body { font-size: 16px; }
}
