@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Instrument+Serif:ital@0;1&display=swap");

:root {
  --paper: #fbfaf7;
  --paper-2: #f1f4f8;
  --ink: #12151d;
  --muted: #5f6978;
  --navy: #071832;
  --blue: #163d78;
  --blue-2: #e7eef8;
  --red: #d61f2c;
  --red-soft: #ffe9eb;
  --line: rgba(18, 21, 29, 0.12);
  --white: #ffffff;
  --shadow: 0 26px 80px rgba(7, 24, 50, 0.12);
  --shadow-soft: 0 12px 36px rgba(7, 24, 50, 0.08);
  --radius: 20px;
  --radius-lg: 30px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(231, 238, 248, 0.95), rgba(251, 250, 247, 0) 520px),
    radial-gradient(circle at top right, rgba(214, 31, 44, 0.08), transparent 360px),
    var(--paper);
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.58;
}

::selection { background: var(--red); color: var(--white); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

p,
span,
strong,
small,
em,
b,
li,
label,
a,
button,
input,
textarea {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 78px;
  padding: 12px clamp(16px, 4.5vw, 66px);
  border-bottom: 1px solid rgba(18, 21, 29, 0.08);
  background: rgba(251, 250, 247, 0.88);
  backdrop-filter: blur(18px);
  transition: min-height 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled {
  min-height: 68px;
  box-shadow: 0 18px 55px rgba(7, 24, 50, 0.1);
}

.main-nav { grid-column: 2; }
.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 4px;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-soft);
}

.nav-item { position: relative; }
.has-dropdown::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 18px;
}

.nav-link,
.dropdown-toggle {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--navy);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  white-space: normal;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.dropdown-toggle::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-left: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}

.nav-link:hover,
.dropdown-toggle:hover,
.nav-link:focus-visible,
.dropdown-toggle:focus-visible,
.has-dropdown.is-open > .dropdown-toggle {
  background: var(--navy);
  color: var(--white);
  outline: none;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  width: min(390px, 90vw);
  margin: 0;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  background: rgba(7, 24, 50, 0.98);
  box-shadow: 0 34px 88px rgba(7, 24, 50, 0.3);
  list-style: none;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 10px);
  transition: opacity 150ms ease, transform 150ms ease;
}

.has-dropdown:hover .dropdown-menu,
.nav-item:hover .dropdown-menu,
.nav-item:focus-within .dropdown-menu,
.has-dropdown.is-open .dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.dropdown-menu a {
  display: block;
  padding: 11px 12px;
  border-radius: 15px;
  color: var(--white);
  font-size: 0.94rem;
  font-weight: 800;
  line-height: 1.2;
  white-space: normal;
}

.dropdown-menu a:hover,
.dropdown-menu a:focus-visible {
  background: var(--red);
  outline: none;
}

.brand {
  grid-column: 3;
  justify-self: end;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.brand img {
  width: clamp(145px, 14vw, 215px);
  max-height: 56px;
  object-fit: contain;
}

.section {
  padding: clamp(54px, 7vw, 100px) clamp(18px, 5vw, 72px);
}

.container {
  width: min(1180px, 100%);
  margin: 0 auto;
}

#servizi { scroll-margin-top: 98px; }

.hero {
  padding: clamp(32px, 5vw, 70px) clamp(18px, 5vw, 72px) clamp(48px, 7vw, 92px);
}

.hero-full {
  position: relative;
  overflow: hidden;
  width: min(1260px, 100%);
  min-height: clamp(620px, 76vh, 820px);
  margin: 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 44px;
  background: #071832 url("assets/hero-no-people.jpg") 68% center / cover no-repeat;
  box-shadow:
    0 34px 95px rgba(7, 24, 50, 0.2),
    inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.hero-full::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 24, 50, 0.88) 0%, rgba(7, 24, 50, 0.68) 38%, rgba(7, 24, 50, 0.18) 72%, rgba(7, 24, 50, 0.06) 100%),
    linear-gradient(180deg, rgba(7, 24, 50, 0.06), rgba(7, 24, 50, 0.3));
}

.hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(390px, 1.14fr);
  gap: clamp(20px, 3vw, 34px);
  width: min(1260px, 100%);
  margin: 0 auto;
  align-items: stretch;
}

