/* Hanley Welding & Equine Services — static port of the WordPress/Divi site.
   Skin measured from the live site (computed styles at 1440 / 980 / 390, 2026-09-24).
   Breakpoints follow Divi: 980px (tablet) and 767px (phone). */

:root {
  --gold: #d2a258;          /* headings, footer bar, active nav, icons */
  --gold-light: #f6d681;    /* button hover */
  --orange: #d17d00;        /* buttons */
  --orange-phone: #d18c25;  /* header phone button */
  --name: #d18a1f;          /* review names */
  --h4-accent: #d19336;     /* intro h4 on About / Equine Flooring */
  --ink: #000;
  --hover-ink: #25212b;
  --paper: #fff;
  --grey-card: #f5f5f5;
  --grey-toggle: #f2f2f2;
  --cream: rgba(246, 214, 129, 0.15);
  --cream-strong: rgba(246, 214, 129, 0.25);
  --field: rgba(210, 162, 88, 0.12);
  --timeline-card: rgba(237, 193, 115, 0.15);
  --line: #333134;
  --glow: #f9d286;
  --heading-font: "Chau Philomene One", Helvetica, Arial, sans-serif;
  --body-font: "Poppins", Helvetica, Arial, sans-serif;
  --container: 1400px;
  --row: 90%;
  --row-narrow: 80%;
  --radius: 5px;
  --radius-card: 10px;
  --header-h: 160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body-font);
  font-size: 15px;
  font-weight: 300;
  line-height: 2em;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; }
p { margin: 0; }
p + p { margin-top: 0; }
h1, h2, h3, h4, h5 {
  font-family: var(--heading-font);
  font-weight: 500;
  color: var(--gold);
  margin: 0;
  padding-bottom: 10px;
  line-height: 1.2em;
}
strong { font-weight: 700; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.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: -9999px; top: 0; z-index: 1000; background: var(--orange); color: #fff; padding: 10px 16px; }
.skip-link:focus { left: 10px; top: 10px; }

.row { width: var(--row); max-width: var(--container); margin: 0 auto; position: relative; }
.row--narrow { width: var(--row-narrow); max-width: var(--container); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--heading-font);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 2px;
  line-height: 1.7em;
  text-transform: uppercase;
  color: #fff;
  background: var(--orange);
  border-radius: var(--radius);
  padding: 15px 30px;
  transition: color .3s ease, background-color .3s ease;
}
.btn:hover { color: var(--hover-ink); background: var(--gold-light); }
.btn-wrap { margin-top: 25px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #000;
  padding: 20px 0;
}
.site-header__inner {
  width: 97.2%; max-width: 1400px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  min-height: 120px;
}
.site-header__logo { flex: 0 0 auto; width: 250px; }
.site-header__logo img { height: 120px; width: auto; }
.nav { flex: 1 1 auto; margin-left: 28px; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.nav li { padding-right: 22px; }
.nav a {
  display: block; padding: 31px 0;
  font-family: var(--heading-font); font-weight: 300; font-size: 18px; line-height: 14px;
  letter-spacing: 1px; text-transform: uppercase; color: #fff;
  transition: opacity .3s ease;
}
.nav a:hover { opacity: .7; }
.nav a[aria-current="page"] { color: var(--gold); }
.header-phone {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--body-font); font-weight: 500; font-size: 16px; line-height: 27.2px;
  letter-spacing: 1px; color: #fff; background: var(--orange-phone);
  border-radius: var(--radius); padding: 15px 30px 15px 22px;
  transition: color .3s ease, background-color .3s ease;
}
.header-phone svg { width: 16px; height: 16px; fill: currentColor; }
.header-phone:hover { color: var(--hover-ink); background: var(--gold-light); }
.menu-toggle, .header-call { display: none; }

