/* === Relax Tub — site.css ==================================================
   Nordic Spa design system. Loaded by every page.

   This file is structured in two layers:
     1. FOUNDATION (this section) — design tokens (:root custom properties),
        a modern CSS reset, base typography, layout primitives, and the
        accessible skip-link. Authored in task-03.
     2. COMPONENTS — buttons, cards, hero, header/nav, footer, form controls.
        Appended later (task-04). Do not duplicate foundation rules below.

   Palette: teal #0F3A40 / wood-brass #C8A06A / cream #FDFCF9 / charcoal #1C1C1C.
   Type: Cormorant Garamond (headings) + Inter (body).
   ----------------------------------------------------------------------- */

/* === Design tokens ======================================================= */
:root {
  /* Brand palette */
  --teal: #0F3A40;
  --teal-dark: #0A2A2E;
  --teal-700: #12474E;
  --wood: #C8A06A;
  --wood-dark: #A8824F;
  --orange: #D2691E;
  --orange-dark: #B4571A;
  --cream: #FDFCF9;
  --cream-2: #F8F5EF;
  --charcoal: #1C1C1C;
  --ink: #23302F;
  --muted: #6B7B79;
  --line: #F0EBE2;
  --white: #fff;

  /* Semantic aliases — prefer these in rules */
  --bg: var(--cream);
  --surface: var(--white);
  --text: var(--charcoal);
  --text-muted: var(--muted);
  --primary: var(--teal);
  --accent: var(--wood);

  /* Typography */
  --font-head: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* Fluid type scale (clamp: min, preferred, max) */
  --fs-300: clamp(0.8125rem, 0.78rem + 0.16vw, 0.875rem);   /* small / captions */
  --fs-400: clamp(1.0rem, 0.97rem + 0.16vw, 1.0625rem);     /* body            */
  --fs-500: clamp(1.125rem, 1.07rem + 0.28vw, 1.25rem);     /* lead / large    */
  --fs-600: clamp(1.375rem, 1.27rem + 0.5vw, 1.625rem);     /* h4 / h3         */
  --fs-700: clamp(1.75rem, 1.55rem + 1.0vw, 2.375rem);      /* h3 / h2         */
  --fs-800: clamp(2.25rem, 1.9rem + 1.75vw, 3.25rem);       /* h2 / h1         */
  --fs-900: clamp(2.75rem, 2.1rem + 3.25vw, 4.75rem);       /* display h1      */

  /* Spacing scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 2.5rem;
  --space-8: 3rem;
  --space-9: 4rem;
  --space-10: 5rem;
  --space-11: 6rem;
  --space-12: 8rem;

  /* Radii */
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 20px;

  /* Soft, low-opacity shadows */
  --shadow-sm: 0 1px 2px rgba(15, 58, 64, 0.06), 0 1px 3px rgba(15, 58, 64, 0.08);
  --shadow-md: 0 4px 12px rgba(15, 58, 64, 0.08), 0 2px 6px rgba(15, 58, 64, 0.06);
  --shadow-lg: 0 12px 32px rgba(15, 58, 64, 0.12), 0 6px 14px rgba(15, 58, 64, 0.08);

  /* Layout */
  --container: 1140px;

  /* Motion */
  --transition: 180ms ease;
}

/* === Modern reset ======================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body,
h1, h2, h3, h4, h5, h6,
p, figure, blockquote, dl, dd {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

img,
svg,
picture,
video,
canvas {
  max-width: 100%;
  display: block;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

ul[role="list"],
ol[role="list"] {
  list-style: none;
}

/* Visible focus for keyboard users only */
:focus-visible {
  outline: 2px solid var(--wood);
  outline-offset: 2px;
  border-radius: 2px;
}

/* === Base typography ===================================================== */
body {
  font-family: var(--font-body);
  font-size: var(--fs-400);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.1;
  color: var(--ink);
  text-wrap: balance;
}

h1 { font-size: var(--fs-900); letter-spacing: -0.01em; }
h2 { font-size: var(--fs-800); letter-spacing: -0.01em; }
h3 { font-size: var(--fs-700); }
h4 { font-size: var(--fs-600); }
h5 { font-size: var(--fs-500); }
h6 { font-size: var(--fs-400); letter-spacing: 0.02em; text-transform: uppercase; }