.hero-panel,
.hero-visual,
.service-card,
.form-card,
.cert-card,
.map-card,
.process-card,
.info-card,
.page-copy,
.feature-image,
.service-photo {
  min-width: 0;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}

.hero-panel {
  display: flex;
  min-height: 560px;
  flex-direction: column;
  justify-content: center;
  padding: clamp(30px, 4.6vw, 58px);
  border-radius: var(--radius-lg);
}

.hero-copy { max-width: 660px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  color: var(--red);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  background: currentColor;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--navy);
  font-family: "DM Sans", Arial, sans-serif;
  line-height: 1.02;
  letter-spacing: -0.035em;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  text-wrap: balance;
}

h1 {
  max-width: 760px;
  font-size: clamp(2.55rem, 5vw, 5.45rem);
}

.hero h1 { color: var(--navy); }

h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 3.7vw, 4rem);
}

h3 { font-size: 1.08rem; }

.lead {
  max-width: 630px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.08vw, 1.13rem);
}

.hero .lead { color: var(--muted); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 18px;
  border: 1px solid var(--navy);
  border-radius: 999px;
  background: var(--navy);
  color: var(--white);
  font-weight: 900;
  line-height: 1.15;
  text-align: center;
  white-space: normal;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button.secondary {
  border-color: var(--line);
  background: var(--white);
  color: var(--navy);
}

.hero .button {
  border-color: var(--navy);
  background: var(--navy);
  color: var(--white);
}

.hero .button.secondary {
  border-color: var(--line);
  background: var(--white);
  color: var(--navy);
  backdrop-filter: none;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  border-color: var(--red);
  background: var(--red);
  color: var(--white);
  box-shadow: 0 18px 42px rgba(214, 31, 44, 0.2);
  outline: none;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 34px;
}

.hero-meta div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper-2);
  backdrop-filter: none;
}

.hero-meta strong {
  display: block;
  color: var(--navy);
  font-weight: 900;
}

.hero-meta span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.hero-side { display: grid; }

