/* ==========================================================================
   Dünya Elektrik — site.css
   Professional electrician local business static site
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;800&family=Source+Sans+3:wght@400;600&display=swap');

/* --------------------------------------------------------------------------
   Design tokens
   -------------------------------------------------------------------------- */
:root {
  --de-red: #E31C23;
  --de-red-hover: #c9181e;
  --de-blue: #1E6BB8;
  --de-blue-hover: #185a9a;
  --de-black: #111111;
  --de-muted: #5a6570;
  --de-bg: #ffffff;
  --de-surface: #f4f6f8;
  --de-line: #dce3ea;
  --de-wa: #25D366;
  --de-wa-hover: #1fb855;
  --de-footer: #0d1520;
  --de-footer-text: #b8c4d0;

  --font-heading: 'Montserrat', system-ui, sans-serif;
  --font-body: 'Source Sans 3', system-ui, sans-serif;

  --container-max: 72rem;
  --header-h: 4.5rem;
  --header-h-shrink: 3.75rem;
  --section-y: clamp(3.5rem, 8vw, 6rem);
  --radius: 0.5rem;
  --radius-lg: 0.75rem;
  --shadow-sm: 0 1px 3px rgba(17, 17, 17, 0.06);
  --shadow-md: 0 4px 16px rgba(17, 17, 17, 0.08);
  --transition: 0.25s ease;
  --focus-ring: 0 0 0 3px rgba(30, 107, 184, 0.35);
}

/* --------------------------------------------------------------------------
   Reset & base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--de-black);
  background: var(--de-bg);
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

img,
picture,
video,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--de-blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
  transition: color var(--transition);
}

a:hover {
  color: var(--de-blue-hover);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--de-black);
  margin: 0 0 0.75em;
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.625rem, 3.5vw, 2.375rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.625rem); }
h4 { font-size: 1.125rem; }

p {
  margin: 0 0 1em;
}

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

ul, ol {
  margin: 0 0 1em;
  padding-left: 1.25em;
}

address {
  font-style: normal;
}

/* --------------------------------------------------------------------------
   Layout utilities
   -------------------------------------------------------------------------- */
.container {
  width: min(100% - 2rem, var(--container-max));
  margin-inline: auto;
}

.section {
  padding-block: var(--section-y);
}

.section--surface {
  background: var(--de-surface);
}

.section__header {
  max-width: 42rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section__eyebrow {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--de-blue);
  margin-bottom: 0.5rem;
}

.section__lead {
  font-size: clamp(1.0625rem, 2vw, 1.1875rem);
  color: var(--de-muted);
  line-height: 1.7;
}

.grid {
  display: grid;
  gap: clamp(1rem, 2.5vw, 1.5rem);
}

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

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

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

@media (min-width: 640px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 960px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

.text-center { text-align: center; }
.text-muted { color: var(--de-muted); }
.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;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.375rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  white-space: nowrap;
  transition:
    background-color var(--transition),
    border-color var(--transition),
    color var(--transition),
    transform var(--transition),
    box-shadow var(--transition);
}

.btn:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.btn:active {
  transform: translateY(1px);
}

.btn-red {
  background: var(--de-red);
  color: #fff;
  border-color: var(--de-red);
}

.btn-red:hover {
  background: var(--de-red-hover);
  border-color: var(--de-red-hover);
  color: #fff;
}

.btn-wa {
  background: var(--de-wa);
  color: #fff;
  border-color: var(--de-wa);
}

.btn-wa:hover {
  background: var(--de-wa-hover);
  border-color: var(--de-wa-hover);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--de-blue);
  border-color: var(--de-blue);
}

.btn-outline:hover {
  background: var(--de-blue);
  color: #fff;
}

.btn-outline--light {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.75);
}

.btn-outline--light:hover {
  background: #fff;
  color: var(--de-blue);
  border-color: #fff;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-icon svg {
  width: 1.125rem;
  height: 1.125rem;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Site header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--de-bg);
  border-bottom: 1px solid var(--de-line);
  transition: height var(--transition), box-shadow var(--transition);
}

