/*
Theme Name: Green Star Communications
Theme URI: https://greenstarcommunications.co.uk
Author: PCP Web Design
Author URI: https://pcpwebdesign.uk
Description: Custom theme for Green Star Communications — business broadband, leased lines, managed networks and VoIP for UK companies. Page content is managed with Advanced Custom Fields Pro; the contact and quote forms use Contact Form 7; all pages, posts and images self-seed on activation. Recommended plugins: Advanced Custom Fields Pro, Contact Form 7, Yoast SEO.
Version: 1.0.0
Requires at least: 6.5
Tested up to: 7.0
Requires PHP: 8.1
Text Domain: green-star
*/

/* ==========================================================================
   1. Design tokens
   ========================================================================== */

:root {
  /* Green scale */
  --gs-green-50:  #EEF7EC;
  --gs-green-100: #DCEFD8;
  --gs-green-200: #B9DEB0;
  --gs-green-300: #8ECE84;
  --gs-green-400: #66B958;
  --gs-green-500: #46A03C;
  --gs-green-600: #3C8A33;
  --gs-green-700: #2E6B27;
  --gs-green-900: #173616;

  /* Neutrals */
  --gs-ink:      #1E1E1E;
  --gs-charcoal: #2B2F33;
  --gs-slate-700: #4A5159;
  --gs-slate-600: #646C75;
  --gs-slate-500: #858D96;
  --gs-slate-300: #CDD2D8;
  --gs-slate-200: #E4E7EB;
  --gs-slate-100: #F1F3F5;
  --gs-slate-50:  #F8FAFB;
  --gs-white: #FFFFFF;

  /* Status (interface states only, never marketing) */
  --gs-status-warning: #E8A33D;
  --gs-status-error:   #D64545;
  --gs-status-info:    #2F77C7;

  /* Type */
  --gs-font-display: "Open Sans", Arial, sans-serif;
  --gs-font-body: "Open Sans", Arial, sans-serif;

  /* Spacing scale (4px base) */
  --gs-space-1: 4px;
  --gs-space-2: 8px;
  --gs-space-3: 12px;
  --gs-space-4: 16px;
  --gs-space-6: 24px;
  --gs-space-8: 32px;
  --gs-space-12: 48px;
  --gs-space-22: 88px;

  /* Radius */
  --gs-radius-button: 999px;
  --gs-radius-card: 16px;
  --gs-radius-input: 8px;
  --gs-radius-image: 16px;

  /* Layout */
  --gs-container: 1200px;
  --gs-gutter: 24px;

  /* Shadows (soft, cool-tinted) */
  --gs-shadow-card: 0 1px 2px rgba(30, 41, 46, 0.04), 0 8px 24px rgba(30, 41, 46, 0.08);
  --gs-shadow-card-hover: 0 4px 8px rgba(30, 41, 46, 0.06), 0 16px 32px rgba(30, 41, 46, 0.12);
  --gs-shadow-button: 0 8px 20px rgba(70, 160, 60, 0.35);

  /* Motion */
  --gs-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --gs-duration: 180ms;
}

/* ==========================================================================
   2. Reset
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--gs-font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--gs-ink);
  background: var(--gs-white);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-family: var(--gs-font-display); font-weight: 800; letter-spacing: -0.02em; text-transform: none; }
p { margin: 0; }
main:focus { outline: none; }

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

/* ==========================================================================
   3. Type scale
   ========================================================================== */

.gs-eyebrow {
  display: inline-block;
  font-family: var(--gs-font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gs-green-600);
  margin: 0 0 var(--gs-space-3);
}
.gs-eyebrow--on-dark { color: var(--gs-green-400); }

.gs-h1 { font-size: 40px; line-height: 1.15; font-weight: 800; }
.gs-h1 .gs-accent { color: var(--gs-green-500); }

.gs-h2 { font-size: 32px; line-height: 1.15; font-weight: 800; }
.gs-h2 .gs-accent { color: var(--gs-green-500); }

.gs-h3 { font-size: 22px; line-height: 1.25; font-weight: 700; }

.gs-lead { font-size: 18px; line-height: 1.65; font-weight: 400; color: var(--gs-slate-700); }

.gs-body { font-size: 16px; line-height: 1.6; }

/* Blog post content — output by the_content(), so styled by element
   rather than by class since editors don't add gs- classes themselves. */
