/* ============================================================
   Total One Solutions — Maintenance Company
   Brand palette taken from the company brochure
   ============================================================ */

:root {
  --navy: #0f2b4c;
  --navy-2: #143a63;
  --navy-3: #0b2140;
  --blue: #1b9ce2;
  --blue-dark: #0f7fc4;
  --cyan: #2ec5f2;
  --sky: #19a6e6;
  --ink: #24313f;
  --muted: #5b6b7c;
  --bg: #ffffff;
  --bg-soft: #f2f7fb;
  --line: #dfe9f1;
  --shadow: 0 10px 30px rgba(15, 43, 76, 0.10);
  --shadow-lg: 0 18px 50px rgba(15, 43, 76, 0.18);
  --radius: 14px;
  --font-head: "Montserrat", "Segoe UI", Arial, sans-serif;
  --font-body: "Open Sans", "Segoe UI", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16.5px;
  overflow-x: hidden;
}

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

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }

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

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy);
  text-transform: uppercase;
  line-height: 1.15;
  letter-spacing: 0.5px;
}

h1 { font-weight: 800; font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-weight: 800; font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
h3 { font-weight: 700; font-size: 1.15rem; }

.accent { color: var(--blue); }

.kicker {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.6rem;
}

.bar {
  width: 64px;
  height: 5px;
  background: var(--blue);
  border-radius: 3px;
  margin: 1.1rem 0 1.4rem;
}
.bar.center { margin-left: auto; margin-right: auto; }

.lead { color: var(--muted); font-size: 1.06rem; max-width: 60ch; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

section { padding: 4.5rem 0; }
section.soft { background: var(--bg-soft); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 0.9rem 1.7rem;
  border-radius: 50px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

.btn-primary { background: var(--blue); color: #fff !important; }
.btn-primary:hover { background: var(--blue-dark); }

.btn-outline { background: transparent; color: #fff !important; border-color: #fff; }
.btn-outline:hover { background: rgba(255, 255, 255, 0.15); }

.btn-navy { background: var(--navy); color: #fff !important; }
.btn-navy:hover { background: var(--navy-2); }

.btn svg { width: 17px; height: 17px; flex: none; }

/* ---------- Header ---------- */
.topbar {
  background: var(--navy);
  color: #cfe4f5;
  font-size: 0.85rem;
  padding: 0.45rem 0;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.topbar a { color: #cfe4f5; display: inline-flex; align-items: center; gap: 0.4rem; white-space: nowrap; }
.topbar a:hover { color: var(--cyan); }
.topbar svg { width: 14px; height: 14px; }
.topbar-left { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.topbar-social { display: flex; gap: 0.8rem; }

header.site-header {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 14px rgba(15, 43, 76, 0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0;
}
.logo-link img { height: 64px; width: auto; }

nav.main-nav { display: flex; align-items: center; gap: 1.6rem; }
nav.main-nav a {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.86rem;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--navy);
  padding: 0.4rem 0;
  border-bottom: 3px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
nav.main-nav a:hover { color: var(--blue); }
nav.main-nav a.active { color: var(--blue); border-bottom-color: var(--blue); }
nav.main-nav .btn { padding: 0.65rem 1.3rem; font-size: 0.82rem; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--navy);
  margin: 5px 0;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ---------- Hero slideshow ---------- */
/* The photo pane is sized to the photos' own 3:2 aspect and anchored right,
   so the full picture is always visible instead of being zoom-cropped by
   full-bleed cover; its left edge fades into the navy backdrop under the text. */
.slider {
  --hero-h: clamp(500px, 85vh, 760px);
  position: relative;
  height: var(--hero-h);
  overflow: hidden;
  background: linear-gradient(150deg, #0b2140 0%, #0f2b4c 55%, #12456f 100%);
}
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s ease;
  pointer-events: none;
}
.slide.active { opacity: 1; pointer-events: auto; }
.slide-bg {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: calc(var(--hero-h) * 1.5);
  max-width: 100%;
  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 170px);
  mask-image: linear-gradient(to right, transparent 0, #000 170px);
}
.slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(11, 33, 64, 0.82) 0%, rgba(15, 43, 76, 0.45) 42%, rgba(15, 43, 76, 0) 72%);
}
.slide-content {
  position: relative;
  z-index: 2;
  height: 100%;
  width: auto;
  max-width: 640px;
  margin: 0;
  padding-left: clamp(1.6rem, 5vw, 6rem);
  padding-right: 1.2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
}
.slide-content .kicker { color: var(--cyan); }
.slide-content h1, .slide-content h2 {
  color: #fff;
  font-size: clamp(1.9rem, 4.6vw, 3.2rem);
  font-weight: 800;
}
.slide-content .bar { background: var(--cyan); }
.slide-content p { font-size: 1.08rem; max-width: 46ch; color: #e3eefa; }
.slide-actions { display: flex; gap: 0.9rem; margin-top: 1.7rem; flex-wrap: wrap; }

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.55);
  background: rgba(15, 43, 76, 0.35);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease;
}
.slider-arrow:hover { background: var(--blue); border-color: var(--blue); }
.slider-arrow svg { width: 20px; height: 20px; }
.slider-arrow.prev { left: 1.2rem; }
.slider-arrow.next { right: 1.2rem; }

.slider-dots {
  position: absolute;
  bottom: 1.4rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: 0.55rem;
}
.slider-dots button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background 0.15s ease, transform 0.15s ease;
}
.slider-dots button.active { background: var(--cyan); border-color: var(--cyan); transform: scale(1.15); }

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  position: relative;
  background: var(--navy);
  color: #fff;
  padding: 5rem 0 5.5rem;
  overflow: hidden;
}
.page-hero .hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
  opacity: 0.22;
}
.page-hero::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  border-style: solid;
  border-width: 0 160px 160px 0;
  border-color: transparent var(--blue) transparent transparent;
  opacity: 0.9;
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; }
.page-hero .bar { background: var(--cyan); }
.page-hero p { color: #dcebf8; max-width: 62ch; font-size: 1.08rem; }
.breadcrumb {
  font-family: var(--font-head);
  font-size: 0.8rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.8rem;
}
.breadcrumb a { color: #9fcdec; }
.breadcrumb a:hover { color: #fff; }

/* ---------- Feature strip ---------- */
.feature-strip { background: var(--navy); padding: 0; }
.feature-strip .container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.feature-strip .feat {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1.5rem 1.6rem;
  color: #fff;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}
.feature-strip .feat:first-child { border-left: none; }
.feat-icon {
  width: 52px;
  height: 52px;
  flex: none;
  border-radius: 50%;
  background: rgba(46, 197, 242, 0.16);
  border: 2px solid var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
}
.feat-icon svg { width: 24px; height: 24px; color: var(--cyan); }
.feat strong {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-size: 0.95rem;
}

/* ---------- Service cards ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 1.6rem;
  margin-top: 2.5rem;
}
.service-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.service-card .thumb { position: relative; }
.service-card .thumb img { height: 200px; width: 100%; object-fit: cover; }
.service-card .tag {
  position: absolute;
  left: 0;
  bottom: 0;
  background: var(--blue);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 0.45rem 1.1rem;
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 100%, 0 100%);
  padding-right: 1.8rem;
}
.service-card .body { padding: 1.4rem 1.5rem 1.6rem; flex: 1; display: flex; flex-direction: column; }
.service-card h3 { margin-bottom: 0.7rem; }
.service-card ul { list-style: none; margin-top: 0.2rem; }
.service-card li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.45rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.service-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--cyan);
}

/* ---------- Why choose tiles ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(195px, 1fr));
  gap: 1.4rem;
  margin-top: 2.5rem;
}
.why-tile {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 1.3rem;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.why-tile:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.why-icon {
  width: 74px;
  height: 74px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
}
.why-icon svg { width: 32px; height: 32px; color: var(--cyan); }
.why-tile h3 { font-size: 0.98rem; margin-bottom: 0.5rem; }
.why-tile p { font-size: 0.88rem; color: var(--muted); }

/* ---------- Split (image + text) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.2rem;
  align-items: center;
}
.split.reverse .split-img { order: 2; }
.split-img { position: relative; }
.split-img img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  width: 100%;
  object-fit: cover;
}
.split-img::before {
  content: "";
  position: absolute;
  inset: -18px auto auto -18px;
  width: 120px;
  height: 120px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  z-index: -1;
}
.checklist { list-style: none; margin-top: 1.2rem; }
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin-bottom: 0.7rem;
}
.checklist svg { width: 22px; height: 22px; flex: none; color: var(--blue); margin-top: 0.15rem; }
.checklist strong { color: var(--navy); }

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.1rem;
  margin-top: 2.4rem;
}
.gallery-grid figure {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.gallery-grid img {
  height: 230px;
  width: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.gallery-grid figure:hover img { transform: scale(1.06); }
.gallery-grid figcaption {
  position: absolute;
  left: 0;
  bottom: 0;
  background: var(--blue);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 0.4rem 1.4rem 0.4rem 1rem;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 100%, 0 100%);
}

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  background: linear-gradient(120deg, var(--navy-3) 0%, var(--navy) 55%, var(--blue-dark) 100%);
  color: #fff;
  padding: 4rem 0;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -60px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(46, 197, 242, 0.25), transparent 65%);
}
.cta-band .container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.cta-band h2 { color: #fff; margin-bottom: 0.4rem; }
.cta-band .sub {
  font-family: var(--font-head);
  color: var(--cyan);
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-size: 0.95rem;
}
.cta-band p { color: #d9e8f6; margin-top: 0.6rem; max-width: 52ch; }
.cta-actions { display: flex; gap: 0.9rem; flex-wrap: wrap; }

/* ---------- Forms ---------- */
.form-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 2.4rem;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form-grid .full { grid-column: 1 / -1; }
label {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 0.4rem;
}
input, select, textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 1rem; /* >=16px stops iOS Safari from auto-zooming focused fields */
  color: var(--ink);
  background: #fbfdfe;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(27, 156, 226, 0.18);
}
textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: 0.85rem; color: var(--muted); margin-top: 0.9rem; }

/* ---------- Contact cards ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.4rem;
  margin-top: 2.5rem;
}
.contact-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 1.9rem 1.5rem;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.contact-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.contact-card .why-icon { width: 64px; height: 64px; }
.contact-card .why-icon svg { width: 27px; height: 27px; }
.contact-card h3 { font-size: 0.95rem; margin-bottom: 0.4rem; }
.contact-card a, .contact-card p { font-size: 0.98rem; color: var(--muted); word-break: break-word; }
.contact-card a:hover { color: var(--blue); }

.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin-top: 2.6rem;
  line-height: 0;
}
.map-wrap iframe { width: 100%; height: 420px; border: 0; }

/* ---------- Footer ---------- */
footer {
  background: var(--navy-3);
  color: #b9cfe2;
  padding: 3.8rem 0 0;
  position: relative;
  overflow: hidden;
}
footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--cyan), var(--blue), var(--navy-2));
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 2.8rem;
  padding-bottom: 2.6rem;
}
.footer-brand-mark { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 1rem; }
.footer-brand-mark img { height: 58px; width: auto; }
.footer-wordmark {
  font-family: var(--font-head);
  text-transform: uppercase;
  line-height: 1.05;
}
.footer-wordmark .l1 { font-weight: 800; font-size: 1.25rem; color: #fff; letter-spacing: 0.5px; }
.footer-wordmark .l1 span { color: var(--cyan); }
.footer-wordmark .l2 { font-weight: 800; font-size: 1.25rem; color: #fff; letter-spacing: 0.5px; }
.footer-wordmark .l3 { font-weight: 600; font-size: 0.58rem; letter-spacing: 3.2px; color: #8fb3d1; margin-top: 3px; }
.footer-col h4 {
  color: #fff;
  font-size: 0.92rem;
  letter-spacing: 1.6px;
  margin-bottom: 1.1rem;
  position: relative;
  padding-bottom: 0.6rem;
}
.footer-col h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 36px;
  height: 3px;
  background: var(--blue);
  border-radius: 2px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.55rem; }
.footer-col a { color: #b9cfe2; display: inline-flex; align-items: center; gap: 0.55rem; }
.footer-col a:hover { color: var(--cyan); }
.footer-col svg { width: 16px; height: 16px; flex: none; color: var(--cyan); }
.footer-social { display: flex; gap: 0.8rem; margin-top: 1.2rem; }
.footer-social a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.footer-social a:hover { background: var(--blue); border-color: var(--blue); }
.footer-social svg { width: 18px; height: 18px; color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.2rem 0;
  font-size: 0.85rem;
  text-align: center;
  color: #8fb3d1;
}

/* ---------- Motion & interactivity ---------- */
/* Elements get .reveal from JS, then .visible when scrolled into view */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: var(--reveal-delay, 0s);
}
.reveal.visible { opacity: 1; transform: none; }

/* Header compresses once the page scrolls */
header.site-header { transition: box-shadow 0.25s ease; }
.header-inner { transition: padding 0.25s ease; }
.logo-link img { transition: height 0.25s ease; }
header.site-header.scrolled { box-shadow: 0 6px 22px rgba(15, 43, 76, 0.16); }
header.site-header.scrolled .header-inner { padding: 0.35rem 0; }
header.site-header.scrolled .logo-link img { height: 50px; }

/* Hero text animates in on every slide change */
.slide-content > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.slide.active .slide-content > * { opacity: 1; transform: none; }
.slide.active .slide-content > *:nth-child(1) { transition-delay: 0.15s; }
.slide.active .slide-content > *:nth-child(2) { transition-delay: 0.27s; }
.slide.active .slide-content > *:nth-child(3) { transition-delay: 0.39s; }
.slide.active .slide-content > *:nth-child(4) { transition-delay: 0.51s; }
.slide.active .slide-content > *:nth-child(5) { transition-delay: 0.63s; }

/* Picture zooms */
.service-card .thumb { overflow: hidden; }
.service-card .thumb img { transition: transform 0.5s ease; }
.service-card:hover .thumb img { transform: scale(1.07); }
.split-img img { transition: transform 0.5s ease; }
.split-img:hover img { transform: scale(1.03); }

/* Icon micro-animations */
.why-icon, .feat-icon { transition: transform 0.3s ease; }
.why-tile:hover .why-icon,
.contact-card:hover .why-icon { transform: scale(1.12) rotate(-5deg); }
.feat:hover .feat-icon { transform: scale(1.12); }

/* Floating back-to-top button (injected by JS) */
.to-top {
  position: fixed;
  right: 1.4rem;
  bottom: 1.4rem;
  z-index: 300;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: var(--blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease;
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--blue-dark); }
.to-top svg { width: 20px; height: 20px; }

/* Respect visitors who turn off animations */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .slide-content > * { transition: none !important; opacity: 1 !important; transform: none !important; }
  .service-card .thumb img, .split-img img, .why-icon, .feat-icon,
  .gallery-grid img, .service-card, .why-tile, .contact-card, .btn { transition: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 800px) {
  /* Top bar: drop the address so it stays one tidy row */
  .topbar-left a:nth-child(3) { display: none; }
}

@media (max-width: 920px) {
  .split { grid-template-columns: 1fr; gap: 2.2rem; }
  .split.reverse .split-img { order: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .feature-strip .container { grid-template-columns: 1fr; }
  .feature-strip .feat { border-left: none; border-top: 1px solid rgba(255, 255, 255, 0.12); }
  .feature-strip .feat:first-child { border-top: none; }
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  nav.main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.6rem 4%;
    box-shadow: 0 14px 24px rgba(15, 43, 76, 0.14);
    display: none;
  }
  nav.main-nav.open { display: flex; }
  nav.main-nav a { padding: 0.85rem 0.4rem; border-bottom: 1px solid var(--line); }
  nav.main-nav a.active { border-bottom-color: var(--line); }
  nav.main-nav .btn { margin: 0.8rem 0.4rem 0.9rem; justify-content: center; }
  .form-grid { grid-template-columns: 1fr; }
  .slider-arrow { display: none; }

  /* Hero on small screens: photo fills the frame, text overlays a gradient */
  .slider { --hero-h: clamp(440px, 70vh, 560px); }
  .slide-bg {
    width: 100%;
    max-width: none;
    background-position: center;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .slide::after {
    background: linear-gradient(90deg, rgba(11, 33, 64, 0.9) 0%, rgba(15, 43, 76, 0.68) 50%, rgba(15, 43, 76, 0.3) 100%);
  }
  /* keep the text clear of the slider dots */
  .slide-content { padding-top: 1rem; padding-bottom: 3rem; }
}

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .logo-link img { height: 52px; }
  section { padding: 3.2rem 0; }
  .form-card { padding: 1.6rem; }
  /* Top bar: phone number + socials only */
  .topbar-left a:nth-child(2) { display: none; }
}