.site-header.is-shrunk {
  height: var(--header-h-shrink);
  box-shadow: var(--shadow-sm);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 100%;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  color: var(--de-black);
  flex-shrink: 0;
}

.site-logo:hover {
  color: var(--de-black);
}

.site-logo__img {
  height: 2.5rem;
  width: auto;
}

.site-logo__text {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 800;
  line-height: 1.1;
}

.site-nav {
  display: none;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 1.75rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav__link {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--de-black);
  text-decoration: none;
  padding-block: 0.25rem;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}

.site-nav__link:hover,
.site-nav__link.is-active {
  color: var(--de-blue);
  border-bottom-color: var(--de-blue);
}

.site-header__actions {
  display: none;
  align-items: center;
  gap: 0.625rem;
}

.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  background: transparent;
  border: 1px solid var(--de-line);
  border-radius: var(--radius);
  cursor: pointer;
  color: var(--de-black);
  transition: background var(--transition), border-color var(--transition);
}

.nav-toggle:hover {
  background: var(--de-surface);
}

.nav-toggle:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.nav-toggle__bar {
  display: block;
  width: 1.25rem;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  position: relative;
  transition: background var(--transition);
}

.nav-toggle__bar::before,
.nav-toggle__bar::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform var(--transition), top var(--transition);
}

.nav-toggle__bar::before { top: -6px; }
.nav-toggle__bar::after { top: 6px; }

.nav-toggle[aria-expanded="true"] .nav-toggle__bar {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar::after {
  top: 0;
  transform: rotate(-45deg);
}

@media (min-width: 960px) {
  .site-nav {
    display: block;
  }

  .site-header__actions {
    display: flex;
  }

  .nav-toggle {
    display: none;
  }
}

/* Mobile nav drawer */
.mobile-nav {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 99;
  background: var(--de-bg);
  padding: 1.5rem;
  overflow-y: auto;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform var(--transition), visibility var(--transition);
}

.mobile-nav.is-open {
  transform: translateX(0);
  visibility: visible;
}

.mobile-nav__list {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
}

.mobile-nav__link {
  display: block;
  padding: 0.875rem 0;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--de-black);
  text-decoration: none;
  border-bottom: 1px solid var(--de-line);
}

.mobile-nav__link:hover {
  color: var(--de-blue);
}

.mobile-nav__actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mobile-nav__actions .btn {
  width: 100%;
}

/* --------------------------------------------------------------------------
   Hero (homepage)
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(28rem, 85vh, 42rem);
  padding-block: clamp(3rem, 10vw, 6rem);
  color: #fff;
  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(
    135deg,
    rgba(17, 17, 17, 0.82) 0%,
    rgba(17, 17, 17, 0.55) 45%,
    rgba(30, 107, 184, 0.35) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 40rem;
}

.hero__brand {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(0.8125rem, 1.5vw, 0.9375rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0.75rem;
}

.hero h1 {
  color: #fff;
  margin-bottom: 0.625em;
}

.hero__tagline {
  font-size: clamp(1.0625rem, 2.2vw, 1.3125rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  max-width: 36rem;
}

/* --------------------------------------------------------------------------
   Page hero (inner pages)
   -------------------------------------------------------------------------- */
.page-hero {
  position: relative;
  padding-block: clamp(2.5rem, 6vw, 4rem);
  background: var(--de-blue);
  color: #fff;
}

.page-hero--image {
  background: var(--de-black);
  min-height: 14rem;
  display: flex;
  align-items: flex-end;
}

.page-hero--image .page-hero__bg {
  position: absolute;
  inset: 0;
}

.page-hero--image .page-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
}

.page-hero--image .page-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(17, 17, 17, 0.85), rgba(17, 17, 17, 0.35));
}

.page-hero__inner {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  color: #fff;
  margin-bottom: 0.5rem;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.875rem;
}

.breadcrumb__item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.75);
}