.gs-prose { font-size: 17px; line-height: 1.7; color: var(--gs-slate-700); }
.gs-prose > * + * { margin-top: var(--gs-space-5); }
.gs-prose h2 { font-family: var(--gs-font-display); font-size: 26px; font-weight: 800; color: var(--gs-ink); line-height: 1.3; margin-top: var(--gs-space-8); }
.gs-prose h3 { font-family: var(--gs-font-display); font-size: 20px; font-weight: 700; color: var(--gs-ink); line-height: 1.3; margin-top: var(--gs-space-6); }
.gs-prose p, .gs-prose ul, .gs-prose ol, .gs-prose blockquote, .gs-prose figure { margin-top: var(--gs-space-5); }
.gs-prose ul, .gs-prose ol { padding-left: 1.3em; }
.gs-prose li + li { margin-top: var(--gs-space-2); }
.gs-prose a { color: var(--gs-green-600); text-decoration: underline; }
.gs-prose strong { color: var(--gs-ink); }
.gs-prose blockquote { border-left: 3px solid var(--gs-green-500); padding-left: var(--gs-space-5); font-style: italic; color: var(--gs-slate-600); }
.gs-prose img { border-radius: var(--gs-radius-image); width: 100%; height: auto; }
.gs-prose code { background: var(--gs-slate-100); padding: 2px 6px; border-radius: 4px; font-size: 0.9em; }
.gs-prose table { display: block; overflow-x: auto; width: 100%; border-collapse: collapse; font-size: 15px; }
.gs-prose th, .gs-prose td { text-align: left; padding: var(--gs-space-3) var(--gs-space-4); border-bottom: 1px solid var(--gs-slate-200); }
.gs-prose thead th { font-family: var(--gs-font-display); font-weight: 700; color: var(--gs-ink); background: var(--gs-slate-100); }
.gs-prose tbody td:first-child { font-weight: 600; color: var(--gs-ink); }

@media (min-width: 900px) {
  .gs-h1 { font-size: 56px; }
  .gs-h2 { font-size: 36px; }
}

/* ==========================================================================
   4. Layout
   ========================================================================== */

.gs-container {
  max-width: var(--gs-container);
  margin-inline: auto;
  padding-inline: var(--gs-gutter);
}

.gs-section { padding-block: 56px; }
.gs-section--motif { position: relative; overflow: hidden; }
.gs-section--motif > .gs-container { position: relative; z-index: 1; }
@media (min-width: 900px) { .gs-section { padding-block: var(--gs-space-22); } }

.gs-section--white { background: var(--gs-white); }
.gs-section--slate { background: var(--gs-slate-50); }
.gs-section--charcoal { background: var(--gs-charcoal); color: var(--gs-white); }
.gs-section--charcoal .gs-h2, .gs-section--charcoal .gs-h3 { color: var(--gs-white); }
.gs-section--green { background: var(--gs-green-500); color: var(--gs-white); }
.gs-section--green .gs-h2, .gs-section--green .gs-h3 { color: var(--gs-white); }
/* A light green tint — one step beyond the documented white/slate/
   charcoal rhythm (the brand guide reserves green for CTAs, icon
   tiles and accents, "never a full-page wash"). This is a trial: a
   very light tint off the approved green-50 swatch, not a saturated
   wash, kept to occasional use rather than replacing the rhythm. */
.gs-section--green-tint { background: var(--gs-green-50); }

/* Decorative star-mark watermark: one per surface, sized and
   positioned by the modifiers below, never tiled. */
.gs-star-watermark { position: absolute; z-index: 0; pointer-events: none; opacity: 0.08; }
.gs-star-watermark path { fill: currentColor; }
.gs-star-watermark--corner-br { right: -60px; bottom: -60px; width: 320px; height: auto; color: var(--gs-green-600); }
.gs-star-watermark--corner-tr { right: -40px; top: -40px; width: 220px; height: auto; color: var(--gs-green-600); }
.gs-star-watermark--on-dark { color: var(--gs-white); opacity: 0.035; }

.gs-section-head { max-width: 640px; margin-bottom: var(--gs-space-8); }
.gs-section-head--center { margin-inline: auto; text-align: center; }

.gs-grid { display: grid; gap: var(--gs-space-6); }
.gs-grid-2 { grid-template-columns: 1fr; }
.gs-grid-3 { grid-template-columns: 1fr; }
.gs-grid-4 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .gs-grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) {
  .gs-grid-2 { grid-template-columns: repeat(2, 1fr); }
  .gs-grid-3 { grid-template-columns: repeat(3, 1fr); }
  .gs-grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.gs-row {
  display: grid;
  gap: var(--gs-space-8);
  align-items: center;
}
@media (min-width: 900px) {
  .gs-row { grid-template-columns: 1fr 1fr; }
  .gs-row--reverse { direction: rtl; }
  .gs-row--reverse > * { direction: ltr; }
}

/* ==========================================================================
   5. Buttons
   ========================================================================== */

.gs-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--gs-space-2);
  font-family: var(--gs-font-display);
  font-weight: 700;
  font-size: 16px;
  padding: 14px 28px;
  border-radius: var(--gs-radius-button);
  border: 1px solid transparent;
  transition: background-color var(--gs-duration) var(--gs-ease), border-color var(--gs-duration) var(--gs-ease), transform 120ms var(--gs-ease), box-shadow var(--gs-duration) var(--gs-ease);
  white-space: nowrap;
}
.gs-btn:active { transform: scale(0.97); }

