/* =============================================================
   CityFix Ltd — style.css
   Written from scratch to match HTML exactly.
   ============================================================= */

/* ---------------------------------------------------------------
   1. VARIABLES & RESET
--------------------------------------------------------------- */
:root {
  --blue:        #0057a8;
  --blue-dark:   #003f7a;
  --blue-deep:   #0a1628;
  --blue-light:  #e8f0fa;
  --amber:       #f59e0b;
  --white:       #ffffff;
  --off-white:   #f5f7fa;
  --grey-light:  #e9ecef;
  --grey:        #6b7280;
  --text:        #111827;
  --text-muted:  #6b7280;
  --border:      #dee2e6;
  --radius:      8px;
  --shadow:      0 2px 12px rgba(0,0,0,0.08);
  --shadow-md:   0 4px 24px rgba(0,0,0,0.12);
  --header-h:    72px;
  --max-w:       1160px;
  --transition:  0.2s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* scroll-behavior handled by JS only for anchor links, not global page scroll */

body {
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
}


img { display: block; max-width: 100%; height: auto; }

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}

h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 1rem; }
h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
h4 { font-size: 1rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

ul { list-style: none; }
address { font-style: normal; }

/* ---------------------------------------------------------------
   2. BUTTONS
--------------------------------------------------------------- */
.btn-primary,
.btn-secondary,
.btn-white-outline {
  display: inline-block;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius);
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
  text-decoration: none;
  line-height: 1.4;
}

.btn-primary {
  background: var(--amber);
  color: var(--text);
  border-color: var(--amber);
}
.btn-primary:hover {
  background: #e08e00;
  border-color: #e08e00;
  color: var(--text);
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue);
}
.btn-secondary:hover {
  background: var(--blue);
  color: var(--white);
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-white-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.7);
}
.btn-white-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--white);
  color: var(--white);
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-large {
  padding: 0.9rem 2rem;
  font-size: 1rem;
}

.btn-full {
  display: block;
  width: 100%;
  text-align: center;
}

/* ---------------------------------------------------------------
   3. HEADER
--------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: var(--white);
  box-shadow: 0 1px 0 var(--border);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: nowrap;
}

.logo-link {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

img.logo {
  height: 48px;
  width: auto;
}

/* Navigation — inline inside header-inner on desktop */
.nav-menu {
  flex: 1;
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  margin: 0 0.5rem;
}
.nav-menu ul {
  display: flex;
  gap: 0;
  list-style: none;
  align-items: stretch;
}
.nav-menu ul li a {
  display: flex;
  align-items: center;
  padding: 0 1rem;
  height: 100%;
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  border-bottom: 3px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}
.nav-menu ul li a:hover,
.nav-menu ul li a.active {
  color: var(--blue);
  border-bottom-color: var(--blue);
  text-decoration: none;
}

.header-phone {
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: 10%;
}
.header-phone a {
  color: var(--text);
  text-decoration: none;
}
.header-phone a:hover { color: var(--blue); }

.header-cta { flex-shrink: 0; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------------------------------------------------------------
   4. SECTION FRAMEWORK
--------------------------------------------------------------- */
.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-inner--centered { text-align: center; }

.cf-section {
  padding: 4rem 0;
}

.section-alt {
  background: var(--off-white);
}

.section-blue {
  background: var(--blue-deep);
  color: var(--white);
}
.section-blue h2,
.section-blue h3,
.section-blue p,
.section-blue .section-label {
  color: var(--white);
}

.section-label {
  display: inline-block;
  font-family: 'Poppins', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--blue-light);
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  margin-bottom: 1rem;
}
.section-blue .section-label,
.page-hero .section-label {
  background: rgba(255,255,255,0.15);
  color: var(--white);
}