.breadcrumb__item:not(:last-child)::after {
  content: '/';
  opacity: 0.5;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: #fff;
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Service tiles
   -------------------------------------------------------------------------- */
.service-tile {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  background: var(--de-bg);
  border: 1px solid var(--de-line);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  transition:
    border-color var(--transition),
    box-shadow var(--transition),
    transform var(--transition);
}

.service-tile:hover {
  border-color: var(--de-blue);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  color: inherit;
}

.service-tile:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.service-tile__icon {
  width: 2.5rem;
  height: 2.5rem;
  color: var(--de-blue);
}

.service-tile__title {
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 700;
  margin: 0;
}

.service-tile__desc {
  font-size: 0.9375rem;
  color: var(--de-muted);
  margin: 0;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   FAQ accordion (details/summary)
   -------------------------------------------------------------------------- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 48rem;
}

.faq-item {
  border: 1px solid var(--de-line);
  border-radius: var(--radius-lg);
  background: var(--de-bg);
  overflow: hidden;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.125rem 1.25rem;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: background var(--transition);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--de-blue);
  border: 1px solid var(--de-line);
  border-radius: 50%;
  transition: transform var(--transition), background var(--transition);
}

.faq-item[open] summary::after {
  content: '−';
  background: var(--de-blue);
  color: #fff;
  border-color: var(--de-blue);
}

.faq-item summary:hover {
  background: var(--de-surface);
}

.faq-item summary:focus-visible {
  outline: none;
  box-shadow: inset var(--focus-ring);
}

.faq-item__body {
  padding: 0 1.25rem 1.25rem;
  color: var(--de-muted);
  line-height: 1.7;
}

.faq-item__body p:last-child {
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Blog / article prose
   -------------------------------------------------------------------------- */
.prose {
  max-width: 42rem;
  font-size: 1.0625rem;
  line-height: 1.75;
}

.prose > * + * {
  margin-top: 1.25em;
}

.prose h2 {
  margin-top: 2em;
}

.prose h3 {
  margin-top: 1.75em;
}

.prose img {
  border-radius: var(--radius-lg);
  margin-block: 1.5em;
}

.prose blockquote {
  margin: 1.5em 0;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--de-blue);
  background: var(--de-surface);
  color: var(--de-muted);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.prose pre,
.prose code {
  font-family: ui-monospace, 'Cascadia Code', monospace;
  font-size: 0.875em;
}

.prose code {
  padding: 0.15em 0.4em;
  background: var(--de-surface);
  border-radius: 0.25rem;
}

.prose pre {
  overflow-x: auto;
  padding: 1rem 1.25rem;
  background: var(--de-black);
  color: #e8ecf0;
  border-radius: var(--radius-lg);
}

.prose pre code {
  padding: 0;
  background: none;
}

.prose a {
  font-weight: 600;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  font-size: 0.875rem;
  color: var(--de-muted);
  margin-bottom: 2rem;
}

/* --------------------------------------------------------------------------
   Gallery grid (Instagram projects)
   -------------------------------------------------------------------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

@media (min-width: 640px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
  }
}

@media (min-width: 960px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.gallery-item {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--de-surface);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item__link {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
}

.gallery-item__link:focus-visible {
  outline: none;
  box-shadow: inset var(--focus-ring);
}

/* --------------------------------------------------------------------------
   Contact / NAP block
   -------------------------------------------------------------------------- */
.nap-block {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.nap-block__item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.nap-block__icon {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  color: var(--de-red);
  margin-top: 0.2em;
}

.nap-block a {
  color: inherit;
  text-decoration: none;
  font-weight: 600;
}

.nap-block a:hover {
  color: var(--de-red);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--de-footer);
  color: var(--de-footer-text);
  padding-block: clamp(3rem, 6vw, 4.5rem);
}

.site-footer a {
  color: #fff;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--de-red);
}

.site-footer h3,
.site-footer h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
  }
}

.footer-nav {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-nav li + li {
  margin-top: 0.5rem;
}

.footer-nav a {
  font-size: 0.9375rem;
  color: var(--de-footer-text);
}

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

.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  color: #fff;
  transition: background var(--transition), border-color var(--transition);
}