p {
  max-width: 68ch;
}

a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 0.15em;
  text-decoration-thickness: from-font;
  transition: color var(--transition);
}

a:hover {
  color: var(--teal-700);
}

strong, b {
  font-weight: 600;
}

small {
  font-size: var(--fs-300);
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin-block: var(--space-6);
}

/* === Layout ============================================================== */
.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.section {
  padding-block: clamp(2.5rem, 6vw, 5rem);
}

/* === Skip link =========================================================== */
.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -100%;
  z-index: 1000;
  padding: var(--space-3) var(--space-5);
  background: var(--teal);
  color: var(--cream);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-300);
  letter-spacing: 0.02em;
  text-decoration: none;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  transition: top var(--transition);
}

.skip-link:focus {
  top: var(--space-4);
}

/* === Reduced motion ====================================================== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* === Component styles are appended below by task-04. ===================== */

/* ==========================================================================
   COMPONENTS (task-04)
   Reusable, accessible building blocks layered on the task-03 foundation.
   All values reference the :root tokens defined above. WCAG-AA contrast.
   ========================================================================== */

/* === Buttons ============================================================= */
.btn {
  --_btn-fg: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 44px;
  padding: var(--space-3) var(--space-5);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-400);
  line-height: 1;
  letter-spacing: 0.01em;
  color: var(--_btn-fg);
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color var(--transition), color var(--transition),
    border-color var(--transition), box-shadow var(--transition),
    transform var(--transition);
}

.btn:hover {
  color: var(--_btn-fg);
}

.btn:focus-visible {
  outline: 2px solid var(--wood);
  outline-offset: 2px;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background-color: var(--orange);
  color: var(--white);
  border-color: var(--orange);
}

.btn-primary:hover {
  background-color: var(--orange-dark);
  color: var(--white);
  border-color: var(--orange-dark);
}

.btn-secondary {
  background-color: transparent;
  color: var(--orange);
  border-color: var(--orange);
}

.btn-secondary:hover {
  background-color: var(--orange);
  color: var(--white);
  border-color: var(--orange);
}

.btn-lg {
  min-height: 52px;
  padding: var(--space-4) var(--space-7);
  font-size: var(--fs-500);
  border-radius: var(--radius-lg);
}

.btn[disabled],
.btn.is-disabled,
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
  transform: none;
}

/* === Site header / nav =================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: color-mix(in srgb, var(--cream) 88%, transparent);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  padding-block: var(--space-3);
}

/* Fallback: when nav is not wrapped in .site-header, still lay it out. */
.site-header nav,
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  flex-wrap: wrap;
}

.brand {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1;
  color: var(--teal);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.brand:hover {
  color: var(--teal-700);
}

nav ul {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin: 0;
  padding: 0;
  list-style: none;
}

nav ul li {
  list-style: none;
}

nav ul a {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--fs-400);
  color: var(--ink);
  text-decoration: none;
}

