/* ==========================================================================
   Advent PM – site stylesheet (hand-written, no framework)
   ========================================================================== */

:root {
  --brand: #AF2852;
  --brand-dark: #8F1F41;
  --brand-light: #FFD7E3;
  --accent: #E45380;
  --band: #9E1B1B;
  --ink: #111;
  --text: #333;
  --muted: #5d5d5d;
  --line: #e6e6e6;
  --navy: #183C51;
  --white: #fff;
  --radius: 14px;
  --header-h: 85px;
  --font: Arial, "Helvetica Neue", Helvetica, system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

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

body {
  margin: 0;
  font: 16px/1.65 var(--font);
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

img {
  height: auto;
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1,
h2,
h3,
h4 {
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 .5em;
}

p {
  margin: 0 0 1em;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

address {
  font-style: normal;
}

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

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

.center {
  text-align: center;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--ink);
  color: #fff;
  padding: 8px 14px;
  z-index: 1000;
  border-radius: 4px;
}

.skip-link:focus {
  left: 8px;
}

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
}

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  border: 2px solid var(--brand);
  border-radius: var(--radius);
  padding: 11px 28px;
  font: 500 16px/1.2 var(--font);
  letter-spacing: .4px;
  text-align: center;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}

.btn:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(175, 40, 82, .3);
}

.btn-outline {
  background: transparent;
  border-color: #fff;
  border-radius: 3px;
  padding: 9px 26px;
  font-size: 14px;
}

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

.btn-outline-dark {
  background: transparent;
  color: var(--brand);
}

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

.btn-light {
  background: #fff;
  color: var(--brand);
  border-color: #fff;
  border-radius: 4px;
  padding: 9px 24px;
  font-size: 14px;
}

.btn-light:hover {
  background: transparent;
  color: #fff;
  border-color: #fff;
  box-shadow: none;
}

.btn-header {
  padding: 8px 26px;
  font-size: 16px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  transition: box-shadow .25s;
}

.site-header.is-stuck {
  box-shadow: 0 2px 14px rgba(0, 0, 0, .12);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: var(--header-h);
  position: relative;
}

.brand {
  flex: 0 0 auto;
  width: 190px;
}

.brand-logo img {
  width: 120px;
  height: auto;
}

.brand-tagline {
  margin: 2px 0 0;
  font-size: 10px;
  line-height: 1.25;
  font-weight: 700;
  color: #222;
  letter-spacing: .1px;
}

.primary-nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
}

.primary-nav ul {
  display: flex;
  align-items: center;
}

.primary-nav li {
  display: flex;
  align-items: center;
}

.primary-nav li+li::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #222;
  margin: 0 1px;
}

.primary-nav a {
  display: block;
  padding: 4px 14px;
  border: 1px solid var(--brand);
  border-radius: 999px;
  color: #000;
  font-size: 15px;
  line-height: 1.4;
  text-decoration: none;
  transition: background .2s, color .2s;
}

.primary-nav a:hover {
  background: var(--brand);
  color: #fff;
}

.primary-nav a.is-active {
  color: var(--brand);
  font-weight: 700;
}

.primary-nav a.is-active:hover {
  color: #fff;
}

.header-cta {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 14px;
}

.header-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

.header-phone .icon {
  width: 15px;
  height: 15px;
}