.hero-visual {
  min-height: 560px;
  border-radius: 42px;
  border-color: rgba(7, 24, 50, 0.18);
  background: #071832 url("assets/hero-clean.jpg") center / cover no-repeat;
  box-shadow:
    0 30px 90px rgba(7, 24, 50, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.hero-visual::after { content: none; }

.section-intro {
  max-width: 810px;
  margin-bottom: 30px;
}

.section-intro p,
.content-block p,
.service-copy p,
.references-intro p,
.scope-plain p,
.promise-list p {
  color: var(--muted);
  font-size: 1rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.service-card {
  overflow: hidden;
  border-radius: 26px;
  background: var(--paper-2);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.service-card:hover,
.service-card:focus-visible {
  border-color: rgba(214, 31, 44, 0.32);
  transform: translateY(-6px);
  box-shadow: 0 30px 72px rgba(7, 24, 50, 0.15);
  outline: none;
}

.service-card img {
  width: 100%;
  height: clamp(210px, 20vw, 270px);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  background: var(--paper-2);
  transform: scale(1.025);
  transform-origin: center;
}

.service-card-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 118px;
  padding: 19px;
  border-top: 1px solid var(--line);
  background: var(--white);
}

.service-card span {
  display: block;
  color: var(--navy);
  font-size: clamp(0.96rem, 1.1vw, 1.05rem);
  font-weight: 900;
  line-height: 1.2;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.card-link {
  display: inline-flex;
  margin-top: 12px;
  color: var(--red);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.soft {
  background: rgba(231, 238, 248, 0.52);
}

.split-section,
.two-column,
.certification-layout,
.service-detail-grid,
.promise-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 0.92fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.feature-image,
.service-photo {
  overflow: hidden;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: clamp(340px, 36vw, 520px);
  aspect-ratio: 16 / 11;
  border-radius: 36px;
  background-color: var(--paper-2);
  background-size: 106% 106%;
  background-position: center;
  background-repeat: no-repeat;
}

.feature-image { background-image: url("assets/services-premium.jpg"); }
.about-photo { background-image: url("assets/about-no-people.jpg"); }
.residential-photo { background-image: url("assets/service-residential-clean.jpg"); }
.industrial-photo { background-image: url("assets/service-industrial-no-people.jpg"); }
.video-photo { background-image: url("assets/service-video-no-people.jpg"); }
.alarm-photo { background-image: url("assets/service-alarm-clean.jpg"); }
.solar-photo {
  background-image: url("assets/service-solar-no-people.jpg");
  background-position: center 54%;
}
.ev-photo {
  background-image: url("assets/service-ev-clean.jpg");
  background-position: center 53%;
}

.page-hero {
  padding: clamp(42px, 5vw, 76px) clamp(18px, 5vw, 72px);
}

.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(390px, 1.1fr);
  gap: clamp(20px, 3vw, 34px);
  align-items: stretch;
  width: min(1260px, 100%);
  margin: 0 auto;
}

.certification-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.42fr);
  gap: clamp(20px, 4vw, 54px);
  align-items: stretch;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.page-copy {
  display: flex;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 460px;
  flex-direction: column;
  justify-content: center;
  padding: clamp(30px, 4vw, 54px);
  border-radius: 36px;
  overflow: hidden;
}

.page-hero-grid > *,
.certification-hero-grid > * {
  min-width: 0;
}

.certification-logo-stack {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: clamp(14px, 2.2vw, 26px);
  min-height: 460px;
}

.certification-logo-stack img {
  width: clamp(126px, 15vw, 190px);
  max-height: 190px;
  object-fit: contain;
}

.certification-logo-row {
  max-width: 680px;
  min-height: 0;
  margin-top: clamp(28px, 4vw, 44px);
  margin-inline: auto;
  justify-content: center;
}

.certification-logo-row img {
  width: auto;
  max-width: min(240px, 38vw);
  max-height: 190px;
  object-fit: contain;
}

.kiwa-hero-mark,
.kiwa-certified-mark {
  color: #005bbb;
}

.kiwa-certified-mark {
  display: grid;
  justify-items: start;
  gap: 4px;
  min-width: clamp(136px, 17vw, 210px);
}

.kiwa-certified-mark span {
  font: 900 clamp(2.55rem, 5.4vw, 4.9rem) "DM Sans", Arial, sans-serif;
  letter-spacing: -0.08em;
  line-height: 0.84;
}

.kiwa-certified-mark small {
  color: #005bbb;
  font-size: clamp(0.82rem, 1.5vw, 1.28rem);
  font-weight: 900;
  letter-spacing: 0.08em;
}

.kiwa-certified-mark em {
  display: inline-flex;
  padding: 5px 10px;
  background: #005bbb;
  color: var(--white);
  font-style: normal;
  font-size: clamp(0.72rem, 1.15vw, 1rem);
  font-weight: 900;
  letter-spacing: 0.08em;
}

.page-copy h1 {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  font-size: clamp(2rem, 3.45vw, 3.65rem);
}

.references-hero {
  padding: clamp(58px, 8vw, 116px) clamp(18px, 5vw, 72px) clamp(20px, 4vw, 44px);
}

.references-intro { max-width: 980px; }

.references-intro h1 {
  font-size: clamp(2.45rem, 5vw, 5.1rem);
}

.references-intro p { max-width: 870px; }

.references-hero .eyebrow,
.references-intro .eyebrow {
  color: var(--red);
}

.about-intro {
  margin-inline: auto;
  text-align: center;
}

.about-intro h1 {
  margin-inline: auto;
  text-align: center;
}

.about-intro .eyebrow {
  justify-content: center;
}

.about-intro p,
.about-main-copy {
  margin-inline: auto;
}

.client-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.client-logo {
  display: grid;
  place-items: center;
  min-height: 132px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-soft);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.client-logo span {
  color: var(--blue);
  max-width: 100%;
  font-size: clamp(0.78rem, 1vw, 0.95rem);
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1.15;
  text-align: center;
  text-transform: uppercase;
}

.client-logo:hover,
.client-logo:focus-visible {
  transform: translateY(-5px);
  border-color: rgba(214, 31, 44, 0.32);
  box-shadow: 0 24px 64px rgba(7, 24, 50, 0.13);
  outline: none;
}

.form-card,
.cert-card,
.info-card {
  min-width: 0;
  padding: clamp(24px, 4vw, 44px);
  border-radius: 30px;
}

.contact-home {
  padding-top: clamp(34px, 5vw, 72px);
}

.contact-home-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(340px, 0.92fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: stretch;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: 38px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(231, 238, 248, 0.7)),
    radial-gradient(circle at top right, rgba(214, 31, 44, 0.08), transparent 300px);
  box-shadow: var(--shadow);
}

.contact-home-copy {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  justify-content: center;
  padding: clamp(14px, 3vw, 34px);
}

.contact-home-copy p:not(.eyebrow) {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
}

.contact-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.contact-highlights span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 9px 12px;
  border: 1px solid rgba(22, 61, 120, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--blue);
  font-size: 0.84rem;
  font-weight: 900;
  line-height: 1.15;
  text-align: center;
}

.contact-form-card {
  position: relative;
  overflow: hidden;
}

.contact-form-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  background: linear-gradient(90deg, var(--red), var(--blue));
}

