/* ==========================================================================
   Keypoint Systems — site styles
   Brand: navy #001c54 (primary), sky #0099ff and amber #ffc000 (accents)
   Type:  Barlow Condensed (headings), Jost (body)
   ========================================================================== */

:root {
  /* Brand */
  --navy: #001c54;
  --navy-deep: #00123a;
  --navy-soft: #0b2b6b;
  --sky: #0099ff;
  --sky-ink: #0070c0;      /* sky darkened for text/links on white (5.3:1) */
  --amber: #ffc000;
  --amber-hover: #ffcd33;
  --whatsapp: #25d366;
  --whatsapp-ink: #128c4a;

  /* Neutrals */
  --ink: #0d1b33;
  --steel: #4f5f78;
  --line: #d6dee9;
  --paper: #f2f5f9;
  --white: #ffffff;
  --on-navy-muted: #b9c6dd;
  --error: #c81e1e;

  /* Type */
  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Jost", "Segoe UI", system-ui, sans-serif;

  /* Space (8pt rhythm) */
  --s1: 0.5rem;
  --s2: 1rem;
  --s3: 1.5rem;
  --s4: 2rem;
  --s5: 3rem;
  --s6: 4.5rem;
  --s7: 6.5rem;

  --radius: 4px;
  --radius-lg: 10px;
  --container: 1200px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --header-h: 76px;

  --shadow-card: 0 1px 2px rgba(0, 28, 84, 0.06), 0 8px 24px -12px rgba(0, 28, 84, 0.25);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  --z-header: 50;
  --z-float: 60;
  --z-nav: 70;
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.002em;
  margin: 0 0 var(--s2);
  text-wrap: balance;
}
h1 { font-size: clamp(2.75rem, 7vw, 4.75rem); }
h2 { font-size: clamp(2.125rem, 4.4vw, 3.25rem); }
h3 { font-size: 1.625rem; font-weight: 600; line-height: 1.15; }
h4 { font-size: 1.25rem; font-weight: 600; }

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

a { color: var(--sky-ink); text-underline-offset: 0.18em; }
a:hover { color: var(--navy); }

:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 3px;
  border-radius: 2px;
}

.i {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.i--fill { fill: currentColor; stroke: none; }

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.skip-link {
  position: absolute;
  left: var(--s2);
  top: -100px;
  z-index: 100;
  background: var(--amber);
  color: var(--navy);
  padding: var(--s1) var(--s2);
  font-weight: 600;
  border-radius: var(--radius);
}
.skip-link:focus { top: var(--s2); }

.lead { font-size: 1.1875rem; line-height: 1.6; color: var(--steel); max-width: 38em; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 48px;
  padding: 0.7rem 1.4rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.12s;
}
.btn:active { transform: translateY(1px); }
.btn .i { width: 1.2em; height: 1.2em; }

.btn--amber { background: var(--amber); color: var(--navy); }
.btn--amber:hover { background: var(--amber-hover); color: var(--navy); }

.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: var(--navy-soft); color: var(--white); }

.btn--whatsapp { background: var(--whatsapp); color: #05301a; }
.btn--whatsapp:hover { background: #3ee07a; color: #05301a; }

.btn--ghost-light { border-color: rgba(255, 255, 255, 0.55); color: var(--white); }
.btn--ghost-light:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.08); color: var(--white); }

.btn--ghost { border-color: var(--navy); color: var(--navy); }
.btn--ghost:hover { background: var(--navy); color: var(--white); }

.btn[disabled] { opacity: 0.55; cursor: progress; }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--s2); }

/* ---------- Header ---------- */

