/* ===== Reset & Base ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-primary: #0b2e6d;
  --color-secondary: #1d4f9c;
  --color-accent: #2d6cdf;
  --color-highlight: #3b82f6;
  --color-highlight-light: rgba(59, 130, 246, 0.12);
  --color-danger: #c0392b;
  --color-text-muted: #536762;
  --color-bg: #ffffff;
  --color-bg-alt: #f4f9f7;
  --color-surface: #ffffff;
  --color-text: #2c3e3e;
  --color-text-light: #5a7272;
  --color-border: #d5e0db;
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --max-width: 1200px;
  --radius: 12px;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
  --transition: 0.3s ease;
}

/* ===== Dark Mode ===== */
[data-theme="dark"] {
  --color-primary: #dbeafe;
  --color-secondary: #0f1c33;
  --color-accent: #162a4a;
  --color-highlight: #3b82f6;
  --color-danger: #e55349;
  --color-text-muted: #7aada3;
  --color-bg: #0e1a1c;
  --color-bg-alt: #142224;
  --color-surface: #142224;
  --color-text: #cdddd8;
  --color-text-light: #8aaa9f;
  --color-border: #243a3e;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.35);
}

[data-theme="dark"] .header {
  background: rgba(14, 26, 28, 0.95);
}

[data-theme="dark"] .hero {
  background: linear-gradient(135deg, #0e1a1c 0%, #152a2e 100%);
}

[data-theme="dark"] .hero::before {
  background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
}

[data-theme="dark"] .page-hero {
  background: linear-gradient(135deg, #0e1a1c 0%, #152a2e 100%);
}

[data-theme="dark"] .nav-links a:hover,
[data-theme="dark"] .nav-links a.active {
  color: var(--color-text);
}

[data-theme="dark"] .footer {
  background: #0a1415;
}

[data-theme="dark"] .cta-section {
  background: linear-gradient(135deg, #0a1415, #152a2e);
}

[data-theme="dark"] .project-category-badge {
  background: rgba(0, 0, 0, 0.65);
}

[data-theme="dark"] .project-tag {
  background: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .project-card:hover .project-tag {
  background: rgba(59, 130, 246, 0.16);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

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

ul {
  list-style: none;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 10000;
  padding: 12px 24px;
  background: var(--color-highlight);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 0 0 8px 8px;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Typography ===== */
h1, h2, h3, h4 {
  font-family: var(--font-main);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-primary);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.5rem); }

p {
  color: var(--color-text-light);
  line-height: 1.7;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-align: center;
}

.btn-primary {
  background: var(--color-highlight);
  color: #ffffff;
}

.btn-primary:hover {
  background: #2563eb;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.35);
}

.btn-outline {
  background: var(--color-bg-alt);
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-outline:hover {
  background: var(--color-primary);
  color: #fff;
  transform: translateY(-2px);
}

[data-theme="dark"] .btn-outline {
  background: transparent;
}

/* ===== Header / Nav ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.header.scrolled {
  border-bottom-color: var(--color-border);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-heading);
  text-decoration: none;
  white-space: nowrap;
}

.logo span {
  color: var(--color-highlight);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text-light);
  transition: all var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-primary);
  background: var(--color-bg-alt);
}

.nav-links a.active {
  font-weight: 600;
}

.nav-drawer-cta-item {
  display: none;
}

/* Nav actions (dark mode toggle + hamburger) */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Dark mode toggle */
.dark-mode-toggle {
  width: 40px;
  height: 40px;
  border: none;
  background: var(--color-bg-alt);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.dark-mode-toggle:hover {
  background: var(--color-border);
}

.toggle-icon {
  position: absolute;
  font-size: 1.15rem;
  transition: all 0.4s ease;
}

.toggle-icon.sun {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

.toggle-icon.moon {
  opacity: 0;
  transform: rotate(-90deg) scale(0.5);
}

[data-theme="dark"] .toggle-icon.sun {
  opacity: 0;
  transform: rotate(90deg) scale(0.5);
}

[data-theme="dark"] .toggle-icon.moon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

[data-theme="dark"] .dark-mode-toggle {
  background: #1a3038;
  border: 1px solid rgba(219, 234, 254, 0.35);
  color: #e8f4ff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 1px 3px rgba(0, 0, 0, 0.35);
}

[data-theme="dark"] .dark-mode-toggle:hover {
  background: #23424d;
  border-color: rgba(147, 197, 253, 0.55);
  color: #ffffff;
}

[data-theme="dark"] .dark-mode-toggle:active {
  background: #15282e;
}

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

.hamburger span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--color-primary);
  border-radius: 4px;
  transition: all var(--transition);
}

.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== Hero Section ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 64px;
  background: linear-gradient(135deg, #f4f9f7 0%, #e0efeb 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-background-paths {
  background: var(--color-bg);
}

.hero-background-paths::before {
  display: none;
}

.hero-background-paths .hero-path-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  transform: translateZ(0);
  will-change: transform;
}

.hero-background-paths .hero-path-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: #020617;
  transform: translateZ(0);
  backface-visibility: hidden;
  shape-rendering: geometricPrecision;
}

[data-theme="dark"] .hero-background-paths .hero-path-svg {
  color: #ffffff;
}

.hero-background-paths .hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
  max-width: 980px;
  margin: 0 auto;
  padding: 76px 0 64px;
}

.hero-background-paths .hero-badge {
  margin-top: 0;
}

.hero-background-paths h1 {
  margin-bottom: 20px;
  font-size: clamp(1.8rem, 6vw, 3.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.hero-background-paths p {
  max-width: 760px;
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  margin-bottom: 34px;
  padding: 14px 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(15, 23, 42, 0.08);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

[data-theme="dark"] .hero-background-paths p {
  background: rgba(2, 6, 23, 0.28);
  border-color: rgba(255, 255, 255, 0.14);
}

.hero-glass-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 22px;
  padding: 1px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(255, 255, 255, 0.15));
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

[data-theme="dark"] .hero-glass-cta {
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.14), rgba(0, 0, 0, 0.2));
}

.hero-paths-btn {
  border-radius: 18px;
  padding: 16px 32px;
  font-size: 1rem;
  gap: 10px;
  min-width: 250px;
  justify-content: center;
}

.hero-paths-btn span:last-child {
  font-weight: 700;
  letter-spacing: 0.01em;
}

.hero-path-stroke {
  stroke: currentColor;
  fill: none;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  will-change: stroke-dashoffset;
  animation-name: heroPathFlow;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

@keyframes heroPathFlow {
  0% {
    stroke-dashoffset: 0;
  }
  100% {
    stroke-dashoffset: -1400;
  }
}

/* Home page spacing overrides */
.home-page .hero {
  min-height: 78vh;
}

.home-page .hero.hero-background-paths {
  min-height: 100vh;
}

.home-page .section {
  padding: 56px 0;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-text {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  padding: 8px 18px;
  background: var(--color-highlight-light);
  color: var(--color-primary);
  border: 1px solid var(--color-border);
  border-radius: 50px;
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.35;
  margin-top: 18px;
  margin-bottom: 20px;
  -webkit-font-smoothing: antialiased;
}

[data-theme="dark"] .hero .hero-badge {
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
}

.hero-text h1 {
  margin-bottom: 20px;
  font-size: clamp(1.75rem, 4.2vw, 3rem);
}

.hero-text p {
  font-size: 1.02rem;
  margin-bottom: 32px;
  max-width: 500px;
}

.hero-rating {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow);
}

.hero-buttons .hero-rating {
  margin-bottom: 0;
  flex-shrink: 0;
}

.hero-rating-brand {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #4285F4;
}

.hero-rating-stars {
  color: #fbbc04;
  font-size: 0.95rem;
  letter-spacing: 2px;
}

.hero-rating-value {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-primary);
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: nowrap;
  align-items: center;
}

.hero-text .btn {
  justify-content: center;
}

.hero-buttons > .btn {
  width: 210px;
  min-width: 210px;
  height: 52px;
  padding: 0 14px;
}

.hero-buttons > .hero-rating {
  justify-content: flex-start;
  gap: 10px;
  padding: 8px 14px;
  white-space: nowrap;
}

.hero-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.hero-graphic {
  width: 180px;
  height: 180px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}

.hero-bulb-icon {
  width: 182px;
  height: 182px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: filter 0.28s ease, transform 0.28s ease;
}

.hero-graphic:hover .hero-bulb-icon,
.hero-graphic.is-lit .hero-bulb-icon {
  transform: translateY(-2px) scale(1.03);
}

/* ── Electrician theme ── */
.hero-electrician {
  font-size: 10rem;
  line-height: 1;
  color: #9fb4d9;
  transition: color 0.25s ease, filter 0.25s ease, transform 0.25s ease;
}

.hero-graphic:hover .hero-electrician,
.hero-graphic.is-lit .hero-electrician {
  color: #ffd84a;
  filter: drop-shadow(0 0 10px rgba(255, 216, 74, 0.65)) drop-shadow(0 0 24px rgba(255, 216, 74, 0.45));
  transform: scale(1.04);
}

.hero-bulb-toggle {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.hero-graphic--removalist + .hero-bulb-toggle {
  transform: translateX(-22px);
}

.hero-bulb-toggle-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.hero-bulb-toggle-slider {
  width: 40px;
  height: 22px;
  border-radius: 999px;
  background: rgba(22, 42, 74, 0.5);
  border: 1px solid rgba(159, 180, 217, 0.45);
  position: relative;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.hero-bulb-toggle-slider::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #d6e2ff;
  top: 2px;
  left: 2px;
  transition: transform 0.2s ease, background 0.2s ease;
}

.hero-bulb-toggle-input:checked + .hero-bulb-toggle-slider {
  background: rgba(59, 130, 246, 0.35);
  border-color: rgba(147, 197, 253, 0.8);
}

.hero-bulb-toggle-input:checked + .hero-bulb-toggle-slider::after {
  transform: translateX(18px);
  background: #ffffff;
}

.hero-bulb-toggle-input:focus-visible + .hero-bulb-toggle-slider {
  outline: 2px solid var(--color-highlight);
  outline-offset: 3px;
}

/* ===== Section Utilities ===== */
.section {
  padding: 72px 0;
}

.section-alt {
  background: var(--color-bg-alt);
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header p {
  max-width: 600px;
  margin: 16px auto 0;
  font-size: 1.1rem;
}

.section-label {
  display: inline-block;
  padding: 6px 16px;
  background: var(--color-highlight-light);
  color: var(--color-highlight);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 12px;
}

/* ===== Card Grids (services + values) ===== */
.features-grid,
.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.info-card {
  background: var(--color-surface);
  padding: 24px 28px;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  transition: all var(--transition);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 14px;
}

.info-card:hover {
  transform: translateY(-3px) scale(1.05) !important;
  box-shadow: var(--shadow);
  border-color: transparent;
}

.feature-icon {
  width: 44px;
  height: 44px;
  background: var(--color-highlight-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.info-card h3 {
  margin: 0;
  font-size: 1.05rem;
}

.info-card p {
  width: 100%;
  margin-top: 10px;
  font-size: 0.9rem;
  line-height: 1.55;
}

/* ===== Service areas (areas.html + areas/*.html) ===== */
.areas-section .areas-intro {
  max-width: 640px;
  margin: 0 auto 28px;
  text-align: center;
  color: var(--color-text-light);
  line-height: 1.6;
}

.areas-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}

.area-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--color-text);
  font-weight: 600;
  font-size: 1rem;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.area-card:hover {
  border-color: var(--color-highlight);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.area-card-name {
  flex: 1;
  min-width: 0;
}

.area-card-arrow {
  flex-shrink: 0;
  color: var(--color-highlight);
  font-size: 1.1rem;
}

.page-hero .area-breadcrumb {
  max-width: 720px;
  margin: 0 auto 20px;
  text-align: left;
}

.area-breadcrumb-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--color-text-light);
}

.area-breadcrumb-list li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.area-breadcrumb-list li:not(:last-child)::after {
  content: "/";
  color: var(--color-border);
  font-weight: 400;
}

.area-breadcrumb-list a {
  color: var(--color-highlight);
  text-decoration: none;
  font-weight: 500;
}

.area-breadcrumb-list a:hover {
  text-decoration: underline;
}

.area-breadcrumb-list [aria-current="page"] {
  color: var(--color-text);
  font-weight: 600;
}

.area-landing-body {
  max-width: 720px;
  margin: 0 auto;
}

.area-landing-body p {
  line-height: 1.65;
  margin-bottom: 1rem;
  color: var(--color-text-light);
}

.service-landing-body {
  max-width: 720px;
  margin: 0 auto;
}

.service-landing-body p {
  line-height: 1.65;
  margin-bottom: 1rem;
  color: var(--color-text-light);
}

.landing-answer-section,
.landing-link-section,
.landing-faq-section {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}

.landing-answer-section h3,
.landing-link-section h3,
.landing-faq-section h3 {
  margin-bottom: 0.9rem;
  font-size: 1.2rem;
}

.answer-list {
  display: grid;
  gap: 12px;
}

.answer-item {
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: var(--color-surface);
  padding: 12px 14px;
}

.answer-item h4 {
  margin: 0 0 6px;
  font-size: 1rem;
  color: var(--color-primary);
}

.answer-item p {
  margin: 0;
  color: var(--color-text-light);
  line-height: 1.6;
}

.landing-link-section ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  padding: 0;
}

.landing-link-section a {
  display: inline-flex;
  align-items: center;
  color: var(--color-highlight);
  font-weight: 600;
}

.landing-link-section a:hover {
  text-decoration: underline;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-item {
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: var(--color-surface);
  padding: 10px 12px;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--color-primary);
}

.faq-item p {
  margin-top: 8px;
  margin-bottom: 0;
}

body.service-page .page-hero .area-breadcrumb {
  margin-bottom: 20px;
}

.area-back-link {
  margin-top: 2rem;
}

.area-back-link a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--color-highlight);
  text-decoration: none;
}

