/*
Theme Name: London & Kent Cooling
Theme URI: https://www.london-kent-coolingltd.co.uk
Author: Welch Marketing Ltd
Author URI: https://www.welchmarketing.co.uk
Description: A premium, plugin-free WordPress theme built for London & Kent Cooling Ltd, air conditioning specialists covering London, Kent and the South of England. Self-building pages, menus, local SEO location pages, schema, a settings panel and a working contact form, all in one theme.
Version: 1.7.5
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lkc
*/

/* ==========================================================================
   Self-hosted fonts
   DM Sans (headings) and Inter (body). Drop the .woff2 files into
   /assets/fonts/ and these rules pick them up automatically. Until then the
   theme renders with the matching system stack below, with zero external
   requests. No Google Fonts CDN is ever called.
   ========================================================================== */
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/dm-sans.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("assets/fonts/inter.woff2") format("woff2");
}

/* ==========================================================================
   Design tokens
   ========================================================================== */
:root {
  --brand: #0c2f4b;        /* deep cool navy */
  --brand-deep: #082238;   /* darker navy for gradients and footer */
  --accent: #be2128;       /* logo red (trim) */
  --accent-deep: #9e1b21;  /* accent hover */
  --ink: #14202b;          /* near black text */
  --muted: #566574;        /* secondary text */
  --line: #e1e9f0;         /* borders */
  --cloud: #f4f8fb;        /* cool off white */
  --cloud-2: #eaf2f8;      /* slightly deeper neutral */
  --white: #ffffff;
  --gold: #f2b705;         /* star rating gold */

  --head: "DM Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --body: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1180px;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 18px 50px rgba(12, 47, 75, 0.12);
  --shadow-sm: 0 8px 24px rgba(12, 47, 75, 0.08);
  --transition: 0.25s ease;
}

/* ==========================================================================
   Reset and base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: hidden; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5 {
  font-family: var(--head);
  color: var(--brand);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 700;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); }
p { margin: 0 0 1.1rem; }
a { color: var(--accent-deep); text-decoration: none; cursor: pointer; transition: color var(--transition); }
a:hover { color: var(--brand); }
img { max-width: 100%; height: auto; display: block; }
/* Safety net: inline SVGs must never balloon, even in contexts with no specific
   rule (block editor, before the stylesheet paints). Per-context rules below
   are more specific and still win where they apply. */
svg { max-width: 100%; }
.lkc-icon { width: 1em; height: 1em; flex: 0 0 auto; vertical-align: middle; }
.logo-mark { height: 46px; width: auto; max-width: 100%; display: block; }
ul { margin: 0 0 1.1rem; padding-left: 1.2rem; }
li { margin-bottom: 0.4rem; }
strong { font-weight: 700; }

/* ==========================================================================
   Layout helpers
   ========================================================================== */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.section { padding: 84px 0; }
.section--tight { padding: 60px 0; }
.section--cloud { background: var(--cloud); }
.section--brand { background: var(--brand); color: #dce8f2; }
.section--brand h2, .section--brand h3 { color: var(--white); }
.eyebrow {
  display: inline-block;
  font-family: var(--head);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 14px;
}
.section--brand .eyebrow { color: var(--accent); }
.section-head { max-width: 720px; margin: 0 auto 52px; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.08rem; margin-bottom: 0; }
.section--brand .section-head p { color: #b7cbdd; }
.lead { font-size: 1.15rem; color: var(--muted); }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--head);
  font-weight: 700;
  font-size: 0.98rem;
  padding: 15px 30px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), background var(--transition), color var(--transition), box-shadow var(--transition);
  text-align: center;
  line-height: 1;
}
.btn svg { width: 18px; height: 18px; flex: 0 0 auto; }
.btn-primary { background: var(--accent); color: var(--white); box-shadow: 0 10px 26px rgba(190, 33, 40, 0.32); }
.btn-primary:hover { background: var(--accent-deep); color: var(--white); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, 0.55); }
.btn-ghost:hover { background: var(--white); color: var(--brand); transform: translateY(-2px); }
.btn-dark { background: var(--brand); color: var(--white); }
.btn-dark:hover { background: var(--brand-deep); color: var(--white); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--brand); border-color: var(--line); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent-deep); }
.btn-block { width: 100%; justify-content: center; }

/* ==========================================================================
   Top bar
   ========================================================================== */
