/*
Theme Name: Ryan's Electrical
Theme URI: https://ryanselectrical.ie
Author: Ryan's Electrical
Author URI: https://ryanselectrical.ie
Description: Single-page WordPress theme for Ryan's Electrical — certified electrical contractors serving Drogheda, Louth, Meath, Dublin and across Ireland.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ryans-electrical
Tags: one-page, business, electrical
*/

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

:root {
  color-scheme: light;
  --black: #0d0d0d;
  --charcoal: #1a1a1a;
  --dark: #222222;
  --mid: #333333;
  --grey: #666666;
  --light-grey: #f5f5f5;
  --white: #ffffff;
  --blue: #1a6bff;
  --blue-dark: #0050d8;
  --blue-light: #3d85ff;
  --orange: #f5820a;
  --yellow: #f5c300;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.16);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Outfit', sans-serif;
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Inter', sans-serif;
  line-height: 1.15;
  font-weight: 700;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}
.btn-primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: var(--white); transform: translateY(-1px); }

.btn-dark {
  background: var(--charcoal);
  color: var(--white);
  border-color: var(--charcoal);
}
.btn-dark:hover { background: var(--mid); transform: translateY(-1px); }

.btn-orange {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
}
.btn-orange:hover { background: #d96f00; border-color: #d96f00; transform: translateY(-1px); }

/* HEADER */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: all 0.3s ease;
  padding: 20px 0;
}

#header.scrolled {
  background: var(--charcoal);
  padding: 12px 0;
  box-shadow: 0 2px 24px rgba(0,0,0,0.3);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

nav { display: flex; align-items: center; gap: 4px; }

nav a {
  color: rgba(255,255,255,0.8);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 6px;
  transition: all 0.2s;
  white-space: nowrap;
}

nav a:hover { color: var(--white); background: rgba(255,255,255,0.1); }

.header-ctas { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.header-phone {
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 8px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  transition: all 0.2s;
}

.header-phone:hover { background: rgba(255,255,255,0.18); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border: none;
  background: none;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s;
  display: block;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--charcoal);
  z-index: 999;
  flex-direction: column;
  padding: 80px 32px 40px;
  gap: 8px;
}

.mobile-menu.open { display: flex; }

.mobile-menu a {
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 24px;
  font-weight: 600;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.mobile-menu-close {
  position: absolute;
  top: 20px; right: 24px;
  background: none;
  border: none;
  color: white;
  font-size: 28px;
  cursor: pointer;
}

/* HERO */
#hero {
  min-height: 100vh;
  background: var(--charcoal);
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('assets/images/Ryans-Electrial-Services-Ireland.webp') center/cover no-repeat;
  opacity: 0.25;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(13,13,13,0.97) 0%, rgba(13,13,13,0.85) 50%, rgba(13,13,13,0.4) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 120px 0 120px;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(26,107,255,0.15);
  border: 1px solid rgba(26,107,255,0.3);
  color: var(--blue-light);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 100px;
  margin-bottom: 24px;
}

.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--blue);
  border-radius: 50%;
}

.hero-h1 {
  font-size: clamp(28px, 3.5vw, 44px);
  color: var(--white);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero-h1 em {
  font-style: normal;
  color: var(--blue-light);
}

.hero-copy {
  color: rgba(255,255,255,0.65);
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 520px;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.trust-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.75);
  font-size: 12px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 100px;
}

.trust-chip svg { flex-shrink: 0; }

.hero-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-img-main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--mid);
}

.hero-img-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.stat-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 20px 16px;
  text-align: center;
  backdrop-filter: blur(8px);
}

.stat-card .num {
  font-family: 'Inter', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--white);
  display: block;
}

.stat-card .label {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  margin-top: 2px;
  display: block;
}

/* REVIEW BADGE */
.review-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 100px;
  padding: 8px 16px 8px 10px;
  margin-bottom: 20px;
}
.review-badge .stars { display: flex; gap: 2px; align-items: center; line-height: 1; }
.review-badge .stars svg { color: #fbbf24; display: block; }
.review-badge .review-text {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  font-family: 'Inter', sans-serif;
}
.review-badge .review-text span { color: rgba(255,255,255,0.5); font-weight: 400; margin-left: 4px; }

/* CTA MICRO-COPY */
.cta-group { display: flex; flex-direction: column; gap: 12px; }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.cta-microcopy {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  display: flex;
  align-items: center;
  gap: 14px;
}
.cta-microcopy span { display: flex; align-items: center; gap: 4px; }
.cta-microcopy span::before { content: '\2713'; color: var(--blue-light); font-weight: 700; }

/* SCROLL INDICATOR */
.scroll-indicator {
  position: absolute;
  bottom: 72px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.35);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}