.gs-btn--primary {
  background: var(--gs-green-500);
  color: var(--gs-white);
  box-shadow: var(--gs-shadow-button);
}
.gs-btn--primary:hover { background: var(--gs-green-600); }

.gs-btn--secondary {
  background: var(--gs-white);
  color: var(--gs-ink);
  border-color: var(--gs-slate-300);
}
.gs-btn--secondary:hover { background: var(--gs-slate-100); }

.gs-btn--secondary-on-dark {
  background: transparent;
  color: var(--gs-white);
  border-color: rgba(255,255,255,0.35);
}
.gs-btn--secondary-on-dark:hover { background: rgba(255,255,255,0.1); }

.gs-btn--ghost {
  background: transparent;
  color: var(--gs-green-600);
  padding: 8px 4px;
}
.gs-btn--ghost:hover { color: var(--gs-green-700); }
.gs-btn--ghost .gs-arrow { transition: transform 140ms var(--gs-ease); }
.gs-btn--ghost:hover .gs-arrow { transform: translateX(3px); }

.gs-btn--sm { padding: 10px 20px; font-size: 14px; }

.gs-phone-link {
  display: inline-flex;
  align-items: center;
  gap: var(--gs-space-2);
  font-family: var(--gs-font-display);
  font-weight: 700;
  color: inherit;
}
.gs-phone-link svg { flex-shrink: 0; }

/* ==========================================================================
   6. Header
   ========================================================================== */

.gs-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gs-slate-200);
  transition: box-shadow var(--gs-duration) var(--gs-ease);
}
.gs-header.is-scrolled { box-shadow: 0 4px 20px rgba(30,41,46,0.06); }

.gs-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gs-space-6);
  padding-block: var(--gs-space-4);
}

.gs-logo { display: flex; align-items: center; }
.gs-logo img { height: 36px; width: auto; }

.gs-nav { display: none; }
@media (min-width: 1080px) {
  .gs-nav {
    display: flex;
    align-items: center;
    gap: var(--gs-space-8);
    font-family: var(--gs-font-display);
    font-weight: 700;
    font-size: 15px;
  }
  .gs-nav-item { position: relative; }
  .gs-nav-link { display: flex; align-items: center; gap: 6px; padding: var(--gs-space-2) 0; }
  .gs-nav-link:hover { color: var(--gs-green-600); }
  .gs-nav-dropdown {
    position: absolute;
    top: 100%;
    left: -20px;
    min-width: 260px;
    background: var(--gs-white);
    border-radius: var(--gs-radius-card);
    box-shadow: var(--gs-shadow-card-hover);
    border: 1px solid var(--gs-slate-200);
    padding: var(--gs-space-3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity var(--gs-duration) var(--gs-ease), transform var(--gs-duration) var(--gs-ease), visibility var(--gs-duration);
  }
  .gs-nav-item:hover .gs-nav-dropdown,
  .gs-nav-item:focus-within .gs-nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .gs-nav-dropdown a {
    display: block;
    padding: var(--gs-space-2) var(--gs-space-3);
    border-radius: var(--gs-radius-input);
    font-weight: 600;
    font-size: 14px;
  }
  .gs-nav-dropdown a:hover { background: var(--gs-green-50); color: var(--gs-green-700); }
}

.gs-header-actions { display: flex; align-items: center; gap: var(--gs-space-6); }
.gs-header-phone { display: none; font-size: 15px; }
@media (min-width: 640px) { .gs-header-phone { display: inline-flex; color: var(--gs-ink); } }

.gs-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--gs-radius-input);
  border: 1px solid var(--gs-slate-200);
  background: var(--gs-white);
}
@media (min-width: 1080px) { .gs-menu-toggle { display: none; } }