.contact-form-card .form-intro {
  margin: -4px 0 22px;
  color: var(--muted);
}

.request-form {
  display: grid;
  gap: 15px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 800;
}

input,
textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  font: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

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

input:focus,
textarea:focus {
  border-color: var(--blue);
  background: var(--white);
  outline: 4px solid rgba(22, 61, 120, 0.16);
}

.form-note {
  min-height: 24px;
  margin: 0;
  color: var(--muted);
}

.promise-list {
  display: grid;
  gap: 14px;
}

.promise-list article {
  position: relative;
  min-width: 0;
  padding: 20px 20px 20px 68px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-soft);
}

.promise-list span {
  position: absolute;
  left: 20px;
  top: 20px;
  color: var(--red);
  font-weight: 900;
}

.promise-list h3 { margin-bottom: 8px; }
.promise-list p { margin: 0; }

.image-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.van-placeholder {
  display: flex;
  min-height: clamp(340px, 36vw, 520px);
  flex-direction: column;
  justify-content: center;
  padding: clamp(26px, 4vw, 48px);
  border: 1px dashed rgba(7, 24, 50, 0.24);
  border-radius: 36px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(231, 238, 248, 0.72)),
    repeating-linear-gradient(135deg, rgba(7, 24, 50, 0.035) 0 1px, transparent 1px 16px);
  box-shadow: var(--shadow-soft);
}

.van-placeholder-centered {
  width: min(860px, 100%);
  min-height: 280px;
  margin-top: clamp(30px, 5vw, 58px);
  margin-inline: auto;
  text-align: center;
  align-items: center;
}

.van-placeholder h2 {
  max-width: 520px;
  font-size: clamp(1.7rem, 3vw, 3.1rem);
}

.van-placeholder p:not(.eyebrow) {
  max-width: 460px;
  margin: 0;
  color: var(--muted);
}

.about-van-photo {
  width: min(980px, 100%);
  margin: clamp(30px, 5vw, 58px) auto 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.about-van-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
}

.content-block { max-width: 920px; }
.team-copy { margin-top: 36px; }

.cert-card img {
  width: min(260px, 72vw);
  margin: 0 auto 20px;
}

.certification-clean {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.55fr);
  gap: clamp(26px, 5vw, 64px);
  align-items: center;
}

.certification-single {
  display: block;
}

.certification-brand {
  display: grid;
  justify-items: center;
  gap: 20px;
}

.kiwa-logo-text {
  color: #005bbb;
  font: 900 clamp(3.4rem, 8vw, 6rem) "DM Sans", Arial, sans-serif;
  letter-spacing: -0.08em;
  line-height: 0.9;
}

.certification-brand img { width: min(220px, 58vw); }

.scope {
  margin-top: 28px;
  padding: 24px;
  border-left: 5px solid var(--red);
  border-radius: 20px;
  background: var(--paper-2);
}

.scope-plain {
  grid-column: 1 / -1;
  margin-top: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.scope-plain h2 { font-size: clamp(1.45rem, 2.8vw, 2.45rem); }
.scope-plain p { max-width: 780px; }

.scope-centered {
  max-width: 860px;
  margin: 0 auto clamp(28px, 4vw, 46px);
  text-align: center;
}

.scope-centered p {
  margin-inline: auto;
  font-weight: 800;
}

.certification-text {
  margin-inline: auto;
  text-align: center;
}

.certification-text p {
  margin-inline: auto;
}

.contact-clean h1 {
  font-size: clamp(1.55rem, 2.3vw, 2.35rem);
  letter-spacing: -0.02em;
}

.contact-simple {
  display: flex;
  height: 100%;
  flex-direction: column;
  text-align: center;
}

.contact-simple .eyebrow {
  justify-content: center;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.9fr);
  gap: clamp(24px, 4vw, 52px);
  align-items: start;
}

