@font-face{
  font-family:'Work Sans Fallback';
  src:local('Arial'),local('Helvetica Neue'),local('Liberation Sans');
  size-adjust:112.1%;
  ascent-override:83%;
  descent-override:21.7%;
  line-gap-override:0%;
}
@font-face{
  font-family:'Work Sans';
  font-style:normal;
  font-weight:400;
  font-display:swap;
  src:url('/fonts/work-sans-400.woff2') format('woff2');
}
@font-face{
  font-family:'Work Sans';
  font-style:normal;
  font-weight:500;
  font-display:swap;
  src:url('/fonts/work-sans-500.woff2') format('woff2');
}
@font-face{
  font-family:'Work Sans';
  font-style:normal;
  font-weight:600;
  font-display:swap;
  src:url('/fonts/work-sans-600.woff2') format('woff2');
}
@font-face{
  font-family:'Work Sans';
  font-style:normal;
  font-weight:700;
  font-display:swap;
  src:url('/fonts/work-sans-700.woff2') format('woff2');
}
:root{
  --ink:#33321F;
  --putty:#F7FFFF;
  --reed:#8A9A6E;
  --reed-dark:#5C6B45;
  --reed-light: #EBF0E6;
  --ochre:#B98A1E;
  --paper:#fcf9f2;
  --oldpaper: #FCF2DE;
  --charcoal:#3A3826;
  --line: rgba(51,50,31,0.14);
  --radius: 6px;
}
*{box-sizing:border-box;}
html,body{margin:0;padding:0;}
body{
  background:var(--paper);
  color:var(--charcoal);
  font-family:'Work Sans','Work Sans Fallback', sans-serif;
  font-size:16px;
  line-height:1.55; 
  -webkit-font-smoothing:antialiased;
}

/* Accessibility Skip Link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--reed-dark);
  color: var(--paper);
  padding: 8px;
  z-index: 100;
  text-decoration: none;
}
.skip-link:focus { top: 0; }

h1,h2,h3,h4{
  font-family:'Work Sans','Work Sans Fallback', sans-serif;
  color:var(--ink);
  margin:0;
  font-weight:700;
}
a{color:inherit;}
.wrap{
  max-width:1080px;
  margin:0 auto;
  padding:0 28px;
}

/* ---- Header Nav ---- */
header{
  position:sticky; top:0; z-index:20;
  background:var(--reed-dark);
  height: 90px;
  display: flex;
  align-items: center;
}
.navbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 28px;
  width: 100%;
  max-width:1080px;
  margin:0 auto;
}
.wordmark{
  font-family:'Work Sans','Work Sans Fallback', sans-serif;
  font-size:1.25rem;
  color:var(--paper);
  font-weight: 700;
}
nav ul{
  list-style:none;
  display:flex;
  gap:28px;
  margin:0; padding:0;
}
nav .nav-btn{
  display:inline-block;
  background:none;
  border:none;
  font-family:'Work Sans','Work Sans Fallback', sans-serif;
  font-size:0.95rem;
  color:var(--paper);
  cursor:pointer;
  padding:4px 0;
  border-bottom:2px solid transparent;
  text-decoration:none;
}
nav .nav-btn.active, nav .nav-btn:hover{
  color:var(--oldpaper);
  font-weight: bold;
  border-bottom:2px solid var(--paper);
}

/* ---- Sections & Spacing ---- */
section{ padding: 72px 0; }
section.band { border-top: 1px solid var(--line); }

.hero{
  padding:88px 0 64px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
}
.hero-content { flex: 1 1 480px; }
.hero h1{
  font-size:clamp(2.1rem, 5vw, 3.2rem);
  line-height:1.12;
}
.hero .lede{
  max-width:46ch;
  font-size:1.1rem;
  color:var(--reed-dark);
  margin-top:22px;
}