.footer-social a:hover {
  background: var(--de-red);
  border-color: var(--de-red);
  color: #fff;
}

.footer-bottom {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.875rem;
  text-align: center;
}

/* --------------------------------------------------------------------------
   Sticky mobile bottom bar
   -------------------------------------------------------------------------- */
.mobile-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--de-bg);
  border-top: 1px solid var(--de-line);
  box-shadow: 0 -4px 16px rgba(17, 17, 17, 0.08);
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.mobile-bar__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: background var(--transition);
}

.mobile-bar__btn:focus-visible {
  outline: none;
  box-shadow: inset var(--focus-ring);
}

.mobile-bar__btn--call {
  background: var(--de-red);
  color: #fff;
}

.mobile-bar__btn--call:hover {
  background: var(--de-red-hover);
  color: #fff;
}

.mobile-bar__btn--wa {
  background: var(--de-wa);
  color: #fff;
}

.mobile-bar__btn--wa:hover {
  background: var(--de-wa-hover);
  color: #fff;
}

@media (min-width: 960px) {
  .mobile-bar {
    display: none !important;
  }

  body {
    padding-bottom: 0;
  }
}

@media (max-width: 959px) {
  body {
    padding-bottom: calc(3.25rem + env(safe-area-inset-bottom, 0));
  }
}

/* --------------------------------------------------------------------------
   Scroll reveal animations
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(1.25rem);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Stagger children inside a reveal group */
.reveal-stagger > .reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal-stagger > .reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal-stagger > .reveal:nth-child(4) { transition-delay: 0.24s; }
.reveal-stagger > .reveal:nth-child(5) { transition-delay: 0.32s; }
.reveal-stagger > .reveal:nth-child(6) { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  .reveal-stagger > .reveal {
    transition-delay: 0s !important;
  }
}

/* --------------------------------------------------------------------------
   Misc components
   -------------------------------------------------------------------------- */
.card {
  padding: clamp(1.25rem, 3vw, 1.75rem);
  background: var(--de-bg);
  border: 1px solid var(--de-line);
  border-radius: var(--radius-lg);
}

.divider {
  height: 1px;
  background: var(--de-line);
  border: 0;
  margin-block: 2rem;
}

.tag {
  display: inline-block;
  padding: 0.25rem 0.625rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--de-blue);
  background: rgba(30, 107, 184, 0.1);
  border-radius: 999px;
}

.map-embed {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--de-surface);
}

/* ==========================================================================
   Build markup bridges (classes used by generated HTML)
   ========================================================================== */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  padding: 0.75rem 1rem;
  background: var(--de-blue);
  color: #fff;
  font-weight: 600;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}
.logo img {
  height: 2.65rem;
  width: auto;
  display: block;
}
.site-header.is-shrunk .logo img {
  height: 2.15rem;
}

.site-nav {
  display: none;
  align-items: center;
  gap: clamp(0.85rem, 1.8vw, 1.5rem);
}
.site-nav a {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--de-black);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  padding-block: 0.2rem;
}
.site-nav a:hover,
.site-nav a.is-active {
  color: var(--de-blue);
  border-bottom-color: var(--de-blue);
}

.header-cta {
  display: none;
  align-items: center;
  gap: 0.5rem;
}

.nav-toggle {
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 1.25rem;
  height: 2px;
  background: var(--de-black);
  border-radius: 1px;
  transition: transform var(--transition);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (min-width: 960px) {
  .site-nav { display: flex; }
  .header-cta { display: flex; }
  .nav-toggle { display: none; }
}

.mobile-nav a {
  display: block;
  padding: 0.875rem 0;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--de-black);
  text-decoration: none;
  border-bottom: 1px solid var(--de-line);
}
.mobile-nav a:hover { color: var(--de-blue); }
.mobile-nav-cta {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.25rem;
}
.mobile-nav-cta .btn { width: 100%; }