nav ul a:hover {
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

/* CSS-only responsive: stack the menu gracefully on narrow screens. */
@media (max-width: 720px) {
  .site-header .container,
  nav {
    flex-wrap: wrap;
    row-gap: var(--space-3);
  }

  nav ul {
    flex-basis: 100%;
    justify-content: flex-start;
    gap: var(--space-3) var(--space-4);
  }
}

/* === Footer ============================================================== */
footer {
  background-color: var(--teal);
  color: var(--cream);
  padding-block: clamp(2.5rem, 5vw, 4rem);
}

footer .container {
  /* allow footer to constrain content even if markup lacks an inner wrapper */
}

footer > * {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.footer-brand {
  font-family: var(--font-head);
  font-size: var(--fs-600);
  font-weight: 600;
  color: var(--cream);
  margin-bottom: var(--space-2);
}

.footer-phone {
  margin-bottom: var(--space-2);
}

.footer-phone a {
  color: var(--cream);
  text-decoration: none;
  font-weight: 500;
}

.footer-phone a:hover {
  color: var(--wood);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.footer-rights {
  /* muted-on-teal: lightened cream for AA contrast on the teal field */
  color: color-mix(in srgb, var(--cream) 70%, var(--teal));
  font-size: var(--fs-300);
}

/* === Hero ================================================================ */
.hero {
  padding-block: clamp(3rem, 8vw, 6.5rem);
}

.hero--teal {
  background-color: var(--teal);
  color: var(--cream);
}

.hero--teal h1,
.hero--teal .lead {
  color: var(--cream);
}

.hero h1 {
  font-family: var(--font-head);
  font-size: var(--fs-900);
  letter-spacing: -0.01em;
  max-width: 18ch;
}

.hero .lead {
  font-size: var(--fs-500);
  color: var(--text-muted);
  max-width: 56ch;
  margin-top: var(--space-4);
}

.hero--teal .lead {
  color: color-mix(in srgb, var(--cream) 88%, var(--teal));
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4);
  margin-top: var(--space-6);
}

.hero-media {
  margin-top: var(--space-7);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

/* Style the existing home shell (main#main > h1 + p) so it looks intentional
   even before m4 builds the real hero. */
/* Main is full-width so section backgrounds (hero, --cream, --teal) span the
   full viewport. Each section wraps its content in a .container, which applies
   the max-width + horizontal gutter, so content stays at the same width.
   Vertical rhythm lives on the sections themselves (.hero / .section /
   .page-hero each set padding-block). */
main#main {
  width: 100%;
}

/* === Cards =============================================================== */
.card {
  display: flex;
  flex-direction: column;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-media {
  aspect-ratio: 4 / 3;
  background-color: var(--cream-2);
  overflow: hidden;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-body {
  padding: var(--space-5);
}

.card-title {
  font-family: var(--font-head);
  font-size: var(--fs-600);
  color: var(--ink);
  margin-bottom: var(--space-2);
}

.product-card {
  /* extends .card — inherits surface, radius, shadow, lift on hover */
}

.product-card .card-title {
  font-size: var(--fs-600);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-5);
}

/* === Sections =========================================================== */
.section--cream {
  background-color: var(--cream);
}

.section--teal {
  background-color: var(--teal);
  color: var(--cream);
}

.section--teal h1,
.section--teal h2,
.section--teal h3,
.section--teal .section-title {
  color: var(--cream);
}

.section-title {
  font-family: var(--font-head);
  font-size: var(--fs-800);
  color: var(--ink);
}

.section-title.is-centered {
  text-align: center;
}

.section-intro {
  color: var(--text-muted);
  max-width: 60ch;
  font-size: var(--fs-500);
  margin-top: var(--space-3);
}

.section-intro.is-centered {
  margin-inline: auto;
  text-align: center;
}

.section--teal .section-intro {
  color: color-mix(in srgb, var(--cream) 85%, var(--teal));
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-300);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--wood-dark);
  margin-bottom: var(--space-3);
}

.section--teal .eyebrow {
  color: var(--wood);
}

/* === Forms ============================================================== */
.form-field {
  margin-block: var(--space-4);
}

.form-field label,
label {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--fs-400);
  color: var(--ink);
  margin-bottom: var(--space-2);
}

.input,
.textarea,
.select {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font: inherit;
  color: var(--text);
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.textarea {
  min-height: 8rem;
  resize: vertical;
}

.input::placeholder,
.textarea::placeholder {
  color: var(--text-muted);
}

.input:focus-visible,
.textarea:focus-visible,
.select:focus-visible {
  outline: none;
  border-color: var(--wood);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--wood) 35%, transparent);
}

.form-error {
  color: #B3261E;
  font-size: var(--fs-300);
  margin-top: var(--space-2);
}

.form-success {
  color: var(--teal);
  font-size: var(--fs-400);
  margin-top: var(--space-2);
}

/* === End of components (task-04). ======================================== */

/* ==========================================================================
   m4 PAGE LAYOUT UTILITIES (task-04 / milestone m4)
   Page-level layout helpers for product detail, contact, FAQ, gallery, and
   brand-mark sizing. APPENDED ONLY — these rules do not modify the :root
   tokens or the m2 foundation/component rules above. Every value is composed
   from existing var(--*) tokens, clamp(), and media queries consistent with
   the m2 system. No Tailwind, no SCSS.
   ========================================================================== */

/* --- Responsive imagery ------------------------------------------------- */
/* Generic safe defaults for content images placed inside page layouts.
   The m2 reset already sets img{max-width:100%;display:block}; here we also
   guarantee proportional height for any image in these page contexts. */