/* ---------- Heroes ---------- */
.hero {
  position: relative;
  background-color: #fff;
  background-image: linear-gradient(190deg, rgba(255,255,255,0) 0%, rgba(0,0,0,.9) 60%), url("../images/hero-horse-eye.webp");
  background-size: cover; background-position: center 35%;
  color: #fff;
}
.hero--home { padding: 16vh 0; }
.hero--home .hero__text { margin-top: -27px; padding-right: 50px; margin-bottom: 25px; font-size: 18px; line-height: 30px; }
.hero--home h1 { font-size: 54px; line-height: 1.2em; letter-spacing: 2px; color: #fff; }
.hero--home .btn-wrap { margin: 0 0 -11vh; }
.hero--page { padding: 17vh 0; text-align: center; }
.hero--page h1 { font-size: 54px; line-height: 1.2em; letter-spacing: 2px; color: #fff; }

/* ---------- Shared section bits ---------- */
.section { position: relative; background: #fff; }
.pattern { position: relative; }
.pattern::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: url("../images/pattern.svg"); background-size: 128px 128px; background-repeat: repeat;
}
.pattern > * { position: relative; }
.h2-center { text-align: center; font-size: 45px; }
.kicker { font-size: 15px; letter-spacing: 1px; color: #000; text-align: center; }
.lead-center { text-align: center; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; column-gap: 5.55%; }
.photo-col {
  border-radius: 6px; overflow: hidden;
  background-size: cover; background-position: center;
  box-shadow: 0 2px 18px 0 var(--glow);
}
.photo-col:hover { animation: float-top 3s ease-in-out infinite; }
@keyframes float-top { 0% { transform: translateY(0); } 50% { transform: translateY(15px); } 100% { transform: translateY(0); } }

/* ---------- Home: services carousel ---------- */
.home-services { padding: 90px 0 60px; }
.home-services .h2-center { padding-bottom: 0; }
.home-services__grid { display: grid; grid-template-columns: 840fr 384fr; column-gap: 5.55%; align-items: center; }
.coverflow { position: relative; }
.coverflow__track { position: relative; height: 290px; overflow: hidden; padding: 40px 0; }
.cf-card {
  position: absolute; top: 0; left: 50%;
  width: 46.4%; margin-left: -23.2%;
  background: var(--grey-card);
  border-bottom: 4px solid var(--gold);
  border-radius: 6px; overflow: hidden;
  box-shadow: 0 2px 18px 0 rgba(0,0,0,.3);
  padding: 35px 0 30px;
  text-align: center;
  transition: transform var(--cf-speed, 3s) ease;
}
.cf-card img { width: 94px; height: 94px; margin: 0 auto; }
.cf-card__body { padding: 20px 15px 0; }
.cf-card h4 { font-size: 22px; letter-spacing: 2px; color: #000; line-height: 1.2em; }
.cf-card p { font-size: 14px; line-height: 28px; }
.cf-card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  transition: opacity var(--cf-speed, 3s) ease;
}
.cf-card.is-left::after { opacity: 1; background: linear-gradient(270deg, rgba(0,0,0,.5), rgba(0,0,0,0)); }
.cf-card.is-right::after { opacity: 1; background: linear-gradient(90deg, rgba(0,0,0,.5), rgba(0,0,0,0)); }
.cf-card.is-off::after { opacity: 1; background: rgba(0,0,0,.3); }
.coverflow__btn {
  position: absolute; top: 50%; z-index: 20; width: 30px; height: 30px; margin-top: -15px;   /* above the cards (z 6–10) so the phone arrows show over the side cards */
  border: 0; padding: 0; background: #000; color: var(--gold); cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: background .3s ease;
}
/* Live hides these until hover; Rob (review 2026-09-24): slider arrows always visible, on every width */
.coverflow__btn:hover, .coverflow__btn:focus-visible { background: var(--gold); color: #000; }
.coverflow__btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.5; }
.coverflow__btn--prev { left: -30px; }   /* just outside the slider, where the live arrows sit */
.coverflow__btn--next { right: -30px; }
.services-carousel { display: none; }
.horse-card { background: var(--cream-strong); border-radius: 10px; overflow: hidden; padding: 25px; }
.horse-card img { width: 100%; transition: transform .3s ease; }
.horse-card img:hover { transform: scale(1.05); }

/* ---------- Home: why choose us / about the business ---------- */
.split { padding: 90px 0; }
.split--cream { background: var(--cream); }
.split--tail { padding: 90px 0 180px; }
.split .grid-2 { align-items: stretch; }
.split .photo-col { min-height: 423px; }
.split__text { align-self: center; }
.split__text h3 { font-size: 45px; }

/* ---------- Home: process + form ---------- */
.process { padding: 90px 0; }
.process__grid { display: grid; grid-template-columns: 476fr 749fr; column-gap: 5.5%; align-items: center; }
.process h3.section-title { font-size: 45px; }
.timeline { position: relative; }
.timeline__list { list-style: none; margin: 0; padding: 0; }
.timeline__line, .timeline__active {
  position: absolute; left: calc(1rem + 30px); width: 0; top: 60px;
  border-left: 2px solid var(--line); transform: translateX(-1px);
}
.timeline__line { bottom: 60px; }
.timeline__active { border-left-color: var(--gold); height: 0; }
.timeline__item { position: relative; display: grid; grid-template-columns: 112px 1fr; align-items: center; margin-bottom: 30px; }
.timeline__item:last-child { margin-bottom: 0; }
.timeline__dot {
  position: relative; z-index: 2; justify-self: start; margin-left: 24px;
  width: 45px; height: 45px; border-radius: 50%; background: #000; color: #fff;
  display: flex; align-items: center; justify-content: center; transition: background-color .3s ease;
}
.timeline__dot svg { width: 10px; height: 10px; stroke: currentColor; stroke-width: 2; }
.timeline__item:first-child .timeline__dot { background: var(--gold); }
.timeline__card {
  position: relative; background: var(--timeline-card); border-radius: 6px;
  padding: 20px 25px 16px; font-weight: 500;
}
.timeline__card::after {
  content: ""; position: absolute; left: -12px; bottom: 12px;
  border: 12px solid transparent; border-right-color: #fff; border-left: 0;
}
.timeline__num { display: block; font-size: 15px; line-height: 30px; color: #999; font-weight: 500; }
.timeline__card h4 { font-size: 22px; letter-spacing: 1px; color: #000; line-height: 1.2em; }
.timeline__card p { font-weight: 300; }
.form-card {
  background: #fff; border-radius: 10px; box-shadow: 0 2px 18px 0 rgba(0,0,0,.1);
  padding: 40px;
}
.form-card h2, .form-card h3 { font-size: 40px; }
.quote-form iframe { width: 100%; border: 0; height: 500px; display: block; }

/* ---------- Home: reviews ---------- */
.reviews {
  padding: 90px 0;
  background-color: #000;
  background-image: linear-gradient(rgba(0,0,0,.8), rgba(0,0,0,.8)), url("../images/reviews-bg.webp");
  background-size: cover; background-position: center; background-attachment: fixed;
  color: #fff; text-align: center;
}
.reviews h3 { font-size: 45px; }
.reviews__intro { padding: 0 34vh; margin-bottom: 30px; }
.reviews__viewport { overflow: hidden; }
.reviews__track { display: flex; gap: 30px; transition: transform .5s ease; }
.review {
  flex: 0 0 calc((100% - 30px) / 2);
  background: #fff; border-radius: 6px; padding: 30px; /* live: item wrapper #FFFFFF!important overrides the module's rgba(255,255,255,.1) */
}
.review h4 { font-size: 25px; line-height: 30px; letter-spacing: 1px; color: var(--name); }
.review p { font-size: 15px; letter-spacing: .3px; color: #000; }
.stars { display: flex; justify-content: center; gap: 0; margin-top: 10px; color: var(--orange); }
.stars svg { width: 25px; height: 25px; fill: currentColor; }
.reviews__carousel { position: relative; }
.reviews__btn {
  position: absolute; top: 50%; z-index: 5; width: 40px; height: 40px; margin-top: -20px;
  border: 0; padding: 0; background: var(--orange); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.reviews__btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; }
.reviews__btn--prev { left: calc(-5.55vw + 12px); }
.reviews__btn--next { right: calc(-5.55vw + 12px); }

/* ---------- Footer ---------- */
.cta-card {
  background: #fff; border-radius: 10px; box-shadow: 0 2px 18px 0 rgba(0,0,0,.1);
  padding: 40px; margin-top: -80px; position: relative; z-index: 4; color: #000;
  display: flex; align-items: center; justify-content: space-between; gap: 30px;
}
.cta-card h3 { font-size: 36px; letter-spacing: 2px; line-height: 1.2em; }
.cta-card p { line-height: 1.3em; }
.site-footer {
  position: relative;
  background-color: #000;
  background-image: linear-gradient(rgba(0,0,0,.9), rgba(0,0,0,.9)), url("../images/footer-bg.webp");
  background-size: cover; background-position: center; background-attachment: fixed;
  padding: 1px 0 70px;
  color: #fff;
}
.footer-cols { display: grid; grid-template-columns: 1fr 1fr 1fr; column-gap: 3%; padding-top: 70px; }
.footer-cols h3 { font-size: 45px; margin-bottom: 20px; }
.footer-contact { list-style: none; margin: 0; padding: 0; }
.footer-contact li { display: flex; gap: 22px; align-items: flex-start; }
.footer-contact li + li { padding: 20px 0; }
.footer-contact svg { width: 25px; height: 25px; fill: var(--gold); flex: 0 0 25px; margin-top: 2px; }
.footer-contact h4 { font-size: 17px; line-height: .8em; letter-spacing: 1px; text-transform: uppercase; color: var(--gold); padding-bottom: 10px; }
.footer-contact h4 a { color: var(--gold); }
.footer-contact p { font-size: 14px; letter-spacing: 1px; line-height: 30px; color: #fff; transition: color .3s ease; }
.footer-contact li:hover p { color: var(--gold-light); }
.footer-contact a.plain { color: inherit; }
.social { list-style: none; margin: 0; padding: 0; display: flex; gap: 13px; }
.social a { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; background: var(--gold); }
.social svg { width: 20px; height: 20px; fill: #fff; }
.footer-links { padding-left: 50px; }
.footer-links h3 { margin-bottom: 10px; }
.footer-links ul { list-style: none; margin: 0; padding: 15px 30px 0 0; border-right: 1px solid rgba(0,0,0,.1); }
.footer-links li { line-height: 30px; margin-bottom: 7px; }
.footer-links a { color: #fff; font-size: 15px; font-weight: 300; }
.footer-links a:hover { color: var(--gold-light); }
.footer-brand img { max-width: 55%; border-radius: 10px; }
.footer-brand p { font-size: 14px; padding-top: 15px; color: #fff; line-height: 30px; }
.footer-bar { background: var(--gold); padding: 15px 0; text-align: center; }
.footer-bar p { font-family: var(--heading-font); font-size: 16px; letter-spacing: 1px; line-height: 30px; color: #000; font-weight: 500; }

/* ---------- About ---------- */
.about { padding: 64px 0 180px; }
.about .h2-center { font-size: 45px; }
.about__grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 3%; padding-top: 30px; }
.accent-h4 { font-size: 19px; line-height: 1.3em; letter-spacing: 1px; color: var(--h4-accent); }
.toggle { background: var(--grey-toggle); border-radius: 5px; margin: 20px 0; }
.toggle__btn {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  border: 0; background: none; cursor: pointer; text-align: left;
  font-family: var(--heading-font); font-size: 19px; color: #000; padding: 17px 20px; line-height: 1.2em;
}
.toggle__btn svg { width: 16px; height: 16px; flex: 0 0 16px; }
.toggle__btn .icon-minus { display: none; }
.toggle__btn[aria-expanded="true"] .icon-plus { display: none; }
.toggle__btn[aria-expanded="true"] .icon-minus { display: block; }
.toggle__panel { padding: 0 20px 17px; }
.toggle__panel[hidden] { display: none; }
.about__body p { font-weight: 500; }
.about__photo { height: 523px; align-self: start; }   /* fixed height as live: the photo must not stretch (and zoom) when a toggle opens */

/* ---------- Services page ---------- */
.services-page { padding: 90px 0 180px; }
.hover-grid { display: grid; column-gap: 3%; }
.hover-grid--2 { grid-template-columns: 1fr 1fr; padding: 20px 0 35px; }
.hover-grid--3 { grid-template-columns: 1fr 1fr 1fr; }
.hover-grid--1 { grid-template-columns: 1fr; padding-top: 35px; }
.hover-box {
  position: relative; height: 265px; overflow: hidden; border-radius: 5px;
  background: var(--grey-card); border-bottom: 4px solid var(--gold);
}
.hover-box__face {
  position: absolute; inset: 0; padding: 42px 30px 30px; background: var(--grey-card);
  transition: transform .6s ease;
}
.hover-box__face--front img { width: 80px; height: 80px; margin-bottom: 20px; }
.hover-box__face--back { transform: translateY(-100%); display: flex; flex-direction: column; justify-content: center; }
.hover-box:hover .hover-box__face--front, .hover-box:focus-within .hover-box__face--front { transform: translateY(100%); }
.hover-box:hover .hover-box__face--back, .hover-box:focus-within .hover-box__face--back { transform: translateY(0); }
.hover-box h2, .hover-box .hb-title { font-size: 22px; letter-spacing: 2px; color: #000; font-weight: 700; line-height: 1.2em; }
.hover-box p { font-weight: 300; color: #000; }
.hover-box .hb-title { display: block; font-family: var(--heading-font); padding-bottom: 10px; }
.toggle__title { padding: 0; font-size: inherit; }

/* ---------- Equine flooring ---------- */
.flooring-intro { padding: 90px 0; }
.flooring-intro h2 { font-size: 45px; text-align: center; }
.flooring__grid { display: grid; grid-template-columns: 629fr 295fr 295fr; column-gap: 3%; padding-top: 30px; }
.flooring__grid .accent-h4 { line-height: 1.5em; letter-spacing: 1.5px; }
.flooring__text p { letter-spacing: 1px; }
.shot { display: block; border-radius: 10px; overflow: hidden; box-shadow: 0 2px 18px 0 rgba(210,162,88,.6); }
.shot + .shot { margin-top: 30px; }
.shot img { width: 100%; }
.warranty { padding: 90px 0 180px; }
.warranty__divider {
  position: absolute; top: 0; left: 0; right: 0; height: 9px; z-index: 1; transform: scale(-1, 1);
  background-image: url("../images/divider-swoosh.svg"); background-size: 100% 9px; background-repeat: no-repeat;
}
.warranty__title { font-size: 45px; letter-spacing: 1px; text-align: center; }
.warranty__intro { padding: 0 30vh; font-size: 17px; text-align: center; }
.brochures { display: grid; grid-template-columns: 1fr 1fr 1fr; column-gap: 3%; padding-top: 30px; align-items: start; }
.brochure { display: block; border-radius: 10px; overflow: hidden; box-shadow: 0 2px 18px 0 rgba(0,0,0,.15); }
.brochure img { width: 100%; }

/* ---------- Pricing ---------- */
.pricing { padding: 90px 0 180px; }
.pricing h2 { font-size: 45px; text-align: center; }
.price-list { list-style: none; margin: 0; padding: 0; }
.price-item { display: flex; gap: 17px; align-items: flex-start; font-size: 17px; line-height: 30px; letter-spacing: 1px; text-transform: uppercase; }
.price-item--lead { font-weight: 500; margin-top: 20px; padding-left: 7px; }
.price-item svg { width: 18px; height: 18px; flex: 0 0 18px; margin-top: 6px; fill: none; stroke: var(--orange); stroke-width: 1.6; }
.price-rows { display: grid; grid-template-columns: 1fr 1fr; column-gap: 3%; row-gap: 22px; padding: 20px 0 30px; }
.price-box { background: var(--grey-toggle); border-left: 2px solid #000; padding: 10px 20px; font-size: 16px; line-height: 30px; letter-spacing: 1px; text-transform: uppercase; }
.price-list--plain { padding-left: 7px; }
.price-list--plain .price-item { margin-bottom: 10px; font-weight: 300; }
.price-list--plain .price-item:last-child { margin-top: 15px; }
.price-note { text-align: center; color: var(--orange); font-size: 17px; font-weight: 500; letter-spacing: .5px; text-transform: uppercase; line-height: 30px; }

/* ---------- Gallery ---------- */
.gallery-sec { padding: 80px 0 160px; }
.gallery-sec h2 { font-size: 45px; text-align: center; }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; padding: 20px 0 0; align-items: start; }
.gallery-grid a { display: block; padding: 5px; border-radius: 25px; overflow: hidden; } /* live: 5px padding inside a 25px-rounded, clipping item */
.gallery-grid img { width: 100%; transition: opacity .3s ease; }
.gallery-grid a:hover img { opacity: .85; }

/* ---------- Contact ---------- */
.contact { padding: 90px 0 180px; }
.contact h2.h2-center { padding-bottom: 0; }
.contact-cards { display: grid; grid-template-columns: repeat(4, 1fr); column-gap: 3%; row-gap: 30px; padding: 30px 0 50px; }
.contact-cards .contact-card:nth-child(5) { grid-column: 1 / -1; } /* address card (added 2026-09-24 at Adam's request) sits full-width under the live site's four */
.contact-card { background: var(--grey-card); padding: 30px; text-align: center; border-radius: 3px; }
.contact-card svg { width: 25px; height: 25px; fill: var(--gold); margin: 0 auto 12px; display: block; }
.contact-card h4 { font-size: 17px; line-height: 13.6px; letter-spacing: 1px; text-transform: uppercase; color: var(--gold); padding: 6px 0 10px; }
.contact-card h4 a { color: var(--gold); }
.contact-card p { font-size: 14px; letter-spacing: 1px; line-height: 30px; }
.contact-card a.plain { color: #000; }
.contact__grid { display: grid; grid-template-columns: 851fr 406fr; column-gap: 3%; align-items: center; }
.contact__grid .form-card { margin-top: 0; }
.contact__photo img { width: 100%; }

/* ---------- 404 ---------- */
.notfound { padding: 90px 0 180px; text-align: center; }
.notfound h2 { font-size: 45px; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.88); display: flex; align-items: center; justify-content: center; padding: 40px 60px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 100%; width: auto; height: auto; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; cursor: pointer; padding: 10px; }
.lightbox svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 2; }
.lightbox__close { top: 10px; right: 10px; }
.lightbox__prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 8px; top: 50%; transform: translateY(-50%); }

/* ---------- Back to top + call button (mobile non-negotiables) ---------- */
.to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 60;
  width: 48px; height: 48px; border-radius: 50%;
  border: 2px solid var(--orange); background: #fff; color: var(--orange);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s ease;
}
.to-top.is-shown { opacity: 1; visibility: visible; }
.to-top svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; }
.call-fab { display: none; }

/* ---------- Mobile menu panel ---------- */
.menu-backdrop, .menu-panel { display: none; }

/* =================== Tablet (Divi <= 980px) =================== */
@media (max-width: 980px) {
  .brochures { grid-template-columns: 1fr; row-gap: 30px; } /* live stacks the three NUMAT brochures from 980px down */
  :root { --header-h: 123px; }
  .site-header { padding: 8px 0; }
  .site-header__inner { width: 80%; min-height: 106px; }
  .site-header__logo { width: auto; }
  .site-header__logo img { height: 106px; }
  .nav, .header-phone { display: none; }
  .header-call, .menu-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; color: var(--gold); background: none; border: 0; padding: 0; cursor: pointer;
  }
  .header-actions { display: flex; align-items: center; gap: 18px; margin-left: auto; }
  .header-call svg { width: 22px; height: 22px; fill: currentColor; }
  .menu-toggle svg { width: 26px; height: 26px; stroke: currentColor; stroke-width: 2; fill: none; }
  .menu-toggle .icon-close { display: none; }
  .menu-toggle[aria-expanded="true"] .icon-open { display: none; }
  .menu-toggle[aria-expanded="true"] .icon-close { display: block; }

  .menu-backdrop {
    display: block; position: fixed; inset: 0; z-index: 40;
    background: rgba(0,0,0,.55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
    opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s ease;
  }
  .menu-panel {
    display: block; position: fixed; z-index: 45; left: 12px; right: 12px; top: calc(var(--header-h) + 8px);
    background: #000; border-radius: 12px; padding: 14px 22px 20px;
    box-shadow: 0 12px 30px rgba(0,0,0,.35);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s ease, visibility .25s ease, transform .25s ease;
    max-height: calc(100vh - var(--header-h) - 24px); overflow-y: auto;
  }
  body.menu-open .menu-backdrop, body.menu-open .menu-panel { opacity: 1; visibility: visible; transform: none; }
  .menu-panel ul { list-style: none; margin: 0; padding: 0; }
  .menu-panel li a {
    display: block; padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,.1);
    font-family: var(--heading-font); font-size: 18px; letter-spacing: 1px; text-transform: uppercase; color: #fff; line-height: 1.3;
  }
  .menu-panel li a[aria-current="page"] { color: var(--gold); }
  .menu-panel .btn { display: block; text-align: center; margin-top: 16px; }
  .menu-panel__line { margin-top: 12px; font-size: 14px; line-height: 1.6; color: #fff; text-align: center; }
  .menu-panel__line a { color: var(--gold); }

  .hero--home { padding: 80px 0 60px; }
  .hero--home h1 { font-size: 36px; }
  .hero--home .hero__text { font-size: 17px; }
  .hero--home .btn-wrap { margin-bottom: 10vh; }
  .hero--page { padding: 12vh 0; }
  .h2-center, .split__text h3, .process h3.section-title, .reviews h3, .about .h2-center,
  .flooring-intro h2, .warranty__title, .pricing h2, .gallery-sec h2, .footer-cols h3, .notfound h2 { font-size: 38px; }
  .form-card h3 { font-size: 38px; }
  .cta-card h3 { font-size: 40px; }
  .home-services, .split, .process, .reviews, .flooring-intro, .gallery-sec { padding-top: 65px; padding-bottom: 65px; }
  .split--tail, .about, .services-page, .warranty, .pricing, .contact { padding-top: 65px; padding-bottom: 220px; }
  .home-services__grid, .process__grid, .grid-2, .about__grid, .flooring__grid, .contact__grid { grid-template-columns: 1fr; row-gap: 30px; }
  .split__text { text-align: center; }
  .split .photo-col { min-height: 300px; }
  .split--cream .split__text { order: 2; }
  .process h3.section-title, .form-card h3 { text-align: center; }
  .form-card { margin-top: 30px; }
  .reviews__intro { padding: 0; }
  .reviews__carousel { padding-bottom: 60px; }
  .reviews__btn { top: auto; bottom: 0; margin-top: 0; }
  .reviews__btn--prev { left: calc(50% - 50px); } .reviews__btn--next { right: calc(50% - 50px); }
  .review { flex-basis: 100%; }
  .flooring__grid { grid-template-columns: 1fr 1fr; }
  .flooring__text { grid-column: 1 / -1; text-align: center; }
  .warranty__intro { padding: 0; font-size: 16px; }
  .about__photo { height: 300px; }
  .about__intro { text-align: center; }
  .hover-grid--3 { grid-template-columns: 1fr; row-gap: 30px; }
  .hover-grid--2 { grid-template-columns: 1fr; row-gap: 30px; }
  .hover-box { height: 250px; }
  .contact-cards { grid-template-columns: 1fr 1fr; row-gap: 30px; }
  .cf-card { width: 66%; margin-left: -33%; }
  /* live (768-980): icon sits 150px in from the card's left edge at 40% of the remaining width (~133px at 820) */
  .cf-card img { width: calc((100% - 150px) * .4); height: auto; margin: 0 0 0 150px; }
  .price-rows { grid-template-columns: 1fr; row-gap: 18px; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .cta-card { margin-top: -145px; padding: 30px; flex-direction: column; text-align: center; }
  .cta-card p { line-height: 1.4em; }
  .site-footer { padding-bottom: 60px; }
  .footer-cols { grid-template-columns: 1fr; row-gap: 30px; }
  .footer-links { padding-left: 0; }
  .footer-links ul { border-right: 0; padding: 0 0 20px; }
  .footer-links a { font-size: 14px; }
  .footer-brand img { max-width: 25%; }
  .reviews, .site-footer { background-attachment: scroll; }
}

/* =================== Phone (Divi <= 767px) =================== */
@media (max-width: 767px) {
  .row, .row--narrow { width: 90%; }
  .site-header__inner { width: 90%; }
  .site-header__logo img { height: 106px; }
  .hero--home { padding: 80px 0 20px; }
  .hero--home h1 { font-size: 30px; line-height: 36px; }
  .hero--home .hero__text { font-size: 17px; padding-right: 0; }
  .hero--home .btn-wrap { margin-bottom: 8vh; }
  .hero--home .btn { padding: 15px 12px; }
  .hero--page h1 { font-size: 38px; }
  .btn { padding: 15px 12px; }
  .h2-center, .split__text h3, .process h3.section-title, .reviews h3, .about .h2-center,
  .flooring-intro h2, .warranty__title, .pricing h2, .gallery-sec h2, .footer-cols h3, .form-card h3, .notfound h2 { font-size: 34px; }
  .home-services, .split, .process, .reviews, .flooring-intro, .gallery-sec { padding-top: 65px; padding-bottom: 65px; }
  .split--tail, .about, .services-page, .warranty, .pricing, .contact { padding-bottom: 230px; }
  .coverflow__track { height: 320px; }
  .coverflow__btn--prev { left: 0; }
  .coverflow__btn--next { right: 0; }
  /* live: 1 per view inside the 30px side padding of the swiper; icon 85px in, 50% wide with 20px left padding (~83px) */
  .cf-card { width: calc(100% - 60px); margin-left: calc(-50% + 30px); }
  .cf-card img { box-sizing: border-box; width: calc((100% - 85px) * .5); padding-left: 20px; margin: 0 0 0 85px; }
  .services-page { display: none; }
  .services-carousel { display: block; padding: 65px 0 200px; }
  .timeline__item { grid-template-columns: 112px 1fr; }
  .form-card { padding: 30px; }
  .accent-h4 { font-size: 17px; }
  .flooring__grid { grid-template-columns: 1fr; }
  .brochures { grid-template-columns: 1fr; row-gap: 30px; }
  .contact-cards { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; } /* live: one full-width photo per row on phones, the full image not the crop */
  .hover-box { height: 320px; }
  .cta-card { margin-top: -160px; }
  .cta-card h3 { font-size: 30px; }
  .footer-brand img { max-width: 35%; }
  .footer-bar { padding-bottom: calc(15px + 145px + env(safe-area-inset-bottom)); }

  .call-fab {
    display: flex; position: fixed; z-index: 60; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom));
    width: 60px; height: 60px; border-radius: 50%; background: var(--orange); color: #fff;
    align-items: center; justify-content: center; box-shadow: 0 6px 18px rgba(0,0,0,.3);
  }
  .call-fab svg { width: 26px; height: 26px; fill: currentColor; }
  .to-top { right: 24px; bottom: calc(18px + 60px + 14px + env(safe-area-inset-bottom)); }
}

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