/* ---- Buttons ---- */
.cta-row{ display:flex; gap:16px; margin-top:36px; flex-wrap:wrap; }
.btn{
  display:inline-flex;
  align-items: center;
  justify-content: center;
  padding:12px 24px;
  border-radius:var(--radius);
  font-size:0.95rem;
  font-weight: 600;
  text-decoration:none;
  cursor:pointer;
  border:1px solid transparent;
  font-family:'Work Sans','Work Sans Fallback', sans-serif;
  transition: background 0.2s ease;
}
.btn-primary{
  background:var(--reed-dark);
  color:var(--paper);
}
.btn-primary:hover{ background:var(--ink); }
.btn-ghost{
  background:transparent;
  border:1px solid var(--ink);
  color:var(--ink);
}
.btn-ghost:hover{ background:var(--ink); color:var(--paper); }

/* ---- Contact Page Layout ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: start;
}
.contact-call-card {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 24px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.02);
  position: sticky;
  top: 120px;
}
.contact-call-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.contact-call-card p { margin: 0 0 20px 0; color: var(--charcoal); font-size: 0.95rem; }
.contact-call-card .btn { width: 100%; }

/* ---- Card Grid Layout with Icons ---- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin-top: 36px;
}
.card {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 24px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.02);
}
.card-icon {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--reed-light);
  color: var(--reed-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.card-icon svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 2; fill: none; }
.card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.card p { margin: 0; color: var(--charcoal); font-size: 0.95rem; }
.card p a { color: var(--reed-dark); font-weight: 600; text-decoration: none; }
.card p a:hover { text-decoration: underline; }

/* ---- Steps Timeline ---- */
.steps-container { margin-top: 40px; }
.steps{ margin-top:32px; }
.step{
  display:grid;
  grid-template-columns:44px 1fr;
  column-gap:22px;
  padding-bottom:38px;
}
.step:last-child{ padding-bottom:0; }
.step-marker{ position:relative; display:flex; justify-content:center; }
.step-num{
  width:44px; height:44px;
  border-radius:50%;
  background:var(--reed-dark);
  color:var(--paper);
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:700;
  font-size:1rem;
  z-index:1;
}
.step-marker::after{
  content:''; position:absolute; top:44px; bottom:-38px; left:50%;
  transform:translateX(-50%); border-left:2px dotted var(--reed); opacity:0.55;
}
.step:last-child .step-marker::after{ display:none; }
.step h3{ font-size:1.15rem; margin-bottom:6px; padding-top:8px; }
.step p{ margin:0; color:var(--charcoal); max-width:54ch; }

/* ---- Hero Badge (index.html) ---- */
.hero-grid-mobile {
  display: none;
}
.hero-gauge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-right: 48px;
}
.hero-badge {
  width: 96px; height: 96px;
  border-radius: 50%;
  background: var(--reed-light);
  color: var(--reed-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.hero-badge::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid var(--reed-dark);
  opacity: 0;
  animation: rippleCycle 3s ease-out infinite;
  animation-delay: 1.5s;
}
@keyframes rippleCycle {
  0%   { transform: scale(1);    opacity: 0.3; }
  60%  { transform: scale(1.15); opacity: 0; }
  100% { transform: scale(1.15); opacity: 0; }
}
.badge-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  animation: badgeCycle 12s ease-in-out infinite;
}
.badge-slide svg { width: 44px; height: 44px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.slide-a { animation-delay: 0s; }
.slide-b { animation-delay: -3s; }
.slide-c { animation-delay: -6s; }
.slide-d { animation-delay: -9s; }
@keyframes badgeCycle {
  0%    { opacity: 0; }
  6%    { opacity: 1; }
  19%   { opacity: 1; }
  25%   { opacity: 0; }
  100%  { opacity: 0; }
}
.gauge-label {
  margin-top: 14px;
  font-size: 14px;
  color: var(--reed-dark);
  font-weight: 600;
  text-align: center;
  width: 220px;
  min-height: 40px;
  position: relative;
}
.label-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  animation: badgeCycle 12s ease-in-out infinite;
}
.label-slide.slide-a { animation-delay: 0s; }
.label-slide.slide-b { animation-delay: -3s; }
.label-slide.slide-c { animation-delay: -6s; }
.label-slide.slide-d { animation-delay: -9s; }