.section-heading-centered { text-align: center; margin-bottom: 0.75rem; }
.section-intro { max-width: 720px; color: var(--text-muted); margin-bottom: 2rem; }
.section-intro--centered { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------------------------------------------------------------
   5. HERO (homepage)
--------------------------------------------------------------- */
.hero {
  background: linear-gradient(135deg, var(--blue-deep) 0%, #0d2b5e 100%);
  color: var(--white);
  padding: 4.5rem 1.5rem;
}

.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-content {}

.hero-image {
  display: flex;
  align-items: center;
}
.hero-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
  display: block;
}

.hero h1,
.hero p {
  color: var(--white);
}

.hero p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin: 1rem 0 2rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.badge {
  display: inline-block;
  padding: 0.3rem 0.85rem;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--white);
}

.hero-btns {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.75rem;
}

/* ---------------------------------------------------------------
   6. PAGE HERO (inner pages)
--------------------------------------------------------------- */
.page-hero {
  background: linear-gradient(135deg, var(--blue-deep) 0%, #0d2b5e 100%);
  color: var(--white);
  padding: 3.5rem 1.5rem 3rem;
  text-align: center;
}

.page-hero-inner {
  max-width: 700px;
  margin: 0 auto;
}

.page-hero h1,
.page-hero p {
  color: var(--white);
}

.page-hero p {
  font-size: 1.05rem;
  opacity: 0.88;
  margin-top: 0.75rem;
}

/* page-hero with hero-badges/hero-btns (service sub-pages) */
.page-hero .hero-badges {
  justify-content: center;
  margin-bottom: 1rem;
}
.page-hero .hero-btns {
  margin-top: 1.5rem;
}

/* ---------------------------------------------------------------
   7. QUOTE FORM SECTION (homepage)
--------------------------------------------------------------- */
.quote-section {
  background: var(--off-white);
  padding: 4rem 1.5rem;
}

.quote-section-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.quote-section-inner h2 { margin-bottom: 0.5rem; }
.quote-section-inner .sub { color: var(--text-muted); margin-bottom: 2rem; }

/* ---------------------------------------------------------------
   8. FORMS
--------------------------------------------------------------- */
.cf-form {
  text-align: left;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
}
.form-group:last-child { margin-bottom: 0; }

.form-group label {
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0,87,168,0.1);
}

.form-group textarea { resize: vertical; min-height: 110px; }

.required { color: #dc2626; margin-left: 2px; }

.field-error {
  font-size: 0.8rem;
  color: #dc2626;
  margin-top: 0.25rem;
  min-height: 1.2em;
}

.form-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 1rem;
}

.form-privacy { flex-direction: column; gap: 0.35rem; }

.form-privacy-inline {
  margin-bottom: 0.75rem;
}
.checkbox-label-inline {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  white-space: normal;
  flex-wrap: nowrap;
  line-height: 1.3;
}
.checkbox-label-inline input[type="checkbox"] {
  flex-shrink: 0;
  width: 15px;
  height: 15px;
}
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.88rem;
  cursor: pointer;
}
.checkbox-label input[type="checkbox"] { margin-top: 3px; flex-shrink: 0; }

.form-submit { margin-top: 1.25rem; }

.form-success {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #6ee7b7;
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-top: 1rem;
  font-weight: 600;
}

/* ---------------------------------------------------------------
   9. SERVICES GRID
--------------------------------------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.service-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  text-decoration: none;
  color: var(--text);
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}
.service-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--blue);
  transform: translateY(-2px);
  text-decoration: none;
  color: var(--text);
}

/* Icon — both class names used in different pages */
.service-icon,
.service-card-icon {
  font-size: 2.2rem;
  margin-bottom: 0.85rem;
  line-height: 1;
}

.service-card h3 {
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  flex: 1;
  margin-bottom: 1rem;
}

/* "Learn more" link — both class names */
.service-link,
.service-card-link {
  margin-top: auto;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--blue);
  font-family: 'Poppins', sans-serif;
}

/* ---------------------------------------------------------------
   10. USP STRIP
--------------------------------------------------------------- */
.usp-strip {
  background: var(--blue-deep);
  padding: 2.5rem 1.5rem;
}

