/*
Theme Name: Contener
Theme URI: https://wwebdesign.co.uk/
Author: W Web Design & Hosting
Author URI: https://wwebdesign.co.uk/
Description: Lean custom theme for Contener — code-registered ACF blocks, no page builder, no build step.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: contener
*/

/* ==========================================================================
   Design tokens — the ONLY place cross-block values live.
   Anything used by more than one block belongs here. Anything used by exactly
   one block belongs in that block's own style.css.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Open Sans, self-hosted. The old site pulled these from Google Fonts on every
   page load; the files are 169 KB total and cost one render-blocking third
   party nothing. Weights match the Elementor kit exactly: 400 body, 500 accent,
   600 headings. No italic weight ships because no page uses one.
   -------------------------------------------------------------------------- */
@font-face {
  font-family: "Open Sans"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("assets/fonts/open-sans-400.woff2") format("woff2");
}
@font-face {
  font-family: "Open Sans"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("assets/fonts/open-sans-500.woff2") format("woff2");
}
@font-face {
  font-family: "Open Sans"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("assets/fonts/open-sans-600.woff2") format("woff2");
}

:root {
  /* Brand — the four Elementor kit system colours, verbatim (kit #9). */
  --contener-brand:        #0478C6;   /* kit "Primary"  — header bands, links, buttons */
  --contener-brand-dark:   #023667;   /* kit "Accent"   — nav row, footer band */
  --contener-accent:       #B3DAFF;   /* nav hover, the only other colour in the chrome */

  /* Surfaces.
     NEVER set a section background to #fff — leave sections transparent so
     they inherit --contener-bg, and fill --contener-card-bg on inner cards. */
  --contener-bg:           #ffffff;
  --contener-card-bg:      #ffffff;
  --contener-surface-alt:  #F9FAFC;   /* the homepage enquiry panel */
  --contener-border:       #e4e4e4;

  /* Text. The kit's "Text" is #7A7A7A and its "Secondary" is #54595F; headings
     take the darker of the two, as they do on the old site. */
  --contener-text:         #7A7A7A;
  --contener-heading:      #54595F;
  --contener-text-muted:   #8b8b8b;
  --contener-text-invert:  #ffffff;

  /* Type */
  --contener-font:         "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --contener-font-heading: var(--contener-font);

  /* Layout. Breakpoints mirror the kit: md 768, lg 1025. */
  --contener-content-max:  1200px;
  --contener-gutter:       24px;
  --contener-section-y:    clamp(48px, 7vw, 104px);
  --contener-radius:       10px;
  --contener-header-height: 149px; /* live logo row; the logo art is 109px tall */

  /* Motion */
  --contener-ease:         cubic-bezier(.22,.61,.36,1);
}

/* --------------------------------------------------------------------------
   Reset / base
   -------------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--contener-bg);
  color: var(--contener-text);
  font-family: var(--contener-font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--contener-font-heading);
  line-height: 1.15;
  margin: 0 0 .5em;
  text-wrap: balance;
}
/* Client, 2026-09-01: the page and archive titles were too big at 52px.
   34px is the only h1 size the site uses now — it matches the homepage hero
   headline and sits just above the 30px single-product title. */
h1 { font-size: clamp(1.6rem, 2.8vw, 34px); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); }

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   Shared layout primitives — used by chrome AND blocks.
   -------------------------------------------------------------------------- */

.contener-wrap {
  width: 100%;
  max-width: var(--contener-content-max);
  margin-inline: auto;
  padding-inline: var(--contener-gutter);
}

.contener-section { padding-block: var(--contener-section-y); }

.contener-section__head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 48px); }
.contener-section__head--center { margin-inline: auto; text-align: center; }

.contener-eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--contener-accent);
  margin-bottom: .75em;
}

.contener-lede { font-size: 1.1rem; color: var(--contener-text-muted); }

/* Buttons */
.contener-btn {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  padding: .85em 1.6em;
  border: 1px solid transparent;
  border-radius: var(--contener-radius);
  background: var(--contener-brand);
  color: var(--contener-text-invert);
  font-weight: 600;
  font-size: .95rem;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background .25s var(--contener-ease), transform .25s var(--contener-ease);
}
.contener-btn:hover { background: var(--contener-brand-dark); transform: translateY(-1px); }

.contener-btn--ghost {
  background: transparent;
  color: var(--contener-text);
  border-color: var(--contener-border);
}
.contener-btn--ghost:hover { background: var(--contener-card-bg); }

/* Cards — the ONLY place --contener-card-bg should appear. */
.contener-card {
  background: var(--contener-card-bg);
  border: 1px solid var(--contener-border);
  border-radius: var(--contener-radius);
  padding: clamp(20px, 2.5vw, 32px);
}

/* Screen-reader only */
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* WP core alignment classes */
.alignfull { width: 100vw; max-width: 100vw; margin-inline: calc(50% - 50vw); }
.alignwide { max-width: calc(var(--contener-content-max) + 160px); margin-inline: auto; }
.aligncenter { margin-inline: auto; }
