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

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

/* Poppins, self-hosted (latin subset only — this is a UK brochure site).
   The old build pulled 18 weights from fonts.googleapis.com on every page.
   Four weights, 31 KB total, no third-party request, no render-blocking CSS. */
@font-face { font-family: Poppins; font-style: normal; font-weight: 400; font-display: swap;
  src: url(assets/fonts/poppins-400.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Poppins; font-style: normal; font-weight: 500; font-display: swap;
  src: url(assets/fonts/poppins-500.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Poppins; font-style: normal; font-weight: 600; font-display: swap;
  src: url(assets/fonts/poppins-600.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Poppins; font-style: normal; font-weight: 700; font-display: swap;
  src: url(assets/fonts/poppins-700.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  /* Brand — measured off the live Elementor kit (kit 10) before the rebuild.
     brand = Elementor "Primary" / Kadence "Theme Accent".
     accent = Elementor "Accent" / Kadence "Theme Accent - alt" — the navy used
     for the top bar, the services band, the form panel and every heading. */
  --ijnsecurityservices-brand:        #2A8CCC;
  --ijnsecurityservices-brand-dark:   #226f9f;
  --ijnsecurityservices-accent:       #033353;
  --ijnsecurityservices-accent-dark:  #022538;

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

  /* Text — #2D3748 is Kadence "Strong Text", the live body colour. */
  --ijnsecurityservices-text:         #2D3748;
  --ijnsecurityservices-text-muted:   #7A7A7A;
  --ijnsecurityservices-text-invert:  #ffffff;

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

  /* Layout — 1140px is the live Elementor container width. */
  --ijnsecurityservices-content-max:  1140px;
  --ijnsecurityservices-gutter:       20px;
  --ijnsecurityservices-section-y:    clamp(44px, 5.5vw, 80px);
  --ijnsecurityservices-radius:       3px;
  --ijnsecurityservices-radius-card:  25px;
  --ijnsecurityservices-header-height: 138px;

  /* Motion */
  --ijnsecurityservices-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(--ijnsecurityservices-bg);
  color: var(--ijnsecurityservices-text);
  font-family: var(--ijnsecurityservices-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; }

/* Type scale measured off the live site: h1 56/55, h2 28/28, h3 24/36, all 600. */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--ijnsecurityservices-font-heading);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 .5em;
  color: var(--ijnsecurityservices-accent);
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 4.2vw, 3.5rem); line-height: 1.02; }
h2 { font-size: clamp(1.5rem, 2.4vw, 1.75rem); line-height: 1.05; }
h3 { font-size: clamp(1.25rem, 1.9vw, 1.5rem); line-height: 1.5; }

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

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

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

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

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

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

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

/* Buttons — 15px/500, 12px 24px, 3px radius, exactly as the live build. */
.ijnsecurityservices-btn {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: var(--ijnsecurityservices-radius);
  background: var(--ijnsecurityservices-brand);
  color: var(--ijnsecurityservices-text-invert);
  font-weight: 500;
  font-size: 15px;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background .25s var(--ijnsecurityservices-ease), transform .25s var(--ijnsecurityservices-ease);
}
.ijnsecurityservices-btn:hover { background: var(--ijnsecurityservices-brand-dark); transform: translateY(-1px); }

/* The old "More About Us" button was a transparent-background text button. */
.ijnsecurityservices-btn--ghost {
  background: transparent;
  color: currentColor;
  border-color: transparent;
  font-weight: 600;
}
.ijnsecurityservices-btn--ghost:hover { background: rgba(255,255,255,.12); }

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

/* A section that sits on the navy band. Blocks opt in with a field, never a
   hardcoded colour — see the "surface" field on features/cta. */
.ijnsecurityservices-surface--accent {
  background: var(--ijnsecurityservices-accent);
  color: var(--ijnsecurityservices-text-invert);
}
.ijnsecurityservices-surface--accent h1,
.ijnsecurityservices-surface--accent h2,
.ijnsecurityservices-surface--accent h3 { color: var(--ijnsecurityservices-text-invert); }
.ijnsecurityservices-surface--accent .ijnsecurityservices-lede { color: rgba(255,255,255,.85); }

/* 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(--ijnsecurityservices-content-max) + 160px); margin-inline: auto; }
.aligncenter { margin-inline: auto; }