.gs-mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--gs-white);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 240ms var(--gs-ease);
}
.gs-mobile-drawer.is-open { transform: translateX(0); }
.gs-mobile-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--gs-space-4) var(--gs-gutter);
  border-bottom: 1px solid var(--gs-slate-200);
}
.gs-mobile-drawer-nav {
  flex: 1;
  overflow-y: auto;
  padding: var(--gs-space-6) var(--gs-gutter);
  display: flex;
  flex-direction: column;
  gap: var(--gs-space-2);
}
.gs-mobile-drawer-nav a {
  font-family: var(--gs-font-display);
  font-weight: 700;
  font-size: 20px;
  padding: var(--gs-space-3) 0;
  border-bottom: 1px solid var(--gs-slate-100);
}
.gs-mobile-drawer-item { border-bottom: 1px solid var(--gs-slate-100); }
.gs-mobile-drawer-item-row { display: flex; align-items: center; justify-content: space-between; gap: var(--gs-space-3); }
.gs-mobile-drawer-item-row a { flex: 1; border-bottom: none; }
.gs-mobile-drawer-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; flex-shrink: 0;
  color: var(--gs-slate-500);
  transition: transform var(--gs-duration) var(--gs-ease);
}
.gs-mobile-drawer-toggle[aria-expanded="true"] { transform: rotate(180deg); color: var(--gs-green-600); }
.gs-mobile-drawer-submenu { display: none; flex-direction: column; padding-bottom: var(--gs-space-2); }
.gs-mobile-drawer-submenu:not([hidden]) { display: flex; }
.gs-mobile-drawer-submenu a {
  font-family: var(--gs-font-body);
  font-weight: 600;
  font-size: 16px;
  color: var(--gs-slate-600);
  padding: var(--gs-space-2) 0 var(--gs-space-2) var(--gs-space-4);
  border-bottom: none;
}
.gs-mobile-drawer-foot {
  padding: var(--gs-space-6) var(--gs-gutter);
  border-top: 1px solid var(--gs-slate-200);
  display: flex;
  flex-direction: column;
  gap: var(--gs-space-4);
}
.gs-mobile-drawer-foot .gs-phone-link { font-size: 20px; justify-content: center; }
@media (min-width: 1080px) { .gs-mobile-drawer { display: none; } }

/* ==========================================================================
   7. Hero
   ========================================================================== */

.gs-hero { padding-block: 48px 56px; }
@media (min-width: 900px) { .gs-hero { padding-block: 64px 80px; } }

.gs-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 14px;
  color: var(--gs-slate-500);
  margin-bottom: var(--gs-space-6);
}
.gs-breadcrumb a:hover { color: var(--gs-green-600); }
.gs-breadcrumb span[aria-current] { color: var(--gs-slate-700); }

.gs-hero-grid {
  display: grid;
  gap: var(--gs-space-12);
  align-items: center;
}
@media (min-width: 900px) { .gs-hero-grid { grid-template-columns: 1.1fr 0.9fr; } }

.gs-hero-ctas { display: flex; flex-wrap: wrap; gap: var(--gs-space-4); margin-top: var(--gs-space-8); }

.gs-hero-summary { margin-top: var(--gs-space-4); max-width: 60ch; }

.gs-404-search {
  display: flex;
  gap: var(--gs-space-2);
  max-width: 420px;
  margin: var(--gs-space-8) auto 0;
}
.gs-404-search input {
  flex: 1;
  padding: var(--gs-space-3) var(--gs-space-4);
  border-radius: var(--gs-radius-input);
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.06);
  color: var(--gs-white);
  font-size: 15px;
}
.gs-404-search input::placeholder { color: var(--gs-slate-300); }
.gs-404-search input:focus { outline: 2px solid var(--gs-green-500); outline-offset: 1px; }
.gs-404-search .gs-btn { padding: var(--gs-space-3); }

.gs-trust-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gs-space-4);
  margin-top: var(--gs-space-12);
  padding-top: var(--gs-space-8);
  border-top: 1px solid var(--gs-slate-200);
}
@media (min-width: 640px) { .gs-trust-strip { grid-template-columns: repeat(4, 1fr); } }
.gs-trust-item .gs-trust-num {
  font-family: var(--gs-font-display);
  font-weight: 800;
  font-size: 28px;
  color: var(--gs-green-600);
}
.gs-trust-item .gs-trust-label { font-size: 14px; color: var(--gs-slate-600); margin-top: 2px; }

/* Full-bleed photo hero: charcoal scrim (>=80% opacity behind the text
   zone, per brand guide) fading out toward the photo on the right.
   --gs-container-inset mirrors .gs-container's own left edge (24px,
   or more once the 1200px max-width starts centring it) so the text
   here lines up with the header logo above it, and the scrim's
   coverage tracks that same edge via calc(). */
.gs-hero--photo {
  --gs-container-inset: max(24px, calc((100vw - 1200px) / 2 + 24px));
  position: relative;
  overflow: hidden;
  min-height: 460px;
  display: flex;
  align-items: center;
  padding-block: 64px;
  color: var(--gs-white);
}
@media (min-width: 900px) {
  .gs-hero--photo {
    /* A normal, fixed hero height — scaling this up with viewport
       width (an earlier attempt) kept her face safe from cropping,
       but made the section itself absurdly tall on wide windows.
       Height is fixed; object-position's Y value below is instead
       tuned conservatively enough to protect her face even at the
       heaviest crop this fixed height produces on very wide windows. */
    min-height: 640px;
    padding-block: 96px;
  }
}