/* Both class names used (index vs services page) */
.usp-grid,
.usp-strip-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  text-align: center;
}

.usp-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.usp-icon {
  font-size: 1.8rem;
  line-height: 1;
}

.usp-item h3 {
  font-size: 0.95rem;
  color: var(--white);
  margin: 0;
}

.usp-item p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.7);
  margin: 0;
}

/* services.html uses span.usp-text instead of h3/p */
.usp-text {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--white);
}

/* ---------------------------------------------------------------
   11. WHY CITYFIX (homepage)
--------------------------------------------------------------- */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.why-content .section-label { margin-bottom: 1rem; }
.why-content h2 { margin-bottom: 1rem; }
.why-content p { color: var(--text-muted); }

.credentials-list {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.credentials-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.4;
}

.cred-icon {
  color: var(--blue);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Stats */
.why-stats { align-self: start; }

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.stat-box {
  background: var(--blue);
  color: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.stat-number {
  font-family: 'Poppins', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}

.stat-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.85);
}

/* ---------------------------------------------------------------
   12. REVIEWS
--------------------------------------------------------------- */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.review-card {
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
}

/* Dark background (section-blue) */
.section-blue .review-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.15);
}

/* Light background */
.cf-section:not(.section-blue) .review-card {
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.review-stars {
  font-size: 1.1rem;
  color: var(--amber);
  margin-bottom: 0.85rem;
  letter-spacing: 2px;
}

.review-card blockquote,
p.review-text {
  font-size: 0.92rem;
  line-height: 1.6;
  flex: 1;
  margin-bottom: 1.25rem;
}

.section-blue .review-card blockquote,
.section-blue p.review-text {
  color: rgba(255,255,255,0.9);
}

.cf-section:not(.section-blue) .review-card blockquote,
.cf-section:not(.section-blue) p.review-text {
  color: var(--text-muted);
}

.review-author {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.review-author strong,
.review-name {
  font-weight: 700;
  font-size: 0.9rem;
}
.review-author span,
.review-location {
  font-size: 0.8rem;
}

.section-blue .review-author strong,
.section-blue .review-name { color: var(--white); }
.section-blue .review-author span,
.section-blue .review-location { color: rgba(255,255,255,0.6); }

.cf-section:not(.section-blue) .review-author strong,
.cf-section:not(.section-blue) .review-name { color: var(--text); }
.cf-section:not(.section-blue) .review-author span,
.cf-section:not(.section-blue) .review-location { color: var(--text-muted); }

/* ---------------------------------------------------------------
   13. AREAS
--------------------------------------------------------------- */
.areas-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.5rem 0 2rem;
}

.area-tag {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  background: var(--blue-light);
  color: var(--blue);
  border-radius: 20px;
  font-size: 0.88rem;
  font-weight: 600;
}

.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 1rem;
}
.map-embed iframe { display: block; width: 100%; max-width: 100%; }

/* ---------------------------------------------------------------
   14. CTA SECTION
--------------------------------------------------------------- */
.cta-section {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: var(--white);
  text-align: center;
  padding: 4rem 1.5rem;
}

.cta-section h2 { color: var(--white); margin-bottom: 0.75rem; }
.cta-section p { color: rgba(255,255,255,0.85); margin-bottom: 2rem; }

/* Both class names used */
.cta-btns,
.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

/* When cta-section is nested inside cf-section (services, about) */
.cf-section.cta-section {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  border-radius: 0;
  margin: 0;
  padding: 4rem 1.5rem;
}

/* ---------------------------------------------------------------
   15. FOOTER
--------------------------------------------------------------- */
.site-footer {
  background: var(--blue-deep);
  color: rgba(255,255,255,0.8);
  padding: 3rem 1.5rem 0;
}

.footer-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}

img.footer-logo {
  height: 44px;
  width: auto;
  margin-bottom: 1rem;
}

.footer-col p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 0.5rem;
}