.topbar {
  background: var(--navy-deep);
  color: var(--on-navy-muted);
  font-size: 0.875rem;
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s2);
  min-height: 38px;
}
.topbar a { color: var(--on-navy-muted); text-decoration: none; display: inline-flex; align-items: center; gap: 0.45em; }
.topbar a:hover { color: var(--white); }
.topbar__links { display: flex; align-items: center; gap: var(--s3); }
.topbar__social { display: flex; gap: var(--s1); }
.topbar__social a { width: 32px; height: 32px; justify-content: center; }
.topbar__social .i { width: 1rem; height: 1rem; }
.topbar__area { display: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: var(--navy);
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--s3);
  min-height: var(--header-h);
}
.brand { display: block; flex: none; margin-right: auto; }
.brand img { height: 50px; width: auto; }

.nav { display: none; }
.nav ul { display: flex; gap: var(--s3); list-style: none; margin: 0; padding: 0; }
.nav a {
  position: relative;
  display: block;
  padding: 0.5rem 0;
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0.15rem;
  height: 2px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease-out);
}
.nav a:hover::after,
.nav a[aria-current="page"]::after { transform: scaleX(1); }

.header-phone {
  display: none;
  align-items: center;
  gap: 0.6rem;
  color: var(--white);
  text-decoration: none;
  line-height: 1.15;
}
.header-phone .i { color: var(--amber); width: 1.4rem; height: 1.4rem; }
.header-phone small { display: block; font-size: 0.75rem; color: var(--on-navy-muted); }
.header-phone strong { font-family: var(--font-display); font-size: 1.375rem; font-weight: 600; letter-spacing: 0.01em; }
.header-phone:hover { color: var(--amber); }

.header-cta { display: none; }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--white);
  cursor: pointer;
}
.icon-btn:hover { background: rgba(255, 255, 255, 0.08); color: var(--white); }
.icon-btn .i { width: 1.5rem; height: 1.5rem; }
.icon-btn--call { background: var(--amber); color: var(--navy); }
.icon-btn--call:hover { background: var(--amber-hover); color: var(--navy); }

/* Mobile navigation panel */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: var(--z-nav);
  display: flex;
  flex-direction: column;
  background: var(--navy);
  color: var(--white);
  padding: var(--s2) var(--gutter) var(--s4);
  overflow-y: auto;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.2s, transform 0.25s var(--ease-out), visibility 0s linear 0.25s;
}
.mobile-nav.is-open {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition: opacity 0.2s, transform 0.25s var(--ease-out), visibility 0s;
}
.mobile-nav__head { display: flex; align-items: center; justify-content: space-between; min-height: 60px; }
.mobile-nav__head img { height: 44px; width: auto; }
.mobile-nav ul { list-style: none; margin: var(--s4) 0; padding: 0; }
.mobile-nav li + li { border-top: 1px solid rgba(255, 255, 255, 0.12); }
.mobile-nav ul a {
  display: block;
  padding: 0.9rem 0;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
}
.mobile-nav ul a[aria-current="page"] { color: var(--amber); }
.mobile-nav__actions { display: grid; gap: var(--s2); margin-top: auto; }
.mobile-nav__actions .btn { width: 100%; }

@media (min-width: 640px) {
  .topbar__area { display: inline-flex; align-items: center; gap: 0.45em; }
}

@media (min-width: 1024px) {
  :root { --header-h: 84px; }
  .brand img { height: 56px; }
  .nav { display: block; }
  .header-phone { display: inline-flex; }
  .header-cta { display: inline-flex; }
  .menu-toggle,
  .icon-btn--call { display: none; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--white);
  background: var(--navy);
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 40%;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(0, 18, 58, 0.55) 0%, rgba(0, 18, 58, 0.25) 30%, rgba(0, 18, 58, 0.92) 78%),
    linear-gradient(90deg, rgba(0, 28, 84, 0.85) 0%, rgba(0, 28, 84, 0.2) 70%);
}
.hero__inner {
  display: grid;
  gap: var(--s5);
  padding-block: var(--s6) var(--s5);
}
.hero__copy { align-self: end; max-width: 40rem; }
.hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  margin-bottom: var(--s2);
  color: var(--amber);
  font-weight: 500;
}
.hero__kicker .i { width: 1.1em; height: 1.1em; }
.hero h1 { margin-bottom: var(--s3); }
.hero__lead { font-size: 1.1875rem; color: #dfe7f3; max-width: 34em; margin-bottom: var(--s4); }
.hero__brands {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 1.25rem;
  margin-top: var(--s4);
  padding-top: var(--s3);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--on-navy-muted);
  font-size: 0.9375rem;
}
.hero__brands span { flex-basis: 100%; }
@media (min-width: 640px) { .hero__brands span { flex-basis: auto; } }
.hero__brands strong {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.02em;
}