/* .gs-container is a flex item here (.gs-hero--photo is display:flex),
   and flex items shrink to fit their content by default instead of
   growing to the container's max-width — without this it renders
   narrower than the header's own .gs-container, throwing off the
   left-edge alignment between the two. */
.gs-hero--photo > .gs-container { width: 100%; }

.gs-hero-photo-bg { position: absolute; inset: 0; z-index: 0; }
.gs-hero-photo-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 65% 38%; }

.gs-hero-photo-scrim {
  position: absolute;
  inset: 0;
  background: rgba(30, 30, 30, 0.9);
}
@media (min-width: 900px) {
  .gs-hero-photo-scrim {
    /* Stops are tied to the text column's own width (the container's
       inset + content max-width) via calc(), plus a fixed-width
       fade-out — so the solid zone always exactly covers the text.
       Six stops on an eased (not linear) opacity curve, rather than
       two straight segments meeting at a 50% midpoint — a two-segment
       fade has a visible kink in its rate of change right at that
       midpoint, which reads as a seam cutting across the photo. */
    background: linear-gradient(90deg,
      rgba(30, 30, 30, 0.94) 0,
      rgba(30, 30, 30, 0.94) calc(var(--gs-container-inset) + 560px),
      rgba(30, 30, 30, 0.83) calc(var(--gs-container-inset) + 560px + 40px),
      rgba(30, 30, 30, 0.62) calc(var(--gs-container-inset) + 560px + 90px),
      rgba(30, 30, 30, 0.36) calc(var(--gs-container-inset) + 560px + 145px),
      rgba(30, 30, 30, 0.14) calc(var(--gs-container-inset) + 560px + 195px),
      rgba(30, 30, 30, 0) calc(var(--gs-container-inset) + 560px + 240px)
    );
  }
}
@media (min-width: 1200px) {
  .gs-hero-photo-scrim {
    background: linear-gradient(90deg,
      rgba(30, 30, 30, 0.94) 0,
      rgba(30, 30, 30, 0.94) calc(var(--gs-container-inset) + 680px),
      rgba(30, 30, 30, 0.83) calc(var(--gs-container-inset) + 680px + 55px),
      rgba(30, 30, 30, 0.62) calc(var(--gs-container-inset) + 680px + 115px),
      rgba(30, 30, 30, 0.36) calc(var(--gs-container-inset) + 680px + 185px),
      rgba(30, 30, 30, 0.14) calc(var(--gs-container-inset) + 680px + 250px),
      rgba(30, 30, 30, 0) calc(var(--gs-container-inset) + 680px + 310px)
    );
  }
}
@media (min-width: 1500px) {
  .gs-hero-photo-scrim {
    /* Plenty of spare width here — let the reveal breathe more. */
    background: linear-gradient(90deg,
      rgba(30, 30, 30, 0.94) 0,
      rgba(30, 30, 30, 0.94) calc(var(--gs-container-inset) + 720px),
      rgba(30, 30, 30, 0.83) calc(var(--gs-container-inset) + 720px + 75px),
      rgba(30, 30, 30, 0.62) calc(var(--gs-container-inset) + 720px + 160px),
      rgba(30, 30, 30, 0.36) calc(var(--gs-container-inset) + 720px + 255px),
      rgba(30, 30, 30, 0.14) calc(var(--gs-container-inset) + 720px + 345px),
      rgba(30, 30, 30, 0) calc(var(--gs-container-inset) + 720px + 420px)
    );
  }
}

.gs-hero-photo-content { position: relative; z-index: 1; max-width: 100%; }
@media (min-width: 900px) { .gs-hero-photo-content { max-width: 560px; } }
@media (min-width: 1200px) { .gs-hero-photo-content { max-width: 680px; } }
@media (min-width: 1500px) { .gs-hero-photo-content { max-width: 720px; } }
.gs-hero-photo-content .gs-eyebrow { color: var(--gs-green-400); }
.gs-hero-photo-content .gs-h1 { color: var(--gs-white); }
.gs-hero-photo-content .gs-h1 .gs-accent { color: var(--gs-green-400); }
.gs-hero-photo-content .gs-lead { color: rgba(255, 255, 255, 0.82); }
.gs-hero-photo-content .gs-trust-strip { border-top-color: rgba(255, 255, 255, 0.2); }
.gs-hero-photo-content .gs-trust-num { color: var(--gs-green-400); }
.gs-hero-photo-content .gs-trust-label { color: rgba(255, 255, 255, 0.68); }
.gs-hero-photo-content .gs-breadcrumb { color: rgba(255, 255, 255, 0.55); }
.gs-hero-photo-content .gs-breadcrumb a:hover { color: var(--gs-white); }
.gs-hero-photo-content .gs-breadcrumb span[aria-current] { color: rgba(255, 255, 255, 0.85); }