.footer-col h4 {
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1rem;
}

.footer-certs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.cert-badge {
  display: inline-block;
  padding: 0.4rem 0.75rem;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.85);
  text-align: center;
  line-height: 1.3;
}

.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--white); text-decoration: none; }

.footer-col address {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.footer-col a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
}
.footer-col a:hover { color: var(--white); }

.footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1.25rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-bottom p { font-size: 0.82rem; color: rgba(255,255,255,0.5); margin: 0; }
.footer-bottom a { font-size: 0.82rem; color: rgba(255,255,255,0.5); text-decoration: none; }
.footer-bottom a:hover { color: var(--white); }

/* ---------------------------------------------------------------
   16. COOKIE BANNER
--------------------------------------------------------------- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--blue-deep);
  color: var(--white);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  z-index: 1000;
  box-shadow: 0 -2px 16px rgba(0,0,0,0.2);
  border-top: 1px solid rgba(255,255,255,0.1);
}
.cookie-banner p { font-size: 0.88rem; color: rgba(255,255,255,0.85); margin: 0; }
.cookie-banner a { color: var(--amber); }
.cookie-banner.is-hidden { display: none; }

.cookie-btns { display: flex; gap: 0.5rem; flex-shrink: 0; }

/* ---------------------------------------------------------------
   17. BACK TO TOP
--------------------------------------------------------------- */
.back-to-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  background: var(--blue);
  color: var(--white);
  border: none;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 800;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition), background var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
}
.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
}
.back-to-top:hover { background: var(--blue-dark); }

/* ---------------------------------------------------------------
   18. ABOUT PAGE
--------------------------------------------------------------- */
.about-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.about-intro-left .section-label { margin-bottom: 1rem; }
.about-intro-left p { color: var(--text-muted); }
.about-intro-left .credentials-list { margin-top: 1.25rem; }

.about-intro-right { display: flex; flex-direction: column; gap: 1.5rem; }

.info-box {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.info-box--blue {
  background: var(--blue-light);
  border-color: #b3d0f5;
}

.info-box h3 { margin-bottom: 0.75rem; }
.info-box p { font-size: 0.9rem; color: var(--text-muted); }

.cert-badges-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 1rem 0;
}
/* Dark cert-badge inside blue info box */
.info-box--blue .cert-badge {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}

.cert-note {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0;
}

/* Process steps — about page (numbered vertical list) */
.process-steps {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.process-step {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.process-step-number {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.process-step-content h3 { margin-bottom: 0.4rem; }
.process-step-content p { font-size: 0.92rem; color: var(--text-muted); margin: 0; }

/* ---------------------------------------------------------------
   19. SERVICE SUB-PAGES
       (services-boiler-installation.html etc.)
       process-steps here are horizontal cards
--------------------------------------------------------------- */
/* Override for service pages: process-steps without .process-step-number children */
.page-hero ~ * .process-steps,
.section-alt .process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  flex-direction: unset;
}

.page-hero ~ * .process-step,
.section-alt .process-step {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  text-align: center;
  display: block;
  gap: unset;
  align-items: unset;
}

.section-alt .process-step h3 { font-size: 1rem; margin-bottom: 0.4rem; }
.section-alt .process-step p { font-size: 0.88rem; color: var(--text-muted); margin: 0; }

/* ---------------------------------------------------------------
   20. CONTACT PAGE
--------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 3rem;
  align-items: start;
}

/* Grid items must be allowed to shrink — without this, min-width:auto causes overflow */
.contact-form-col,
.contact-details-col { min-width: 0; }

/* Selects never exceed their column even with long option text */
.cf-form select { width: 100%; min-width: 0; }

.contact-form-col .section-label { margin-bottom: 0.75rem; }
.contact-form-col h2 { margin-bottom: 0.5rem; }
.contact-form-col > p { color: var(--text-muted); margin-bottom: 1.5rem; }

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-detail-block h3 {
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.contact-phone-large {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--blue);
  text-decoration: none;
  margin-bottom: 0.25rem;
}
.contact-phone-large:hover { color: var(--blue-dark); text-decoration: none; }

.contact-email-link {
  font-size: 1rem;
  font-weight: 600;
  color: var(--blue);
}

.contact-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.hours-table {
  width: 100%;
  font-size: 0.88rem;
  border-collapse: collapse;
}
.hours-table td {
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
}
.hours-table td:last-child { text-align: right; }
.hours-emergency td {
  color: var(--blue);
  font-weight: 700;
  border-bottom: none;
}

.emergency-box {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
}
.emergency-box-label {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.75);
  margin-bottom: 0.35rem;
}
.emergency-box-number {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  margin-bottom: 0.25rem;
}
.emergency-box-note {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.7);
  margin: 0;
}