@media (min-width: 1100px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1fr) 420px;
    align-items: end;
    gap: var(--s6);
    min-height: min(760px, calc(100vh - var(--header-h) - 38px));
    padding-block: var(--s7) var(--s6);
  }
}

/* The garage door that rolls up over the hero on first visit */
.door { display: none; }
.door-play .door {
  display: flex;
  position: absolute;
  inset: 0;
  z-index: 5;
  flex-direction: column;
  pointer-events: none;
  animation: door-open 1.5s cubic-bezier(0.65, 0, 0.3, 1) 0.45s forwards;
}
.door__panel {
  position: relative;
  flex: 1;
  background:
    repeating-linear-gradient(180deg,
      rgba(255, 255, 255, 0.07) 0 1px,
      transparent 1px 22px,
      rgba(0, 0, 0, 0.22) 22px 23px,
      transparent 23px 28px),
    linear-gradient(180deg, #123578 0%, #0b2a66 100%);
  border-bottom: 3px solid #071d4a;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.door__panel:last-child { border-bottom: 10px solid #050f26; }
.door__logo {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(380px, 62vw);
  transform: translate(-50%, -50%);
  z-index: 1;
}
.door__handle {
  position: absolute;
  left: 50%;
  bottom: 22px;
  width: 64px;
  height: 8px;
  margin-left: -32px;
  border-radius: 4px;
  background: linear-gradient(180deg, #c8d2e2, #8796ae);
  z-index: 1;
}
@keyframes door-open {
  0% { transform: translateY(0); }
  8% { transform: translateY(1.2%); }
  100% { transform: translateY(-101%); visibility: hidden; }
}
@media (prefers-reduced-motion: reduce) {
  .door-play .door { display: none; }
}

/* ---------- Quote form ---------- */

.quote-card {
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius-lg);
  padding: var(--s4) var(--s3);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6);
  border-top: 6px solid var(--amber);
}
.quote-card h2 { font-size: 2rem; margin-bottom: 0.25rem; }
.quote-card__intro { color: var(--steel); font-size: 0.9375rem; margin-bottom: var(--s3); }

@media (min-width: 640px) {
  .quote-card { padding: var(--s4); }
}

.form-grid { display: grid; gap: var(--s2); }
@media (min-width: 640px) {
  .form-grid--2 { grid-template-columns: 1fr 1fr; }
  .form-grid .span-2 { grid-column: 1 / -1; }
}

.field { display: grid; gap: 0.3rem; }
.field label { font-size: 0.875rem; font-weight: 600; color: var(--ink); }
.field label .opt { font-weight: 400; color: var(--steel); }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.65rem 0.85rem;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.15s, background-color 0.15s;
}
.field select {
  appearance: none;
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23001c54' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.8rem center;
  background-size: 1.1rem;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: #b4c1d4; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--sky);
  background-color: var(--white);
  box-shadow: 0 0 0 3px rgba(0, 153, 255, 0.25);
}
.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: var(--error); background-color: #fff6f6; }
.field__error { display: none; font-size: 0.875rem; color: var(--error); font-weight: 500; }
.field.has-error .field__error { display: block; }
.field__hint { font-size: 0.875rem; color: var(--steel); }