/* ---- PageSpeed Insights Band (index.html) ---- */
.scores-band {
  background: var(--paper);
  text-align: center;
  padding: 64px 0;
}
.scores-row { display: flex; justify-content: center; gap: 32px; flex-wrap: wrap; margin-top: 36px; }
.score-gauge { position: relative; text-align: center; width: 105px; }
.score-track { fill: none; stroke: #E4DFD1; stroke-width: 8; }
.score-progress {
  fill: none; stroke: var(--reed-dark); stroke-width: 8; stroke-linecap: round;
  transform: rotate(-90deg); transform-origin: 50% 50%; stroke-dasharray: 251.33;
}
.score-number { font-size: 20px; font-weight: 700; fill: var(--ink); }
.score-label { margin-top: 10px; font-size: 13px; color: var(--reed-dark); font-weight: 600; }
.score-gauge a { text-decoration: none; }
.score-boost {
  position: absolute; top: -2px; right: 4px; width: 20px; height: 20px;
  border-radius: 50%; background: var(--reed-dark); display: flex;
  align-items: center; justify-content: center; opacity: 0;
  transform: scale(0.4); transition: opacity 0.35s ease-out, transform 0.35s ease-out;
}
.score-boost.show { opacity: 1; transform: scale(1); }

/* ---- Testimonials Band ---- */
.quote-band {
  border-top: 1px solid var(--line);
  padding: 64px 0;
}
.quote-slider {
  position: relative;
  min-height: 110px;
}
.quote-slide {
  display: none !important;
}
.quote-slide.active {
  display: block !important;
}
.quote-slide blockquote {
  font-size: 1.2rem;
  font-style: italic;
  color: var(--ink);
  margin: 0 0 10px 0;
  line-height: 1.5;
  max-width: 65ch;
}
.quote-slide span {
  font-size: 0.9rem;
  color: var(--reed-dark);
  font-weight: 600;
  display: block;
}
.quote-dots {
  display: flex;
  gap: 8px;
  margin-top: 20px;
}
.quote-dots .dot {
  width: 12px;
  height: 12px;
  margin: 0 12px;   /* Provides adequate tap spacing between dots */
  border-radius: 50%;
  border: 1px solid var(--reed-dark);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s ease;
}

.dot::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;  /* Meets Google's 48px standard requirement */
  height: 48px;
  background: transparent;
}

.quote-dots .dot.active {
  background: var(--reed-dark);
}

/* ---- Footer ---- */
footer {
  background: var(--reed-dark);
  color: var(--paper);
  padding: 56px 0 28px 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(247,255,255,0.15);
}
.footer-brand h3 { color: var(--paper); font-size: 1.3rem; }
.footer-brand h3 a { color: inherit; text-decoration: none; }
.footer-brand h3 a:hover { text-decoration: underline; }
.footer-brand p { margin-top: 8px; color: var(--putty); font-size: 0.9rem; max-width: 32ch; }
.footer-col h4 { color: var(--paper); font-size: 1rem; margin-bottom: 16px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: 10px; }
/* ---- Closing CTA Band (index.html) ---- */
.cta-band {
  background: var(--reed-dark);
  color: var(--paper);
  text-align: center;
  padding: 56px 40px;
  border-radius: var(--radius);
  margin: 8px 0 64px;
}
.cta-band h2 { color: var(--paper); }
.cta-band p { color: var(--reed-light); max-width: 520px; margin: 12px auto 0; }
.cta-band .cta-row { justify-content: center; margin-top: 28px; }
.cta-band .btn-primary { background: var(--paper); color: var(--ink); }
.cta-band .btn-primary:hover { background: var(--reed-light); }
.cta-band .btn-ghost { border-color: var(--paper); color: var(--paper); }
.cta-band .btn-ghost:hover { background: var(--paper); color: var(--ink); }

.footer-col ul li a { color: var(--putty); text-decoration: none; }
.footer-col ul li a:hover { text-decoration: underline; }
.footer-legal { padding-top: 36px; }
.footer-legal ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}
.footer-legal a {
  color: var(--putty);
  font-size: 0.85rem;
  text-decoration: none;
}
.footer-legal a:hover { text-decoration: underline; }
.footer-legal + .footer-bottom { padding-top: 16px; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 0.85rem;
  color: var(--putty);
}

