/*
Theme Name: TechRepairHub
Theme URI: https://techrepairhub.co.uk
Author: TechRepairHub
Author URI: https://techrepairhub.co.uk
Description: Professional tech repair and IT support theme for TechRepairHub.co.uk — Nottingham's trusted repair centre.
Version: 5.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: techrepairhub
Tags: business, custom-colors, custom-menu, featured-images, responsive-layout
*/

/* ── RESET & BASE ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* FINAL logo-matched palette: navy #1B2B4B, blue #0066CC, lime #7AC943.
     --green is a dark lime-family green so it passes AA both as text on white
     (5.16:1) and as a surface under white text (5.16:1); --green-mid is the
     exact logo lime, used for bright accents/success/eco on dark or light bg. */
  --navy:        #1B2B4B; /* logo "TECH" navy — headings, dark bars, primary text */
  --navy-light:  #2A3E63;
  --green:       #2F7D1A; /* dark lime brand green — buttons, links-hover, icons */
  --green-dark:  #21600F; /* darker green — hovers */
  --green-light: #eef7e3; /* light lime tint — soft backgrounds */
  --green-mid:   #7AC943; /* logo "HUB" lime — bright accents, success, eco */
  --blue:        #0066CC; /* logo "REPAIR" blue — links, secondary accents */
  --orange:      #E8641B; /* brand orange — single shop/refurb CTA colour sitewide */
  --orange-dark: #C24F10;
  --white:       #ffffff;
  --off-white:   #fafafa;
  --bg-light:    #f4f7f4;
  --text:        #1a1a1a;
  --text-mid:    #555555;
  --text-light:  #9e9e9e;
  --border:      #e8f0e8;
  --shadow-g:    rgba(46,125,50,0.15);
  --font:        'Inter', system-ui, -apple-system, sans-serif;
  --font-head:   'Urbanist', 'Inter', system-ui, -apple-system, sans-serif;
  --radius:      12px;
  --radius-lg:   20px;
  --radius-full: 9999px;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); background: #fff; line-height: 1.6; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5, h6, .section-title, .hero h1 { font-family: var(--font-head); color: var(--navy); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section-pad { padding: 80px 0; }