.scroll-indicator .arrow {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: bounce 2s ease-in-out infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* STATS BAR */
#stats-bar {
  background: var(--charcoal);
  padding: 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.stats-bar-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  divide-x: 1px solid rgba(255,255,255,0.06);
}
.stat-bar-item {
  padding: 32px 24px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.06);
  position: relative;
}
.stat-bar-item:last-child { border-right: none; }
.stat-bar-item .s-num {
  font-family: 'Inter', sans-serif;
  font-size: 40px;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  display: block;
  letter-spacing: -0.02em;
}
.stat-bar-item .s-num em {
  font-style: normal;
  color: var(--blue-light);
}
.stat-bar-item .s-label {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  margin-top: 6px;
  display: block;
  font-weight: 500;
}

/* CONTACT FORM (legacy embedded form) */
.quote-form {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 560px;
  margin: 40px auto 0;
  backdrop-filter: blur(8px);
}
.quote-form h3 {
  font-size: 20px;
  color: var(--white);
  margin-bottom: 6px;
}
.quote-form p {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 28px;
}
.quote-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.quote-form .form-field { display: flex; flex-direction: column; gap: 6px; }
.quote-form .form-field.full { grid-column: 1 / -1; }
.quote-form .form-field label { font-size: 12px; font-weight: 600; color: rgba(255,255,255,0.5); letter-spacing: 0.06em; text-transform: uppercase; }
.quote-form .form-field input,
.quote-form .form-field select,
.quote-form .form-field textarea {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--white);
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}
.quote-form .form-field input::placeholder,
.quote-form .form-field textarea::placeholder { color: rgba(255,255,255,0.3); }
.quote-form .form-field select option { background: var(--charcoal); color: var(--white); }
.quote-form .form-field input:focus,
.quote-form .form-field select:focus,
.quote-form .form-field textarea:focus {
  border-color: var(--blue);
  background: rgba(26,107,255,0.08);
}
.quote-form .form-field textarea { resize: vertical; min-height: 100px; }
.quote-form .form-submit {
  width: 100%;
  padding: 16px;
  font-size: 16px;
  justify-content: center;
  margin-top: 6px;
}
.quote-form .form-privacy {
  text-align: center;
  font-size: 11px;
  color: rgba(255,255,255,0.3);
  margin-top: 12px;
}

/* MOBILE BOTTOM BAR */
.mobile-bottom-bar {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 900;
  background: var(--charcoal);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 12px 16px;
  gap: 10px;
}
.mobile-bottom-bar a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 14px;
  transition: all 0.2s;
}
.mbb-call { background: var(--blue); color: var(--white); }
.mbb-call:hover { background: var(--blue-dark); }
.mbb-quote { background: rgba(255,255,255,0.08); color: var(--white); border: 1px solid rgba(255,255,255,0.15); cursor: pointer; font-family: 'Inter', sans-serif; font-weight: 600; }
.mbb-quote:hover { background: rgba(255,255,255,0.14); }

/* URGENCY SIGNAL */
.urgency-signal {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(255,255,255,0.55);
  font-size: 13px;
  margin-bottom: 16px;
}
.urgency-dot {
  width: 8px; height: 8px;
  background: #22c55e;
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
}
.urgency-dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: rgba(34,197,94,0.3);
  animation: ping 2s ease-in-out infinite;
}
@keyframes ping {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0; transform: scale(1.8); }
}

/* TRUST BAR */
#trust-bar {
  background: var(--blue);
  padding: 18px 0;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
}

.trust-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: nowrap;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.trust-item svg { opacity: 0.9; flex-shrink: 0; }
.trust-item[aria-hidden="true"] { display: none; }

/* SECTION LABELS */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.section-label::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--blue);
}

/* SERVICES SPLIT */
#services-split {
  padding: 100px 0;
  background: var(--white);
}

.split-header {
  text-align: center;
  margin-bottom: 60px;
}

.split-header h2 {
  font-size: clamp(30px, 4vw, 48px);
  color: var(--charcoal);
  margin-bottom: 16px;
}

.split-header p {
  color: var(--grey);
  font-size: 17px;
  max-width: 560px;
  margin: 0 auto;
}

.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.split-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.split-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.split-card-img {
  height: 480px;
  position: relative;
}