.area-back-link a:hover {
  text-decoration: underline;
}

@media (max-width: 600px) {
  .areas-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Services page (service offerings list) ===== */
.services-offerings-section .services-intro {
  max-width: 640px;
  margin: 0 auto 28px;
  text-align: center;
  color: var(--color-text-light);
  line-height: 1.6;
}

.service-offerings-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.service-offering-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.service-offering-card:hover {
  border-color: var(--color-highlight);
  box-shadow: var(--shadow);
}

a.service-offering-card--link {
  text-decoration: none;
  color: inherit;
  width: 100%;
  box-sizing: border-box;
}

a.service-offering-card--link:hover .service-offering-title {
  color: var(--color-highlight);
}

.service-offering-arrow {
  flex-shrink: 0;
  color: var(--color-highlight);
  font-size: 1.1rem;
  margin-left: auto;
}

.service-offering-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-highlight-light);
  border-radius: 12px;
  font-size: 1.25rem;
  color: var(--color-highlight);
}

.service-offering-title {
  flex: 1;
  min-width: 0;
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.35;
  color: var(--color-text);
}

@media (max-width: 600px) {
  .service-offerings-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Stats ===== */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  text-align: center;
}

.stat-value {
  color: var(--color-highlight);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 4px;
}

.stat-item p {
  font-weight: 500;
  color: var(--color-text-light);
}

