/* ==========================================================================
   Applied Electrical — Custom Site Styles
   Mobile-first. Built from the business outward.
   ========================================================================== */

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

:root {
  /* Brand — derived from the Applied Electrical logo blue */
  --blue: #2196F3;
  --blue-dark: #1565C0;
  --blue-light: #BBDEFB;
  --blue-subtle: #E3F2FD;

  /* Neutral palette */
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --white: #ffffff;

  /* Accents */
  --emerald: #10b981;
  --amber: #f59e0b;

  /* Semantic */
  --text-primary: var(--slate-800);
  --text-secondary: var(--slate-600);
  --text-muted: var(--slate-500);
  --bg-body: var(--white);
  --bg-alt: var(--slate-50);
  --bg-dark: var(--slate-900);
  --border: var(--slate-200);

  /* Type scale — mobile-first */
  --font-heading: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Work Sans', system-ui, sans-serif;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Layout */
  --container-max: 1200px;
  --container-narrow: 800px;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --transition: 0.3s ease;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--blue-dark); }

h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--slate-900);
}
h1 { font-size: var(--text-3xl); }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-xl); }
h4 { font-size: var(--text-lg); }

p { margin-bottom: var(--space-md); }
p:last-child { margin-bottom: 0; }

/* ---------- Utility ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}
.container--narrow { max-width: var(--container-narrow); }

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

.section {
  padding: var(--space-3xl) 0;
}
.section--alt { background: var(--bg-alt); }
.section--dark {
  background: var(--bg-dark);
  color: var(--slate-200);
}
.section--dark h2, .section--dark h3 { color: var(--white); }
.section--blue {
  background: var(--blue);
  color: var(--white);
}
.section--blue h2, .section--blue h3 { color: var(--white); }

.section-label {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue);
  margin-bottom: var(--space-sm);
}
.section--dark .section-label,
.section--blue .section-label { color: var(--blue-light); }

.section-title {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-lg);
}

.section-intro {
  color: var(--text-secondary);
  max-width: 640px;
  margin-bottom: var(--space-2xl);
}
.section--dark .section-intro { color: var(--slate-400); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 600;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  min-height: 48px;
  text-align: center;
}
.btn--primary {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}
.btn--primary:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  color: var(--white);
}
.btn--outline {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue);
}
.btn--outline:hover {
  background: var(--blue);
  color: var(--white);
}
.btn--white {
  background: var(--white);
  color: var(--slate-900);
  border-color: var(--white);
}
.btn--white:hover {
  background: var(--slate-100);
  border-color: var(--slate-100);
  color: var(--slate-900);
}
.btn--dark {
  background: var(--slate-900);
  color: var(--white);
  border-color: var(--slate-900);
}
.btn--dark:hover {
  background: var(--slate-800);
  border-color: var(--slate-800);
  color: var(--white);
}
.btn--sm {
  font-size: var(--text-sm);
  padding: 0.6rem 1.25rem;
  min-height: 40px;
}
.btn--block { width: 100%; }

/* ---------- Header / Nav ---------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition);
  padding: var(--space-md) 0;
}
.header--transparent {
  background: transparent;
}
.header--solid {
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.header--solid .header__logo-text { color: var(--slate-900); }
.header--solid .nav-link { color: var(--slate-700); }
.header--solid .nav-link:hover { color: var(--blue); }
.header--solid .nav-toggle span { background: var(--slate-900); }

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  z-index: 1001;
}
.header__logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
}
.header__logo-text {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--white);
  transition: color var(--transition);
  line-height: 1.1;
}
.header__logo-text span {
  display: block;
  font-size: var(--text-xs);
  font-weight: 500;
  opacity: 0.8;
  letter-spacing: 0.05em;
}
.header--solid .header__logo-text span { opacity: 0.6; }

/* Mobile nav toggle */
.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}
.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile nav panel */
.nav {
  position: fixed;
  top: 0; right: -100%;
  width: 100%;
  height: 100vh;
  background: var(--slate-900);
  padding: 5rem var(--space-xl) var(--space-xl);
  transition: right var(--transition);
  overflow-y: auto;
  z-index: 1000;
}
.nav.open { right: 0; }

.nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}
.nav-link {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--slate-200);
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--slate-800);
  transition: color var(--transition);
}
.nav-link:hover { color: var(--blue-light); }
.nav-link.active { color: var(--blue); }