/* ---- Cookie Banner ---- */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--paper);
  border-top: 1px solid var(--line);
  color: var(--charcoal);
  padding: 16px 0;
  z-index: 1000;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.08);

  /* Hide by default & enable smooth fade/slide transition */
  opacity: 0;
  visibility: hidden;
  transform: translateY(100%);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

#cookie-banner.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.cookie-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cookie-inner p {
  margin: 0;
  font-size: 0.88rem;
  max-width: 70ch;
  line-height: 1.4;
}
.cookie-inner a {
  color: var(--ink);
  text-decoration: underline;
}
.cookie-actions {
  display: flex;
  gap: 12px;
}
.cookie-actions button {
  padding: 8px 18px;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s ease;
}
#cookie-decline {
  background: transparent;
  border: 1px solid var(--ink);
  color: var(--ink);
}
#cookie-decline:hover {
  background: var(--line);
}
#cookie-accept {
  background: var(--reed-dark);
  border: 1px solid var(--reed-dark);
  color: var(--paper);
}
#cookie-accept:hover {
  background: var(--ink);
}

  /* Minimalist 3-Column Open Grid (No Cards) */
  .services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 48px 40px;
    margin-top: 48px;
  }
  .service-item {
    border-top: 2px solid var(--reed-dark);
    padding-top: 24px;
    display: flex;
    flex-direction: column;
  }
  .service-num {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--reed-dark);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 12px;
  }
  .service-item h3 {
    font-size: 1.35rem;
    margin-bottom: 12px;
    color: var(--ink);
  }
  .service-item p {
    font-size: 0.95rem;
    color: var(--charcoal);
    margin: 0 0 16px 0;
    line-height: 1.5;
  }
  .service-list {
    list-style: none;
    padding: 0;
    margin: auto 0 0 0;
  }
  .service-list li {
    font-size: 0.88rem;
    color: var(--charcoal);
    padding-left: 18px;
    position: relative;
    margin-bottom: 6px;
  }
  .service-list li:last-child {
    margin-bottom: 0;
  }
  .service-list li::before {
    content: "-";
    position: absolute;
    left: 0;
    color: var(--reed-dark);
  }
  
  /* ==========================================
   Form Styles
   ========================================== */

form {
  max-width: 600px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.field label {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
}

/* Text Inputs & Textarea */
input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  background-color: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius, 6px);
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus {
  outline: none;
  border-color: var(--reed-dark);
  box-shadow: 0 0 0 3px rgba(85, 107, 72, 0.15); /* Soft highlight matching your theme */
}

input::placeholder,
textarea::placeholder {
  color: #8C8C8C;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

/* Radio Group */
.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 4px;
}

.radio-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  color: var(--charcoal);
  cursor: pointer;
  user-select: none;
}

.radio-option input[type="radio"] {
  accent-color: var(--reed-dark);
  width: 18px;
  height: 18px;
  cursor: pointer;
}


/* ==========================================================================
   Mobile Responsive Fixes (Applies only below 768px screen width)
   ========================================================================== */

@media (max-width: 768px) {
  /* 1. Prevent unwanted horizontal scrolling */
  html, body {
    overflow-x: hidden;
    max-width: 100%;
  }

  /* 1a. Stack the contact form and call-us card on small screens */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .contact-call-card {
    position: static;
  }

  /* 2. Header & Navigation Fixes */
  .navbar {
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 16px;
  }

  #primary-nav {
    flex-wrap: wrap;
    gap: 8px 12px;
    justify-content: flex-start;
  }

  .nav-btn {
    padding: 6px 8px;
    font-size: 0.9rem;
  }

  /* 3. Footer Grid Stacking Fix */
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: left;
  }

  /* 4. PageSpeed Scores Gauge Row Stacking */
  .scores-row {
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
  }

  /* 5. Hero Highlights: static 2x2 grid on mobile, replacing the animated badge */
  .hero {
    gap: 32px;
  }
  .hero-gauge {
    display: none;
  }
  .hero-grid-mobile {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 16px;
    width: 100%;
  }
  .grid-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
  }
  .grid-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--reed-light);
    color: var(--reed-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }
  .grid-icon svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
  .grid-text {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--reed-dark);
    line-height: 1.35;
  }
}