/* ===== Home: process flowchart ===== */
.process-flow {
  max-width: 1100px;
  margin: 0 auto;
}

.process-flow-track {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  gap: 0 6px;
}

.process-step {
  flex: 1 1 200px;
  min-width: 180px;
  max-width: 260px;
  margin: 8px 0;
  padding: 22px 20px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  text-align: center;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.process-step--link {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

.process-step--link:hover {
  border-color: var(--color-highlight);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.process-step--link:focus-visible {
  outline: 2px solid var(--color-highlight);
  outline-offset: 3px;
}

.process-step-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin: 0 auto 14px;
  background: var(--color-highlight-light);
  border-radius: 12px;
  font-size: 1.35rem;
  color: var(--color-highlight);
}

.process-step-title {
  margin: 0 0 10px;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.3;
}

.process-step-summary {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--color-text-light);
}

.process-step-inline-link {
  color: var(--color-highlight);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.process-step-inline-link:hover {
  color: #2563eb;
}

[data-theme="dark"] .process-step-inline-link:hover {
  color: #93c5fd;
}

.process-step-inline-link:focus-visible {
  outline: 2px solid var(--color-highlight);
  outline-offset: 2px;
  border-radius: 2px;
}

.process-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  align-self: center;
  color: var(--color-highlight);
  font-size: 1.35rem;
  opacity: 0.85;
  padding: 0 2px;
}

@media (max-width: 900px) {
  .process-flow-track {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .process-step {
    max-width: none;
  }

  .process-arrow {
    padding: 6px 0 10px;
    transform: rotate(90deg);
  }
}

/* ===== About Page ===== */
.page-hero {
  padding: 140px 0 80px;
  background: linear-gradient(135deg, #f4f9f7 0%, #e0efeb 100%);
  text-align: center;
}

.page-hero p {
  max-width: 600px;
  margin: 16px auto 0;
  font-size: 1.15rem;
}

.page-hero .hero-call-btn {
  margin-top: 18px;
}

.about-text h2 {
  margin-bottom: 16px;
}

.about-text p {
  margin-bottom: 16px;
}

.value-icon {
  width: 44px;
  height: 44px;
  background: var(--color-highlight-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

/* ===== Projects Section ===== */
.projects-section {
  padding-top: 48px;
}

/* ===== Projects Grid V2 ===== */
.projects-grid-v2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.project-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  opacity: 0;
  transform: translateY(20px);
  animation: projectFadeIn 0.5s ease forwards;
  animation-delay: var(--delay, 0s);
}

@keyframes projectFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.project-card--featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
}

.project-card--single-carousel {
  grid-column: 1 / -1;
}

.project-card--single-carousel .slideshow {
  aspect-ratio: 4/3;
  min-height: unset;
}

.project-card--featured .slideshow {
  aspect-ratio: 4/3;
  min-height: unset;
}

.project-card--featured .project-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px;
}

.project-card--featured .project-content h3 {
  font-size: 1.5rem;
}

.project-card--featured .project-content p {
  font-size: 1.05rem;
  line-height: 1.7;
  -webkit-line-clamp: unset;
  overflow: visible;
}

/* Card media wrapper */
.project-card-media {
  position: relative;
  overflow: hidden;
}

.project-category-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 3;
  padding: 6px 16px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ===== Slideshow ===== */
.slideshow {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  background-color: var(--color-bg-alt);
  opacity: 0;
  transition: opacity 0.6s ease;
  z-index: 0;
}

.slide-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

/* Keep captions above dot controls (dots are position:absolute; bottom) */
.slideshow:has(.slide-dots) .slide {
  padding-bottom: 44px;
}

.slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.05) 55%, transparent 100%);
  pointer-events: none;
}