/* Dropdown */
.nav-item--dropdown { position: relative; }
.nav-dropdown-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.nav-dropdown-toggle::after {
  content: '';
  width: 8px; height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform var(--transition);
  flex-shrink: 0;
}
.nav-item--dropdown.open .nav-dropdown-toggle::after {
  transform: rotate(-135deg);
}

.nav-dropdown {
  display: none;
  list-style: none;
  padding-left: var(--space-lg);
}
.nav-item--dropdown.open .nav-dropdown { display: block; }
.nav-dropdown .nav-link {
  font-size: var(--text-base);
  font-weight: 400;
  padding: var(--space-sm) 0;
  border-bottom: none;
  color: var(--slate-400);
}
.nav-dropdown .nav-link:hover { color: var(--white); }

.nav__cta {
  margin-top: var(--space-xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--slate-800);
}
.nav__phone {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--white);
  margin-bottom: var(--space-md);
}
.nav__phone svg { flex-shrink: 0; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(15,23,42,0.92) 0%,
    rgba(15,23,42,0.7) 40%,
    rgba(15,23,42,0.4) 70%,
    rgba(15,23,42,0.2) 100%
  );
}
.hero__content {
  position: relative;
  z-index: 1;
  padding: var(--space-2xl) var(--space-lg);
  padding-bottom: var(--space-3xl);
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--blue-light);
  background: rgba(33,150,243,0.15);
  border: 1px solid rgba(33,150,243,0.3);
  padding: 0.4rem 0.9rem;
  border-radius: 100px;
  margin-bottom: var(--space-lg);
  letter-spacing: 0.03em;
}
.hero__title {
  font-size: var(--text-3xl);
  color: var(--white);
  margin-bottom: var(--space-md);
  max-width: 600px;
}
.hero__sub {
  font-size: var(--text-lg);
  color: var(--slate-300);
  margin-bottom: var(--space-xl);
  max-width: 500px;
  line-height: 1.5;
}
.hero__actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
.hero__trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}
.hero__trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-sm);
  color: var(--slate-400);
}
.hero__trust-item img {
  height: 28px;
  width: auto;
  opacity: 0.8;
}

/* Page hero (inner pages) */
.page-hero {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.page-hero__bg {
  position: absolute;
  inset: 0;
}
.page-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.page-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(15,23,42,0.9) 0%,
    rgba(15,23,42,0.5) 60%,
    rgba(15,23,42,0.3) 100%
  );
}
.page-hero__content {
  position: relative;
  z-index: 1;
  padding: var(--space-2xl) var(--space-lg);
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
}
.page-hero__title {
  font-size: var(--text-3xl);
  color: var(--white);
  margin-bottom: var(--space-sm);
}
.page-hero__sub {
  font-size: var(--text-lg);
  color: var(--slate-300);
  max-width: 500px;
}

/* ---------- Services Grid ---------- */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.service-card__image {
  aspect-ratio: 16/10;
  overflow: hidden;
}
.service-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.service-card:hover .service-card__image img {
  transform: scale(1.05);
}
.service-card__body {
  padding: var(--space-lg);
}
.service-card__title {
  font-size: var(--text-lg);
  margin-bottom: var(--space-sm);
}
.service-card__text {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  margin-bottom: var(--space-md);
  line-height: 1.6;
}
.service-card__link {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
}
.service-card__link::after {
  content: '\2192';
  transition: transform var(--transition);
}
.service-card:hover .service-card__link::after {
  transform: translateX(4px);
}

/* ---------- Reviews ---------- */
.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}
.review-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
}
.review-card__stars {
  color: var(--amber);
  font-size: var(--text-lg);
  margin-bottom: var(--space-md);
  letter-spacing: 2px;
}
.review-card__text {
  color: var(--text-primary);
  font-size: var(--text-base);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
  font-style: italic;
}
.review-card__author {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--slate-900);
}
.review-card__source {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* ---------- Stats / Trust Row ---------- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}
.stat {
  text-align: center;
  padding: var(--space-lg);
}
.stat__number {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--blue);
  line-height: 1;
  margin-bottom: var(--space-xs);
}
.section--dark .stat__number { color: var(--blue-light); }
.stat__label {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}
.section--dark .stat__label { color: var(--slate-400); }