.header-phone:hover {
  text-decoration: none;
  color: var(--brand-dark);
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 10px;
  cursor: pointer;
  margin-left: auto;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: #3d3d3d;
  margin: 6px 0;
  transition: transform .25s, opacity .25s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ---------- Social ---------- */
.social {
  display: flex;
  gap: 6px;
}

.social a {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 4px;
  color: #fff;
  background: #555;
}

.social a:hover {
  opacity: .85;
}

.social .icon {
  width: 14px;
  height: 14px;
}

.social-facebook {
  background: #3b5998 !important;
}

.social-twitter {
  background: #1da1f2 !important;
}

.social-linkedin {
  background: #0a66c2 !important;
}

.social-youtube {
  background: #d32323 !important;
}

/* ---------- Hero ---------- */
.hero {
  padding: 36px 0 28px;
  background: #fff;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero h1 {
  font-size: 30px;
  font-weight: 400;
  margin: 0;
  color: #333;
}

.hero-kicker {
  display: block;
}

.hero-name {
  display: block;
  font-size: 54px;
  font-weight: 700;
  color: var(--brand);
  line-height: 1.1;
}

.divider {
  width: 70px;
  height: 3px;
  background: var(--brand);
  margin: 16px 0 20px;
  border-radius: 2px;
}

.lead {
  font-size: 18px;
  color: var(--ink);
}

.hero-media img {
  width: 100%;
  max-width: 520px;
  margin-left: auto;
}

.hero-adr {
  margin-top: 28px;
}

.hero-adr h2 {
  font-size: 22px;
  margin-bottom: 4px;
}

.hero-adr .social {
  margin-top: 10px;
}

/* ---------- Slider ---------- */
.slider {
  position: relative;
  height: clamp(260px, 32vw, 440px);
  overflow: hidden;
  background: #222;
}

.slides,
.slide {
  position: absolute;
  inset: 0;
}

.slide {
  opacity: 0;
  visibility: hidden;
  transition: opacity .9s ease, visibility .9s;
}

.slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide.is-active img {
  animation: kenburns 9s ease-out forwards;
}

@keyframes kenburns {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.08);
  }
}

.slide-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .5);
}

.slide-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: 0 70px;
  gap: 6px;
}

.slide-title {
  font-size: clamp(22px, 3.2vw, 38px);
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .4);
  max-width: 900px;
}

.slide-text {
  font-size: clamp(14px, 1.4vw, 17px);
  margin: 0 0 10px;
  max-width: 700px;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, .25);
  color: #fff;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  transition: background .2s;
}

.slider-arrow:hover {
  background: var(--brand);
}

.slider-arrow.prev {
  left: 14px;
}

.slider-arrow.next {
  right: 14px;
}

.slider-arrow .icon {
  width: 24px;
  height: 24px;
}

.slider-dots {
  position: absolute;
  bottom: 14px;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.slider-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, .55);
  cursor: pointer;
  padding: 0;
  transition: background .2s, transform .2s;
}

.slider-dots button[aria-selected="true"] {
  background: #fff;
  transform: scale(1.25);
}

/* ---------- Why choose us ---------- */
.why {
  padding: 28px 0 70px;
}

.section-title {
  text-align: center;
  font-size: clamp(30px, 4vw, 42px);
  color: var(--brand);
  font-weight: 700;
  margin: 0 0 6px;
}

.section-sub {
  text-align: center;
  font-size: clamp(20px, 2.6vw, 26px);
  color: var(--brand);
  font-weight: 700;
  margin: 0 0 40px;
}

.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px 64px;
  max-width: 1000px;
  margin: 0 auto;
}

.feature {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.feature-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
}

.feature-icon .icon {
  width: 28px;
  height: 28px;
}

.feature h3 {
  font-size: 22px;
  margin: 0 0 6px;
  color: #000;
  font-weight: 600;
}

.feature p {
  margin: 0;
  font-size: 15px;
  color: var(--text);
  line-height: 1.6;
}

/* ---------- Trust (slanted red dividers) ---------- */
.shape-top,
.shape-bottom {
  position: relative;
}

.shape-top {
  background: linear-gradient(180deg, rgba(255, 215, 227, .85) 0, rgba(255, 215, 227, 0) 110px) no-repeat top / 100% 110px;
}

.shape-top::before,
.shape-bottom::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  background: var(--band);
  pointer-events: none;
}

.shape-top::before {
  top: 0;
  height: 52px;
  clip-path: polygon(0 0, 100% 0, 100% 30%, 0 100%);
}

.shape-bottom::after {
  bottom: 0;
  height: 64px;
  clip-path: polygon(0 0, 100% 100%, 0 100%);
}

.trust {
  padding: 100px 0 100px;
}