.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-actions { display: grid; gap: 0.75rem; margin-top: var(--s3); }
.form-actions .btn { width: 100%; }
@media (min-width: 640px) {
  .form-actions--row { grid-template-columns: 1fr 1fr; }
}
.form-note { margin-top: var(--s2); font-size: 0.875rem; color: var(--steel); }

.form-status {
  display: none;
  margin-top: var(--s2);
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  font-weight: 500;
}
.form-status.is-success { display: block; background: #e7f7ee; color: #0f5b30; border: 1px solid #a8dfbf; }
.form-status.is-error { display: block; background: #fdecec; color: #8f1414; border: 1px solid #f1b5b5; }

/* ---------- Sections ---------- */

.section { padding-block: var(--s6); }
.section--paper { background: var(--paper); }
.section--navy { background: var(--navy); color: var(--white); }
@media (min-width: 1024px) {
  .section { padding-block: var(--s7); }
}

.section-head { max-width: 46rem; margin-bottom: var(--s5); }
.section-head--split {
  max-width: none;
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: var(--s2) var(--s4);
}
.section-head--split > div { max-width: 44rem; }

/* Gear-and-rule mark from the logo, used once per section head */
.mark {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 7.5rem;
  margin-bottom: var(--s2);
  color: var(--sky);
}
.mark::before,
.mark::after { content: ""; flex: 1; height: 2px; background: currentColor; }
.mark svg { width: 1.4rem; height: 1.4rem; }

/* ---------- Services overview (home) ---------- */

.automation {
  display: grid;
  gap: var(--s3);
}
@media (min-width: 900px) {
  .automation { grid-template-columns: 1fr 1fr; }
}

.auto-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 440px;
  padding: var(--s4);
  border-radius: var(--radius-lg);
  overflow: hidden;
  color: var(--white);
  text-decoration: none;
  isolation: isolate;
}
.auto-panel img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}
.auto-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(0, 28, 84, 0) 25%, rgba(0, 28, 84, 0.94) 78%);
}
.auto-panel:hover { color: var(--white); }
.auto-panel:hover img { transform: scale(1.03); }
.auto-panel h3 { font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 700; margin-bottom: 0.25rem; }
.auto-panel__types { font-style: italic; color: var(--amber); font-size: 1.125rem; font-weight: 500; margin-bottom: var(--s2); }
.auto-panel p { color: #dbe4f1; max-width: 30em; }
.auto-panel__more {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  margin-top: var(--s2);
  font-weight: 600;
  color: var(--white);
  text-decoration: underline;
  text-decoration-color: var(--amber);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.3em;
}

.support-list {
  display: grid;
  gap: 0;
  margin: var(--s4) 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.support-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.25rem var(--s2);
  padding: var(--s3) 0;
  border-bottom: 1px solid var(--line);
}
.support-list .i { width: 1.75rem; height: 1.75rem; color: var(--sky-ink); grid-row: span 2; margin-top: 0.15rem; }
.support-list h3 { font-size: 1.5rem; margin: 0; }
.support-list p { color: var(--steel); margin: 0; }
@media (min-width: 768px) {
  .support-list { grid-template-columns: repeat(2, 1fr); column-gap: var(--s5); }
}
@media (min-width: 1100px) {
  .support-list { grid-template-columns: repeat(4, 1fr); column-gap: var(--s4); border-top: 0; }
  .support-list li { grid-template-columns: 1fr; border-bottom: 0; border-top: 3px solid var(--navy); padding-top: var(--s3); }
  .support-list .i { grid-row: auto; margin-bottom: var(--s1); }
}

/* ---------- About ---------- */

.about {
  display: grid;
  gap: var(--s5);
  align-items: center;
}
@media (min-width: 960px) {
  .about { grid-template-columns: 1fr 1fr; gap: var(--s6); }
}
.about__media { position: relative; }
.about__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
}
.about__badge {
  position: absolute;
  right: var(--s2);
  bottom: calc(-1 * var(--s3));
  max-width: 15rem;
  padding: var(--s2) var(--s3);
  background: var(--amber);
  color: var(--navy);
  border-radius: var(--radius);
  font-weight: 500;
  line-height: 1.35;
  box-shadow: var(--shadow-card);
}
.about__badge strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2.5rem;
  line-height: 1;
  font-weight: 700;
}
@media (min-width: 960px) {
  .about__badge { right: calc(-1 * var(--s3)); }
}