.contact-clean .two-column {
  align-items: stretch;
}

.contact-clean .form-card {
  display: flex;
  height: 100%;
  flex-direction: column;
  justify-content: center;
}

.contact-info-card {
  padding: clamp(24px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: 36px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.78)),
    radial-gradient(circle at top left, rgba(22, 61, 120, 0.1), transparent 300px);
  box-shadow: var(--shadow);
}

.contact-details {
  display: grid;
  gap: 8px;
  margin: 20px auto 22px;
  padding: 0;
  list-style: none;
  text-align: center;
}

.contact-details li {
  display: block;
  padding: 0;
  border-bottom: 0;
  color: var(--muted);
  font-weight: 700;
}

.contact-details strong {
  color: var(--navy);
  font-weight: 900;
}

.hours-box {
  padding: 20px;
  margin: 24px 0;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--navy);
  color: var(--white);
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.hours-box h3 {
  color: var(--white);
  margin-bottom: 12px;
}

.hours-box p {
  margin: 5px 0;
  font-weight: 900;
}

.hours-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 18px;
  align-items: center;
}

.hours-grid span {
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.82rem;
  font-weight: 800;
}

.hours-grid strong {
  justify-self: end;
  font-weight: 900;
}

.map-card {
  position: relative;
  overflow: hidden;
  margin-top: auto;
  border-radius: 30px;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.map-frame {
  display: block;
  width: 100%;
  height: 318px;
  border: 0;
}

.map-pin {
  position: absolute;
  left: 50%;
  top: 42%;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: calc(100% - 28px);
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--navy);
  box-shadow: 0 10px 24px rgba(7, 24, 50, 0.16);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.map-pin span {
  width: 14px;
  height: 14px;
  border: 3px solid var(--white);
  border-radius: 50%;
  background: var(--red);
}

.directions-button {
  width: calc(100% - 28px);
  margin: 14px;
}

.service-detail-grid img {
  justify-self: center;
  width: min(360px, 70vw);
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-soft);
}

.process-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 34px;
}

.process-card {
  overflow: hidden;
  border-radius: 30px;
}