.split-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.split-card:hover .split-card-img img { transform: scale(1.04); }

.split-card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(13,13,13,0.2) 0%, rgba(13,13,13,0.92) 100%);
}

.split-card-body {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 32px;
  z-index: 2;
}

.split-card-type {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-light);
  margin-bottom: 8px;
}

.split-card-title {
  font-size: 26px;
  color: var(--white);
  margin-bottom: 16px;
}

.split-card-services {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.service-tag {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.85);
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 100px;
  backdrop-filter: blur(4px);
}

.split-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 14px;
  background: var(--blue);
  border-radius: 8px;
  padding: 10px 20px;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

.split-card-cta:hover { background: var(--blue-dark); gap: 12px; }

/* WHY CHOOSE */
#why-choose {
  padding: 100px 0;
  background: var(--light-grey);
}

.why-header {
  text-align: center;
  margin-bottom: 60px;
}

.why-header h2 {
  font-size: clamp(28px, 4vw, 44px);
  margin-bottom: 16px;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.why-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.why-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.why-icon {
  width: 52px;
  height: 52px;
  background: rgba(26,107,255,0.08);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.why-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: var(--charcoal);
}

.why-card p {
  color: var(--grey);
  font-size: 14px;
  line-height: 1.7;
}

/* SERVICES GRID */
#services-grid {
  padding: 100px 0;
  background: var(--white);
}

.services-header {
  text-align: center;
  margin-bottom: 60px;
}

.services-header h2 {
  font-size: clamp(28px, 4vw, 44px);
  margin-bottom: 16px;
}

.services-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.svc-card {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  aspect-ratio: 3/4;
  transition: transform 0.3s;
}

.svc-card:hover { transform: translateY(-4px); }

.svc-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.svc-card:hover img { transform: scale(1.06); }

.svc-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(13,13,13,0.15) 0%, rgba(13,13,13,0.6) 45%, rgba(13,13,13,0.96) 100%);
}

.svc-card-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.svc-card-content h3 {
  font-size: 17px;
  color: var(--white);
  line-height: 1.3;
}

.svc-card-content p {
  font-size: 13px;
  color: rgba(255,255,255,0.75);
  line-height: 1.5;
  margin: 0;
}

/* PROCESS */
#process {
  padding: 100px 0;
  background: var(--charcoal);
}

.process-header {
  text-align: center;
  margin-bottom: 60px;
}

.process-header .section-label { color: var(--blue-light); }
.process-header .section-label::before { background: var(--blue-light); }

.process-header h2 {
  font-size: clamp(28px, 4vw, 44px);
  color: var(--white);
  margin-bottom: 16px;
}

.process-header p { color: rgba(255,255,255,0.55); font-size: 16px; }

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}

.process-steps::before {
  content: '';
  position: absolute;
  top: 32px;
  left: calc(12.5% + 16px);
  right: calc(12.5% + 16px);
  height: 1px;
  background: rgba(255,255,255,0.1);
}

.step {
  text-align: center;
  padding: 0 16px;
  position: relative;
}

.step-num {
  width: 64px;
  height: 64px;
  background: var(--blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  margin: 0 auto 24px;
  position: relative;
  z-index: 2;
}

.step h3 {
  font-size: 18px;
  color: var(--white);
  margin-bottom: 10px;
}

.step p {
  color: rgba(255,255,255,0.5);
  font-size: 14px;
  line-height: 1.7;
}

/* COMMERCIAL AUTHORITY */
#commercial {
  padding: 100px 0;
  background: var(--black);
  position: relative;
  overflow: hidden;
}

.commercial-bg {
  position: absolute;
  inset: 0;
  background: url('assets/images/Industrial.webp') center/cover no-repeat;
  opacity: 0.15;
}

.commercial-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.commercial-content .section-label { color: var(--blue-light); }
.commercial-content .section-label::before { background: var(--blue-light); }

.commercial-content h2 {
  font-size: clamp(28px, 4vw, 44px);
  color: var(--white);
  margin-bottom: 20px;
  line-height: 1.2;
}

.commercial-content p {
  color: rgba(255,255,255,0.6);
  font-size: 16px;
  line-height: 1.75;
  margin-bottom: 36px;
}

.industries-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.industry-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.75);
  font-size: 14px;
  font-weight: 500;
  padding: 12px 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
}

.industry-item::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--blue);
  border-radius: 50%;
  flex-shrink: 0;
}

.commercial-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
  height: 480px;
}

.comm-img {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--mid);
}