.checklist { list-style: none; margin: var(--s3) 0 var(--s4); padding: 0; display: grid; gap: var(--s2); }
.checklist li { display: grid; grid-template-columns: auto 1fr; gap: 0.75rem; align-items: start; }
.checklist .i {
  width: 1.6rem;
  height: 1.6rem;
  padding: 0.3rem;
  border-radius: 50%;
  background: var(--navy);
  color: var(--amber);
  stroke-width: 3;
  margin-top: 0.1rem;
}
.checklist strong { display: block; font-weight: 600; }
.checklist span { color: var(--steel); }

/* ---------- Process ---------- */

.steps {
  position: relative;
  display: grid;
  gap: var(--s4);
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.step { position: relative; padding-left: 4.25rem; }
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: -0.2rem;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--amber);
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 1.625rem;
  font-weight: 700;
  z-index: 1;
}
/* The rail joining the steps, like a sliding-gate track */
.steps::before {
  content: "";
  position: absolute;
  left: 1.5rem;
  top: 1rem;
  bottom: 1rem;
  width: 3px;
  background: repeating-linear-gradient(180deg, var(--sky) 0 10px, transparent 10px 16px);
}
.step h3 { color: var(--white); }
.step p { color: var(--on-navy-muted); }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: var(--s5); }
  .step { padding-left: 0; padding-top: 4.5rem; }
  .steps::before {
    left: 1.5rem; right: 1.5rem; top: 1.4rem; bottom: auto;
    width: auto; height: 3px;
    background: repeating-linear-gradient(90deg, var(--sky) 0 10px, transparent 10px 16px);
  }
}

/* ---------- Video ---------- */

.videos { display: grid; gap: var(--s3); }
@media (min-width: 700px) { .videos { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .videos--3 { grid-template-columns: repeat(3, 1fr); } }

.video figure { margin: 0; }
.video__frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--navy-deep);
  cursor: pointer;
}
.video__frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease-out), opacity 0.3s; opacity: 0.88; }
.video__frame:hover img { transform: scale(1.03); opacity: 1; }
.video__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video__play {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  margin: -34px 0 0 -34px;
  border-radius: 50%;
  background: var(--amber);
  color: var(--navy);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.6);
  transition: transform 0.2s var(--ease-out);
}
.video__frame:hover .video__play { transform: scale(1.08); }
.video__play .i { width: 1.6rem; height: 1.6rem; margin-left: 3px; }
.video figcaption { margin-top: 0.75rem; font-weight: 600; }

/* ---------- Gallery (work photos) ---------- */

.gallery {
  display: grid;
  gap: var(--s2);
  grid-template-columns: repeat(2, 1fr);
}
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.gallery figcaption { margin-top: 0.5rem; font-size: 0.9375rem; color: var(--steel); }
@media (min-width: 900px) {
  .gallery { grid-template-columns: repeat(4, 1fr); gap: var(--s3); }
}

/* ---------- Reviews ---------- */

.reviews { display: grid; gap: var(--s3); }
@media (min-width: 900px) { .reviews { grid-template-columns: repeat(3, 1fr); } }
.review {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: var(--s4) var(--s3) var(--s3);
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
}
.review::before {
  content: "\201C";
  font-family: var(--font-display);
  font-size: 4.5rem;
  line-height: 0.6;
  height: 2rem;
  color: var(--sky);
}
.review blockquote { margin: 0 0 var(--s3); font-size: 1.0625rem; }
.review figcaption { margin-top: auto; padding-top: var(--s2); border-top: 1px solid var(--line); font-weight: 600; }
.review figcaption span { display: block; font-weight: 400; color: var(--steel); font-size: 0.9375rem; }