.topbar {
  background: var(--brand-deep);
  color: #cfe0ee;
  font-size: 0.86rem;
}
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 18px; min-height: 44px; flex-wrap: wrap; }
.topbar a { color: #cfe0ee; }
.topbar a:hover { color: var(--white); }
.topbar-left { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; }
.topbar-item { display: inline-flex; align-items: center; gap: 7px; }
.topbar-item svg { width: 15px; height: 15px; color: var(--accent); }
.topbar-right { display: inline-flex; align-items: center; gap: 14px; }
.topbar-right a svg { width: 16px; height: 16px; }

/* ==========================================================================
   Header and navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 82px; }
.site-brand { display: inline-flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.site-brand .logo-mark { height: 46px; width: auto; display: block; }
.site-brand img.logo-img { height: 46px; width: auto; }

.primary-nav { display: flex; align-items: center; gap: 4px; }
.primary-nav ul { list-style: none; display: flex; flex-wrap: nowrap; align-items: center; gap: 2px; margin: 0; padding: 0; }
.primary-nav li { margin: 0; position: relative; }
.primary-nav a {
  font-family: var(--head);
  font-weight: 600;
  font-size: 0.97rem;
  color: var(--ink);
  padding: 10px 13px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.primary-nav a:hover,
.primary-nav .current-menu-item > a,
.primary-nav .current-menu-parent > a { color: var(--accent-deep); background: var(--cloud); }
.primary-nav .menu-item-has-children > a::after {
  content: "";
  width: 7px; height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  display: inline-block;
  opacity: 0.6;
}
.primary-nav .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 250px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: 8px;
  display: none;
  flex-direction: column;
  gap: 2px;
  z-index: 30;
}
.primary-nav li:hover > .sub-menu { display: flex; }
.primary-nav .sub-menu a { padding: 9px 12px; font-weight: 500; width: 100%; }

.header-cta { display: inline-flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.header-phone { display: inline-flex; align-items: center; gap: 8px; font-family: var(--head); font-weight: 700; color: var(--brand); font-size: 1.02rem; }
.header-phone svg { width: 18px; height: 18px; color: var(--accent); }

/* Mobile toggle (pure CSS checkbox) */
.nav-toggle-input { display: none; }
.nav-toggle {
  display: none;
  width: 46px; height: 46px;
  border-radius: 10px;
  background: var(--brand);
  cursor: pointer;
  position: relative;
  flex: 0 0 auto;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 22px; height: 2px;
  background: var(--white);
  transform: translateX(-50%);
  transition: var(--transition);
}
.nav-toggle span { top: 50%; margin-top: -1px; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  background: linear-gradient(150deg, var(--brand-deep) 0%, var(--brand) 55%, #0f3a5c 100%);
  color: #e6f1f9;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -160px; top: -160px;
  width: 620px; height: 620px;
  background: radial-gradient(circle, rgba(190, 33, 40, 0.28), transparent 60%);
  pointer-events: none;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
  padding: 96px 0 90px;
  position: relative;
  z-index: 2;
}
.hero h1 { color: var(--white); margin-bottom: 20px; }
.hero p.hero-sub { font-size: 1.18rem; color: #c6dbeb; max-width: 560px; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 34px; }
.hero-badges { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 9px 15px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 600;
  font-family: var(--head);
  color: #e6f1f9;
}
.hero-badge svg { width: 16px; height: 16px; color: var(--accent); flex: 0 0 auto; }

/* Accreditation logos (used when a logo image is set for an accreditation). */
.acc-logo { display: block; width: auto; object-fit: contain; }
.trust-item--logo { gap: 0; }
.hero-badge--logo { background: #fff; border-color: #fff; padding: 8px 14px; }
.footer-badge--logo { background: #fff; border-color: #fff; padding: 7px 12px; display: inline-flex; align-items: center; }
.acc-logo-wrap { display: flex; align-items: center; justify-content: center; min-height: 66px; margin-bottom: 14px; }
.acc-logo-wrap .acc-logo { height: 60px; }
.acc-features .feature { text-align: center; }
.acc-features .feature h3 { margin: 0; }

.hero-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  color: var(--ink);
}
.hero-card h3 { color: var(--brand); font-size: 1.3rem; margin-bottom: 6px; }
.hero-card p.small { color: var(--muted); font-size: 0.95rem; margin-bottom: 18px; }
.hero-media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.hero-media .ph { min-height: 260px; }

/* Editable photos fill their container (hero, about, service) without stretching. */
.hero-media .lkc-photo,
.about-visual .media .lkc-photo,
.content-body .media .lkc-photo,
.media .lkc-photo { width: 100%; height: 100%; object-fit: cover; display: block; }

/* The About photo shows the whole image (no crop) at its natural proportions. */
.about-grid .media { aspect-ratio: auto; }
.about-grid .media .lkc-photo,
.about-visual .media .lkc-photo { height: auto; object-fit: contain; }

/* The hero photo is a plain full-width image (no fixed aspect, no crop). */
.hero-media .lkc-photo { width: 100%; height: auto; object-fit: fill; display: block; }

/* Placeholder graphic */
.ph {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    repeating-linear-gradient(45deg, rgba(12,47,75,0.04) 0 12px, rgba(12,47,75,0.07) 12px 24px),
    linear-gradient(135deg, var(--cloud-2), var(--cloud));
  color: var(--brand);
  text-align: center;
  min-height: 200px;
}
.ph span {
  font-family: var(--head);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.66;
  padding: 12px;
}
.ph svg { width: 44px; height: 44px; opacity: 0.5; margin-bottom: 8px; }
.ph-inner { display: flex; flex-direction: column; align-items: center; }

/* ==========================================================================
   Trust strip (accreditations)
   ========================================================================== */
.trust-strip { background: var(--white); border-bottom: 1px solid var(--line); }
.trust-strip .wrap { display: flex; align-items: center; justify-content: center; gap: 18px 40px; flex-wrap: wrap; padding-top: 26px; padding-bottom: 26px; }
.trust-item { display: inline-flex; align-items: center; gap: 10px; color: var(--brand); font-family: var(--head); font-weight: 600; font-size: 0.95rem; }
.trust-item svg { width: 22px; height: 22px; color: var(--accent); flex: 0 0 auto; }

/* ==========================================================================
   About intro
   ========================================================================== */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.about-grid .media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.check-list { list-style: none; padding: 0; margin: 22px 0; display: grid; grid-template-columns: 1fr; gap: 12px 22px; }
.check-list li { display: flex; align-items: flex-start; gap: 10px; margin: 0; font-weight: 500; }
.check-list svg { width: 20px; height: 20px; color: var(--accent); flex: 0 0 auto; margin-top: 2px; }

/* ==========================================================================
   Services grid
   ========================================================================== */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 34px; }
.card-grid--2col { grid-template-columns: repeat(2, 1fr); }
.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  display: flex;
  flex-direction: column;
}
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.service-ico {
  width: 58px; height: 58px;
  border-radius: 14px;
  background: linear-gradient(140deg, var(--accent), var(--brand));
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.service-ico svg { width: 28px; height: 28px; color: var(--white); }
.service-card h3 { margin-bottom: 10px; min-height: 2.3em; }
.service-card p { color: var(--muted); font-size: 0.98rem; margin-bottom: 20px; flex-grow: 1; }
.service-card .card-link { font-family: var(--head); font-weight: 700; color: var(--accent-deep); display: inline-flex; align-items: center; gap: 7px; }
.service-card .card-link svg { width: 16px; height: 16px; transition: transform var(--transition); }
.service-card:hover .card-link svg { transform: translateX(4px); }

/* ==========================================================================
   Why choose (features)
   ========================================================================== */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 30px; }
.feature { text-align: left; }
.feature-ico {
  width: 54px; height: 54px;
  border-radius: 50%;
  background: rgba(190, 33, 40, 0.12);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.feature-ico svg { width: 26px; height: 26px; color: var(--accent-deep); }
.section--brand .feature-ico { background: rgba(255, 255, 255, 0.1); }
.section--brand .feature-ico svg { color: var(--accent); }
.feature h3 { font-size: 1.18rem; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 0.97rem; margin: 0; }
.section--brand .feature p { color: #b7cbdd; }

/* ==========================================================================
   Clients band
   ========================================================================== */
.clients-band { text-align: center; }
.client-logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 16px; margin-top: 30px; }
.client-chip {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 12px 26px;
  font-family: var(--head);
  font-weight: 700;
  color: var(--brand);
  letter-spacing: 0.02em;
  font-size: 0.98rem;
  box-shadow: var(--shadow-sm);
}
.client-logo { display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.client-logo-img { display: block; object-fit: contain; }
.clients-band .client-logos { gap: 26px 46px; margin-top: 34px; }

/* ==========================================================================
   Reviews
   ========================================================================== */
.review-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 26px; }
.review-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.stars { display: inline-flex; gap: 3px; margin-bottom: 14px; }
.stars svg { width: 18px; height: 18px; color: var(--gold); }
.review-card p.quote { color: var(--ink); font-size: 1.02rem; margin-bottom: 18px; flex-grow: 1; }
.review-author { font-family: var(--head); font-weight: 700; color: var(--brand); }
.review-meta { color: var(--muted); font-size: 0.9rem; }

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta-band {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%);
  color: var(--white);
  border-radius: var(--radius);
  padding: 54px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.cta-band::after {
  content: "";
  position: absolute; right: -80px; bottom: -120px;
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(190,33,40,0.3), transparent 60%);
}
.cta-band h2 { color: var(--white); margin-bottom: 8px; position: relative; z-index: 2; }
.cta-band p { color: #c6dbeb; margin: 0; position: relative; z-index: 2; }
.cta-band .cta-actions { display: flex; gap: 14px; flex-wrap: wrap; position: relative; z-index: 2; }

/* ==========================================================================
   Areas covered
   ========================================================================== */
.area-links { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.area-link {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 11px 22px;
  font-family: var(--head);
  font-weight: 600;
  color: var(--brand);
  display: inline-flex; align-items: center; gap: 8px;
  transition: var(--transition);
}
.area-link:hover { border-color: var(--accent); color: var(--accent-deep); transform: translateY(-2px); }
.area-link svg { width: 15px; height: 15px; color: var(--accent); }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 14px; background: var(--white); overflow: hidden; }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  font-family: var(--head);
  font-weight: 700;
  color: var(--brand);
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.5rem;
  color: var(--accent);
  flex: 0 0 auto;
  line-height: 1;
}
.faq-item[open] summary::after { content: "\2013"; }
.faq-item .faq-body { padding: 0 24px 22px; color: var(--muted); }
.faq-item .faq-body p:last-child { margin-bottom: 0; }

/* ==========================================================================
   Page hero (interior)
   ========================================================================== */
.page-hero {
  background: linear-gradient(150deg, var(--brand-deep), var(--brand));
  color: #e6f1f9;
  padding: 62px 0 66px;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute; right: -120px; top: -120px;
  width: 460px; height: 460px;
  background: radial-gradient(circle, rgba(190,33,40,0.24), transparent 62%);
}
.page-hero .wrap { position: relative; z-index: 2; }
.page-hero h1 { color: var(--white); margin-bottom: 12px; }
.page-hero p { color: #c6dbeb; max-width: 640px; margin: 0; font-size: 1.12rem; }
.breadcrumbs { font-size: 0.86rem; color: #9fbdd4; margin-bottom: 16px; }
.breadcrumbs a { color: #c6dbeb; }
.breadcrumbs a:hover { color: var(--white); }
.breadcrumbs span { margin: 0 7px; opacity: 0.6; }

/* ==========================================================================
   Content typography (interior body)
   ========================================================================== */
.content-body { max-width: 820px; }
.content-body.wide { max-width: none; }
.content-body h2 { margin-top: 1.6em; }
.content-body h3 { margin-top: 1.4em; color: var(--brand); }
.content-body ul li::marker { color: var(--accent); }
.prose-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 48px; align-items: start; }
.sidebar-card {
  background: var(--cloud);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  position: sticky;
  top: 110px;
}
.sidebar-card h3 { font-size: 1.15rem; margin-bottom: 14px; }
.sidebar-card ul { list-style: none; padding: 0; margin: 0 0 18px; }
.sidebar-card ul li { margin-bottom: 8px; }
.sidebar-card ul li a { display: flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 500; }
.sidebar-card ul li a:hover { color: var(--accent-deep); }
.sidebar-card ul li svg { width: 15px; height: 15px; color: var(--accent); flex: 0 0 auto; }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-detail { display: flex; gap: 14px; margin-bottom: 22px; align-items: flex-start; }
.contact-detail .ico {
  width: 46px; height: 46px; border-radius: 12px; flex: 0 0 auto;
  background: rgba(190,33,40,0.12);
  display: flex; align-items: center; justify-content: center;
}
.contact-detail .ico svg { width: 20px; height: 20px; color: var(--accent-deep); }
.contact-detail h4 { font-family: var(--head); color: var(--brand); margin: 0 0 3px; font-size: 1rem; }
.contact-detail p, .contact-detail a { margin: 0; color: var(--muted); }
.contact-detail a:hover { color: var(--accent-deep); }

.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow-sm); }
.field { margin-bottom: 18px; }
.field label { display: block; font-family: var(--head); font-weight: 600; font-size: 0.9rem; color: var(--brand); margin-bottom: 7px; }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: var(--body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--cloud);
  transition: border var(--transition), box-shadow var(--transition);
  cursor: text;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(190,33,40,0.15);
  background: var(--white);
}
.field textarea { min-height: 130px; resize: vertical; }
.hp-field { position: absolute; left: -9999px; top: -9999px; height: 0; width: 0; overflow: hidden; }
.form-note { font-size: 0.86rem; color: var(--muted); margin-top: 6px; }
.form-alert { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 20px; font-weight: 500; }
.form-alert.ok { background: #e5f6ec; color: #1b7a44; border: 1px solid #b7e2c6; }
.form-alert.err { background: #fdecec; color: #c02626; border: 1px solid #f4c2c2; }

.map-embed { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.map-embed iframe { display: block; width: 100%; height: 320px; border: 0; }

/* ==========================================================================
   Blog
   ========================================================================== */
.post-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; }
.post-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post-card .post-date { font-size: 0.82rem; color: var(--accent-deep); font-weight: 700; font-family: var(--head); letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 10px; }
.post-card h3 { font-size: 1.22rem; margin-bottom: 10px; }
.post-card h3 a { color: var(--brand); }
.post-card h3 a:hover { color: var(--accent-deep); }
.post-card p { color: var(--muted); font-size: 0.97rem; flex-grow: 1; }
.post-card .card-link { font-family: var(--head); font-weight: 700; color: var(--accent-deep); display: inline-flex; align-items: center; gap: 7px; margin-top: 6px; }
.post-card .card-link svg { width: 15px; height: 15px; }
.single-content { max-width: 780px; margin: 0 auto; }
.single-content h2 { margin-top: 1.6em; }
.single-content img { border-radius: var(--radius); margin: 1.5em 0; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--brand-deep); color: #a9c2d6; padding: 70px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 40px; padding-bottom: 48px; align-items: start; }
.footer-col h4 { color: var(--white); font-family: var(--head); font-size: 1.02rem; margin: 0 0 18px; letter-spacing: 0.02em; min-height: 46px; display: flex; align-items: center; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col a { color: #a9c2d6; }
.footer-col a:hover { color: var(--white); }
.footer-brand .logo-mark { height: 46px; margin-bottom: 18px; }
.footer-brand .logo-img { height: 46px; width: auto; margin-bottom: 18px; }
.footer-brand p { font-size: 0.95rem; color: #94b1c8; max-width: 320px; }
.footer-contact-item { display: flex; gap: 10px; margin-bottom: 12px; align-items: flex-start; }
.footer-contact-item svg { width: 17px; height: 17px; color: var(--accent); flex: 0 0 auto; margin-top: 3px; }
.footer-badges { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.footer-badge { background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12); border-radius: 8px; padding: 8px 12px; font-size: 0.8rem; font-family: var(--head); font-weight: 600; color: #cfe0ee; }
.footer-social { display: flex; gap: 12px; margin-top: 18px; }
.footer-social a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; }
.footer-social a:hover { background: var(--accent); }
.footer-social svg { width: 18px; height: 18px; color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 22px 0; font-size: 0.85rem; text-align: center; color: #86a5bd; }
.footer-bottom a { color: #a9c2d6; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; padding: 70px 0 88px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px; }
  .prose-grid { grid-template-columns: 1fr; }
  .sidebar-card { position: static; }
}

/* ==========================================================================
   Mobile: stacked layouts and rhythm (<= 900px)
   ========================================================================== */
@media (max-width: 900px) {
  .section { padding: 60px 0; }
  .section-head { margin-bottom: 34px; }

  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-grid .about-visual { order: -1; }
  .home .about-grid .about-visual { order: 0; }
  .card-grid--2col { grid-template-columns: 1fr; }

  .cta-band { flex-direction: column; align-items: flex-start; text-align: left; padding: 34px 28px; gap: 18px; }
  .cta-band .cta-actions { width: 100%; flex-direction: column; }
  .cta-band .cta-actions .btn { width: 100%; justify-content: center; }
}

/* ==========================================================================
   Mobile: hero + phone polish (<= 820px)
   ========================================================================== */
@media (max-width: 820px) {
  .section { padding: 54px 0; }
  .section-head { margin-bottom: 28px; }
  h2 { font-size: clamp(1.6rem, 6.4vw, 2.1rem); }

  /* Hero: compact, centered, with the image kept below the buttons. */
  .hero::after { width: 340px; height: 340px; right: -110px; top: -90px; }
  .hero-inner { padding: 0 0 40px; gap: 32px; align-items: start; }
  .hero-copy { display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: 22px; }
  .hero-copy .eyebrow { margin-bottom: 10px; }
  .hero h1 { font-size: clamp(1.95rem, 8vw, 2.5rem); line-height: 1.14; margin-bottom: 14px; }
  .hero p.hero-sub { font-size: 1.04rem; line-height: 1.55; margin: 0 auto 24px; max-width: 440px; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 12px; width: 100%; max-width: 340px; margin: 0 auto; }
  .hero-actions .btn { width: 100%; justify-content: center; padding: 15px 22px; }
  .hero-media { max-width: 420px; margin: 0 auto 22px; }
  .hero-badges { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

  /* Trust strip removed on mobile. */
  .trust-strip { display: none; }

  /* Service cards: single column, so no forced 2-line heading. */
  .service-card { padding: 26px 24px; }
  .service-card h3 { min-height: 0; }

  /* Client logos band. */
  .clients-band .client-logos { gap: 22px 30px; }

  /* Final call-to-action buttons stack full width. */
  .section--brand .hero-actions { max-width: 340px; }
}

/* Brand logos on mobile. */
@media (max-width: 640px) {
  .client-logos--brands .client-logo-img { max-height: 90px !important; max-width: 240px !important; }
}

/* Tighten the header on narrower laptops so the single-line nav always fits. */
@media (min-width: 1025px) and (max-width: 1200px) {
  .header-inner { gap: 12px; }
  .primary-nav ul { gap: 0; }
  .primary-nav a { padding: 10px 10px; font-size: 0.9rem; }
  .header-phone { font-size: 0.95rem; }
  .header-cta { gap: 8px; }
}

/* Mobile navigation: below 1024px. Neutralise the backdrop-filter so the
   fixed full-screen menu is not trapped in the header's containing block. */
@media (max-width: 1024px) {
  .topbar { display: none; }
  .site-header { backdrop-filter: none; }
  .nav-toggle { display: block; }
  .header-phone { display: none; }
  .header-cta .btn { display: none; }

  .primary-nav {
    position: fixed;
    inset: 0;
    top: 0;
    background: var(--brand-deep);
    display: none;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 92px 26px 40px;
    overflow-y: auto;
    z-index: 90;
  }
  .nav-toggle-input:checked ~ .primary-nav { display: flex; }
  .nav-toggle-input:checked ~ .nav-toggle span { background: transparent; }
  .nav-toggle-input:checked ~ .nav-toggle span::before { top: 0; transform: rotate(45deg); }
  .nav-toggle-input:checked ~ .nav-toggle span::after { top: 0; transform: rotate(-45deg); }

  .primary-nav ul { flex-direction: column; align-items: stretch; gap: 2px; width: 100%; }
  .primary-nav a { color: #e6f1f9; font-size: 1.1rem; padding: 14px 12px; border-radius: 8px; }
  .primary-nav a:hover,
  .primary-nav .current-menu-item > a { background: rgba(255,255,255,0.08); color: var(--white); }
  .primary-nav .sub-menu {
    position: static;
    display: flex;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0 0 6px 14px;
    min-width: 0;
  }
  .primary-nav .sub-menu a { color: #b7cbdd; font-size: 1rem; padding: 10px 12px; }
  .primary-nav .menu-item-has-children > a::after { display: none; }

  .mobile-nav-cta { margin-top: 20px; display: flex; flex-direction: column; gap: 12px; }
  .mobile-nav-cta .btn { display: inline-flex; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding: 54px 0; }
  .wrap { padding: 0 18px; }
  .check-list { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; align-items: flex-start; text-align: left; }
  .footer-grid { grid-template-columns: 1fr; }
  .topbar-left { gap: 14px; }
  .hero-card { padding: 24px; }
  .btn { padding: 14px 24px; }
}

/* Utilities */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.hidden { display: none; }
.mobile-nav-cta { display: none; }