.trust-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.trust-media img {
  border-radius: 26px;
  width: 100%;
}

.eyebrow {
  font-size: 22px;
  color: #3e3e3e;
  font-weight: 600;
  margin: 0 0 4px;
}

.trust-title {
  font-size: clamp(26px, 3.4vw, 36px);
  color: var(--brand);
  font-weight: 700;
  margin: 0 0 14px;
}

.checklist {
  margin: 16px 0 24px;
}

.checklist li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  margin-bottom: 2px;
}

.checklist .icon {
  width: 18px;
  height: 18px;
  color: var(--brand);
}

/* ---------- Reliable ---------- */
.reliable {
  padding: 70px 0 80px;
}

.reliable-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 40px;
  align-items: center;
}

.reliable h2 {
  font-size: clamp(32px, 4.2vw, 46px);
  color: #000;
  font-weight: 700;
  margin: 0;
}

.reliable-media img {
  width: 100%;
  border-radius: 0 0 0 40px;
}

/* ---------- Inner pages ---------- */
.page-section {
  padding: 30px 0 70px;
  min-height: 50vh;
}

.page-title {
  font-size: clamp(30px, 4vw, 40px);
  font-weight: 700;
  margin: 24px 0 22px;
  color: #000;
}

.page-title.crimson {
  color: var(--brand);
  margin-top: 6px;
}

.eyebrow-sm {
  font-size: 16px;
  margin: 30px 0 0;
  color: #222;
}

.prose h1 {
  font-size: clamp(30px, 4vw, 40px);
  margin: 0 0 18px;
}

.prose h2 {
  font-size: 30px;
  margin: 34px 0 14px;
}

.prose h3 {
  font-size: 22px;
  margin: 28px 0 8px;
}

.prose p {
  font-size: 16px;
  line-height: 1.75;
}

.prose .welcome {
  font-size: 28px;
  margin-top: 0;
}

.prose .hl {
  color: var(--brand);
}

.prose-wide {
  max-width: 980px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 50px;
  align-items: start;
}

.about-media img {
  border-radius: 24px;
  width: 100%;
  box-shadow: 0 14px 40px rgba(175, 40, 82, .18);
}

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

.flip {
  perspective: 1200px;
  height: 270px;
  outline-offset: 4px;
}

.flip-inner {
  position: relative;
  height: 100%;
  transition: transform .7s cubic-bezier(.4, .2, .2, 1);
  transform-style: preserve-3d;
}

.flip-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 26px 34px;
  text-align: center;
  color: #fff;
  background: var(--brand);
  border-radius: 4px;
}

.flip-front h2 {
  color: #fff;
  font-size: 16px;
  letter-spacing: .5px;
  margin: 0;
  font-weight: 700;
}

.icon-xl {
  width: 54px;
  height: 54px;
}

.flip-back {
  transform: rotateY(180deg);
  background: var(--brand-dark);
}

.flip-back p {
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 6px;
}

@media (hover: hover) {

  .flip:hover .flip-inner,
  .flip:focus-within .flip-inner {
    transform: rotateY(180deg);
  }
}

@media (hover: none) {
  .flip {
    height: auto;
  }

  .flip-inner {
    transform: none !important;
    height: auto;
  }

  .flip-face {
    position: relative;
    backface-visibility: visible;
    -webkit-backface-visibility: visible;
    transform: none;
  }

  .flip-front {
    border-radius: 4px 4px 0 0;
    padding-bottom: 10px;
  }

  .flip-back {
    border-radius: 0 0 4px 4px;
    padding-top: 6px;
  }
}

.banner img {
  width: 100%;
  border-radius: 10px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 50px;
  margin: 34px 0 30px;
  align-items: start;
}