.gs-spec-chips { display: flex; flex-wrap: wrap; gap: var(--gs-space-2); margin-top: var(--gs-space-6); }
.gs-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--gs-radius-button);
  background: var(--gs-green-50);
  color: var(--gs-green-700);
  font-size: 14px;
  font-weight: 600;
}

/* ==========================================================================
   8. Image placeholders (real photography to follow — see brief)
   ========================================================================== */

.gs-placeholder {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--gs-radius-image);
  background:
    repeating-linear-gradient(135deg, var(--gs-green-50) 0px, var(--gs-green-50) 12px, var(--gs-slate-50) 12px, var(--gs-slate-50) 24px);
  border: 1px dashed var(--gs-slate-300);
  overflow: hidden;
  color: var(--gs-slate-600);
  min-height: 200px;
}
.gs-placeholder--16x9 { aspect-ratio: 16 / 9; }
.gs-placeholder--3x2 { aspect-ratio: 3 / 2; }
.gs-placeholder--4x5 { aspect-ratio: 4 / 5; }
.gs-placeholder--1x1 { aspect-ratio: 1 / 1; }
.gs-placeholder-label {
  background: rgba(255,255,255,0.92);
  border-radius: var(--gs-radius-input);
  padding: var(--gs-space-3) var(--gs-space-4);
  text-align: center;
  max-width: 80%;
  box-shadow: var(--gs-shadow-card);
}
.gs-placeholder-label strong { display: block; font-family: var(--gs-font-display); font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--gs-green-700); margin-bottom: 4px; }
.gs-placeholder-label span { display: block; font-size: 13px; color: var(--gs-slate-600); }

.gs-photo {
  position: relative;
  border-radius: var(--gs-radius-image);
  overflow: hidden;
  background: var(--gs-slate-100);
}
.gs-photo--16x9 { aspect-ratio: 16 / 9; }
.gs-photo--3x2 { aspect-ratio: 3 / 2; }
.gs-photo--4x5 { aspect-ratio: 4 / 5; }
.gs-photo--1x1 { aspect-ratio: 1 / 1; }
.gs-photo img { width: 100%; height: 100%; object-fit: cover; }
.gs-photo--map { background: var(--gs-white); border: 1px solid var(--gs-slate-200); }
.gs-photo--map .gs-kent-map { width: 100%; height: 100%; display: block; }

/* ==========================================================================
   9. Cards
   ========================================================================== */

.gs-card {
  background: var(--gs-white);
  border: 1px solid var(--gs-slate-200);
  border-radius: var(--gs-radius-card);
  padding: var(--gs-space-6);
  box-shadow: var(--gs-shadow-card);
  transition: transform var(--gs-duration) var(--gs-ease), box-shadow var(--gs-duration) var(--gs-ease);
}
a.gs-card:hover, .gs-card.is-interactive:hover { transform: translateY(-4px); box-shadow: var(--gs-shadow-card-hover); }

.gs-icon-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: var(--gs-radius-input);
  background: var(--gs-green-50);
  color: var(--gs-green-600);
  margin-bottom: var(--gs-space-4);
}
.gs-icon-tile svg { width: 24px; height: 24px; }
.gs-icon-tile--solid { background: var(--gs-green-500); color: var(--gs-white); }

.gs-card-title { font-size: 18px; margin-bottom: var(--gs-space-2); }
.gs-card-body { font-size: 15px; color: var(--gs-slate-600); }

.gs-service-card { display: flex; flex-direction: column; height: 100%; }
.gs-service-card .gs-card-body { flex: 1; margin-bottom: var(--gs-space-4); }

/* Feature rows (why choose us) */
.gs-feature-row { display: flex; gap: var(--gs-space-4); align-items: flex-start; }
.gs-feature-row .gs-icon-tile { margin-bottom: 0; flex-shrink: 0; }

/* A centred icon-over-text column with nothing around it reads as
   loose, unrelated pieces floating on the section background — group
   each into its own subtle panel so it reads as one deliberate block. */
.gs-feature-row--panel {
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--gs-space-3);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--gs-radius-card);
  padding: var(--gs-space-6);
}