/* ---- Dropdown Navigation Additions ---- */
#primary-nav li.dropdown {
  position: relative;
}

#primary-nav .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  list-style: none;
  padding: 8px 0;
  margin: 0;
  background-color: var(--reed-dark);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  min-width: 160px;
  z-index: 100;
  border-radius: var(--radius);
}

#primary-nav .dropdown-menu li {
  margin: 0;
}

#primary-nav .dropdown-menu li a {
  display: block;
  padding: 8px 16px;
  white-space: nowrap;
  border-bottom: none; /* Removes the underline effect from main nav buttons */
}

#primary-nav .dropdown-menu li a:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-bottom: none;
}

/* Dashed separators between dropdown groups */
#primary-nav .dropdown-menu li.menu-divider {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px dashed rgba(255, 255, 255, 0.4);
}

/* Show the dropdown on hover or keyboard focus */
#primary-nav li.dropdown:hover .dropdown-menu,
#primary-nav li.dropdown:focus-within .dropdown-menu {
  display: block;
}

/* ---- FAQ Accordion (services.html) ---- */
.faq-list {
  margin-top: 36px;
  max-width: 760px;
}
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: '+';
  flex-shrink: 0;
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--reed-dark);
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after {
  transform: rotate(45deg);
}
.faq-item summary:focus-visible {
  outline: 2px solid var(--reed-dark);
  outline-offset: 4px;
}
.faq-item p {
  margin: 14px 0 0 0;
  color: var(--charcoal);
  font-size: 0.95rem;
  max-width: 68ch;
}
.faq-item p a {
  color: var(--reed-dark);
  text-decoration: underline;
}

/* ---- Anchor offset so the sticky header doesn't cover jumped-to sections ---- */
.service-item {
  scroll-margin-top: 110px;
  border-radius: var(--radius);
  transition: background-color 0.35s ease, padding 0.35s ease, margin 0.35s ease;
}

/* ---- Highlight a service on hover, since nav links now go straight to dedicated pages instead of jumping here ---- */
.service-item:hover {
  background-color: var(--reed-light);
  padding: 16px;
  margin: -16px;
}

/* ---- Highlight the service jumped to via an in-page anchor link ---- */
.service-item:target {
  background-color: var(--reed-light);
  border-radius: var(--radius);
  padding: 16px;
  margin: -16px;
  animation: service-highlight-fade 2.5s ease-out forwards;
}

@keyframes service-highlight-fade {
  0%, 55% { background-color: var(--reed-light); }
  100% { background-color: transparent; }
}

@media (prefers-reduced-motion: reduce) {
  .service-item {
    transition: none;
  }
  .service-item:hover {
    background-color: var(--reed-light);
    padding: 16px;
    margin: -16px;
  }
  .service-item:target {
    animation: none;
    background-color: var(--reed-light);
  }
  .badge-slide,
  .label-slide {
    animation: none;
    opacity: 0;
  }
  .badge-slide.slide-a,
  .label-slide.slide-a {
    opacity: 1;
  }
  .hero-badge::before {
    animation: none;
    opacity: 0;
  }
}