.comm-img:first-child {
  grid-row: 1 / 3;
}

.comm-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
}

/* TESTIMONIALS */
#testimonials {
  padding: 100px 0;
  background: var(--light-grey);
}

.test-header {
  text-align: center;
  margin-bottom: 60px;
}

.test-header h2 {
  font-size: clamp(28px, 4vw, 44px);
  margin-bottom: 16px;
}

.test-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.test-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.test-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.stars {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
}

.stars svg { color: var(--yellow); }

.test-card blockquote {
  font-size: 15px;
  line-height: 1.75;
  color: var(--dark);
  margin-bottom: 24px;
  font-style: italic;
}

.test-author {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--light-grey);
  padding-top: 20px;
}

.test-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  color: var(--white);
  font-size: 16px;
  flex-shrink: 0;
}

.test-name {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: var(--charcoal);
}

.test-role {
  font-size: 12px;
  color: var(--grey);
  margin-top: 2px;
}

/* EMERGENCY BANNER */
#emergency {
  padding: 60px 0;
  background: linear-gradient(135deg, #c0392b 0%, #96281b 100%);
  position: relative;
  overflow: hidden;
}

#emergency::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 20px,
    rgba(255,255,255,0.02) 20px,
    rgba(255,255,255,0.02) 40px
  );
}

.emergency-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.emergency-text h2 {
  font-size: clamp(24px, 3vw, 38px);
  color: var(--white);
  margin-bottom: 8px;
}

.emergency-text p {
  color: rgba(255,255,255,0.75);
  font-size: 16px;
  max-width: 520px;
}

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

.btn-emergency {
  background: var(--white);
  color: #c0392b;
  border: none;
  font-size: 16px;
  padding: 16px 32px;
  font-weight: 700;
}

.btn-emergency:hover { background: var(--light-grey); transform: translateY(-2px); }

/* FAQ */
#faq {
  padding: 100px 0;
  background: var(--white);
}

.faq-header {
  text-align: center;
  margin-bottom: 60px;
}

.faq-header h2 {
  font-size: clamp(28px, 4vw, 44px);
  margin-bottom: 16px;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid #e8e8e8;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  cursor: pointer;
  gap: 20px;
}

.faq-question h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--charcoal);
  line-height: 1.4;
}

.faq-toggle {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--light-grey);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s;
}

.faq-item.open .faq-toggle {
  background: var(--blue);
  transform: rotate(45deg);
}

.faq-item.open .faq-toggle svg path { stroke: white; }

.faq-answer {
  display: none;
  padding: 0 0 20px;
}

.faq-item.open .faq-answer { display: block; }

.faq-answer p {
  color: var(--grey);
  font-size: 15px;
  line-height: 1.75;
}

/* FINAL CTA */
#final-cta {
  padding: 120px 0;
  background: var(--charcoal);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.final-cta-bg {
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1558618666-fcd25c85cd64?w=1600&q=80') center/cover no-repeat;
  opacity: 0.08;
}

.final-cta-inner {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
}

.final-cta-inner h2 {
  font-size: clamp(30px, 5vw, 52px);
  color: var(--white);
  margin-bottom: 20px;
  line-height: 1.15;
}

.final-cta-inner p {
  color: rgba(255,255,255,0.6);
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 40px;
}

.final-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.contact-details {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.55);
  font-size: 14px;
}

.contact-item svg { color: var(--blue-light); }

/* FOOTER */
footer {
  background: var(--black);
  padding: 80px 0 32px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 60px;
}

.footer-brand p {
  color: rgba(255,255,255,0.45);
  font-size: 14px;
  line-height: 1.7;
  margin: 16px 0 20px;
  max-width: 280px;
}

.cert-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.cert-badge {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.6);
  font-size: 11px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 6px;
  letter-spacing: 0.04em;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--white); }

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  line-height: 1.5;
}

.footer-contact-item svg { flex-shrink: 0; margin-top: 2px; color: var(--blue-light); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.06);
  flex-wrap: wrap;
}

.footer-bottom p {
  color: rgba(255,255,255,0.3);
  font-size: 13px;
}

/* FLOATING CTA */
.float-cta {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 900;
  display: none;
}

.float-cta a {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--blue);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 14px;
  padding: 14px 20px;
  border-radius: 100px;
  box-shadow: 0 8px 32px rgba(26,107,255,0.4);
  transition: all 0.2s;
}

.float-cta a:hover { background: var(--blue-dark); transform: translateY(-2px); box-shadow: 0 12px 40px rgba(26,107,255,0.5); }

