/*
Theme Name: Blackpool Industrial Roofing
Theme URI: https://blackpool-roofing.co.uk
Description: Lean custom theme for Blackpool Industrial Roofing — code-registered ACF blocks, no page builder, no build step. Rebuild of the Elementor/Jet site.
Author: W Web Design & Hosting
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: bir
*/

/* ============================================================
   Self-hosted brand font — Montserrat (variable, latin subset)
   ============================================================ */
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/fonts/montserrat.woff2") format("woff2");
}

/* ============================================================
   Design tokens (from the live Elementor global kit)
   ============================================================ */
:root {
  --bir-primary:        #1C4697; /* deep royal blue — hero, buttons, headings */
  --bir-primary-dark:   #163a80;
  --bir-primary-darker: #12306b;
  --bir-accent:         #4B9FDC; /* light blue — links / hover / icons */
  --bir-accent-dark:    #3a86c0;

  --bir-text:           #4A5568; /* body copy */
  --bir-text-strong:    #1A202C; /* strong headings on light */
  --bir-text-muted:     #718096;

  --bir-bg:             #ffffff;
  --bir-bg-subtle:      #EDF2F7; /* light grey section */
  --bir-bg-light:       #F7FAFC;
  --bir-card-bg:        #ffffff;
  --bir-border:         #e2e8f0;

  --bir-font:           "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --bir-content-max:    1200px;
  --bir-wide-max:       1320px;
  --bir-header-height:  96px;
  --bir-radius:         6px;
  --bir-shadow:         0 6px 24px rgba(26, 32, 44, 0.08);
  --bir-shadow-lg:      0 12px 40px rgba(26, 32, 44, 0.12);
}

/* ============================================================
   Reset / base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--bir-font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--bir-text);
  background: var(--bir-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--bir-primary); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--bir-accent); }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--bir-font);
  color: var(--bir-text-strong);
  line-height: 1.2;
  margin: 0 0 .5em;
  font-weight: 700;
}
p { margin: 0 0 1.2em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0 0 1.2em; padding-left: 1.4em; }

/* ============================================================
   Layout helpers
   ============================================================ */
.bir-container { max-width: var(--bir-content-max); margin: 0 auto; padding-inline: 24px; }
.bir-wide      { max-width: var(--bir-wide-max);    margin: 0 auto; padding-inline: 24px; }
.bir-section   { padding-block: 72px; }
.bir-section--subtle { background: var(--bir-bg-subtle); }
.bir-section--light  { background: var(--bir-bg-light); }

/* Section heading pattern ("Our Services" etc.) — centred blue heading + muted lead */
.bir-section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.bir-section-head h2 { color: var(--bir-primary); font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 700; }
.bir-section-head p  { color: var(--bir-text-muted); margin: 0; }

/* ============================================================
   Buttons
   ============================================================ */
.bir-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 30px;
  font-weight: 600; font-size: .95rem;
  border-radius: var(--bir-radius);
  background: var(--bir-primary); color: #fff;
  border: 2px solid var(--bir-primary);
  cursor: pointer; transition: background .2s ease, border-color .2s ease, color .2s ease, transform .15s ease;
  line-height: 1.2; text-align: center;
}
.bir-btn:hover { background: var(--bir-primary-dark); border-color: var(--bir-primary-dark); color: #fff; transform: translateY(-1px); }
.bir-btn--light { background: #fff; color: var(--bir-primary); border-color: #fff; }
.bir-btn--light:hover { background: var(--bir-bg-subtle); color: var(--bir-primary-dark); border-color: var(--bir-bg-subtle); }
.bir-btn--ghost { background: transparent; color: var(--bir-primary); border-color: var(--bir-primary); }
.bir-btn--ghost:hover { background: var(--bir-primary); color: #fff; }
.bir-btn svg { width: 1em; height: 1em; }

/* ============================================================
   Native content (legal / blog post body)
   ============================================================ */
.bir-entry { max-width: 860px; margin: 0 auto; }
.bir-entry h2 { color: var(--bir-primary); margin-top: 1.6em; font-size: 1.5rem; }
.bir-entry h3 { color: var(--bir-text-strong); margin-top: 1.4em; font-size: 1.2rem; }
.bir-entry a { text-decoration: underline; }
.bir-entry ul, .bir-entry ol { margin-bottom: 1.4em; }
.bir-entry img { border-radius: var(--bir-radius); margin: 1.5em 0; }
.bir-entry table { width: 100%; border-collapse: collapse; margin: 1.5em 0; }
.bir-entry th, .bir-entry td { border: 1px solid var(--bir-border); padding: 10px 14px; text-align: left; }

/* ============================================================
   Interior page banner (used on plain pages, archives, single, 404)
   ============================================================ */
.bir-banner {
  position: relative; background: var(--bir-primary); color: #fff;
  padding: 64px 0; background-size: cover; background-position: center;
}
.bir-banner.has-image::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18,48,107,.72), rgba(18,48,107,.82)); }
.bir-banner__inner { position: relative; }
.bir-banner__title { color: #fff; font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0 0 8px; }
.bir-breadcrumbs { color: rgba(255,255,255,.85); font-size: .9rem; }
.bir-breadcrumbs a { color: #fff; text-decoration: underline; }
.bir-breadcrumbs a:hover { color: var(--bir-accent); }

/* Accessibility */
.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;
}
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--bir-primary); color: #fff; padding: 10px 16px; z-index: 100000; }
.skip-link:focus { left: 8px; top: 8px; color: #fff; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

@media (max-width: 782px) {
  .bir-section { padding-block: 48px; }
}