/* Stat block */
.gs-stat { text-align: center; }
.gs-stat-num { font-family: var(--gs-font-display); font-weight: 800; font-size: 40px; color: var(--gs-green-600); }
.gs-stat-label { font-size: 14px; color: var(--gs-slate-600); margin-top: var(--gs-space-1); }

/* Process step */
.gs-step { position: relative; padding-left: 56px; }
.gs-step-num {
  position: absolute;
  left: 0;
  top: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gs-ink);
  color: var(--gs-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--gs-font-display);
  font-weight: 800;
  font-size: 15px;
}

/* Testimonial */
.gs-testimonial {
  background: var(--gs-slate-50);
  border-radius: var(--gs-radius-card);
  padding: var(--gs-space-12) var(--gs-space-8);
  text-align: center;
}
.gs-testimonial-quote {
  font-family: var(--gs-font-display);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.4;
  max-width: 56ch;
  margin-inline: auto;
}
.gs-testimonial-attr { margin-top: var(--gs-space-6); font-size: 14px; color: var(--gs-slate-600); }
.gs-testimonial-attr strong { color: var(--gs-ink); font-family: var(--gs-font-display); }

/* On a charcoal section, swap the light card for a subtle dark panel
   rather than a light-grey box sitting oddly on the dark background. */
.gs-section--charcoal .gs-testimonial {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.gs-section--charcoal .gs-testimonial-quote { color: var(--gs-white); }
.gs-section--charcoal .gs-testimonial-attr { color: var(--gs-slate-300); }
.gs-section--charcoal .gs-testimonial-attr strong { color: var(--gs-white); }

/* ==========================================================================
   10. Comparison table
   ========================================================================== */

.gs-table-wrap { overflow-x: auto; border-radius: var(--gs-radius-card); border: 1px solid var(--gs-slate-200); }
.gs-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.gs-table th, .gs-table td { text-align: left; padding: var(--gs-space-4) var(--gs-space-6); font-size: 14px; }
.gs-table thead th { background: var(--gs-ink); color: var(--gs-white); font-family: var(--gs-font-display); font-weight: 700; font-size: 13px; letter-spacing: 0.02em; }
.gs-table tbody tr:nth-child(odd) { background: var(--gs-slate-50); }
.gs-table tbody th { font-weight: 700; }

/* ==========================================================================
   11. FAQ accordion
   ========================================================================== */

.gs-faq-item { border-bottom: 1px solid var(--gs-slate-200); }
.gs-faq-item:first-child { border-top: 1px solid var(--gs-slate-200); }
.gs-faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gs-space-4);
  padding: var(--gs-space-6) 0;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--gs-font-display);
  font-weight: 700;
  font-size: 17px;
  color: var(--gs-ink);
}
.gs-faq-q .gs-faq-icon { flex-shrink: 0; transition: transform var(--gs-duration) var(--gs-ease); }
.gs-faq-item[open] .gs-faq-icon { transform: rotate(45deg); }
.gs-faq-a { padding-bottom: var(--gs-space-6); color: var(--gs-slate-600); max-width: 70ch; }
.gs-faq-item summary { list-style: none; cursor: pointer; }
.gs-faq-item summary::-webkit-details-marker { display: none; }

/* ==========================================================================
   12. CTA band
   ========================================================================== */

.gs-cta-band { padding-block: var(--gs-space-12); text-align: center; }
.gs-cta-band-inner { max-width: 640px; margin-inline: auto; }
.gs-cta-band .gs-h2 { margin-bottom: var(--gs-space-3); }
.gs-cta-band-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--gs-space-4); margin-top: var(--gs-space-8); }

/* ==========================================================================
   13. Footer
   ========================================================================== */

.gs-footer { background: var(--gs-charcoal); color: var(--gs-slate-200); padding-top: var(--gs-space-22); }
.gs-footer a:hover { color: var(--gs-white); }
.gs-footer-top { display: grid; gap: var(--gs-space-12); padding-bottom: var(--gs-space-12); }
@media (min-width: 900px) { .gs-footer-top { grid-template-columns: 1.4fr repeat(4, 1fr); gap: var(--gs-space-8); } }
.gs-footer-brand img { height: 32px; margin-bottom: var(--gs-space-4); }
.gs-footer-tagline { font-size: 14px; color: var(--gs-slate-300); max-width: 30ch; margin-bottom: var(--gs-space-6); }
.gs-footer-address { font-size: 13px; color: var(--gs-slate-300); line-height: 1.7; }
.gs-footer-heading { font-family: var(--gs-font-display); font-weight: 700; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gs-slate-500); margin-bottom: var(--gs-space-4); }
.gs-footer-col ul { display: flex; flex-direction: column; gap: var(--gs-space-3); }
.gs-footer-col a { font-size: 14px; color: var(--gs-slate-200); }
.gs-footer-viewall {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--gs-green-400) !important;
  font-weight: 700;
}
.gs-footer-viewall .gs-arrow { display: inline-flex; }
.gs-footer-viewall:hover { color: var(--gs-green-300) !important; }
.gs-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-block: var(--gs-space-6);
  display: flex;
  flex-wrap: wrap;
  gap: var(--gs-space-4);
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--gs-slate-500);
}
.gs-footer-legal { display: flex; flex-wrap: wrap; gap: var(--gs-space-4); }
.gs-footer-social { display: flex; gap: var(--gs-space-3); }
.gs-footer-social a {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
}