/* ---------- CTA Band ---------- */
.cta-band {
  background: var(--blue);
  padding: var(--space-2xl) 0;
  text-align: center;
}
.cta-band h2 {
  color: var(--white);
  font-size: var(--text-2xl);
  margin-bottom: var(--space-sm);
}
.cta-band p {
  color: rgba(255,255,255,0.85);
  margin-bottom: var(--space-lg);
}
.cta-band .btn { margin: 0 var(--space-sm); }

/* ---------- Content Layout ---------- */
.content-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  align-items: center;
}
.content-split__image {
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.content-split__image img {
  width: 100%;
  height: auto;
  display: block;
}

.feature-list {
  list-style: none;
  display: grid;
  gap: var(--space-md);
}
.feature-list li {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
}
.feature-list__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--blue-subtle);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
}
.feature-list__text h4 {
  margin-bottom: var(--space-xs);
}
.feature-list__text p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* ---------- Before/After ---------- */
.before-after {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}
.before-after__item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}
.before-after__item img { width: 100%; display: block; }
.before-after__label {
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.3rem 0.8rem;
  border-radius: 100px;
  color: var(--white);
}
.before-after__label--before { background: var(--slate-700); }
.before-after__label--after { background: var(--blue); }

/* ---------- Certifications ---------- */
.cert-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-xl);
  padding: var(--space-lg) 0;
}
.cert-row img {
  height: 48px;
  width: auto;
  opacity: 0.7;
  transition: opacity var(--transition);
  filter: grayscale(30%);
}
.cert-row img:hover {
  opacity: 1;
  filter: none;
}

/* ---------- Contact Form ---------- */
.form {
  display: grid;
  gap: var(--space-md);
}
.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--slate-700);
  margin-bottom: var(--space-xs);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--text-primary);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  min-height: 48px;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-subtle);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--slate-900);
  color: var(--slate-400);
  padding: var(--space-3xl) 0 var(--space-xl);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}
.footer__brand .header__logo-text { color: var(--white); }
.footer__text {
  font-size: var(--text-sm);
  line-height: 1.7;
  color: var(--slate-400);
  margin-top: var(--space-md);
}
.footer h4 {
  font-size: var(--text-base);
  color: var(--white);
  margin-bottom: var(--space-md);
}
.footer__links {
  list-style: none;
  display: grid;
  gap: var(--space-sm);
}
.footer__links a {
  font-size: var(--text-sm);
  color: var(--slate-400);
  transition: color var(--transition);
}
.footer__links a:hover { color: var(--white); }

.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  font-size: var(--text-sm);
  margin-bottom: var(--space-md);
}
.footer__contact-item svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--blue);
}
.footer__contact-item a { color: var(--slate-400); }
.footer__contact-item a:hover { color: var(--white); }

.footer__bottom {
  border-top: 1px solid var(--slate-800);
  padding-top: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  font-size: var(--text-xs);
  color: var(--slate-500);
}
.footer__bottom a { color: var(--slate-500); }
.footer__bottom a:hover { color: var(--slate-300); }

/* ---------- Sticky Phone Bar (mobile) ---------- */
.phone-bar {
  display: flex;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: var(--blue);
  color: var(--white);
}
.phone-bar a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-base);
  color: var(--white);
  min-height: 56px;
}
.phone-bar a:first-child {
  background: var(--blue);
}
.phone-bar a:last-child {
  background: var(--blue-dark);
}
.phone-bar a:hover { opacity: 0.9; }
.phone-bar svg { flex-shrink: 0; }

/* Give body bottom padding for phone bar on mobile */
body { padding-bottom: 56px; }

/* ---------- Service page content ---------- */
.service-content {
  padding: var(--space-3xl) 0;
}
.service-content h2 {
  margin-bottom: var(--space-md);
}
.service-content p {
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 720px;
}
.service-content .feature-list {
  margin-top: var(--space-xl);
}

/* Inline review */
.inline-review {
  background: var(--blue-subtle);
  border-left: 4px solid var(--blue);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: var(--space-xl);
  margin: var(--space-2xl) 0;
}
.inline-review blockquote {
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.7;
  margin-bottom: var(--space-md);
}
.inline-review cite {
  font-style: normal;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--slate-700);
}