.process-card h2 {
  margin: 0;
  padding: 22px;
  background: var(--navy);
  color: var(--white);
  font-size: clamp(1.22rem, 2vw, 1.85rem);
  line-height: 1.08;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.process-card:nth-child(2) h2 { background: var(--red); }

.process-card ul {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-card li {
  display: grid;
  gap: 7px;
  padding: 18px 22px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  color: var(--muted);
  font-weight: 600;
  line-height: 1.42;
}

.process-card li strong {
  color: var(--navy);
  font-weight: 900;
}

.process-card li span {
  display: block;
}

.final-cta {
  padding: clamp(76px, 10vw, 132px) clamp(18px, 5vw, 76px);
  background: var(--navy);
  color: var(--white);
  text-align: center;
}

.final-cta h2 {
  max-width: 920px;
  margin-inline: auto;
  color: var(--white);
}

.final-cta .eyebrow {
  justify-content: center;
  color: var(--white);
}

.site-footer {
  padding: 26px clamp(18px, 5vw, 76px);
  background: var(--navy);
  color: var(--white);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(240px, auto) auto;
  gap: clamp(18px, 3vw, 44px);
  align-items: center;
  width: min(1200px, 100%);
  margin: 0 auto;
}

.footer-column,
.footer-details {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.footer-column p,
.footer-details p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.35;
}

.footer-logo {
  width: min(190px, 36vw);
  max-height: 84px;
  padding: 8px;
  border-radius: 16px;
  background: var(--white);
  object-fit: contain;
}

.footer-cert-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.footer-cert-logos img {
  width: auto;
  height: auto;
  max-width: 540px;
  max-height: 220px;
  object-fit: contain;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.footer-cert-combined {
  display: block;
  aspect-ratio: 2877 / 2238;
}

.reveal {
  opacity: 0;
  transform: translateY(34px);
  filter: blur(8px);
  transition:
    opacity 760ms cubic-bezier(.2, .8, .2, 1),
    transform 760ms cubic-bezier(.2, .8, .2, 1),
    filter 760ms cubic-bezier(.2, .8, .2, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform, filter;
}

.reveal.from-left { transform: translateX(-38px); }
.reveal.from-right { transform: translateX(38px); }
.reveal.zoom-in { transform: translateY(26px) scale(0.96); }

.reveal.is-visible {
  opacity: 1;
  transform: translate(0, 0) scale(1);
  filter: blur(0);
}

.service-card.reveal,
.client-logo.reveal,
.process-card.reveal,
.promise-list article.reveal {
  transition-duration: 680ms;
}

.hero-full,
.hero-shell {
  animation: heroSettle 900ms cubic-bezier(.2, .8, .2, 1) both;
}

@keyframes heroSettle {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
    filter: saturate(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: saturate(1);
  }
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 12px;
  }

  .brand {
    grid-column: auto;
    order: -1;
    justify-self: center;
  }

  .main-nav { grid-column: auto; }
  .nav-list { flex-wrap: wrap; justify-content: center; }

  .hero-shell,
  .page-hero-grid,
  .certification-hero-grid,
  .split-section,
  .two-column,
  .contact-layout,
  .contact-home-panel,
  .certification-layout,
  .service-detail-grid,
  .promise-grid,
  .certification-clean {
    grid-template-columns: 1fr;
  }

  .hero-panel,
  .hero-visual,
  .page-copy,
  .kiwa-hero-mark {
    min-height: auto;
  }

  .hero-visual,
  .service-photo,
  .feature-image {
    min-height: 430px;
  }

  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .client-grid { grid-template-columns: repeat(2, 1fr); }

  .dropdown-menu a {
    font-size: 0.9rem;
  }

  .certification-logo-row {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  body { font-size: 15px; }
  .site-header { padding-inline: 12px; }
  .nav-list { position: relative; }
  .has-dropdown { position: static; }

  .nav-link,
  .dropdown-toggle {
    padding: 8px 10px;
    font-size: 0.8rem;
  }

  .dropdown-menu {
    left: 50%;
    width: calc(100vw - 24px);
    transform: translate(-50%, 10px);
  }

  .has-dropdown:hover .dropdown-menu,
  .nav-item:hover .dropdown-menu,
  .nav-item:focus-within .dropdown-menu,
  .has-dropdown.is-open .dropdown-menu {
    transform: translate(-50%, 0);
  }

  h1 { font-size: clamp(2.2rem, 12vw, 3.95rem); }

  .page-copy h1 {
    font-size: clamp(1.58rem, 7.4vw, 2.65rem);
    line-height: 1.04;
  }

  .hero-meta,
  .services-grid,
  .form-row,
  .image-row,
  .process-grid,
  .client-grid,
  .contact-details li,
  .hours-grid {
    grid-template-columns: 1fr;
  }

  .hours-grid strong { justify-self: start; }

  .hero-panel,
  .page-copy {
    padding: 22px;
  }

  .service-card-content {
    min-height: 104px;
    padding: 16px;
  }

  .service-card span {
    font-size: 0.95rem;
  }

  .card-link {
    font-size: 0.7rem;
  }

  .process-card h2 {
    padding: 18px;
    font-size: 1.2rem;
  }

  .process-card li {
    padding: 15px 18px;
    font-size: 0.95rem;
    line-height: 1.25;
  }

  .hero-visual,
  .service-photo,
  .feature-image {
    width: 100%;
    aspect-ratio: auto;
    min-height: 330px;
    border-radius: 28px;
  }

  .service-card img { height: 230px; }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 14px;
    justify-items: center;
    text-align: center;
  }

  .site-footer { padding-block: 20px; }
  .footer-column p { font-size: 0.88rem; }
  .footer-cert-logos img {
    max-width: 68px;
    max-height: 56px;
  }
  .footer-logo {
    width: min(170px, 46vw);
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
    filter: none;
  }

  .hero-full,
  .hero-shell { animation: none; }
}