/* ==========================================================================
   14. Forms
   ========================================================================== */

.gs-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: var(--gs-space-4); }
.gs-field label { font-family: var(--gs-font-display); font-weight: 700; font-size: 14px; }
.gs-field .gs-hint { font-size: 13px; color: var(--gs-slate-500); font-weight: 400; }
.gs-field input, .gs-field select, .gs-field textarea {
  padding: 12px var(--gs-space-4);
  border-radius: var(--gs-radius-input);
  border: 1px solid var(--gs-slate-300);
  background: var(--gs-white);
  color: var(--gs-ink);
  transition: border-color var(--gs-duration) var(--gs-ease), box-shadow var(--gs-duration) var(--gs-ease);
}
.gs-field input:focus, .gs-field select:focus, .gs-field textarea:focus {
  outline: none;
  border-color: var(--gs-green-500);
  box-shadow: 0 0 0 3px var(--gs-green-100);
}
.gs-field-row { display: grid; gap: var(--gs-space-4); }
@media (min-width: 560px) { .gs-field-row { grid-template-columns: 1fr 1fr; } }

.gs-checkbox-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gs-space-2); }
.gs-checkbox {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--gs-slate-300);
  border-radius: var(--gs-radius-input);
  font-size: 14px;
  cursor: pointer;
}
.gs-checkbox:has(input:checked) { border-color: var(--gs-green-500); background: var(--gs-green-50); }

.gs-form-panel { background: var(--gs-white); border: 1px solid var(--gs-slate-200); border-radius: var(--gs-radius-card); padding: var(--gs-space-8); box-shadow: var(--gs-shadow-card); }
.gs-form-status { border-radius: var(--gs-radius-input); padding: var(--gs-space-4) var(--gs-space-4); margin-bottom: var(--gs-space-6); font-size: 14px; }
.gs-form-status--error { background: #FCEBEA; color: #8A1F1F; border: 1px solid #F3C6C4; }
.gs-form-status--success { background: var(--gs-green-50); color: var(--gs-green-700); border: 1px solid var(--gs-green-200); }

.gs-next-steps { background: var(--gs-slate-50); border-radius: var(--gs-radius-card); padding: var(--gs-space-8); }
.gs-next-steps li { display: flex; gap: var(--gs-space-4); margin-bottom: var(--gs-space-4); }
.gs-next-steps li:last-of-type { margin-bottom: var(--gs-space-6); }

/* ==========================================================================
   15. Utility
   ========================================================================== */

.gs-back-to-top {
  position: fixed;
  right: var(--gs-space-6);
  bottom: var(--gs-space-6);
  z-index: 90;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: var(--gs-green-500);
  color: var(--gs-white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--gs-shadow-button);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity var(--gs-duration) var(--gs-ease), transform var(--gs-duration) var(--gs-ease), background-color var(--gs-duration) var(--gs-ease), visibility var(--gs-duration);
}
.gs-back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.gs-back-to-top:hover { background: var(--gs-green-600); }
.gs-back-to-top:active { transform: scale(0.97); }
@media (max-width: 639px) {
  .gs-back-to-top { right: var(--gs-space-4); bottom: var(--gs-space-4); width: 44px; height: 44px; }
}

.gs-visually-hidden {
  position: absolute; 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; z-index: 999;
  background: var(--gs-ink); color: var(--gs-white); padding: 12px 20px; border-radius: var(--gs-radius-input);
}
.skip-link:focus { left: var(--gs-gutter); top: var(--gs-space-4); }

/* ==========================================================================
   TEMP — Homepage type-scale tightening (preview)
   The homepage mixed several close-but-not-quite-related font sizes
   (28px stat numbers, 22px testimonial, 15px card copy vs 16px body
   text elsewhere) that read as a skew rather than a deliberate scale.
   Scoped to body.home only so the rest of the site is unaffected while
   this is reviewed; fold into the base rules above once confirmed.
   ========================================================================== */
body.home .gs-trust-num { font-size: 24px; }
body.home .gs-testimonial-quote { font-size: 20px; }
body.home .gs-card-body { font-size: 16px; }