/* ---------- Service area ---------- */

.area { display: grid; gap: var(--s5); align-items: center; }
@media (min-width: 960px) { .area { grid-template-columns: 0.85fr 1.15fr; gap: var(--s6); } }
.towns { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: var(--s3) 0; padding: 0; list-style: none; }
.towns li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  font-weight: 500;
  background: var(--white);
}
.towns li .i { width: 1rem; height: 1rem; color: var(--sky-ink); }
.towns li.is-home { background: var(--navy); color: var(--white); border-color: var(--navy); }
.towns li.is-home .i { color: var(--amber); }

.area-map {
  width: 100%;
  height: auto;
  background: var(--navy);
  border-radius: var(--radius-lg);
}
.area-map text { font-family: var(--font-body); }

/* ---------- CTA band ---------- */

.cta-band {
  position: relative;
  overflow: hidden;
  background:
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 22px, rgba(0, 0, 0, 0.18) 22px 23px, transparent 23px 28px),
    var(--navy);
  color: var(--white);
  padding-block: var(--s6);
}
.cta-band__inner {
  display: grid;
  gap: var(--s3);
  align-items: center;
}
.cta-band h2 { margin-bottom: 0.5rem; }
.cta-band p { color: var(--on-navy-muted); max-width: 36em; }
@media (min-width: 960px) {
  .cta-band__inner { grid-template-columns: 1fr auto; gap: var(--s5); }
}

/* ---------- Page header (inner pages) ---------- */

.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--white);
  background: var(--navy);
  padding-block: var(--s6) var(--s5);
}
.page-hero__bg { position: absolute; inset: 0; z-index: -2; }
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 45%; }
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(0, 28, 84, 0.96) 0%, rgba(0, 28, 84, 0.82) 55%, rgba(0, 28, 84, 0.55) 100%);
}
.page-hero h1 { margin-bottom: var(--s2); }
.page-hero p { color: #dbe4f1; max-width: 38em; font-size: 1.1875rem; }
.breadcrumb { font-size: 0.9375rem; color: var(--on-navy-muted); margin-bottom: var(--s2); }
.breadcrumb a { color: var(--on-navy-muted); }
.breadcrumb a:hover { color: var(--white); }

.jump-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: var(--s4);
  padding: 0;
  list-style: none;
}
.jump-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.5rem 1rem;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius);
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
}
.jump-links a:hover { border-color: var(--amber); color: var(--amber); }

/* ---------- Services page ---------- */

.svc { display: grid; gap: var(--s4); align-items: start; }
@media (min-width: 960px) {
  .svc { grid-template-columns: 0.9fr 1.1fr; gap: var(--s6); }
  .svc--flip > :first-child { order: 2; }
}
.svc__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); }

