/*
Theme Name: Beech Lynette
Theme URI: https://wwebdesign.co.uk/
Author: W Web Design & Hosting
Author URI: https://wwebdesign.co.uk/
Description: Lean custom theme for Beech Lynette — 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: beechlynette
*/

/* ==========================================================================
   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.
   ========================================================================== */

:root {
  /* Brand — from the Elementor global kit (post 9), not guessed.
     brand      = kit "Primary"  #46AEDA — the contact strip and legal bar
     brand-dark = kit "Accent"   #1E7398 — buttons and section headings */
  --beechlynette-brand:        #46aeda;
  --beechlynette-brand-dark:   #1e7398;
  --beechlynette-accent:       #1e7398;

  /* Surfaces.
     NEVER set a section background to #fff — leave sections transparent so
     they inherit --beechlynette-bg, and fill --beechlynette-card-bg on inner cards. */
  --beechlynette-bg:           #ffffff;
  --beechlynette-card-bg:      #f7fafc;
  --beechlynette-border:       #edf2f7;

  /* Text — kit "Text" for body, kit "Strongest text" for headings. */
  --beechlynette-text:         #7a7a7a;
  --beechlynette-text-muted:   #718096;
  --beechlynette-text-heading: #1a202c;
  --beechlynette-text-invert:  #ffffff;

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

  /* Layout */
  --beechlynette-content-max:  1140px;
  --beechlynette-gutter:       24px;
  --beechlynette-section-y:    clamp(40px, 5vw, 64px);
  --beechlynette-radius:       4px;
  --beechlynette-header-height: 132px;

  /* Motion */
  --beechlynette-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(--beechlynette-bg);
  color: var(--beechlynette-text);
  font-family: var(--beechlynette-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(--beechlynette-font-heading);
  line-height: 1.25;
  margin: 0 0 .5em;
  color: var(--beechlynette-accent);
  font-weight: 600;
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 1.875rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.4rem); }

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

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

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

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

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

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

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

/* Buttons */
.beechlynette-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: 15px 30px;
  border: 1px solid transparent;
  border-radius: var(--beechlynette-radius);
  background: var(--beechlynette-brand-dark);
  color: var(--beechlynette-text-invert);
  font-family: inherit;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background .25s var(--beechlynette-ease);
}
.beechlynette-btn:hover { background: var(--beechlynette-brand); color: var(--beechlynette-text-invert); }

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

/* Cards — the ONLY place --beechlynette-card-bg should appear. */
.beechlynette-card {
  background: var(--beechlynette-card-bg);
  border: 1px solid var(--beechlynette-border);
  border-radius: var(--beechlynette-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(--beechlynette-content-max) + 160px); margin-inline: auto; }
.aligncenter { margin-inline: auto; }
