/*
Theme Name: 3rd Bramhall Scout Group
Theme URI: https://wwebdesign.co.uk/
Author: W Web Design & Hosting
Author URI: https://wwebdesign.co.uk/
Description: Lean custom theme for 3rd Bramhall Scout Group — 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: bramhall-scouts
*/

/* ==========================================================================
   Design tokens — the ONLY place cross-block values live.

   Every value below was measured off the Elementor/Kadence build with
   getComputedStyle at a 1440x900 viewport before the theme was switched, so
   this is the old site's own arithmetic rather than an approximation:

     content width   1140px centred, widgets inset 10px  (Elementor default)
     body            17px / 1.6, Helvetica
     prose           #7A7A7A            headings  #54595F
     accent          #7413DC            nav/active #5709AB
     rules           1px #2D3748
   ========================================================================== */

:root {
  /* Brand */
  --bramhall-scouts-purple:       #7413dc;  /* Kadence "Theme Accent" / Elementor "Primary" */
  --bramhall-scouts-purple-dark:  #5709ab;  /* Elementor "Accent" — nav links, active underline */
  --bramhall-scouts-purple-alt:   #4b0496;  /* Kadence "Theme Accent - alt" — hover */

  /* Surfaces. Sections stay transparent and inherit --bramhall-scouts-bg;
     only inner card surfaces take --bramhall-scouts-card-bg. */
  --bramhall-scouts-bg:           #ffffff;
  --bramhall-scouts-card-bg:      #ffffff;
  --bramhall-scouts-border:       #e2e8f0;
  --bramhall-scouts-rule:         #2d3748;  /* the 1px rules the old build drew */

  /* Text */
  --bramhall-scouts-text:         #2d3748;  /* Kadence base font colour */
  --bramhall-scouts-prose:        #7a7a7a;  /* body copy inside blocks */
  --bramhall-scouts-heading:      #54595f;  /* leader names, "Quick Contact" */
  --bramhall-scouts-text-invert:  #ffffff;

  /* Type. Helvetica is what the old build asked for; Arial and Helvetica Neue
     are added so Windows and macOS land somewhere near it instead of dropping
     straight to the generic sans-serif. No webfont was ever loaded and none is
     loaded now. */
  --bramhall-scouts-font:         Helvetica, Arial, "Helvetica Neue", sans-serif;
  --bramhall-scouts-font-heading: var(--bramhall-scouts-font);

  /* Layout */
  --bramhall-scouts-content-max:  1140px;
  --bramhall-scouts-gutter:       10px;   /* Elementor's widget inset */
  --bramhall-scouts-widget-gap:   20px;   /* Elementor's default widget spacing */
  --bramhall-scouts-radius:       0;      /* the old build used square corners throughout */

  /* Motion */
  --bramhall-scouts-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(--bramhall-scouts-bg);
  color: var(--bramhall-scouts-text);
  font-family: var(--bramhall-scouts-font);
  font-size: 17px;
  line-height: 1.6;
  -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(--bramhall-scouts-font-heading);
  font-weight: 600;
  line-height: 1;
  margin: 0 0 .5em;
}
h1 { font-size: 32px; color: var(--bramhall-scouts-heading); }
h2 { font-size: 28px; color: var(--bramhall-scouts-prose); }
h3 { font-size: 24px; color: var(--bramhall-scouts-heading); margin: 0; }

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

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

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

/* The old build had no section padding at all — spacing came from widget
   margins. Reproduced: blocks own their own vertical rhythm. */
.bramhall-scouts-section { padding-block: 0; }

/* Prose — the shared body-copy voice. Centred, grey, 17px/1.6, purple links.
   Used by wysiwyg, leaders, sections and the calendar block. */
.bramhall-scouts-prose {
  color: var(--bramhall-scouts-prose);
  text-align: center;
}
.bramhall-scouts-prose a { color: var(--bramhall-scouts-purple); text-decoration: none; }
.bramhall-scouts-prose a:hover { color: var(--bramhall-scouts-purple-alt); text-decoration: underline; }
/* Bulleted lists read left-aligned inside the centred column, indented 40px —
   which is what the old build inherited from Elementor's own list styling. */
.bramhall-scouts-prose ul,
.bramhall-scouts-prose ol { margin: 0 0 1.15em; padding-left: 40px; text-align: left; }
.bramhall-scouts-prose li { margin-bottom: .2em; }
.bramhall-scouts-prose h2 { color: var(--bramhall-scouts-prose); }

/* A horizontal rule, 75% of the content column, as the old divider widget drew it. */
.bramhall-scouts-rule {
  width: 75%;
  height: 0;
  margin: 15px auto;
  border: 0;
  border-top: 1px solid var(--bramhall-scouts-rule);
}

/* Buttons — square, purple, 20px/600, as the drawer's Contact button was. */
.bramhall-scouts-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: 15px 26px;
  border: 1px solid transparent;
  border-radius: var(--bramhall-scouts-radius);
  background: var(--bramhall-scouts-purple);
  color: var(--bramhall-scouts-text-invert);
  font-family: var(--bramhall-scouts-font);
  font-weight: 600;
  font-size: 20px;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background .25s var(--bramhall-scouts-ease);
}
.bramhall-scouts-btn:hover { background: var(--bramhall-scouts-purple-alt); color: var(--bramhall-scouts-text-invert); }

/* 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;
}
.screen-reader-text:focus {
  position: static !important;
  width: auto; height: auto; margin: 0;
  clip: auto; padding: 12px 16px;
  background: var(--bramhall-scouts-purple); color: #fff;
}

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