/* Hero with CSS var background */
.hero {
  background-color: #111;
  background-image:
    linear-gradient(135deg, rgba(17, 17, 17, 0.82) 0%, rgba(17, 17, 17, 0.5) 50%, rgba(30, 107, 184, 0.35) 100%),
    var(--hero-image);
  background-size: cover;
  background-position: center;
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 42rem;
}
.hero-brand {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(0.8125rem, 1.5vw, 0.9375rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0.75rem;
}
.hero-lead {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 1.5rem;
  max-width: 36rem;
}
.hero .btn-outline {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.65);
}
.hero .btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.section-surface { background: var(--de-surface); }
.section-head {
  max-width: 40rem;
  margin-bottom: 2rem;
}
.section-head h2 { margin-bottom: 0.5rem; }
.section-head p { color: var(--de-muted); margin: 0; }
.section-more { margin-top: 1.75rem; }
.section-more a {
  font-weight: 700;
  color: var(--de-blue);
  text-decoration: none;
}
.section-more a:hover { text-decoration: underline; }

.grid-3 { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
.grid-4 { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.split {
  display: grid;
  gap: 2rem;
  align-items: start;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1.2fr 0.9fr; gap: 3rem; }
}

.media-stack {
  display: grid;
  gap: 1rem;
}
.media-stack img,
.split > aside img,
.article-hero {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  display: block;
  object-fit: cover;
}

.check-list {
  list-style: none;
  margin: 1.25rem 0 1.75rem;
  padding: 0;
}
.check-list li {
  position: relative;
  padding: 0.45rem 0 0.45rem 1.6rem;
  font-weight: 600;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: var(--de-red);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1rem;
}
.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1rem;
  border: 1px solid var(--de-line);
  border-radius: 999px;
  background: var(--de-bg);
  color: var(--de-black);
  font-weight: 700;
  text-decoration: none;
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}
.chip:hover {
  border-color: var(--de-blue);
  color: var(--de-blue);
  background: rgba(30, 107, 184, 0.06);
}

.muted { color: var(--de-muted); }
.narrow { max-width: 46rem; }