.map-section {
  padding: 0 1.5rem 3rem;
  background: var(--off-white);
}

/* ---------------------------------------------------------------
   21. PROJECTS PAGE
--------------------------------------------------------------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.filter-btn {
  padding: 0.45rem 1.1rem;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text);
  font-family: 'Poppins', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.filter-btn:hover,
.filter-btn--active,
.filter-btn.active {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
  transform: translateZ(0);
}

.project-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow var(--transition), border-color var(--transition);
}
.project-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--blue);
}

.project-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  background: var(--grey-light);
}

.project-count {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  pointer-events: none;
}

.project-card figure {
  position: relative;
  margin: 0;
}

.project-info,
.project-card-info {
  padding: 1rem 1.25rem;
}

.project-title,
.project-card-info h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.project-meta,
.project-location {
  font-size: 0.82rem;
  color: var(--text-muted);
  display: block;
  margin-bottom: 0.2rem;
}

.project-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0;
}

.project-cat {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--blue);
  background: var(--blue-light);
  padding: 0.15rem 0.6rem;
  border-radius: 12px;
  margin-bottom: 0.4rem;
}

/* Placeholder when no image */
.project-card-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Poppins', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--blue);
}

/* project-card figure */
.project-card figure { margin: 0; }
.project-card figure img {
  display: block;
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

/* Lightbox — hidden by default, shown when JS adds .is-open */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  z-index: 9000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.lightbox.is-open { display: flex; }

.lightbox-content {
  position: relative;
  max-width: 1100px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-img,
.lightbox-image {
  width: min(90vw, 1100px);
  height: auto;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius);
  opacity: 0;
  transition: opacity 0.2s;
}
.lightbox-image.loaded { opacity: 1; }

.lightbox-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255,255,255,0.2);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  position: absolute;
}
.lightbox-spinner.hidden { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

.lightbox-caption {
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
  margin-top: 0.75rem;
  text-align: center;
}
.caption-title { font-weight: 600; }
.caption-location { font-size: 0.82rem; opacity: 0.7; }

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: fixed;
  background: rgba(255,255,255,0.12);
  color: var(--white);
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(255,255,255,0.25); }

.lightbox-close { top: 1rem; right: 1rem; }
.lightbox-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 1rem; top: 50%; transform: translateY(-50%); }

.noscript-msg,
.no-projects-msg {
  text-align: center;
  color: var(--text-muted);
  padding: 2rem;
  grid-column: 1 / -1;
}

/* ---------------------------------------------------------------
   22. FAQ ACCORDION
--------------------------------------------------------------- */
.faq-list {
  max-width: 760px;
  margin: 2rem auto 0;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item:first-child { border-top: 1px solid var(--border); }

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 1.1rem 0;
  font-family: 'Poppins', sans-serif;
  font-size: 0.97rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  transition: color var(--transition);
}
.faq-question:hover { color: var(--blue); }
.faq-question[aria-expanded="true"] { color: var(--blue); }

.faq-icon {
  font-size: 1.3rem;
  font-weight: 400;
  flex-shrink: 0;
  transition: transform var(--transition);
  color: var(--blue);
}
.faq-question[aria-expanded="true"] .faq-icon { transform: rotate(45deg); }