.types { display: grid; gap: var(--s3); margin-top: var(--s5); }
@media (min-width: 768px) { .types { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px) { .types--2 { grid-template-columns: repeat(2, 1fr); } }
.type {
  display: flex;
  flex-direction: column;
  margin: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.section--paper .type { border-color: transparent; }
.type img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.type__body { padding: var(--s3); }
.type h3 { margin-bottom: 0.5rem; }
.type p { color: var(--steel); }

.brand-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: var(--s3) 0; padding: 0; list-style: none; }
.brand-tags li {
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius);
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.watch { margin-top: var(--s5); }
.watch h3 { font-size: 1.375rem; margin-bottom: var(--s2); }

.support-grid { display: grid; gap: var(--s3); }
@media (min-width: 768px) { .support-grid { grid-template-columns: repeat(2, 1fr); } }
.support-card {
  padding: var(--s4) var(--s3);
  background: var(--white);
  border-radius: var(--radius-lg);
  border-left: 5px solid var(--sky);
}
.support-card .i { width: 2rem; height: 2rem; color: var(--sky-ink); margin-bottom: var(--s2); }
.support-card h3 { font-size: 1.75rem; }
.support-card p { color: var(--steel); }
.support-card ul { margin: var(--s2) 0 0; padding-left: 1.2rem; color: var(--ink); }
.support-card li + li { margin-top: 0.25rem; }

/* ---------- Contact page ---------- */

.contact { display: grid; gap: var(--s5); align-items: start; }
@media (min-width: 1024px) { .contact { grid-template-columns: 0.8fr 1.2fr; gap: var(--s6); } }

.contact-methods { display: grid; gap: var(--s2); margin: var(--s3) 0 var(--s4); padding: 0; list-style: none; }
.contact-method {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.1rem var(--s2);
  align-items: center;
  padding: var(--s2) var(--s3);
  background: var(--paper);
  border-radius: var(--radius-lg);
  color: var(--ink);
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: border-color 0.2s, background-color 0.2s;
}
.contact-method:hover { border-color: var(--sky); background: var(--white); color: var(--ink); }
.contact-method__icon {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--amber);
}
.contact-method__icon--wa { background: var(--whatsapp); color: #05301a; }
.contact-method small { font-size: 0.875rem; color: var(--steel); }
.contact-method strong { font-size: 1.125rem; font-weight: 600; overflow-wrap: anywhere; }

.tip {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--s2);
  padding: var(--s3);
  border-radius: var(--radius-lg);
  background: #fff8e0;
  border: 1px solid #f3dc8c;
}
.tip .i { width: 1.6rem; height: 1.6rem; color: #8a6400; }
.tip p { margin: 0; }

.form-panel {
  padding: var(--s4) var(--s3);
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  border-top: 6px solid var(--amber);
  box-shadow: var(--shadow-card);
}
@media (min-width: 640px) { .form-panel { padding: var(--s5) var(--s4); } }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy-deep);
  color: var(--on-navy-muted);
  padding-block: var(--s6) var(--s3);
  font-size: 0.9375rem;
}
.footer-grid { display: grid; gap: var(--s4); }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: var(--s5); } }
.site-footer img { height: 56px; width: auto; margin-bottom: var(--s2); }
.site-footer h2 {
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: var(--s2);
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.site-footer a { color: var(--on-navy-muted); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-contact a { display: inline-flex; align-items: center; gap: 0.6rem; min-height: 32px; }
.footer-contact .i { color: var(--amber); width: 1.1rem; height: 1.1rem; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--s1) var(--s3);
  margin-top: var(--s5);
  padding-top: var(--s3);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.875rem;
  padding-bottom: 4.5rem; /* clears the floating WhatsApp button */
}
@media (min-width: 768px) { .footer-bottom { padding-bottom: 0; } }
.footer-bottom p { margin: 0; }
.footer-bottom a { text-decoration: underline; text-underline-offset: 0.2em; }

/* ---------- Floating WhatsApp ---------- */

.wa-float {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: var(--z-float);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  height: 58px;
  padding: 0 1.1rem 0 0.95rem;
  border-radius: 999px;
  background: var(--whatsapp);
  color: #05301a;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 12px 28px -10px rgba(0, 0, 0, 0.45);
  transition: transform 0.2s var(--ease-out), background-color 0.2s;
}
.wa-float:hover { background: #3ee07a; color: #05301a; transform: translateY(-2px); }
.wa-float .i { width: 30px; height: 30px; }
.wa-float__label { display: none; }
@media (min-width: 768px) { .wa-float__label { display: inline; } }
@media (max-width: 767px) { .wa-float { width: 58px; padding: 0; justify-content: center; } }

/* ---------- Motion preferences ---------- */

@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;
  }
}