.service-tile {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.15rem;
  background: var(--de-bg);
  border: 1px solid var(--de-line);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  height: 100%;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.service-tile img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 0.35rem;
}
.service-tile h3 {
  font-size: 1.05rem;
  margin: 0;
}
.service-tile p {
  margin: 0;
  color: var(--de-muted);
  font-size: 0.9375rem;
  line-height: 1.45;
}
.service-tile:hover {
  border-color: var(--de-blue);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.blog-card {
  display: flex;
  flex-direction: column;
  background: var(--de-bg);
  border: 1px solid var(--de-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  height: 100%;
  transition: box-shadow var(--transition), transform var(--transition);
}
.blog-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.blog-card > div { padding: 1rem 1.1rem 1.25rem; }
.blog-card time {
  display: block;
  font-size: 0.8125rem;
  color: var(--de-muted);
  margin-bottom: 0.35rem;
}
.blog-card h3 {
  font-size: 1.05rem;
  margin: 0 0 0.4rem;
}
.blog-card p {
  margin: 0;
  color: var(--de-muted);
  font-size: 0.9375rem;
}
.blog-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.page-hero {
  background: linear-gradient(135deg, #0f2a4a 0%, var(--de-blue) 100%);
  color: #fff;
  padding-block: clamp(2.5rem, 7vw, 4rem);
}
.page-hero h1 { color: #fff; margin: 0.35rem 0 0.5rem; }
.page-hero-lead {
  color: rgba(255, 255, 255, 0.9);
  max-width: 40rem;
  margin: 0;
  font-size: 1.0625rem;
}
.breadcrumb {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.75);
}
.breadcrumb a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}
.breadcrumb a:hover { text-decoration: underline; }

.cta-band {
  background: var(--de-black);
  color: #fff;
}
.cta-band-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.cta-band h2 { color: #fff; margin: 0 0 0.4rem; }
.cta-band p { color: rgba(255, 255, 255, 0.8); margin: 0; }

.site-footer {
  background: var(--de-footer);
  color: var(--de-footer-text);
  padding-block: 3.5rem 1.5rem;
}
.site-footer h3 {
  color: #fff;
  font-size: 0.95rem;
  margin: 0 0 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-logo {
  height: 2.5rem;
  width: auto;
  margin-bottom: 0.85rem;
  background: #fff;
  padding: 0.35rem 0.5rem;
  border-radius: 0.35rem;
}
.footer-tag { margin: 0 0 0.75rem; line-height: 1.5; }
.footer-brands { font-weight: 700; color: #fff; margin: 0; }
.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-list li + li { margin-top: 0.4rem; }
.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.875rem;
}

.mobile-bar {
  display: flex;
  gap: 0.65rem;
  padding: 0.65rem 0.85rem calc(0.65rem + env(safe-area-inset-bottom, 0));
}
.mobile-bar .btn {
  flex: 1;
  justify-content: center;
}
@media (min-width: 960px) {
  .mobile-bar { display: none !important; }
}
@media (max-width: 959px) {
  .mobile-bar { display: flex !important; }
}

.map-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--de-line);
  min-height: 320px;
  background: var(--de-surface);
}
.map-wrap iframe {
  width: 100%;
  min-height: 360px;
  border: 0;
  display: block;
}

.service-groups {
  display: grid;
  gap: 1.75rem;
}
@media (min-width: 800px) {
  .service-groups { grid-template-columns: repeat(2, 1fr); }
}
.service-group {
  background: var(--de-bg);
  border: 1px solid var(--de-line);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.35rem;
}
.service-group h2 {
  font-size: 1.15rem;
  margin: 0 0 0.75rem;
  color: var(--de-blue);
}
.service-group ul {
  margin: 0;
  padding-left: 1.1rem;
}
.service-group li {
  margin-bottom: 0.45rem;
  color: var(--de-muted);
}
.service-group strong { color: var(--de-black); }

.nap-block {
  background: var(--de-surface);
  border: 1px solid var(--de-line);
  border-radius: var(--radius-lg);
  padding: 1.35rem;
}
.nap-block .btn-group { margin-top: 1rem; }

.article-hero { margin-bottom: 1.25rem; }

.faq-list { display: grid; gap: 0.65rem; }
.faq-item {
  border: 1px solid var(--de-line);
  border-radius: var(--radius);
  background: var(--de-bg);
  padding: 0.15rem 1rem;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  padding: 0.9rem 0;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-body {
  padding: 0 0 1rem;
  color: var(--de-muted);
}

/* ==========================================================================
   v2 — Professional inner-page polish (cards, gaps, aside, services)
   ========================================================================== */

.grid-3,
.grid-4,
.service-groups,
.gallery-grid,
.faq-list {
  gap: 1.5rem;
}

.service-tile,
.blog-card,
.service-group,
.nap-block,
.faq-item {
  box-shadow: 0 1px 2px rgba(17, 17, 17, 0.04);
}

.service-tile {
  gap: 0.65rem;
  padding: 0;
  overflow: hidden;
  background: #fff;
}
.service-tile img {
  margin: 0;
  border-radius: 0;
  aspect-ratio: 4 / 3;
}
.service-tile h3,
.service-tile p {
  padding-left: 1.15rem;
  padding-right: 1.15rem;
}
.service-tile h3 { padding-top: 0.85rem; }
.service-tile p { padding-bottom: 1.15rem; }

.blog-card { background: #fff; }
.blog-card > div { padding: 1.15rem 1.25rem 1.4rem; }

.split {
  gap: 2.5rem;
  align-items: start;
}
@media (min-width: 900px) {
  .split {
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.85fr);
    gap: 3.25rem;
  }
  .split > aside {
    position: sticky;
    top: calc(var(--header-h) + 1rem);
  }
}

.split > aside {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.split > aside > img {
  margin: 0;
  border: 1px solid var(--de-line);
}

.nap-block {
  background: #fff;
  border: 1px solid var(--de-line);
  padding: 1.5rem;
}
.nap-block h3,
.nap-block p strong {
  color: var(--de-black);
}
.nap-block .btn { width: 100%; justify-content: center; }
.nap-block .btn-group {
  flex-direction: column;
  width: 100%;
}
.nap-block .footer-list {
  margin-top: 0.5rem;
}

.page-hero {
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute;
  right: -10%;
  top: -40%;
  width: 42%;
  height: 180%;
  background: radial-gradient(circle, rgba(255,255,255,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.prose {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: #2a323a;
}
.prose p { margin: 0 0 1.1rem; }
.prose h2 {
  margin: 1.75rem 0 0.75rem;
  font-size: 1.35rem;
}
.prose ul { margin: 0 0 1.25rem; padding-left: 1.2rem; }
.prose li { margin-bottom: 0.4rem; }

.service-groups {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 800px) {
  .service-groups { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
}
.service-group {
  padding: 1.5rem 1.6rem;
  background: #fff;
  height: 100%;
}
.service-group h2 {
  padding-bottom: 0.75rem;
  margin-bottom: 0.85rem;
  border-bottom: 2px solid var(--de-red);
  display: inline-block;
}

.section { padding-block: clamp(3.25rem, 7vw, 5.5rem); }
.section + .section { /* keep breathing room */ }

.section-surface .service-tile,
.section-surface .blog-card,
.section-surface .service-group {
  border-color: #d0d8e0;
}

.cta-band {
  margin-top: 0;
}
.cta-band-inner {
  padding-block: 0.5rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}
@media (min-width: 720px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
}
.gallery-item {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--de-line);
  aspect-ratio: 4 / 3;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.gallery-item:hover img { transform: scale(1.04); }

.chip-row { gap: 0.75rem; margin-bottom: 1.25rem; }
.chip {
  background: #fff;
  box-shadow: 0 1px 2px rgba(17,17,17,0.04);
}

.faq-item {
  padding: 0.25rem 1.15rem;
  background: #fff;
}
.faq-item summary { padding: 1rem 0; }

.article-hero {
  border: 1px solid var(--de-line);
  margin-bottom: 1.5rem;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  width: 100%;
}

.media-stack img {
  border: 1px solid var(--de-line);
}

/* Related links block under contact card */
.related-box {
  background: #fff;
  border: 1px solid var(--de-line);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.35rem;
}
.related-box h3 {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--de-muted);
}
.related-box .footer-list a {
  color: var(--de-blue);
  font-weight: 600;
}

.map-wrap {
  min-height: 380px;
  box-shadow: var(--shadow-sm);
}
.map-wrap iframe { min-height: 400px; }

/* Desktop: never show sticky call bar */
@media (min-width: 960px) {
  .mobile-bar { display: none !important; visibility: hidden !important; }
  body { padding-bottom: 0 !important; }
}

/* Detail pages: FAQ stays in left column — no white-space explosion */
.section-detail { padding-top: clamp(2.5rem, 5vw, 3.75rem); }
.detail-main {
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
  min-width: 0;
}
.faq-inline h2 {
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
  margin: 0 0 1rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--de-line);
}
.faq-inline .faq-list { margin: 0; }
.split > aside > img {
  max-height: 320px;
  object-fit: cover;
  width: 100%;
}
@media (min-width: 900px) {
  .split > aside {
    position: sticky;
    top: calc(var(--header-h) + 1rem);
    align-self: start;
  }
}

/* Homepage: overlapping photo collage (why-us) */
.media-overlap {
  position: relative;
  width: 100%;
  max-width: 28rem;
  margin-inline: auto;
  aspect-ratio: 4 / 5;
  min-height: 22rem;
}
.media-overlap figure {
  margin: 0;
  padding: 0;
  position: absolute;
  width: 68%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 3px solid #fff;
  box-shadow: 0 12px 36px rgba(17, 17, 17, 0.18);
  background: var(--de-surface);
}
.media-overlap img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 5;
}
.media-overlap__back {
  top: 0;
  left: 0;
  z-index: 1;
}
.media-overlap__front {
  right: 0;
  bottom: 0;
  z-index: 2;
  width: 62%;
}
@media (max-width: 899px) {
  .media-overlap {
    max-width: 22rem;
    min-height: 18rem;
    margin-top: 0.5rem;
  }
}