.section-title { font-size: 2.2rem; font-weight: 900; color: var(--navy); line-height: 1.1; }
.section-subtitle { color: var(--text-mid); margin-top: 10px; font-size: 1rem; }
.eyebrow { color: var(--green); font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 8px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 28px; border-radius: var(--radius-full); font-weight: 700; font-size: 0.9rem; cursor: pointer; border: none; transition: all 0.2s; text-decoration: none; }
.btn-primary { background: var(--green); color: #fff; box-shadow: 0 4px 20px var(--shadow-g); }
.btn-primary:hover { background: var(--green-dark); color: #fff; text-decoration: none; transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--text); border: 2px solid var(--border); }
.btn-outline:hover { border-color: var(--green); color: var(--green); text-decoration: none; }
.btn-white { background: #fff; color: var(--green); font-weight: 900; }
.btn-white:hover { background: #f1f8f1; color: var(--green); text-decoration: none; }
.btn-white-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.5); }
.btn-white-outline:hover { background: rgba(255,255,255,0.1); color: #fff; text-decoration: none; }
/* Shop/refurb CTA — brand orange #E8641B (matches logo), single orange sitewide.
   Near-black text #1a1a1a on #E8641B: contrast 5.0:1 (WCAG AA). Hover darkens. */
.btn-shop { background: var(--orange); color: #1a1a1a; min-height: 48px; box-shadow: 0 4px 20px rgba(232, 100, 27, 0.35); }
.btn-shop:hover, .btn-shop:focus { background: var(--orange-dark); color: #fff; text-decoration: none; transform: translateY(-1px); }
.btn-shop:focus-visible { outline: 3px solid #7A3208; outline-offset: 2px; }

/* ── TOP BAR ────────────────────────────────────────────── */
.top-bar { background: var(--navy); color: #fff; padding: 8px 0; font-size: 0.78rem; font-weight: 500; }
.top-bar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.top-bar-left { display: flex; gap: 24px; }
.top-bar-item { display: flex; align-items: center; gap: 6px; color: #fff; }
.top-bar-item svg { color: var(--green-mid); flex-shrink: 0; }
.top-bar-contact { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.top-bar-phone, .top-bar-email { color: #fff; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.top-bar-phone:hover, .top-bar-email:hover { color: var(--green-mid); text-decoration: none; }

/* ── HEADER / NAV ───────────────────────────────────────── */
.site-header { background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; max-width: 1200px; margin: 0 auto; gap: 20px; }
.site-logo { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; min-width: 0; }
.site-logo-img,
.site-logo svg { display: block; height: 56px; width: auto; }
/* Homepage: full v5 logo with tagline — taller so the tagline stays legible. */
.site-logo-home svg { height: 84px; }
.main-nav ul { display: flex; flex-wrap: nowrap; gap: 16px; }
.main-nav a { font-size: 0.88rem; font-weight: 600; color: var(--text-mid); transition: color 0.2s; white-space: nowrap; }
.main-nav a:hover, .main-nav .current-menu-item a { color: var(--green); text-decoration: none; }
/* Dropdown (desktop hover / focus) */
.main-nav li { position: relative; }
.main-nav li.has-dropdown > a { display: inline-flex; align-items: center; gap: 5px; }
.main-nav .sub-menu { display: none; position: absolute; top: 100%; left: -14px; min-width: 230px; background: #fff; border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 12px 32px rgba(0,0,0,0.12); padding: 8px; z-index: 200; flex-direction: column; gap: 0; }
.main-nav li.has-dropdown:hover > .sub-menu,
.main-nav li.has-dropdown:focus-within > .sub-menu,
.main-nav li.has-dropdown.open > .sub-menu { display: flex; }
.main-nav .sub-menu li { width: 100%; }
.main-nav .sub-menu a { display: block; padding: 9px 12px; border-radius: 8px; font-size: 0.85rem; }
.main-nav .sub-menu a:hover { background: var(--green-light, #e8f5e9); }
.dropdown-caret { transition: transform 0.2s; flex-shrink: 0; }
.main-nav li.has-dropdown.open > a .dropdown-caret { transform: rotate(180deg); }
.header-cta { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.header-phone { text-align: right; }
.header-phone-num { display: block; color: var(--green); font-weight: 900; font-size: 0.9rem; }
.header-phone-sub { font-size: 0.7rem; color: var(--text-light); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
/* Desktop-only logo crop: the logo SVGs carry ~14% transparent canvas on the
   left and ~10% on the right. Clip it and pull the artwork over with negative
   margins so the wordmark sits flush with the content edge (aligned with the
   top bar) and the reclaimed width is handed to the nav. Scoped to desktop so
   the width-driven mobile logo stays exactly as it was. */
@media (min-width: 769px) {
  .site-logo { overflow: hidden; }
  .site-logo svg, .site-logo img { margin-left: -61px; margin-right: -42px; }
  .site-logo-home svg, .site-logo-home img { margin-left: -60px; margin-right: -40px; }
}

/* ── HERO ───────────────────────────────────────────────── */
.hero { background: linear-gradient(135deg, var(--green-light), #f1f8e9); padding: 80px 0; overflow: hidden; position: relative; }
.hero-inner { display: grid; grid-template-columns: 1fr 420px; gap: 60px; align-items: center; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--green-light); border-radius: var(--radius-full); padding: 6px 16px; font-size: 0.75rem; font-weight: 700; color: var(--green); margin-bottom: 22px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.hero-badge-dot { width: 8px; height: 8px; background: var(--green); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.6;transform:scale(1.2)} }
.hero h1 { font-size: 3rem; font-weight: 900; line-height: 1.07; margin-bottom: 20px; color: var(--navy); }
.hero h1 span.green { color: var(--green); }
.hero h1 span.sub { font-size: 1.6rem; font-weight: 700; color: var(--text-mid); display: block; margin-top: 6px; }
.hero-desc { color: var(--text-mid); font-size: 1rem; line-height: 1.7; margin-bottom: 30px; max-width: 520px; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-stats { display: flex; gap: 32px; flex-wrap: wrap; }
.hero-stat-val { font-size: 1.4rem; font-weight: 900; color: var(--green); }
.hero-stat-label { font-size: 0.72rem; color: var(--text-light); margin-top: 2px; }
.hero-img-wrap { position: relative; }
.hero-img { width: 100%; height: 380px; object-fit: cover; border-radius: 24px; border: 4px solid #fff; box-shadow: 0 20px 60px rgba(0,0,0,0.12); }
.hero-badge-float { position: absolute; bottom: -16px; left: -24px; background: #fff; border-radius: var(--radius); padding: 14px 16px; box-shadow: 0 8px 24px rgba(0,0,0,0.1); display: flex; align-items: center; gap: 10px; border: 1px solid var(--border); }
.hero-badge-icon { width: 38px; height: 38px; background: var(--green-light); border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.hero-badge-icon svg { color: var(--green); }
.hero-badge-title { font-weight: 700; font-size: 0.85rem; color: var(--text); }
.hero-badge-sub { font-size: 0.7rem; color: var(--text-light); }
.hero-corner-badge { position: absolute; top: -16px; right: -16px; background: var(--green); color: #fff; border-radius: var(--radius); padding: 14px 16px; text-align: center; box-shadow: 0 4px 16px var(--shadow-g); }
.hero-corner-badge .line1, .hero-corner-badge .line2 { display: block; font-weight: 900; font-size: 1.1rem; line-height: 1.1; }
.hero-corner-badge .line3 { display: block; font-size: 0.65rem; color: var(--green-mid); margin-top: 2px; }

/* ── TRUST BAR ──────────────────────────────────────────── */
.trust-bar { background: var(--green); padding: 18px 0; }
.trust-bar-inner { display: flex; justify-content: center; gap: 32px; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 12px; color: #fff; font-size: 0.85rem; font-weight: 700; }
.trust-icon-badge { width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; box-shadow: 0 2px 8px rgba(0,0,0,0.18); transition: transform 0.2s ease; }
.trust-item:hover .trust-icon-badge { transform: scale(1.08); }
.trust-icon-badge svg { display: block; }
.ti-amber  { background: var(--orange); color: #1a1a1a; }
.ti-white  { background: #ffffff; color: #2F7D1A; }
.ti-coral  { background: #FF7059; color: #ffffff; }
.ti-sky    { background: #7DD3FC; color: #0c4a6e; }
.ti-yellow { background: #FDE68A; color: #713f12; }
a.trust-item { text-decoration: none; }
a.trust-item:hover { text-decoration: underline; color: #fff; }

/* ── SERVICES ───────────────────────────────────────────── */
.services-section { background: var(--off-white); }
.services-header { text-align: center; margin-bottom: 52px; }
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.service-card { background: #fff; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); transition: all 0.2s; display: flex; flex-direction: column; }
.service-card:hover { box-shadow: 0 8px 30px rgba(0,0,0,0.1); border-color: #c8e6c9; transform: translateY(-2px); }
.service-card-img { height: 160px; overflow: hidden; position: relative; }
.service-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.service-card:hover .service-card-img img { transform: scale(1.05); }
.service-card-img-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.3)); }
.service-icon-wrap { position: absolute; top: 12px; left: 12px; background: rgba(255,255,255,0.92); backdrop-filter: blur(4px); border-radius: 8px; padding: 6px; }
.service-icon-wrap svg { color: var(--green); display: block; }
.service-card-body { padding: 18px; flex: 1; display: flex; flex-direction: column; }
.service-card-body h3 { font-size: 0.95rem; font-weight: 900; color: var(--text); margin-bottom: 8px; }
.service-card-body p { color: var(--text-mid); font-size: 0.8rem; line-height: 1.6; margin-bottom: 12px; flex: 1; }
.service-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 12px; }
.service-tag { background: var(--green-light); color: var(--green); font-size: 0.65rem; font-weight: 700; padding: 3px 8px; border-radius: var(--radius-full); }
.service-link { display: flex; align-items: center; gap: 4px; color: var(--green); font-size: 0.8rem; font-weight: 700; transition: gap 0.2s; }
.service-link:hover { gap: 8px; text-decoration: none; }

/* ── WHY US ─────────────────────────────────────────────── */
.why-us { background: #fff; }
.why-us-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.why-us-points { display: flex; flex-direction: column; gap: 20px; margin-top: 28px; }
.why-point { display: flex; align-items: flex-start; gap: 14px; }
.why-point-icon { width: 38px; height: 38px; background: var(--green-light); border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px; }
.why-point-icon svg { color: var(--green); }
.why-point-title { font-weight: 700; font-size: 0.9rem; color: var(--text); }
.why-point-desc { font-size: 0.78rem; color: var(--text-mid); margin-top: 2px; line-height: 1.6; }
.why-images { display: grid; grid-template-rows: auto auto; gap: 16px; }
.why-img-main { width: 100%; height: 280px; object-fit: cover; border-radius: 20px; border: 4px solid #f0f4f0; box-shadow: 0 12px 40px rgba(0,0,0,0.08); }
.why-img-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.why-img-small { width: 100%; height: 150px; object-fit: cover; border-radius: var(--radius); box-shadow: 0 4px 16px rgba(0,0,0,0.08); }

/* ── AREAS ──────────────────────────────────────────────── */
.areas-section { background: var(--green-light); }
.areas-header { text-align: center; margin-bottom: 36px; }
.areas-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 24px; }
.area-pill { display: flex; align-items: center; gap: 6px; background: #fff; border: 1px solid #c8e6c9; border-radius: var(--radius-full); padding: 8px 18px; font-size: 0.85rem; font-weight: 600; color: var(--green); box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.area-pill svg { flex-shrink: 0; }
.areas-note { text-align: center; color: var(--text-mid); font-size: 0.82rem; }
.areas-note a { color: var(--green); font-weight: 700; }

/* ── REVIEWS ────────────────────────────────────────────── */
.reviews-section { background: #fff; }
.reviews-header { text-align: center; margin-bottom: 48px; }
.reviews-rating { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 10px; }
.stars { display: flex; gap: 2px; }
.stars svg { color: #f59e0b; fill: #f59e0b; }
.reviews-rating-text { color: var(--text-mid); font-size: 0.85rem; font-weight: 600; }
.reviews-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.review-card { background: var(--off-white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; transition: box-shadow 0.2s; }
.review-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.review-stars { display: flex; gap: 2px; margin-bottom: 12px; }
.review-stars svg { color: #f59e0b; fill: #f59e0b; width: 14px; height: 14px; }
.review-text { color: var(--text-mid); font-size: 0.8rem; line-height: 1.7; font-style: italic; margin-bottom: 16px; }
.review-author { display: flex; align-items: center; gap: 10px; }
.review-avatar { width: 34px; height: 34px; background: var(--green-light); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 0.85rem; color: var(--green); flex-shrink: 0; }
.review-name { font-weight: 700; font-size: 0.82rem; color: var(--text); }
.review-location { font-size: 0.7rem; color: var(--text-light); display: flex; align-items: center; gap: 3px; margin-top: 1px; }
.review-location svg { flex-shrink: 0; }

/* ── CTA BANNER ─────────────────────────────────────────── */
.cta-banner { background: linear-gradient(135deg, var(--green-dark), var(--green)); padding: 72px 0; text-align: center; }
.cta-banner h2 { font-size: 2.4rem; font-weight: 900; color: #fff; margin-bottom: 12px; }
.cta-banner p { color: #ffffff; font-size: 1rem; margin-bottom: 32px; max-width: 480px; margin-left: auto; margin-right: auto; }
.cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── FOOTER ─────────────────────────────────────────────── */
.site-footer { background: #1a1a1a; color: rgba(255,255,255,0.92); padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 2fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-cols-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.footer-area-item { display: flex; flex-direction: column; }
.footer-area-row { display: flex; align-items: center; gap: 6px; }
.footer-area-row a { font-size: 0.78rem; color: #F2F5F3; }
.footer-area-row a:hover { color: #7AC943; text-decoration: none; }
.footer-area-toggle { background: none; border: none; padding: 2px; cursor: pointer; color: rgba(255,255,255,0.75); display: inline-flex; align-items: center; transition: transform 0.2s, color 0.2s; }
.footer-area-toggle:hover { color: #7AC943; }
.footer-area-toggle.is-open { transform: rotate(90deg); }
.footer-area-subs { font-size: 0.72rem; color: rgba(255,255,255,0.75); line-height: 1.6; padding: 4px 0 2px; }
.footer-about-logo { margin-bottom: 16px; }
.footer-logo-img,
.footer-about-logo svg { display: block; width: 300px; max-width: 100%; height: auto; }

/* ── TRACK YOUR REPAIR (homepage band + contact callout + header link) ── */
.header-track-link { font-size: 0.82rem; font-weight: 700; color: var(--green); white-space: nowrap; }
.header-track-link:hover { color: var(--green-dark); text-decoration: none; }
.track-band { background: #e8f5e9; }
.track-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.track-band-text { max-width: 640px; }
.track-band .btn { flex-shrink: 0; }
.track-callout { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; background: #e8f5e9; border: 1px solid #c8e6c9; border-radius: 14px; padding: 18px 22px; margin-bottom: 28px; }
.track-callout-text { font-size: 0.9rem; color: var(--text-mid); line-height: 1.6; }
.track-callout .btn { flex-shrink: 0; }
.footer-about-desc { font-size: 0.78rem; line-height: 1.7; margin-bottom: 14px; }
.footer-contact-item { font-size: 0.78rem; color: var(--green-mid); font-weight: 700; }
.footer-col-title { color: #fff; font-weight: 700; font-size: 0.9rem; margin-bottom: 18px; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { font-size: 0.78rem; color: #F2F5F3; transition: color 0.2s; }
.footer-links a:hover { color: #7AC943; text-decoration: none; }
.footer-contact-list { display: flex; flex-direction: column; gap: 12px; }
.footer-contact-row { display: flex; align-items: flex-start; gap: 8px; font-size: 0.78rem; }
.footer-contact-row svg { color: var(--green-mid); flex-shrink: 0; margin-top: 2px; }
.footer-quote-box { margin-top: 20px; padding: 14px; background: rgba(46,125,50,0.15); border: 1px solid rgba(46,125,50,0.3); border-radius: var(--radius); }
.footer-quote-box-title { color: var(--green-mid); font-size: 0.75rem; font-weight: 700; margin-bottom: 4px; }
.footer-quote-box p { font-size: 0.72rem; line-height: 1.5; }
.footer-cert-badge { font-size: 0.7rem; color: #9fd3b3; font-weight: 600; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 20px 0; display: flex; justify-content: space-between; align-items: center; font-size: 0.75rem; flex-wrap: wrap; gap: 8px; color: rgba(255,255,255,0.75); }
.footer-bottom a { color: rgba(255,255,255,0.75); }
.footer-bottom a:hover { color: #7AC943; }
.footer-entity { padding: 0 0 20px; font-size: 0.7rem; color: rgba(255,255,255,0.75); }
.footer-iso-badges:hover { opacity: 0.85; }
.footer-iso-badges { text-decoration: none; }

/* ── PAGE TEMPLATES ─────────────────────────────────────── */
.page-hero { background: linear-gradient(135deg, var(--green-light), #f1f8e9); padding: 60px 0 40px; }
.page-hero h1 { font-size: 2.6rem; font-weight: 900; color: var(--text); margin-bottom: 12px; }
.page-hero p { color: var(--text-mid); font-size: 1rem; max-width: 600px; }
.breadcrumb { font-size: 0.75rem; color: var(--text-light); margin-bottom: 16px; display: flex; align-items: center; gap: 6px; }
.breadcrumb a { color: var(--green); }
.page-content-section { padding: 64px 0; }
.service-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.service-detail-img { width: 100%; height: 360px; object-fit: cover; border-radius: var(--radius-lg); box-shadow: 0 12px 40px rgba(0,0,0,0.1); }
.service-detail-features { display: flex; flex-direction: column; gap: 14px; margin-top: 24px; }
.feature-item { display: flex; align-items: flex-start; gap: 10px; }
.feature-check { width: 20px; height: 20px; background: var(--green-light); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px; }
.feature-check svg { color: var(--green); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.contact-form-wrap { background: #ffffff; border-radius: var(--radius-lg); padding: 36px; border: 1px solid var(--border); box-shadow: 0 10px 34px rgba(0, 0, 0, 0.08); scroll-margin-top: 96px; }
.contact-form-wrap input[type="text"], .contact-form-wrap input[type="tel"], .contact-form-wrap input[type="email"], .contact-form-wrap select, .contact-form-wrap textarea { background: #fafafa; border: 1px solid #bdbdbd; }
.contact-form-wrap input:focus, .contact-form-wrap select:focus, .contact-form-wrap textarea:focus { border-color: var(--green); outline: 2px solid rgba(46, 125, 50, 0.25); outline-offset: 1px; background: #fff; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; font-size: 0.85rem; color: var(--text); margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius); font-family: var(--font); font-size: 0.88rem; color: var(--text); background: #fff; transition: border-color 0.2s; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--green); }
.form-group textarea { height: 120px; resize: vertical; }

/* ── SERVICE CARD PRICE LABEL ───────────────────────────── */
.service-card-from { font-size: 0.68rem; font-weight: 700; color: var(--green); background: var(--green-light); border-radius: var(--radius-full); padding: 2px 10px; display: inline-block; margin-bottom: 8px; }

/* ── SERVICE TAG LARGE (page hero) ──────────────────────── */
.service-tag-lg { font-size: 0.78rem; padding: 6px 14px; display: inline-flex; align-items: center; gap: 6px; }
.service-tag-lg svg { color: var(--green); }

/* ── PAGE HERO INNER (service pages) ────────────────────── */
.page-hero-inner { display: flex; align-items: flex-start; justify-content: space-between; gap: 40px; flex-wrap: wrap; margin-top: 12px; }
.page-hero-inner > div:first-child { flex: 1; min-width: 280px; }
.page-hero-tags { display: flex; flex-wrap: wrap; gap: 8px; max-width: 340px; padding-top: 8px; }

/* ── SERVICE DETAIL LAYOUT ───────────────────────────────── */
.service-detail-grid { display: grid; grid-template-columns: 1fr 360px; gap: 52px; align-items: start; }
.service-detail-main { display: flex; flex-direction: column; gap: 36px; }
.service-detail-img-top { width: 100%; height: 320px; object-fit: cover; border-radius: var(--radius-lg); box-shadow: 0 8px 30px rgba(0,0,0,0.1); }

/* ── SERVICE LONG CONTENT ────────────────────────────────── */
.service-long-content { display: flex; flex-direction: column; gap: 16px; }
.service-long-content p { color: var(--text-mid); font-size: 0.95rem; line-height: 1.8; }

/* ── WHAT WE COVER BOX ───────────────────────────────────── */
.service-what-box { background: var(--bg-light); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px 30px; }
.service-what-title { font-size: 1.15rem; font-weight: 900; color: var(--text); margin-bottom: 18px; }
.service-what-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; }
.service-what-list li { display: flex; align-items: flex-start; gap: 8px; font-size: 0.85rem; color: var(--text-mid); line-height: 1.5; }
.service-what-check { flex-shrink: 0; width: 20px; height: 20px; background: var(--green-light); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-top: 1px; }
.service-what-check svg { color: var(--green); }

/* ── FAQ ACCORDION ───────────────────────────────────────── */
.service-faq { display: flex; flex-direction: column; gap: 10px; }
/* ── LICENCE CARDS & LIGHTBOX ───────────────────────────── */
.licence-cards { display: flex; flex-direction: column; gap: 24px; }
.licence-card { display: grid; grid-template-columns: 220px 1fr; gap: 26px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px; box-shadow: 0 4px 18px rgba(0,0,0,0.05); }
.licence-card-thumb { display: flex; flex-direction: column; gap: 14px; align-items: stretch; }
.licence-card-thumb img { width: 100%; border: 1px solid var(--border); border-radius: 10px; display: block; }
.licence-thumb-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 150px; background: var(--off-white); border: 1px dashed #bdbdbd; border-radius: 10px; color: var(--text-light); font-size: 0.72rem; text-align: center; line-height: 1.4; }
.licence-view-btn { justify-content: center; min-height: 44px; font-size: 0.82rem; }
.licence-card-body h2 { font-size: 1.15rem; font-weight: 900; margin-bottom: 10px; }
.licence-rows { display: flex; flex-direction: column; gap: 4px; font-size: 0.85rem; color: var(--text); margin-bottom: 12px; }
.licence-card-body p { font-size: 0.85rem; color: var(--text-mid); line-height: 1.7; margin-bottom: 10px; }
.licence-lightbox { position: fixed; inset: 0; z-index: 2000; background: rgba(0,0,0,0.82); display: flex; align-items: center; justify-content: center; padding: 20px; }
.licence-lightbox[hidden] { display: none; }
.licence-lightbox-inner { max-width: 100%; max-height: 100%; overflow: auto; -webkit-overflow-scrolling: touch; touch-action: pinch-zoom; display: flex; align-items: flex-start; justify-content: center; }
.licence-lightbox-inner img { max-width: 100%; height: auto; border-radius: 8px; background: #fff; }
.licence-lightbox-placeholder { background: #fff; border-radius: 12px; padding: 32px; max-width: 480px; font-size: 0.92rem; line-height: 1.7; color: var(--text); }
.licence-lightbox-close { position: absolute; top: 14px; right: 14px; width: 48px; height: 48px; border-radius: 50%; border: none; background: #fff; color: #1a1a1a; font-size: 1.6rem; line-height: 1; cursor: pointer; z-index: 2001; box-shadow: 0 2px 10px rgba(0,0,0,0.3); }
.licence-lightbox-close:hover { background: #f1f1f1; }
@media (max-width: 720px) {
  .licence-card { grid-template-columns: 1fr; }
  .licence-card-thumb { max-width: 260px; }
}

.faq-list { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.faq-item { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: border-color 0.2s; }
.faq-item[open] { border-color: #c8e6c9; }
.faq-question { cursor: pointer; list-style: none; padding: 16px 20px; font-weight: 700; font-size: 0.88rem; color: var(--text); display: flex; justify-content: space-between; align-items: center; gap: 12px; user-select: none; }
.faq-question::-webkit-details-marker { display: none; }
.faq-icon { flex-shrink: 0; color: var(--green); transition: transform 0.25s; }
.faq-item[open] .faq-icon { transform: rotate(90deg); }
.faq-answer { padding: 0 20px 16px; }
.faq-answer p { font-size: 0.85rem; color: var(--text-mid); line-height: 1.7; }

/* ── SIDEBAR BOXES ───────────────────────────────────────── */
.service-detail-sidebar { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 90px; }
.sidebar-box { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px 24px; }
.sidebar-box-green { background: var(--green-light); border-color: #c8e6c9; }
.sidebar-box-title { font-weight: 900; font-size: 0.9rem; color: var(--text); margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.sidebar-box-title svg { color: var(--green); }
.sidebar-guarantee-list { display: flex; flex-direction: column; gap: 9px; }
.sidebar-guarantee-list li { display: flex; align-items: flex-start; gap: 8px; font-size: 0.82rem; color: var(--text-mid); }
.sidebar-guarantee-list li svg { color: var(--green); flex-shrink: 0; margin-top: 2px; }

/* ── SIDEBAR FORM ────────────────────────────────────────── */
.sidebar-form { display: flex; flex-direction: column; gap: 10px; }
.form-input { width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius); font-family: var(--font); font-size: 0.85rem; color: var(--text); background: var(--off-white); transition: border-color 0.2s; }
.form-input:focus { outline: none; border-color: var(--green); background: #fff; }
.form-textarea { height: 80px; resize: vertical; }

/* ── OTHER SERVICES (compact grid) ──────────────────────── */
.services-grid-sm { grid-template-columns: repeat(4, 1fr); }
.service-card-compact .service-card-body { padding: 20px; }
.service-icon-sm { width: 40px; height: 40px; background: var(--green-light); border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.service-icon-sm svg { color: var(--green); }
.service-card-compact h3 { font-size: 0.88rem; font-weight: 900; margin-bottom: 6px; }
.service-card-compact p { font-size: 0.78rem; color: var(--text-mid); line-height: 1.6; margin-bottom: 12px; }

/* ── HOW IT WORKS ────────────────────────────────────────── */
.how-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 28px; margin-top: 44px; }
.how-step { text-align: center; padding: 28px 20px; background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--border); position: relative; }
.how-step-num { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); width: 28px; height: 28px; background: var(--green); color: #fff; font-weight: 900; font-size: 0.8rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.how-step-icon { width: 48px; height: 48px; background: var(--green-light); border-radius: 14px; display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; }
.how-step-icon svg { color: var(--green); }
.how-step-title { font-weight: 900; font-size: 0.9rem; color: var(--text); margin-bottom: 8px; }
.how-step-desc { font-size: 0.78rem; color: var(--text-mid); line-height: 1.6; }

/* ── AREAS NOTE ICON ─────────────────────────────────────── */
.areas-note { display: flex; align-items: center; justify-content: center; gap: 6px; }
.areas-note svg { color: var(--green); flex-shrink: 0; }

/* ── STICKY MOBILE CALL BAR ─────────────────────────────── */
.mobile-call-bar { display: none; }
@media (max-width: 768px) {
  .mobile-call-bar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 999; display: flex; gap: 1px; background: var(--green-dark); padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -4px 16px rgba(0,0,0,0.15); }
  .mobile-call-bar a { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; font-weight: 800; font-size: 0.9rem; text-decoration: none; }
  .mobile-call-btn { background: var(--green); color: #fff; }
  .mobile-call-btn:hover { background: var(--green-dark); color: #fff; }
  .mobile-quote-btn { background: #fff; color: var(--green); }
  .mobile-quote-btn:hover { background: var(--green-light); color: var(--green-dark); }
  body { padding-bottom: calc(52px + env(safe-area-inset-bottom)); }
}

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid-sm { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-cols-pair { grid-column: span 1; }
  .how-grid { grid-template-columns: repeat(2, 1fr); }
  .service-detail-grid { grid-template-columns: 1fr 320px; gap: 36px; }
  .service-what-list { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-img-wrap { display: none; }
  .hero h1 { font-size: 2.2rem; }
  .why-us-inner { grid-template-columns: 1fr; }
  .why-images { display: none; }
  .services-grid { grid-template-columns: 1fr; }
  .services-grid-sm { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .service-detail-grid { grid-template-columns: 1fr; }
  .service-detail-sidebar { position: static; }
  .how-grid { grid-template-columns: 1fr; }
  .page-hero-inner { flex-direction: column; }
  .page-hero-tags { max-width: 100%; }
  .service-what-list { grid-template-columns: 1fr; }
  /* ── MOBILE HEADER REBUILD (Round 4) ─────────────────────
     Top bar: phone + email ONLY, one line if it fits, otherwise
     wraps to centred rows — never truncates, never scrolls.   */
  .top-bar { padding: 6px 0; }
  .top-bar .container { justify-content: center; padding: 0 12px; }
  .top-bar-left { display: none; }
  .top-bar-contact { width: 100%; justify-content: center; gap: 6px 16px; font-size: 13px; }
  /* Header row: logo (36px) + hamburger only */
  .header-inner { padding: 10px 16px; gap: 12px; }
  .site-logo-img,
  .site-logo svg { height: 42px; }
  .track-band-inner { flex-direction: column; align-items: flex-start; text-align: left; }
  /* Homepage full-tagline logo: size by available width (never overflow the
     hamburger) so there is zero horizontal scroll. Height grows with width;
     header row grows to fit so the tagline stays as legible as possible. */
  .site-logo-home { flex: 1 1 auto; min-width: 0; max-width: calc(100% - 60px); }
  .site-logo-home svg { height: auto; width: 100%; max-width: 340px; }
  .header-cta { display: none; }
  .nav-toggle { display: flex; align-items: center; justify-content: center; min-width: 48px; min-height: 48px; }
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-top: 1px solid var(--border); padding: 16px; box-shadow: 0 8px 24px rgba(0,0,0,0.1); max-height: calc(100vh - 120px); overflow-y: auto; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav li a { display: flex; align-items: center; min-height: 44px; padding: 10px 0; border-bottom: 1px solid var(--border); }
  /* Mobile dropdown: tap to expand inside the menu */
  .main-nav .sub-menu { display: none; position: static; min-width: 0; border: none; box-shadow: none; border-radius: 0; padding: 0 0 0 16px; background: var(--off-white); }
  .main-nav li.has-dropdown:hover > .sub-menu,
  .main-nav li.has-dropdown:focus-within > .sub-menu { display: none; }
  .main-nav li.has-dropdown.open > .sub-menu { display: flex; }
  .main-nav .sub-menu a { border-radius: 0; }
  .trust-bar-inner { gap: 14px 20px; justify-content: center; flex-wrap: wrap; padding: 0 16px; }
  .trust-item { font-size: 0.8rem; }
  .trust-icon-badge { width: 40px; height: 40px; }
  html, body { overflow-x: hidden; }
  .shop-detail-grid { grid-template-columns: 1fr !important; }
}
@media (max-width: 480px) {
  .hero-btns { flex-direction: column; }
  .hero-btns .btn { width: 100%; justify-content: center; }
  .cta-btns .btn { width: 100%; justify-content: center; }
  .hero h1 { font-size: 1.85rem; }
  .section-title { font-size: 1.7rem; }
  .cta-banner h2 { font-size: 1.8rem; }
  .page-hero h1 { font-size: 1.9rem; }
  .hero-stats { gap: 20px; }
  #trhrShopGrid { grid-template-columns: repeat(2, 1fr) !important; gap: 12px !important; }
}

/* ═══════════════════════════════════════════════════════════
   v5.0.0 — OWNER-EDITABLE BLOCK CONTENT
   Styles for Gutenberg blocks rendered via page.php (.trhr-blocks)
   ═══════════════════════════════════════════════════════════ */

.page-hero-slim { padding: 22px 0 18px; }

.trhr-blocks { max-width: 860px; margin: 0 auto; padding: 36px 24px 70px; }
.trhr-front .trhr-blocks { padding-top: 56px; }

.trhr-blocks h1 { font-size: 2.6rem; font-weight: 900; color: var(--text); line-height: 1.15; margin: 0 0 16px; }
.trhr-blocks h2 { font-size: 1.9rem; font-weight: 900; color: var(--navy); line-height: 1.2; margin: 44px 0 14px; }
.trhr-blocks h3 { font-size: 1.15rem; font-weight: 800; color: var(--text); margin: 28px 0 8px; }
.trhr-blocks p { color: #444; font-size: .95rem; line-height: 1.75; margin: 0 0 16px; }
.trhr-blocks li { color: #333; font-size: .92rem; line-height: 1.6; margin-bottom: 8px; }
.trhr-blocks ul, .trhr-blocks ol { padding-left: 22px; margin: 0 0 20px; }
.trhr-blocks a { color: var(--green); font-weight: 600; }
.trhr-blocks a:hover { color: var(--green-dark); }

.trhr-blocks .wp-block-image { margin: 24px 0; }
.trhr-blocks .wp-block-image img { border-radius: 16px; height: auto; max-width: 100%; }

.trhr-blocks .wp-block-columns { display: flex; gap: 24px; flex-wrap: wrap; margin: 0 0 8px; }
.trhr-blocks .wp-block-column { flex: 1; min-width: 260px; background: #fff; border: 1px solid #e0e0e0; border-radius: 16px; padding: 22px 24px; }
.trhr-blocks .wp-block-column h3 { margin-top: 12px; }
.trhr-blocks .wp-block-column .wp-block-image { margin: 0 0 4px; }

.trhr-blocks .wp-block-buttons { display: flex; gap: 14px; flex-wrap: wrap; margin: 6px 0 24px; }
.trhr-blocks .wp-block-button__link {
  display: inline-flex; align-items: center; gap: 8px; padding: 13px 28px;
  border-radius: var(--radius-full); font-weight: 700; font-size: .9rem;
  background: var(--green); color: #fff; box-shadow: 0 4px 20px var(--shadow-g);
  transition: all .2s; text-decoration: none;
}
.trhr-blocks .wp-block-button__link:hover { background: var(--green-dark); color: #fff; transform: translateY(-1px); }
.trhr-blocks .is-style-outline .wp-block-button__link { background: transparent; color: var(--text); border: 2px solid var(--border); box-shadow: none; }
.trhr-blocks .is-style-outline .wp-block-button__link:hover { border-color: var(--green); color: var(--green); background: transparent; }
.trhr-blocks .trhr-btn-shop .wp-block-button__link { background: var(--orange); color: #1a1a1a; box-shadow: 0 4px 20px rgba(232,100,27,.35); }
.trhr-blocks .trhr-btn-shop .wp-block-button__link:hover { background: var(--orange-dark); color: #fff; }

/* Green pill badge line */
.trhr-blocks .trhr-badge { display: inline-block; background: var(--green); color: #fff !important; font-size: .78rem; font-weight: 700; padding: 4px 14px; border-radius: 999px; margin-bottom: 6px; }

/* Muted small print + stats strip */
.trhr-blocks .trhr-muted { color: #777; font-size: .87rem; }
.trhr-blocks .trhr-stats { color: var(--navy); font-size: .9rem; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 14px 0; }
.trhr-blocks .trhr-stats strong { color: var(--green); }
.trhr-blocks .trhr-areas { color: var(--green); font-weight: 600; font-size: .88rem; line-height: 2; }

/* Check-style lists */
.trhr-blocks .trhr-check-list { list-style: none; padding-left: 0; }
.trhr-blocks .trhr-check-list li { position: relative; padding-left: 26px; }
.trhr-blocks .trhr-check-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--green); font-weight: 900; }
.trhr-blocks .trhr-link-list { list-style: none; padding-left: 0; display: flex; flex-wrap: wrap; gap: 8px 10px; }
.trhr-blocks .trhr-link-list li { margin: 0; }
.trhr-blocks .trhr-link-list a { display: inline-block; background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: 7px 16px; font-size: .85rem; }
.trhr-blocks .trhr-steps li { margin-bottom: 12px; }

/* Dark cross-sell bands + variants */
.trhr-blocks .trhr-band { background: #1a1a1a; border-radius: 20px; padding: 30px 34px; margin: 28px 0; }
.trhr-blocks .trhr-band h3 { color: #fff; margin: 0 0 6px; }
.trhr-blocks .trhr-band p { color: #9fd3b3; margin-bottom: 14px; }
.trhr-blocks .trhr-band .wp-block-buttons { margin-bottom: 0; }
.trhr-blocks .trhr-band-navy { background: var(--navy); }
.trhr-blocks .trhr-band-navy p { color: #cdd6e6; }
.trhr-blocks .trhr-band-green { background: var(--green); text-align: center; }
.trhr-blocks .trhr-band-green h3 { font-size: 1.3rem; }
.trhr-blocks .trhr-band-green h3 a { color: #fff; }
.trhr-blocks .trhr-band-light { background: var(--green-light); border: 1px solid #c8e6c9; }
.trhr-blocks .trhr-band-light h3 { color: var(--navy); }
.trhr-blocks .trhr-band-light p { color: #333; }

/* Info / pricing notes */
.trhr-blocks .trhr-note { background: #f0f7f0; border: 1px solid #c8e6c9; border-radius: 16px; padding: 20px 26px; margin: 24px 0; }
.trhr-blocks .trhr-note h3 { margin: 0 0 4px; font-size: 1rem; }
.trhr-blocks .trhr-note p { margin: 0; font-size: .92rem; }
.trhr-blocks .trhr-note-amber { background: #fff8e7; border-color: #fcd980; }

/* FAQ details blocks — match legacy .faq-item look */
.trhr-blocks .wp-block-details { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 8px; transition: border-color .2s; }
.trhr-blocks .wp-block-details[open] { border-color: #c8e6c9; }
.trhr-blocks .wp-block-details summary { cursor: pointer; list-style: none; padding: 16px 20px; font-weight: 700; font-size: .88rem; color: var(--text); user-select: none; position: relative; padding-right: 44px; }
.trhr-blocks .wp-block-details summary::-webkit-details-marker { display: none; }
.trhr-blocks .wp-block-details summary::after { content: "›"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); color: var(--green); font-size: 1.2rem; font-weight: 900; transition: transform .2s; }
.trhr-blocks .wp-block-details[open] summary::after { transform: translateY(-50%) rotate(90deg); }
.trhr-blocks .wp-block-details p { padding: 0 20px 16px; margin: 0; font-size: .85rem; color: var(--text-mid); line-height: 1.7; }

/* Separator */
.trhr-blocks .wp-block-separator { border: none; border-top: 1px solid var(--border); margin: 36px 0; }

@media (max-width: 640px) {
  .trhr-blocks h1 { font-size: 1.9rem; }
  .trhr-blocks h2 { font-size: 1.45rem; }
  .trhr-blocks .wp-block-columns { flex-direction: column; }
}