.contact-details li {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.contact-details strong {
  display: block;
  color: #000;
}

.contact-details .ico-box {
  background: var(--brand);
  color: #fff;
}

.map-wide iframe {
  width: 100%;
  height: 380px;
  border: 0;
  border-radius: 10px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: linear-gradient(180deg, var(--brand-light) 0%, #E8789A 100%);
  color: #000;
  margin-top: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 40px;
  padding-top: 46px;
  padding-bottom: 46px;
}

.site-footer h2 {
  font-size: 18px;
  color: #000;
  margin: 0 0 14px;
}

.site-footer h3 {
  font-size: 16px;
  color: #000;
  margin: 0 0 2px;
}

.site-footer a {
  color: #000;
}

.footer-map iframe {
  width: 100%;
  max-width: 360px;
  height: 190px;
  border: 0;
  border-radius: 4px;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
}

.footer-contact p,
.footer-contact address {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
}

.ico-box {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #fff;
  color: #333;
}

.ico-box .icon {
  width: 20px;
  height: 20px;
}

.footer-logo img {
  width: 150px;
  margin-bottom: 8px;
}

.footer-about p {
  font-size: 15px;
  max-width: 360px;
}

.footer-about .social {
  margin-top: 12px;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 24px;
  padding: 14px 20px;
  max-width: none;
  background: var(--brand);
  color: #fff;
  font-size: 14px;
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom ul {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-bottom a {
  color: #fff;
}

.to-top {
  position: fixed;
  right: 18px;
  bottom: 84px;
  z-index: 90;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  color: #333;
  border: 1px solid #ccc;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
  transition: background .2s, color .2s;
}

.to-top:hover {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

.to-top[hidden] {
  display: none;
}

/* ---------- Quote dialog ---------- */
.quote-dialog {
  border: 0;
  padding: 0;
  width: calc(100% - 24px);
  max-width: 600px;
  max-height: calc(100vh - 24px);
  max-height: calc(100dvh - 24px);
  border-radius: 6px;
  background: #fff;
  color: #3e3e3e;
  box-shadow: 2px 8px 23px 3px rgba(0, 0, 0, .25);
  overflow: auto;
}

.quote-dialog:not([open]) {
  display: none;
}

.quote-dialog::backdrop {
  background: rgba(0, 0, 0, .55);
}

.quote-dialog[open] {
  animation: pop .25s ease-out;
}

@keyframes pop {
  from {
    opacity: 0;
    transform: translateY(14px) scale(.98);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.quote-panel {
  position: relative;
  padding: 30px 32px 28px;
  font-size: 14px;
}

.quote-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: none;
  border: 0;
  color: #333;
  cursor: pointer;
  border-radius: 50%;
}

.quote-close:hover {
  background: #f1f1f1;
}

.quote-head {
  text-align: center;
  margin-bottom: 14px;
}

.quote-head h2 {
  font-size: 24px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--brand);
  margin: 0 0 6px;
}

.quote-head p {
  margin: 0;
  font-weight: 700;
}

.quote-form fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 14px;
  min-width: 0;
}

.quote-form legend {
  font-size: 18px;
  color: var(--navy);
  padding: 0 0 8px;
}

.field {
  margin-bottom: 10px;
  flex: 1 1 0;
  min-width: 0;
}

.field-row {
  display: flex;
  gap: 12px;
}

.field label {
  display: block;
  font-size: 12.5px;
  margin-bottom: 3px;
  color: #3e3e3e;
}

.req {
  color: var(--brand);
}

.opt {
  color: #888;
  font-weight: 400;
}

.quote-form input[type="text"],
.quote-form input[type="tel"],
.quote-form input[type="email"],
.quote-form input[type="date"],
.quote-form input[type="time"],
.quote-form textarea {
  width: 100%;
  font: 400 16px/1.4 var(--font);
  color: var(--navy);
  background: #fff;
  border: 1px solid var(--navy);
  border-radius: 2px;
  padding: 10px 12px;
}

.quote-form textarea {
  resize: vertical;
  min-height: 70px;
}

.quote-form input::placeholder,
.quote-form textarea::placeholder {
  color: #9aa5ac;
}

.quote-form input:focus,
.quote-form textarea:focus {
  outline: 2px solid var(--brand);
  outline-offset: 0;
  border-color: var(--brand);
}

.field.has-error input,
.field.has-error textarea {
  border-color: #c0152f;
  background: #fff7f8;
}

.field-error {
  color: #c0152f;
  font-size: 12.5px;
  margin: 3px 0 0;
}

.checks {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 6px 12px;
  margin-bottom: 12px;
}

.check {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
}

.check input {
  width: 17px;
  height: 17px;
  accent-color: var(--brand);
}

.form-status {
  min-height: 1.4em;
  margin-bottom: 8px;
  font-weight: 600;
}

.form-status.is-error {
  color: #c0152f;
}

.btn-submit {
  width: 100%;
  border-radius: 2px;
  background: var(--accent);
  border-color: var(--accent);
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: .6px;
  padding: 16px 40px;
}

.btn-submit:hover {
  background: var(--brand);
  border-color: var(--brand);
}

.btn-submit[disabled] {
  opacity: .65;
  cursor: wait;
  transform: none;
  box-shadow: none;
}

.form-note {
  text-align: center;
  margin: 12px 0 0;
  font-size: 13px;
}

.quote-success {
  text-align: center;
  padding: 30px 0 10px;
}

.quote-success[hidden] {
  display: none;
}

.quote-success .icon-big {
  width: 64px;
  height: 64px;
  margin: 0 auto 10px;
  color: #2e9e5b;
}

.quote-success h2 {
  color: var(--ink);
}

body.dialog-open {
  overflow: hidden;
}

/* ---------- Scroll reveal ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 1.2s ease, transform 1.2s cubic-bezier(.2, .7, .2, 1);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .brand {
    width: 150px;
  }

  .brand-tagline {
    font-size: 9px;
  }

  .primary-nav a {
    padding: 4px 11px;
    font-size: 14px;
  }

  .btn-header {
    padding: 7px 20px;
    font-size: 15px;
  }
}

@media (max-width: 960px) {
  .nav-toggle {
    display: block;
    order: 3;
    margin-left: 0;
  }

  .header-inner {
    gap: 12px;
    flex-wrap: wrap;
  }

  .brand {
    order: 1;
    width: auto;
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .header-cta {
    order: 2;
    margin-left: auto;
  }

  .brand-tagline {
    max-width: 130px;
  }

  .primary-nav {
    order: 4;
    flex: 1 0 100%;
    display: none;
    justify-content: stretch;
    border-top: 1px solid var(--line);
    padding: 8px 0 14px;
  }

  .primary-nav.is-open {
    display: block;
  }

  .primary-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .primary-nav li+li::before {
    display: none;
  }

  .primary-nav a {
    flex: 1;
    text-align: center;
    padding: 10px 14px;
    font-size: 16px;
  }

  .header-contact .social {
    display: none;
  }

  .header-phone span {
    display: none;
  }

  .header-phone {
    width: 42px;
    height: 42px;
    justify-content: center;
    border: 1px solid var(--brand);
    border-radius: 50%;
  }

  .header-phone .icon {
    width: 18px;
    height: 18px;
  }

  .hero-grid,
  .trust-grid,
  .reliable-grid,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-media {
    order: -1;
  }

  .hero-media img {
    margin: 0 auto;
    max-width: 420px;
  }

  .trust-media {
    max-width: 520px;
    margin: 0 auto;
  }

  .reliable-media {
    order: -1;
  }

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

  .footer-about {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 15px;
  }

  .brand-tagline {
    display: none;
  }

  .btn-header {
    padding: 7px 14px;
    font-size: 14px;
  }

  .hero {
    padding-top: 20px;
  }

  .hero h1 {
    font-size: 24px;
  }

  .hero-name {
    font-size: 42px;
  }

  .features {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .flip-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .slide-content {
    padding: 0 52px;
  }

  .slider-arrow {
    width: 36px;
    height: 36px;
  }

  .slider-arrow.prev {
    left: 6px;
  }

  .slider-arrow.next {
    right: 6px;
  }

  .trust {
    padding: 90px 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer-bottom ul {
    justify-content: center;
  }

  .quote-panel {
    padding: 26px 18px 22px;
  }

  .field-row {
    flex-direction: column;
    gap: 0;
  }

  .map-wide iframe {
    height: 300px;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

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

@media print {

  .site-header,
  .slider,
  .to-top,
  .quote-dialog,
  .footer-map {
    display: none !important;
  }
}

.quote-head[hidden] {
  display: none;
}

/* ---------- Homepage entrance animations ---------- */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(26px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(60px) scale(.97);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.page-home .hero-copy>* {
  animation: fadeUp 1.3s cubic-bezier(.2, .7, .2, 1) both;
}

.page-home .hero-copy> :nth-child(1) {
  animation-delay: .1s;
}

.page-home .hero-copy> :nth-child(2) {
  animation-delay: .3s;
}

.page-home .hero-copy> :nth-child(3) {
  animation-delay: .5s;
}

.page-home .hero-copy> :nth-child(4) {
  animation-delay: .7s;
}

.page-home .hero-copy> :nth-child(5) {
  animation-delay: .9s;
}

.page-home .hero-copy> :nth-child(6) {
  animation-delay: 1.1s;
}

.page-home .hero-media img {
  animation: slideInRight 1.5s cubic-bezier(.2, .7, .2, 1) .3s both;
}

.page-home .slide-content>* {
  animation: fadeUp 1.2s ease both;
}

.js .reveal-left {
  transform: translateX(-48px);
}

.js .reveal-right {
  transform: translateX(48px);
}

.js .reveal-zoom {
  transform: translateY(20px) scale(.92);
}

.js .reveal-left.is-visible,
.js .reveal-right.is-visible,
.js .reveal-zoom.is-visible {
  transform: none;
}

.features .feature:nth-child(2) {
  transition-delay: .2s;
}

.features .feature:nth-child(3) {
  transition-delay: .4s;
}

.features .feature:nth-child(4) {
  transition-delay: .6s;
}

.feature-icon {
  transition: transform .35s;
}

.feature:hover .feature-icon {
  transform: scale(1.1) rotate(-6deg);
}

@media (max-width: 960px) {

  .js .reveal-left,
  .js .reveal-right {
    transform: translateY(24px);
  }
}

/* ---------- Inner-page & footer entrance animations ---------- */
@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(.94);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.page-title,
.eyebrow-sm,
.prose h1,
.prose .welcome {
  animation: fadeUp 1.2s cubic-bezier(.2, .7, .2, 1) both;
}

.eyebrow-sm {
  animation-delay: .1s;
}

.page-title {
  animation-delay: .25s;
}

.about-media img {
  animation: slideInRight 1.5s cubic-bezier(.2, .7, .2, 1) .3s both;
}

.banner img {
  animation: zoomIn 1.5s cubic-bezier(.2, .7, .2, 1) .2s both;
}

.flip-grid .flip:nth-child(2) {
  transition-delay: .25s;
}

.flip-grid .flip:nth-child(3) {
  transition-delay: .5s;
}

.flip-grid .flip:nth-child(4) {
  transition-delay: .75s;
}

.contact-details li {
  transition: transform .3s;
}

.contact-details li:hover {
  transform: translateX(6px);
}

.footer-contact li:nth-child(2) {
  transition-delay: .2s;
}

.footer-contact li:nth-child(3) {
  transition-delay: .4s;
}

.js .reveal.is-visible.flip,
.js .flip.reveal {
  transition-property: opacity, transform;
}

/* ---------- Compact mobile header (55px) ---------- */
@media (max-width: 960px) {
  :root {
    --header-h: 55px;
  }

  .header-inner {
    min-height: 55px;
    padding-top: 0;
    padding-bottom: 0;
  }

  .brand {
    min-height: 55px;
  }

  .brand-tagline {
    display: none;
  }

  .brand-logo img {
    width: 100px;
  }

  .nav-toggle {
    padding: 8px 6px;
  }

  .header-phone {
    width: 34px;
    height: 34px;
  }

  .header-phone .icon {
    width: 16px;
    height: 16px;
  }

  .primary-nav {
    padding: 6px 0 12px;
  }
}