/* ANIMATIONS */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-up-delay-1 { transition-delay: 0.1s; }
.fade-up-delay-2 { transition-delay: 0.2s; }
.fade-up-delay-3 { transition-delay: 0.3s; }
.fade-up-delay-4 { transition-delay: 0.4s; }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .services-cards { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 1024px) {
  .stats-bar-inner { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  nav, .header-ctas .btn-primary { display: none; }
  .hamburger { display: flex; }
  .mobile-bottom-bar { display: flex; }
  .float-cta { display: none !important; }
  body { padding-bottom: 80px; }
  .stats-bar-inner { grid-template-columns: repeat(2, 1fr); }
  .quote-form .form-row { grid-template-columns: 1fr; }
  .quote-form { padding: 28px 20px; }

  .hero-inner { grid-template-columns: 1fr; padding: 100px 0 60px; }
  .hero-visual { display: none; }
  .hero-h1 { font-size: 34px; }
  .hero-copy { font-size: 15px; }

  .cta-row { flex-direction: column; }
  .cta-row .btn { width: 100%; justify-content: center; }

  .hero-trust { display: flex; flex-direction: column; gap: 8px; padding-bottom: 36px; }
  .trust-chip { width: 100%; justify-content: center; text-align: center; }

  .review-badge { display: flex; flex-direction: row; align-items: center; width: 100%; gap: 8px; }
  .review-badge .stars { flex-shrink: 0; }

  #trust-bar { overflow: hidden; padding: 16px 0; }
  .trust-bar-inner {
    width: max-content;
    max-width: none;
    margin: 0;
    padding: 0 24px;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 36px;
    animation: trust-marquee 18s linear infinite;
  }
  #trust-bar:hover .trust-bar-inner { animation-play-state: paused; }
  .trust-item[aria-hidden="true"] { display: flex; }

  .split-grid { grid-template-columns: 1fr; }
  .split-card-img { height: 480px; }

  .why-grid { grid-template-columns: 1fr; }

  .services-cards { grid-template-columns: 1fr 1fr; }

  .process-steps { grid-template-columns: 1fr 1fr; }
  .process-steps::before { display: none; }

  .commercial-inner { grid-template-columns: 1fr; }
  .commercial-visual { display: none; }

  .test-grid { grid-template-columns: 1fr; }

  .emergency-inner { flex-direction: column; text-align: center; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .header-phone span { display: none; }
}

@keyframes trust-marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (max-width: 480px) {
  .services-cards { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; }
  .final-ctas { flex-direction: column; width: 100%; }
  .final-ctas .btn { width: 100%; justify-content: center; }
}

/* QUOTE POPUP MODAL */
#quote-popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(13, 13, 13, 0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: overlayFadeIn 0.25s ease;
}

#quote-popup-overlay.active {
  display: flex;
}

@keyframes overlayFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes modalSlideUp {
  from { opacity: 0; transform: translateY(28px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.popup-modal {
  background: #0d0d0d;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 640px;
  position: relative;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
  animation: modalSlideUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  flex-direction: column;
  max-height: 95vh;
}

.popup-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: #0d0d0d;
  flex-shrink: 0;
}

.popup-modal-header-text h3 {
  font-size: 18px;
  color: #ffffff;
  margin-bottom: 2px;
}

.popup-modal-header-text p {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  font-family: 'Outfit', sans-serif;
}

.popup-modal-header-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(26,107,255,0.2);
  border: 1px solid rgba(26,107,255,0.35);
  color: #6aa3ff;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 100px;
  white-space: nowrap;
}

.popup-close-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: rgba(255,255,255,0.1);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  color: rgba(255,255,255,0.7);
  transition: all 0.2s;
  flex-shrink: 0;
  margin-left: 10px;
}

.popup-close-btn:hover {
  background: rgba(255,255,255,0.2);
  color: #ffffff;
  transform: rotate(90deg);
}

.popup-modal-body {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  position: relative;
  background: #0d0d0d;
}

#popup-form-container {
  display: block;
  width: 100%;
  background: #0d0d0d;
}

#popup-form-container iframe {
  display: block !important;
  width: 100% !important;
  height: 780px !important;
  border: none !important;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg) !important;
  background: #0d0d0d !important;
}

body.popup-open {
  overflow: hidden;
}