/* ---- Cost guide article (how-much-does-a-website-cost-uk.html) ---- */
.article-section { padding: 40px 0 8px; }
.article-section h2 { font-size: 1.6rem; }
.callout {
  background: var(--reed-light);
  border-left: 4px solid var(--reed-dark);
  border-radius: var(--radius);
  padding: 20px 24px;
}
.callout p { margin: 0; color: var(--charcoal); }
.callout strong { color: var(--ink); }
.infographic { margin: 0 auto; max-width: 640px; }
.infographic img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}
.infographic figcaption { font-size: 0.88rem; color: var(--charcoal); margin-top: 12px; }
.table-scroll { overflow-x: auto; margin-top: 20px; }
.cost-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.cost-table caption {
  text-align: left;
  font-weight: 600;
  color: var(--reed-dark);
  padding-bottom: 8px;
}
.cost-table th, .cost-table td {
  text-align: left;
  vertical-align: top;
  padding: 12px 16px 12px 0;
  border-bottom: 1px solid var(--line);
}
.cost-table thead th {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--reed-dark);
  border-bottom: 2px solid var(--reed-dark);
}
.cost-table td:first-child { font-weight: 600; color: var(--ink); min-width: 160px; }
.cost-table td:nth-child(2) { font-weight: 600; color: var(--reed-dark); white-space: nowrap; }
.cost-table td:last-child { color: var(--charcoal); min-width: 240px; }
.embed-box {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  margin-top: 24px;
}
.embed-box textarea {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 0.82rem;
  min-height: 130px;
}
.embed-box .btn { margin-top: 16px; }
.embed-status { margin-left: 12px; font-size: 0.88rem; font-weight: 600; color: var(--reed-dark); }

@media (max-width: 640px) {
  .cost-table caption { display: block; width: 100%; }
  .cost-table thead { position: absolute; left: -9999px; }
  .cost-table, .cost-table tbody, .cost-table tr, .cost-table td { display: block; width: 100%; }
  .cost-table tr { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .cost-table th, .cost-table td { border-bottom: none; padding: 2px 0; min-width: 0 !important; white-space: normal !important; }
  .cost-table td[data-label]::before {
    content: attr(data-label);
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--reed-dark);
    margin-top: 6px;
  }
  .cost-table td:first-child::before { display: none; }
  .cost-table td:first-child { font-size: 1.05rem; }
}

/* ---- Package finder (website-package-finder.html) ---- */
.finder-card {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
  max-width: 760px;
}
.finder-progress { height: 6px; background: var(--reed-light); border-radius: 3px; overflow: hidden; margin-bottom: 20px; }
.finder-progress span { display: block; height: 100%; background: var(--reed-dark); transition: width 0.25s ease; }
.finder-step { margin: 0 0 8px 0; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--reed-dark); }
.finder-fieldset { border: none; padding: 0; margin: 0; min-width: 0; }
.finder-fieldset legend { padding: 0; font-size: 1.4rem; font-weight: 700; color: var(--ink); line-height: 1.25; }
.finder-fieldset legend:focus { outline: none; }
.finder-hint { margin: 8px 0 0 0; font-size: 0.92rem; color: var(--charcoal); }
.finder-options { display: grid; gap: 12px; margin-top: 20px; }
.finder-option { position: relative; }
.finder-option input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.finder-option label {
  display: block;
  padding: 14px 18px 14px 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  cursor: pointer;
  position: relative;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.finder-option label::before {
  content: '';
  position: absolute;
  left: 16px; top: 17px;
  width: 18px; height: 18px;
  border: 2px solid var(--reed-dark);
  border-radius: 50%;
  background: #FFFFFF;
}
.finder-option input[type="checkbox"] + label::before { border-radius: 4px; }
.finder-option input:checked + label { border-color: var(--reed-dark); background: var(--reed-light); }
.finder-option input:checked + label::before { background: var(--reed-dark); box-shadow: inset 0 0 0 3px #FFFFFF; }
.finder-option input:focus-visible + label { outline: 2px solid var(--reed-dark); outline-offset: 2px; }
.finder-option:hover label { border-color: var(--reed-dark); }
.finder-option-label { display: block; font-weight: 600; color: var(--ink); }
.finder-option-desc { display: block; font-size: 0.88rem; color: var(--charcoal); margin-top: 2px; }
.finder-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 28px; }
.finder-card .btn:disabled { opacity: 0.45; cursor: not-allowed; }
.finder-card .btn:disabled:hover { background: var(--reed-dark); color: var(--paper); }
.finder-card .btn-ghost:disabled:hover { background: transparent; color: var(--ink); }
.finder-result { outline: none; }
.finder-result-label { margin: 0; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--reed-dark); }
.finder-result-title { font-size: 1.9rem; margin: 6px 0 4px 0; }
.finder-price { font-size: 2.2rem; font-weight: 700; color: var(--reed-dark); margin: 4px 0 8px 0; line-height: 1.1; }
.finder-price span { font-size: 1rem; font-weight: 600; margin-right: 2px; }
.finder-price small { font-size: 0.9rem; font-weight: 500; color: var(--charcoal); }
.finder-monthly { margin: 0 0 16px 0; }
.finder-disclaimer { background: var(--reed-light); border-left: 4px solid var(--reed-dark); border-radius: var(--radius); padding: 14px 18px; margin: 16px 0 24px 0; font-size: 0.95rem; }
.finder-result h4 { font-size: 1.05rem; margin: 24px 0 10px 0; }
.finder-result .service-list li { font-size: 0.95rem; margin-bottom: 8px; }
.finder-breakdown td:last-child { text-align: right; font-weight: 600; color: var(--ink); white-space: nowrap; }
.finder-breakdown td:first-child { min-width: 0; }
.finder-total td { border-bottom: none; font-weight: 700; color: var(--reed-dark) !important; }
.finder-note { font-size: 0.82rem; font-weight: 400; color: var(--charcoal); }
@media (max-width: 640px) {
  .finder-card { padding: 22px 16px; }
  .finder-fieldset legend { font-size: 1.2rem; }
  .finder-nav .btn { flex: 1; }
  .finder-price { font-size: 1.9rem; }
  /* Keep the result breakdown as a normal two-column table on phones */
  .finder-breakdown, .finder-breakdown tbody { display: table; width: 100%; }
  .finder-breakdown tbody { display: table-row-group; }
  .finder-breakdown tr { display: table-row; padding: 0; border-bottom: none; }
  .finder-breakdown td { display: table-cell; width: auto; padding: 10px 0; border-bottom: 1px solid var(--line); }
}