/* Related services */
.related-services {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}
.related-service {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
}
.related-service:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-sm);
  color: var(--text-primary);
}
.related-service__icon {
  width: 48px;
  height: 48px;
  background: var(--blue-subtle);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--blue);
}
.related-service__text {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--text-primary);
}

/* About page */
.team-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: var(--space-2xl);
}
.team-image img { width: 100%; }

.values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}
.value-item {
  padding: var(--space-xl);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.value-item h3 { margin-bottom: var(--space-sm); }
.value-item p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

/* Contact page */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
}
.contact-info-card {
  padding: var(--space-xl);
  background: var(--slate-50);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-lg);
}
.contact-info-card h3 { margin-bottom: var(--space-lg); }

.map-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16/9;
}
.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  font-size: var(--text-sm);
  color: var(--slate-400);
  margin-bottom: var(--space-sm);
}
.breadcrumb a { color: var(--blue-light); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb span { opacity: 0.6; }

/* ---------- RESPONSIVE: Tablet (768px) ---------- */
@media (min-width: 768px) {
  h1 { font-size: var(--text-4xl); }
  h2 { font-size: var(--text-3xl); }

  .hero__title { font-size: var(--text-4xl); }
  .hero__actions {
    flex-direction: row;
    align-items: center;
  }
  .page-hero__title { font-size: var(--text-4xl); }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats-row {
    grid-template-columns: repeat(4, 1fr);
  }
  .content-split {
    grid-template-columns: 1fr 1fr;
  }
  .content-split--reverse .content-split__image {
    order: -1;
  }
  .before-after {
    grid-template-columns: 1fr 1fr;
  }
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
  .footer__grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
  }
  .related-services {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------- RESPONSIVE: Desktop (1024px) ---------- */
@media (min-width: 1024px) {
  .hero__title { font-size: var(--text-5xl); }
  .page-hero { min-height: 45vh; }
  .page-hero__title { font-size: var(--text-5xl); }
  .section-title { font-size: var(--text-3xl); }

  /* Desktop nav */
  .nav-toggle { display: none; }
  .nav {
    position: static;
    width: auto;
    height: auto;
    background: transparent;
    padding: 0;
    overflow: visible;
  }
  .nav-list {
    flex-direction: row;
    align-items: center;
    gap: 0;
  }
  .nav-link {
    font-size: var(--text-sm);
    padding: var(--space-sm) var(--space-md);
    border-bottom: none;
    color: rgba(255,255,255,0.85);
  }
  .header--solid .nav-link { color: var(--slate-600); }
  .nav-link:hover { color: var(--white); }
  .header--solid .nav-link:hover { color: var(--blue); }

  /* Desktop dropdown */
  .nav-item--dropdown { position: relative; }
  .nav-dropdown-toggle::after {
    width: 6px; height: 6px;
    margin-left: 4px;
  }
  .nav-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    min-width: 240px;
    padding: var(--space-sm) 0;
    z-index: 100;
  }
  .nav-item--dropdown:hover .nav-dropdown,
  .nav-item--dropdown.open .nav-dropdown {
    display: block;
  }
  .nav-dropdown .nav-link {
    padding: var(--space-sm) var(--space-lg);
    color: var(--slate-600);
    font-size: var(--text-sm);
  }
  .nav-dropdown .nav-link:hover {
    color: var(--blue);
    background: var(--slate-50);
  }
  .nav__cta { display: none; }

  /* Header phone on desktop */
  .header__phone {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: var(--text-sm);
    color: var(--white);
    margin-left: var(--space-lg);
  }
  .header--solid .header__phone { color: var(--blue); }

  .services-grid--home {
    grid-template-columns: repeat(3, 1fr);
  }
  .reviews-grid--three {
    grid-template-columns: repeat(3, 1fr);
  }

  /* No sticky phone bar on desktop */
  .phone-bar { display: none; }
  body { padding-bottom: 0; }

  .section { padding: var(--space-4xl) 0; }
}

/* Desktop phone hidden on mobile */
.header__phone { display: none; }

/* ---------- RESPONSIVE: Large Desktop (1440px) ---------- */
@media (min-width: 1440px) {
  .container { padding: 0 var(--space-xl); }
}

/* ---------- Animations (scroll-reveal) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Schema / SEO helpers ---------- */
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}