.page-hero img,
.product-detail img,
.gallery-teaser img,
.contact-grid img,
.faq-list img,
.responsive-media {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- Page hero ---------------------------------------------------------- */
/* A lighter-weight hero for interior pages (vs. the home .hero). */
.page-hero {
  padding-block: clamp(2.5rem, 6vw, 5rem);
}

.page-hero .eyebrow {
  margin-bottom: var(--space-3);
}

.page-hero h1 {
  font-size: var(--fs-800);
  max-width: 20ch;
}

.page-hero .lead {
  font-size: var(--fs-500);
  color: var(--text-muted);
  max-width: 58ch;
  margin-top: var(--space-4);
}

.page-hero--teal {
  background-color: var(--teal);
  color: var(--cream);
}

.page-hero--teal h1,
.page-hero--teal .lead {
  color: var(--cream);
}

.page-hero--teal .lead {
  color: color-mix(in srgb, var(--cream) 88%, var(--teal));
}

/* --- Product detail: two-column media + info --------------------------- */
.product-detail {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(var(--space-6), 5vw, var(--space-9));
  align-items: start;
}

@media (min-width: 768px) {
  .product-detail {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  }
}

.product-detail-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-color: var(--cream-2);
  box-shadow: var(--shadow-md);
}

.product-detail-media img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.product-detail-info > * + * {
  margin-top: var(--space-4);
}

.product-detail-info h1,
.product-detail-info h2 {
  font-size: var(--fs-700);
}

.product-detail-price {
  font-family: var(--font-head);
  font-size: var(--fs-600);
  color: var(--teal);
}

.product-detail-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4);
  margin-top: var(--space-6);
}

/* --- Spec list ---------------------------------------------------------- */
/* A definition-style list for product specifications. */
.spec-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.spec-list > div,
.spec-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-3) var(--space-5);
  padding-block: var(--space-3);
  border-bottom: 1px solid var(--line);
}

.spec-list dt,
.spec-key {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-400);
  color: var(--ink);
  margin: 0;
}

.spec-list dd,
.spec-value {
  font-size: var(--fs-400);
  color: var(--text-muted);
  margin: 0;
  text-align: right;
}

/* --- Contact: two-column -> stacked ------------------------------------ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(var(--space-6), 5vw, var(--space-9));
  align-items: start;
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

.contact-aside > * + * {
  margin-top: var(--space-4);
}

.contact-aside h2,
.contact-aside h3 {
  font-size: var(--fs-600);
}

/* --- FAQ list / accordion ---------------------------------------------- */
.faq-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  margin: 0;
  padding: 0;
  list-style: none;
}

.faq-item {
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

/* Works as a native <details>/<summary> accordion or a plain block. */
.faq-item > summary,
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  font-family: var(--font-head);
  font-size: var(--fs-600);
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.faq-item > summary::-webkit-details-marker {
  display: none;
}

.faq-item > summary::after,
.faq-question::after {
  content: "+";
  font-family: var(--font-body);
  font-size: var(--fs-600);
  line-height: 1;
  color: var(--wood-dark);
  transition: transform var(--transition);
}

.faq-item[open] > summary::after {
  transform: rotate(45deg);
}

.faq-item > summary:focus-visible {
  outline: 2px solid var(--wood);
  outline-offset: -2px;
}

.faq-answer {
  padding: 0 var(--space-5) var(--space-5);
  color: var(--text-muted);
}

.faq-answer p {
  margin-top: var(--space-2);
}

/* --- Gallery teaser ----------------------------------------------------- */
.gallery-teaser {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-4);
}

.gallery-teaser figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background-color: var(--cream-2);
  box-shadow: var(--shadow-sm);
}

.gallery-teaser img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.gallery-teaser figcaption {
  padding: var(--space-3) var(--space-4);
  font-size: var(--fs-300);
  color: var(--text-muted);
}

/* --- Brand-mark / footer-mark sizing ------------------------------------ */
/* Sizing utilities for the wordmark/brand SVG in the header and footer.
   Height-driven so the SVG scales by its intrinsic aspect ratio. */