/* ---- Guides page: one resource per row ---- */
.guide-list { display: flex; flex-direction: column; gap: 28px; margin-top: 8px; }
.guide-row { display: grid; grid-template-columns: 285px 1fr; gap: 28px; align-items: center; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.guide-thumb { display: block; line-height: 0; border-radius: var(--radius); overflow: hidden; }
.guide-thumb img { width: 100%; height: auto; aspect-ratio: 1 / 1; display: block; }
.guide-body h3 { margin: 6px 0 10px; font-size: 1.35rem; }
.guide-body h3 a { text-decoration: none; color: var(--ink); }
.guide-body h3 a:hover { text-decoration: underline; }
.guide-body p { margin: 0; }
.guide-actions { margin-top: 16px !important; display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 640px) {
  .guide-row { grid-template-columns: 1fr; gap: 16px; padding: 16px; }
  .guide-thumb { max-width: 270px; }
}

@media (max-width: 900px) { .guide-row { grid-template-columns: 195px 1fr; } }
@media (max-width: 640px) { .guide-row { grid-template-columns: 1fr; } }

/* Keep infographic thumbnails a sensible size on every screen and in print */
.guide-thumb { width: 100%; max-width: 285px; }


@media (max-width: 640px) { .guide-thumb { max-width: 270px; } }


/* ---- Pause motion control (footer) ---- */
.motion-toggle {
  background: transparent;
  color: var(--paper);
  border: 1px solid rgba(252,249,242,0.55);
  border-radius: var(--radius);
  padding: 6px 12px;
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}
.motion-toggle:hover { background: rgba(255,255,255,0.1); }
.motion-toggle:focus-visible { outline: 2px solid var(--paper); outline-offset: 2px; }
.motion-toggle[hidden] { display: none; }

/* When motion is paused, mirror the prefers-reduced-motion rules */
.motion-paused *, .motion-paused *::before, .motion-paused *::after {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}
.motion-paused .service-item:hover {
  background-color: var(--reed-light);
  padding: 16px;
  margin: -16px;
}
.motion-paused .service-item:target { background-color: var(--reed-light); }
.motion-paused .badge-slide,
.motion-paused .label-slide { opacity: 0; }
.motion-paused .badge-slide.slide-a,
.motion-paused .label-slide.slide-a { opacity: 1; }
.motion-paused .hero-badge::before { opacity: 0; }
.motion-paused #cookie-banner { transform: none; }
.motion-paused .score-boost { transform: none; }