/* Service pages use faq-question without .faq-icon — add pseudo-element */
.faq-question::after {
  content: '+';
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--blue);
  flex-shrink: 0;
  transition: transform var(--transition);
}
/* Hide ::after when .faq-icon is present (services.html faq) */
.faq-question:has(.faq-icon)::after { display: none; }
.faq-question[aria-expanded="true"]::after { transform: rotate(45deg); }

.faq-answer {
  padding: 0 0 1.25rem;
}
.faq-answer[hidden] { display: none; }
.faq-answer p {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}
.faq-answer p:last-child { margin-bottom: 0; }

/* ---------------------------------------------------------------
   23. MISC
--------------------------------------------------------------- */
.text-light { color: var(--text-muted); }
[hidden] { display: none !important; }

/* ---------------------------------------------------------------
   24. RESPONSIVE — TABLET (≤ 900px)
--------------------------------------------------------------- */
@media (max-width: 900px) {

  /* Header */
  .header-phone { display: none; margin-left: 0; }
  .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .logo-link { margin-right: 0; }

  /* Logo left, toggle right; nav wraps to full-width row below */
  .header-inner {
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .nav-menu {
    display: none;
    flex: none;
    width: 100%;
    order: 99;
    margin: 0;
    border-top: 1px solid var(--border);
    background: var(--white);
  }
  .nav-menu.is-open { display: flex; }
  .nav-menu ul {
    flex-direction: column;
    width: 100%;
    padding: 0.5rem 1.5rem 1rem;
  }
  .nav-menu ul li a {
    border-bottom: none;
    height: auto;
    padding: 0.7rem 0;
    border-top: 1px solid var(--border);
  }
  .nav-menu ul li:first-child a { border-top: none; }

  /* Layouts */
  .why-grid { grid-template-columns: 1fr; }
  .about-intro-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }

  /* Hero */
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-badges, .hero-btns { justify-content: center; }
  .hero-image { display: none; }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

/* ---------------------------------------------------------------
   25. RESPONSIVE — MOBILE (≤ 600px)
--------------------------------------------------------------- */
@media (max-width: 600px) {

  /* Header */
  .header-cta { display: none; }
  img.logo { height: 38px; }

  /* Hero */
  .hero { padding: 3.5rem 1rem 3rem; }
  .page-hero { padding: 2.5rem 1rem 2rem; }

  /* Sections */
  .cf-section { padding: 2.5rem 0; }
  .quote-section { padding: 2.5rem 1rem; }
  .cf-form { padding: 1.25rem; }

  /* Form rows → single column */
  .form-row { grid-template-columns: 1fr; }

  /* Contact page — prevent iOS input zoom (font-size below 16px triggers Safari zoom) */
  .cf-form input,
  .cf-form select,
  .cf-form textarea { font-size: 1rem; }
  /* Long email address wraps instead of overflowing */
  .contact-email-link { word-break: break-word; }

  /* Grids → single column */
  .services-grid,
  .projects-grid {
    grid-template-columns: 1fr;
  }

  /* Stats */
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }

  /* Reviews */
  .reviews-grid { grid-template-columns: 1fr; }

  /* USP */
  .usp-grid,
  .usp-strip-inner { grid-template-columns: 1fr 1fr; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 0.5rem; }

  /* Button groups */
  .cta-btns,
  .cta-buttons,
  .hero-btns { flex-direction: column; align-items: center; }
  .cta-btns a,
  .cta-buttons a,
  .hero-btns a { width: 100%; max-width: 320px; text-align: center; }

  /* Cookie banner */
  .cookie-banner { flex-direction: column; align-items: flex-start; }

  /* Back to top */
  .back-to-top { bottom: 1rem; right: 1rem; width: 40px; height: 40px; }

  /* Lightbox */
  .lightbox-prev { left: 0.25rem; }
  .lightbox-next { right: 0.25rem; }
}