@media (max-width: 768px) {
  #quote-popup-overlay {
    padding: 0;
    align-items: flex-end;
  }

  .popup-modal {
    max-width: 100%;
    max-height: 88vh;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    animation: modalSlideUpMobile 0.3s cubic-bezier(0.34, 1.2, 0.64, 1);
  }

  @keyframes modalSlideUpMobile {
    from { opacity: 0; transform: translateY(100%); }
    to   { opacity: 1; transform: translateY(0); }
  }

  .popup-modal-header {
    padding: 18px 20px 14px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }

  .popup-modal-header-badge {
    display: none;
  }

  #popup-form-container iframe {
    height: 760px !important;
  }
}

@media (max-width: 480px) {
  #popup-form-container iframe {
    height: 740px !important;
  }
}

/* ==========================================================================
   INNER PAGES (page.php, templates) + block content
   ========================================================================== */

.page-main { background: var(--white); }

/* Branded banner sitting under the fixed header */
.page-hero {
  background: var(--charcoal);
  background-image: radial-gradient(circle at 80% -20%, rgba(26,107,255,0.25), transparent 55%);
  color: var(--white);
  padding: 170px 0 70px;
}

.page-hero .section-label { color: var(--blue-light); }
.page-hero .section-label::before { background: var(--blue-light); }

.page-hero-title {
  color: var(--white);
  font-size: clamp(32px, 5vw, 52px);
  margin-top: 14px;
  max-width: 16ch;
}

.page-hero-sub {
  color: rgba(255,255,255,0.6);
  font-size: 18px;
  margin-top: 16px;
  max-width: 60ch;
}

/* Content area that renders blocks */
.page-content { padding: 64px 0 90px; }

.page-blocks {
  max-width: 760px;
  margin: 0 auto;
  color: var(--mid);
  font-size: 17px;
  line-height: 1.75;
}

/* Let wide / full aligned blocks break out of the 760px column */
.page-blocks > .alignwide {
  max-width: 1100px;
  margin-left: calc((760px - 1100px) / 2);
  margin-right: calc((760px - 1100px) / 2);
}
.page-blocks > .alignfull {
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.page-blocks h2 {
  color: var(--charcoal);
  font-size: clamp(24px, 3vw, 32px);
  margin: 1.8em 0 0.6em;
}
.page-blocks h3 {
  color: var(--charcoal);
  font-size: clamp(20px, 2.4vw, 24px);
  margin: 1.6em 0 0.5em;
}
.page-blocks h4 {
  color: var(--charcoal);
  font-size: 19px;
  margin: 1.4em 0 0.4em;
}
.page-blocks p { margin: 0 0 1.1em; }
.page-blocks a { color: var(--blue); font-weight: 500; }
.page-blocks a:hover { color: var(--blue-dark); text-decoration: underline; }
.page-blocks ul,
.page-blocks ol { margin: 0 0 1.2em 1.3em; }
.page-blocks li { margin-bottom: 0.5em; }
.page-blocks img { border-radius: var(--radius); }
.page-blocks blockquote {
  border-left: 4px solid var(--blue);
  background: var(--light-grey);
  padding: 18px 24px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.5em 0;
  font-size: 18px;
}
.page-blocks hr {
  border: none;
  border-top: 1px solid rgba(0,0,0,0.1);
  margin: 2.5em 0;
}
.page-blocks .wp-block-button__link {
  background: var(--blue);
  color: var(--white);
  border-radius: 8px;
  padding: 14px 28px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
}
.page-blocks .wp-block-button__link:hover { background: var(--blue-dark); }

.page-links { margin-top: 24px; font-weight: 600; }

/* ==========================================================================
   THANK YOU page template
   ========================================================================== */

.thankyou {
  background: var(--charcoal);
  background-image: radial-gradient(circle at 50% -10%, rgba(26,107,255,0.28), transparent 55%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 150px 0 90px;
}

.thankyou-card {
  max-width: 600px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 56px 48px;
  text-align: center;
}

.thankyou-icon {
  width: 84px;
  height: 84px;
  margin: 0 auto 28px;
  border-radius: 50%;
  background: rgba(26,107,255,0.1);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
}

.thankyou-title {
  color: var(--charcoal);
  font-size: clamp(28px, 4vw, 38px);
  margin-bottom: 18px;
}

.thankyou-body {
  color: var(--grey);
  font-size: 17px;
  line-height: 1.7;
  max-width: none;
}
.thankyou-body p { margin-bottom: 1em; }

.thankyou-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 32px;
}

@media (max-width: 560px) {
  .thankyou-card { padding: 40px 24px; }
  .thankyou-actions .btn { width: 100%; justify-content: center; }
}