.brand-mark {
  display: inline-block;
  height: clamp(2rem, 1.6rem + 1.2vw, 2.75rem);
  width: auto;
}

.brand-mark img,
.brand-mark svg {
  height: 100%;
  width: auto;
  display: block;
}

.footer-mark {
  display: inline-block;
  height: clamp(1.75rem, 1.5rem + 1vw, 2.25rem);
  width: auto;
  margin-bottom: var(--space-3);
}

.footer-mark img,
.footer-mark svg {
  height: 100%;
  width: auto;
  display: block;
}

/* === End of m4 page layout utilities (task-04). ========================= */


/* ========================================================================
   m6 INTEGRATIONS (task-08) — APPEND ONLY.
   WhatsApp floating button + cookie-consent banner. These rules add new
   utility components only: they do NOT modify the :root tokens or any
   m2/m4 component rules above. All values reference existing var(--*)
   tokens. The cookie banner relies on the [hidden] attribute to start
   hidden (JS shows it), so nothing here overrides [hidden]{display:none}.
   ======================================================================== */

/* --- WhatsApp floating button ------------------------------------------
   Fixed bottom-right, circular, WhatsApp brand green, white icon.
   z-index sits above page content but BELOW the cookie banner so the
   consent choice is never visually blocked. */
.whatsapp-float {
  position: fixed;
  right: var(--space-5);
  bottom: var(--space-5);
  z-index: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: #25D366; /* WhatsApp brand green */
  color: var(--white);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
  transition: background-color var(--transition), transform var(--transition),
    box-shadow var(--transition);
}

.whatsapp-float:hover {
  background-color: #1EBE5A;
  color: var(--white);
  transform: translateY(-2px);
}

.whatsapp-float:active {
  transform: translateY(0);
}

.whatsapp-float:focus-visible {
  outline: 2px solid var(--wood);
  outline-offset: 3px;
}

.whatsapp-float__icon {
  width: 28px;
  height: 28px;
  display: block;
}

@media (max-width: 600px) {
  .whatsapp-float {
    right: var(--space-4);
    bottom: var(--space-4);
    width: 50px;
    height: 50px;
  }

  .whatsapp-float__icon {
    width: 25px;
    height: 25px;
  }
}

/* --- Cookie-consent banner ----------------------------------------------
   Fixed centered card at the bottom, cream surface on a teal border, sits
   above the WhatsApp float (higher z-index). Starts hidden via the [hidden]
   attribute; this rule must not force display when hidden. */
.cookie-banner {
  position: fixed;
  right: var(--space-4);
  bottom: var(--space-4);
  left: var(--space-4);
  z-index: 1000;
  max-width: var(--container);
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  background-color: var(--cream);
  color: var(--ink);
  border: 1px solid var(--teal);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

/* The banner carries the [hidden] attribute until the consent JS reveals it.
   An author display rule beats the UA [hidden]{display:none}, so guard it back. */
.cookie-banner[hidden] {
  display: none !important;
}

.cookie-banner__text {
  flex: 1 1 280px;
  margin: 0;
  font-size: var(--fs-300);
  line-height: 1.5;
  color: var(--ink);
}

.cookie-banner__link {
  color: var(--teal);
  text-decoration: underline;
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

/* Banner buttons reuse the .btn token patterns (without requiring the .btn
   class on the markup, which only carries .cookie-banner__accept/decline). */
.cookie-banner__accept,
.cookie-banner__decline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: var(--space-2) var(--space-5);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-400);
  line-height: 1;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color var(--transition), color var(--transition),
    border-color var(--transition);
}

.cookie-banner__accept {
  background-color: var(--teal);
  color: var(--cream);
  border-color: var(--teal);
}

.cookie-banner__accept:hover {
  background-color: var(--teal-700);
  border-color: var(--teal-700);
}

.cookie-banner__decline {
  background-color: transparent;
  color: var(--teal);
  border-color: var(--teal);
}

.cookie-banner__decline:hover {
  background-color: var(--teal);
  color: var(--cream);
}

.cookie-banner__accept:focus-visible,
.cookie-banner__decline:focus-visible {
  outline: 2px solid var(--wood);
  outline-offset: 2px;
}

@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-banner__actions {
    justify-content: flex-end;
  }
}

/* === End of m6 integrations (task-08). ================================== */