/* Slide caption */
.slide-caption {
  position: relative;
  z-index: 1;
  padding: 20px 22px;
  color: #fff;
  max-width: 100%;
}

.slide-caption h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
  line-height: 1.3;
}

.slide-caption p {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.4;
  margin: 0;
}

.project-card--featured .slide-caption {
  padding: 28px 30px;
}

.project-card--featured .slide-caption h4 {
  font-size: 1.15rem;
}

.project-card--featured .slide-caption p {
  font-size: 0.9rem;
}

.project-card--single-carousel .slide-caption h4 {
  font-size: 1.2rem;
}

.project-card--single-carousel .slide-caption p {
  font-size: 0.95rem;
  max-width: 720px;
}

/* Slide arrows */
.slide-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s ease, background 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide-prev { left: 10px; }
.slide-next { right: 10px; }

.slideshow:hover .slide-arrow {
  opacity: 1;
}

.slide-arrow:hover {
  background: rgba(0, 0, 0, 0.65);
}

/* Slide dots */
.slide-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  gap: 8px;
}

.slide-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  padding: 0;
  transition: all 0.3s ease;
}

.slide-dot.active {
  background: #fff;
  transform: scale(1.25);
}

.slide-dot:hover {
  background: rgba(255, 255, 255, 0.8);
}

.project-content {
  padding: 24px;
}

.project-content h3 {
  margin-bottom: 8px;
  font-size: 1.1rem;
  transition: color var(--transition);
}

.project-card:hover .project-content h3 {
  color: var(--color-highlight);
}

.project-content p {
  margin-bottom: 16px;
  font-size: 0.9rem;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.project-tag {
  padding: 5px 14px;
  background: var(--color-bg-alt);
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-text-light);
  transition: all var(--transition);
}

.project-card:hover .project-tag {
  background: rgba(59, 130, 246, 0.12);
  color: var(--color-highlight);
}

/* ===== Forms ===== */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-row-with-or {
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
}

.form-or {
  align-self: start;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-text-light);
  margin: 44px 0 0;
}

@media (max-width: 480px) {
  .form-row {
    grid-template-columns: 1fr;
  }

  .form-row-with-or {
    grid-template-columns: 1fr;
  }

  .form-row-with-or .form-group {
    margin-bottom: 4px;
  }

  .form-or {
    margin: -2px 0 0;
    padding: 0;
    text-align: center;
  }
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--color-text);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--color-border);
  border-radius: 10px;
  font-family: var(--font-main);
  font-size: 0.95rem;
  color: var(--color-text);
  transition: border-color var(--transition);
  background: var(--color-bg);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: 2px solid var(--color-highlight);
  outline-offset: 2px;
  border-color: var(--color-highlight);
}

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

.field-error {
  border-color: var(--color-danger) !important;
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.15);
}

.form-submit {
  width: 100%;
  justify-content: center;
}

.quick-contact-form .form-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  background: #94a3b8 !important;
  color: #f8fafc !important;
  border-color: transparent !important;
  transform: none;
  box-shadow: none;
}

[data-theme="dark"] .quick-contact-form .form-submit:disabled {
  background: #475569 !important;
  color: #e2e8f0 !important;
  opacity: 0.7;
}

.btn-submit--sending {
  opacity: 0.7;
}

.btn-submit--success {
  background: #15803d !important;
  border-color: transparent !important;
  color: #fff !important;
  opacity: 1;
  cursor: default;
  white-space: normal;
  line-height: 1.35;
}

.btn-submit--error {
  background: var(--color-danger) !important;
  border-color: transparent !important;
  color: #fff !important;
  opacity: 1;
  cursor: default;
  white-space: normal;
  line-height: 1.35;
}

/* ===== CTA Section ===== */
.cta-section {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  padding: 80px 0;
  text-align: center;
}

.cta-section h2 {
  color: #fff;
  margin-bottom: 16px;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 500px;
  margin: 0 auto 32px;
  font-size: 1.1rem;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.cta-buttons .btn {
  min-width: 190px;
  justify-content: center;
}

/* ===== Floating Chatbot ===== */
.chatbot-widget {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.chatbot-toggle {
  border: none;
  border-radius: 999px;
  background: var(--color-highlight);
  color: #fff;
  padding: 12px 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform var(--transition), background var(--transition);
}

.chatbot-toggle:hover {
  background: #2563eb;
  transform: translateY(-2px);
}

.chatbot-panel {
  width: min(360px, calc(100vw - 28px));
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.chatbot-header {
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
}

.chatbot-header h3 {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-primary);
}

.chatbot-close {
  border: none;
  background: transparent;
  color: var(--color-text-light);
  cursor: pointer;
  padding: 4px;
}

.chatbot-messages {
  max-height: 300px;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chatbot-msg {
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 0.9rem;
  line-height: 1.45;
  max-width: 88%;
}

.chatbot-msg--bot {
  background: var(--color-bg-alt);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.chatbot-msg--user {
  margin-left: auto;
  background: var(--color-highlight);
  color: #fff;
}

.chatbot-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 2px;
}

.chatbot-action {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  color: var(--color-primary);
  background: var(--color-bg);
  text-decoration: none;
}

.chatbot-action:hover {
  border-color: var(--color-highlight);
  color: var(--color-highlight);
}

.chatbot-action-btn {
  cursor: pointer;
  font-family: var(--font-main);
}

.chatbot-msg--typing {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.chatbot-msg--typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-text-light);
  opacity: 0.35;
  animation: chatbotTyping 1s infinite ease-in-out;
}

.chatbot-msg--typing span:nth-child(2) {
  animation-delay: 0.14s;
}

.chatbot-msg--typing span:nth-child(3) {
  animation-delay: 0.28s;
}

@keyframes chatbotTyping {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.3; }
  40% { transform: translateY(-2px); opacity: 0.9; }
}

.chatbot-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--color-border);
}

.chatbot-form input {
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 10px 12px;
  font-family: var(--font-main);
  font-size: 0.9rem;
  background: var(--color-bg);
  color: var(--color-text);
}

.chatbot-form button {
  border: none;
  border-radius: 10px;
  padding: 10px 12px;
  font-weight: 700;
  cursor: pointer;
  color: #fff;
  background: var(--color-highlight);
}

.chatbot-form button:hover {
  background: #2563eb;
}

.chatbot-form input:focus-visible,
.chatbot-form button:focus-visible,
.chatbot-toggle:focus-visible,
.chatbot-close:focus-visible,
.chatbot-action:focus-visible {
  outline: 2px solid var(--color-highlight);
  outline-offset: 2px;
}

/* ===== Footer ===== */
.footer {
  background: var(--color-primary);
  color: rgba(255, 255, 255, 0.7);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px 32px;
  align-items: start;
  margin-bottom: 48px;
}

.footer-brand-image {
  width: 160px;
  max-width: 100%;
  height: auto;
  margin-bottom: 12px;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.28));
}

.footer-brand .logo {
  color: #fff;
  margin-bottom: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  font-size: 1.15rem;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  max-width: 300px;
}

.footer-col h4 {
  color: #fff;
  margin-bottom: 16px;
  font-size: 1rem;
}

.footer-col a,
.footer-col span {
  display: block;
  padding: 4px 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition);
}

.footer-col .footer-contact-item {
  display: block;
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition);
}

.footer-col .footer-contact-item + .footer-contact-item {
  margin-top: 8px;
}

.footer-col .footer-contact-item span {
  display: inline;
  padding: 0;
}

.footer-col a:hover {
  color: #fff;
}

.footer-socials {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-socials a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  font-weight: 600;
  transition: background-color var(--transition), color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.footer-socials a i {
  font-size: 1.1rem;
  line-height: 1;
  transition: color var(--transition), filter var(--transition);
}

.footer-socials a[data-social="facebook"]:hover {
  background: #1877f2;
  color: #fff;
  transform: translateY(-1px);
}

.footer-socials a[data-social="instagram"]:hover {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
  color: #fff;
  transform: translateY(-1px);
}

.footer-socials a[data-social="google"]:hover {
  background: #fff;
  color: #4285f4;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transform: translateY(-1px);
}

.footer-socials a[data-social="tiktok"]:hover {
  background: linear-gradient(135deg, #25f4ee 0%, #25f4ee 40%, #fe2c55 40%, #fe2c55 100%);
  color: #fff;
  transform: translateY(-1px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 0.85rem;
}

.footer-legal {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 12px;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8rem;
  transition: color var(--transition);
}

.footer-legal a:hover {
  color: rgba(255, 255, 255, 0.9);
}

/* Mobile: stack footer content vertically */
@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-legal {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
}

/* ===== Contact Details (light theme, used on contact page) ===== */
.contact-details-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--color-border);
}

.contact-detail-inline {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--color-text-light);
}

.contact-detail-inline-hours {
  white-space: nowrap;
  flex-wrap: nowrap;
  font-size: 0.88rem;
}

.contact-detail-inline a {
  color: var(--color-text-light);
  transition: color var(--transition);
}

.contact-detail-inline a:hover {
  color: var(--color-highlight);
}

/* ===== Quick Contact (Home Page) ===== */
.quick-contact {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: start;
}

.quick-contact > * {
  min-width: 0;
}

.quick-contact-text h2 {
  margin-bottom: 12px;
}

.quick-contact-text > p {
  margin-bottom: 28px;
  font-size: 1.05rem;
}

@media (min-width: 769px) {
  .home-page .hero-text,
  .home-page .quick-contact-text {
    margin-left: 24px;
  }
}

.quick-contact-points {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.qc-point {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  color: var(--color-text);
}

.qc-icon {
  font-size: 1.2rem;
}

.quick-contact-form {
  background: var(--color-surface);
  padding: 32px;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow);
}

.quick-contact-form .form-group {
  margin-bottom: 16px;
}

.quick-contact-form textarea {
  min-height: 80px;
}

/* ===== Reviews Marquee ===== */
.reviews-section {
  overflow: hidden;
}

.google-rating-panel {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 20px;
  max-width: 360px;
  margin: 0 auto;
  text-align: center;
}

.google-rating-brand {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: #4285F4;
  margin-bottom: 6px;
  font-size: 0.92rem;
}

.google-rating-brand i {
  font-size: 1.1rem;
}

.google-rating-stars {
  color: #fbbc04;
  font-size: 1.05rem;
  letter-spacing: 2px;
  margin-bottom: 4px;
}

.google-rating-value {
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.google-rating-link {
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
}

.google-rating-link:hover {
  text-decoration: underline;
}

.google-map-embed {
  max-width: 820px;
  margin: 24px auto 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow);
  background: var(--color-surface);
}

.google-map-embed iframe {
  display: block;
  width: 100%;
  height: clamp(260px, 45vw, 450px);
  border: 0;
}

/* ===== Scroll Animations ===== */
.scroll-animate {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-animate.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Keyboard Focus Styles (WCAG 2.4.11) ===== */
.btn:focus-visible,
.nav-links a:focus-visible,
.logo:focus-visible,
.hamburger:focus-visible,
.dark-mode-toggle:focus-visible,
.footer-socials a:focus-visible,
.footer-col a:focus-visible,
.footer-legal a:focus-visible,
.slide-dot:focus-visible,
.hero-rating:focus-visible {
  outline: 2px solid var(--color-highlight);
  outline-offset: 3px;
  border-radius: 4px;
}

.slide-arrow:focus-visible {
  opacity: 1;
  outline: 2px solid var(--color-highlight);
  outline-offset: 3px;
}

/* ===== Aspect-ratio fallback for Safari 14 ===== */
@supports not (aspect-ratio: 1) {
  .slideshow {
    padding-bottom: 62.5%; /* 16/10 */
    height: 0;
  }
}

/* ===== Mobile Responsive ===== */
@media (max-width: 992px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-visual {
    display: none;
  }

  .hero-text p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    justify-content: center;
    flex-wrap: wrap;
  }

  .hero-rating {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-background-paths .hero-content {
    padding-top: 66px;
  }

  .hero-background-paths h1 {
    font-size: clamp(2rem, 11vw, 3.5rem);
  }

  .hero-graphic {
    width: 180px;
    height: 210px;
  }

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

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .projects-grid-v2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .project-card--featured {
    grid-template-columns: 1fr;
  }

  .project-card--featured .slideshow {
    min-height: 240px;
  }

  .project-card--single-carousel .slideshow {
    min-height: 320px;
  }

  .quick-contact {
    grid-template-columns: 1fr;
  }

  .quick-contact-form {
    order: -1;
  }
}

/* iPad/tablet breathing room */
@media (min-width: 769px) and (max-width: 1024px) {
  .home-page .hero {
    min-height: 82vh;
    padding-bottom: 72px;
  }

  .home-page .section {
    padding: 64px 0;
  }

  .hero-text p {
    max-width: 620px;
  }

  .hero-buttons {
    display: grid;
    grid-template-columns: repeat(3, minmax(220px, 1fr));
    gap: 12px;
    width: 100%;
    max-width: 100%;
  }

  .hero-buttons > .btn,
  .hero-buttons > .hero-rating {
    width: 100%;
    min-width: 0;
    height: 52px;
  }

  .hero-buttons > .hero-rating {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  html,
  body {
    overflow-x: hidden;
  }

  .nav-links {
    position: fixed;
    top: 64px;
    right: 0;
    left: auto;
    width: min(78vw, 320px);
    height: calc(100dvh - 64px);
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    background: var(--color-bg);
    flex-direction: column;
    padding: 24px;
    gap: 8px;
    border-left: 1px solid var(--color-border);
    transform: translateX(100%);
    opacity: 1;
    pointer-events: none;
    transition: transform var(--transition);
    box-shadow: -8px 0 24px rgba(0, 0, 0, 0.12);
    z-index: 1001;
  }

  .nav-links.open {
    transform: translateX(0);
    pointer-events: all;
  }

  .nav-links a {
    width: 100%;
    text-align: center;
    padding: 12px;
  }

  .nav-drawer-cta-item {
    display: block;
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--color-border);
  }

  .nav-drawer-cta-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }

  .nav-drawer-cta-item .nav-drawer-cta-stack .btn {
    width: 100%;
    justify-content: center;
    padding: 12px 16px;
  }

  .nav-drawer-cta-item .nav-drawer-cta-quote {
    background: var(--color-highlight);
    color: #fff;
    border: 1px solid transparent;
  }

  .nav-drawer-cta-item .nav-drawer-cta-quote:hover,
  .nav-drawer-cta-item .nav-drawer-cta-quote:focus-visible {
    background: #2563eb;
    color: #fff;
  }

  .hamburger {
    display: flex;
  }

  .features-grid,
  .values-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 120px;
    padding-bottom: 60px;
  }

  .hero.hero-background-paths {
    min-height: 100vh;
    padding-top: 84px;
    padding-bottom: 56px;
  }

  .page-hero {
    padding: 120px 0 56px;
  }

  /* Full-width tap target; avoid overflow between ~480px and tablet */
  .page-hero .hero-call-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .section {
    padding: 48px 0;
  }

  .home-page .section {
    padding: 40px 0;
  }

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

  .footer-legal {
    flex-wrap: wrap;
    gap: 12px 20px;
  }

  .projects-grid-v2 {
    grid-template-columns: 1fr;
  }

  .project-card--featured {
    grid-column: 1;
    grid-template-columns: 1fr;
  }

  .project-card--featured .slideshow {
    min-height: 220px;
  }

  .project-card--single-carousel .slideshow {
    min-height: 260px;
  }

  .project-card--featured .project-content {
    padding: 24px;
  }

  .slide-caption {
    padding: 16px;
  }

  .slide-caption h4 {
    font-size: 0.92rem;
  }

  .slide-caption p {
    font-size: 0.78rem;
  }

  .slide-arrow {
    opacity: 1;
    width: 34px;
    height: 34px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .google-rating-panel {
    padding: 22px 16px;
  }

  .btn {
    padding: 12px 24px;
    font-size: 0.9rem;
  }

  .quick-contact-form {
    padding: 22px 16px;
  }

  .quick-contact-form .btn,
  .quick-contact-form .form-submit,
  .cta-buttons .btn,
  .page-hero .hero-call-btn {
    width: 100%;
    min-width: 0;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .chatbot-widget {
    right: 12px;
    bottom: 12px;
  }

  .chatbot-toggle {
    padding: 11px 14px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero-background-paths h1 {
    font-size: clamp(1.9rem, 11vw, 2.6rem);
  }

  .hero-background-paths p {
    font-size: 0.98rem;
    margin-bottom: 28px;
  }

  .hero-paths-btn {
    min-width: 220px;
    padding: 14px 24px;
  }

  .hero-buttons > .btn,
  .hero-buttons > .hero-rating {
    width: 232px;
    min-width: 232px;
  }

  .hero-rating {
    width: 232px;
    max-width: 232px;
    justify-content: center;
    flex-wrap: nowrap;
    row-gap: 0;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-graphic {
    width: 150px;
    height: 175px;
  }

  .contact-detail-inline {
    align-items: flex-start;
    gap: 8px;
    line-height: 1.5;
  }

  .slide-caption {
    padding: 14px;
  }

  .slide-caption p {
    max-width: 100%;
  }
}

/* ===== Legal Pages (Privacy Policy, Terms & Conditions) ===== */

.legal-content {
  padding-top: 40px;
  padding-bottom: 80px;
}

.legal-body {
  max-width: 780px;
  margin: 0 auto;
  line-height: 1.8;
  color: var(--color-text);
}

.legal-effective {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--color-border);
}

.legal-body h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-top: 40px;
  margin-bottom: 12px;
  color: var(--color-primary);
}

.legal-body p {
  margin-bottom: 16px;
  font-size: 1rem;
}

.legal-body ul {
  margin: 0 0 16px 0;
  padding-left: 24px;
}

.legal-body ul li {
  margin-bottom: 8px;
  font-size: 1rem;
  line-height: 1.7;
}

.legal-body a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--transition);
}

.legal-body a:hover {
  color: var(--color-secondary);
}

.legal-contact-list {
  list-style: none;
  padding-left: 0;
}

.legal-contact-list li {
  padding: 6px 0;
}

@media (max-width: 768px) {
  .legal-body h2 {
    font-size: 1.15rem;
    margin-top: 32px;
  }

  .legal-content {
    padding-top: 24px;
    padding-bottom: 48px;
  }
}

/* ===== Palette: Electrician (black / blue) ===== */
html:not([data-color-palette]) {
  --color-primary: #0b1f3f;
  --color-secondary: #12305d;
  --color-accent: #1e4f9f;
  --color-highlight: #2563eb;
  --color-highlight-light: rgba(37, 99, 235, 0.16);
  --color-text-muted: #4c5f85;
  --color-bg: #f7faff;
  --color-bg-alt: #eaf1ff;
  --color-surface: #ffffff;
  --color-text: #0f172a;
  --color-text-light: #334155;
  --color-border: #c6d6f8;
}

html:not([data-color-palette]) .hero {
  background: linear-gradient(135deg, #f3f8ff 0%, #dbeafe 50%, #bfdbfe 100%);
}

html:not([data-color-palette]) .hero::before {
  background: radial-gradient(circle, rgba(37, 99, 235, 0.2) 0%, transparent 70%);
}

html:not([data-color-palette]) .page-hero {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
}

html[data-theme="dark"]:not([data-color-palette]) {
  --color-primary: #dbeafe;
  --color-secondary: #1d4ed8;
  --color-accent: #1e3a8a;
  --color-highlight: #60a5fa;
  --color-highlight-light: rgba(96, 165, 250, 0.2);
  --color-text-muted: #93a7c7;
  --color-bg: #060b14;
  --color-bg-alt: #0b1220;
  --color-surface: #0f172a;
  --color-text: #dbeafe;
  --color-text-light: #a5b4cf;
  --color-border: #1e2b44;
}

html[data-theme="dark"]:not([data-color-palette]) .hero {
  background: linear-gradient(135deg, #060b14 0%, #0b1220 50%, #0f172a 100%);
}

html[data-theme="dark"]:not([data-color-palette]) .hero::before {
  background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, transparent 70%);
}

html[data-theme="dark"]:not([data-color-palette]) .page-hero {
  background: linear-gradient(135deg, #060b14 0%, #0f172a 100%);
}

[data-color-palette="electrician-green"] {
  --color-primary: #0b1f3f;
  --color-secondary: #12305d;
  --color-accent: #1e4f9f;
  --color-highlight: #2563eb;
  --color-highlight-light: rgba(37, 99, 235, 0.16);
  --color-text-muted: #4c5f85;
  --color-bg: #f7faff;
  --color-bg-alt: #eaf1ff;
  --color-surface: #ffffff;
  --color-text: #0f172a;
  --color-text-light: #334155;
  --color-border: #c6d6f8;
}

[data-color-palette="electrician-green"] .hero {
  background: linear-gradient(135deg, #f3f8ff 0%, #dbeafe 50%, #bfdbfe 100%);
}

[data-color-palette="electrician-green"] .hero::before {
  background: radial-gradient(circle, rgba(37, 99, 235, 0.2) 0%, transparent 70%);
}

[data-color-palette="electrician-green"] .page-hero {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
}

[data-color-palette="electrician-green"] .btn-primary {
  background: #1d4ed8;
  color: #ffffff;
}

[data-color-palette="electrician-green"] .btn-primary:hover {
  background: #1e40af;
  box-shadow: 0 6px 20px rgba(29, 78, 216, 0.34);
}

[data-color-palette="electrician-green"] .chatbot-toggle:hover,
[data-color-palette="electrician-green"] .chatbot-form button:hover {
  background: #1e40af;
}

[data-color-palette="electrician-green"] .hero-electrician {
  color: #93c5fd;
}

[data-color-palette="electrician-green"] .hero-graphic:hover .hero-electrician,
[data-color-palette="electrician-green"] .hero-graphic.is-lit .hero-electrician {
  color: #fde047;
  filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.45)) drop-shadow(0 0 24px rgba(29, 78, 216, 0.35));
  transform: scale(1.04);
}

@media (max-width: 768px) {
  [data-color-palette="electrician-green"] .nav-drawer-cta-item .nav-drawer-cta-quote:hover,
  [data-color-palette="electrician-green"] .nav-drawer-cta-item .nav-drawer-cta-quote:focus-visible {
    background: #2563eb;
  }
}

/* Electrician black/blue + dark mode */
[data-theme="dark"][data-color-palette="electrician-green"] {
  --color-primary: #dbeafe;
  --color-secondary: #1d4ed8;
  --color-accent: #1e3a8a;
  --color-highlight: #60a5fa;
  --color-highlight-light: rgba(96, 165, 250, 0.2);
  --color-text-muted: #93a7c7;
  --color-bg: #060b14;
  --color-bg-alt: #0b1220;
  --color-surface: #0f172a;
  --color-text: #dbeafe;
  --color-text-light: #a5b4cf;
  --color-border: #1e2b44;
}

[data-theme="dark"][data-color-palette="electrician-green"] .hero {
  background: linear-gradient(135deg, #060b14 0%, #0b1220 50%, #0f172a 100%);
}

[data-theme="dark"][data-color-palette="electrician-green"] .hero::before {
  background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, transparent 70%);
}

[data-theme="dark"][data-color-palette="electrician-green"] .page-hero {
  background: linear-gradient(135deg, #060b14 0%, #0f172a 100%);
}

[data-theme="dark"][data-color-palette="electrician-green"] .footer {
  background: #05070f;
}

[data-theme="dark"][data-color-palette="electrician-green"] .cta-section {
  background: linear-gradient(135deg, #0f172a, #1d4ed8);
}

[data-theme="dark"][data-color-palette="electrician-green"] .project-card:hover .project-tag {
  background: rgba(96, 165, 250, 0.18);
}

[data-theme="dark"][data-color-palette="electrician-green"] .btn-primary {
  background: #3b82f6;
  color: #f8fafc;
}

[data-theme="dark"][data-color-palette="electrician-green"] .btn-primary:hover {
  background: #60a5fa;
  color: #0b1220;
  box-shadow: 0 6px 20px rgba(96, 165, 250, 0.35);
}

[data-theme="dark"][data-color-palette="electrician-green"] .nav-links a:hover,
[data-theme="dark"][data-color-palette="electrician-green"] .nav-links a.active {
  color: var(--color-text);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .scroll-animate {
    opacity: 1;
    transform: none;
  }

  .info-card:hover {
    transform: none !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* Ensure footer stacks on small screens (wins over earlier breakpoints) */
@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr !important;
  }

  .footer-legal {
    flex-direction: column;
    align-items: center;
  }
}
