/*
Theme Name: Melbourne Tree Services Custom Theme
Theme URI: https://codecrewz.com.au
Author: CodeCrewz Technology Pty Ltd
Author URI: https://codecrewz.com.au
Description: Premium high-performance custom WordPress theme built using semantic HTML5, BEM, and Inter typography for Melbourne arborists.
Version: 1.1.0
License: GNU General Public License v2 or later
Text Domain: melbourne-tree-services
*/

:root {
  --color-forest: #1e3f20;
  --color-forest-deep: #132814;
  --color-forest-mid: #2a5630;
  --color-forest-soft: #e7eee6;
  --color-charcoal: #1c1917;
  --color-ink: #292524;
  --color-muted: #57534e;
  --color-amber: #9c4f23;
  --color-amber-hover: #7d3d19;
  --color-amber-soft: #fbf3ee;
  --color-cream: #f6f3eb;
  --color-cream-dark: #ece6d8;
  --color-white: #fbfaf6;
  --color-line: rgba(28, 25, 23, 0.1);
  --color-line-light: rgba(246, 243, 235, 0.16);

  --font-sans: "Inter", system-ui, -apple-system, sans-serif;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4.5rem;
  --space-9: 6.5rem;

  --radius-sm: 0.65rem;
  --radius-md: 1rem;
  --radius-lg: 1.35rem;
  --radius-pill: 999px;

  --shadow-card: 0 18px 40px rgba(19, 40, 20, 0.12);
  --container: min(1160px, calc(100% - 2rem));
  --header-h: 4.35rem;
  --ease-app: cubic-bezier(0.16, 1, 0.3, 1);
  --swiper-theme-color: #1e3f20;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-charcoal);
  background: var(--color-cream);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol,
figure,
blockquote,
dl,
dd {
  margin: 0;
  padding: 0;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

button,
input {
  font: inherit;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--color-amber);
  color: var(--color-forest-deep);
  padding: 0.7rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
}

.skip-link:focus {
  top: 1rem;
}

.accent-word {
  color: var(--color-forest);
  font-weight: 700;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 3rem;
  padding: 0.75rem 1.35rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  letter-spacing: 0.01em;
  border: 1.5px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--color-amber);
  color: var(--color-white);
}

.btn--primary:hover {
  background: var(--color-amber-hover);
  color: var(--color-white);
}

.btn--ghost {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.45);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn--outline {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.45);
}

.btn--outline:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn--accent-brown {
  background: var(--color-amber);
  color: var(--color-white);
  border-color: var(--color-amber);
}

.btn--accent-brown:hover {
  background: var(--color-amber-hover);
  border-color: var(--color-amber-hover);
}

.btn--dark {
  background: var(--color-charcoal);
  color: var(--color-cream);
}

.btn--dark:hover {
  background: var(--color-forest);
}

.btn--compact {
  min-height: 2.55rem;
  padding: 0.45rem 1rem;
  font-size: 0.92rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--color-forest);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}

.eyebrow::before,
.quote-section__eyebrow::before {
  content: none !important;
  display: none !important;
}

.eyebrow__dash {
  color: #1e3f20;
  margin-right: 0.6rem;
}

.eyebrow--light {
  color: #c7e0c6;
}

.eyebrow--on-dark {
  color: #b8d4b4;
}

.section-title {
  font-family: var(--font-sans);
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 700;
  color: var(--color-charcoal);
}

.section-title em,
.hero__title-accent,
.photo-cta__title em,
.cta__title em,
.about__title em {
  font-family: var(--font-sans);
  font-style: italic;
  font-weight: 600;
  color: var(--color-forest);
}

.photo-cta__title em,
.cta__title em {
  color: var(--color-amber);
}

.section-title--light {
  color: var(--color-white);
}

.section-title--light em {
  color: #c5e3b8;
}

.section-head {
  margin-bottom: var(--space-6);
}

.section-head--split {
  display: grid;
  gap: var(--space-5);
}

.section-head__lede {
  color: var(--color-muted);
  max-width: 36rem;
  margin-bottom: var(--space-4);
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.7rem;
  border-radius: var(--radius-pill);
  background: var(--color-cream);
  color: var(--color-muted);
  font-size: 0.78rem;
  font-weight: 600;
}

/* Top bar */
.topbar {
  background: var(--color-forest-deep);
  color: #dce8d8;
  font-size: 0.82rem;
  text-align: center;
  padding: 0.55rem 1rem;
}

.topbar__copy {
  margin: 0;
}

.topbar__dot {
  margin: 0 0.45rem;
  opacity: 0.5;
}

.topbar__phone {
  color: var(--color-amber);
  font-weight: 700;
}

@media (max-width: 639px) {
  .topbar {
    text-align: center !important;
    padding: 0.6rem var(--space-4) !important;
  }

  .topbar__copy {
    display: inline-flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: var(--space-2) !important;
    line-height: 1.4 !important;
  }

  .topbar__dot {
    margin: 0 var(--space-1) !important;
  }
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 243, 235, 0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-line);
}

.header__inner {
  width: var(--container);
  margin: 0 auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.brand,
.header__brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}

.brand__logo,
.header__logo {
  height: 3.35rem;
  width: auto;
  display: block;
  flex-shrink: 0;
}

.brand__text,
.header__brand > div {
  display: flex;
  flex-direction: column;
}

.brand__name,
.header__title {
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.brand__tag,
.header__subtitle {
  font-size: 0.6rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.header__toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.header__burger {
  width: 2.6rem;
  height: 2.6rem;
  padding: 0;
  appearance: none;
  border-radius: 0.7rem;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 5px;
  flex-shrink: 0;
  cursor: pointer;
  background: var(--color-white);
  border: 1px solid var(--color-line);
}

.header__burger-line {
  display: block;
  width: 1.15rem;
  height: 2px;
  background: var(--color-forest);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav {
  position: absolute;
  left: 0;
  right: 0;
  top: var(--header-h);
  max-height: calc(100vh - var(--header-h));
  overflow-y: auto;
  background: var(--color-white);
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
  box-shadow: 0 18px 30px rgba(19, 40, 20, 0.12);
  padding: 1rem 1.25rem 1.4rem;
  display: none;
  flex-direction: column;
  gap: 1rem;
}

.header__toggle:checked ~ .nav {
  display: flex;
}

.nav__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.nav__link {
  position: relative;
  display: block;
  padding: 0.7rem 0.2rem;
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.25s ease;
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0.2rem;
  right: 0.2rem;
  bottom: 0.35rem;
  height: 2px;
  border-radius: 2px;
  background: var(--color-amber);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.nav__link:hover,
.nav__link:focus-visible {
  color: var(--color-forest);
}

.nav__link:hover::after,
.nav__link:focus-visible::after {
  transform: scaleX(1);
}

.nav__dropdown {
  list-style: none;
  padding: 0 0 0.6rem 0.8rem;
}

.nav__dropdown-link {
  display: block;
  padding: 0.4rem 0;
  color: var(--color-muted);
  font-size: 0.95rem;
}

.header__cta {
  align-self: flex-start;
}

/* Hero */
.hero {
  position: relative;
  isolation: isolate;
  color: var(--color-white);
  min-height: 92vh;
  display: grid;
  align-items: end;
  background-color: var(--color-forest-deep);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(19, 40, 20, 0.25) 0%, rgba(19, 40, 20, 0.62) 48%, rgba(12, 22, 13, 0.88) 100%),
    linear-gradient(90deg, rgba(12, 22, 13, 0.72), transparent 62%);
}

.hero__inner {
  position: relative;
  z-index: 1;
  width: var(--container);
  margin: 0 auto;
  padding: 5.5rem 0 2.5rem;
  display: grid;
  gap: var(--space-6);
}

.hero__copy {
  max-width: 44rem;
}

.hero__title,
.hero__main-statement {
  font-size: clamp(2.3rem, 7.5vw, 4.4rem);
  line-height: 1;
  letter-spacing: -0.045em;
  font-weight: 700;
}

.hero__main-statement span,
.hero__accent {
  color: var(--color-amber);
  font-style: italic;
}

.hero--bottom {
  min-height: 28rem;
  align-items: center;
  text-align: center;
}

.hero--bottom .hero__inner {
  padding: var(--space-8) 0;
  justify-items: center;
}

.hero--bottom .hero__copy {
  max-width: 46rem;
}

.hero--bottom .hero__actions-row,
.hero--bottom .hero__tags-grid {
  justify-content: center;
}

.hero--bottom .hero__sub-paragraph {
  margin-left: auto;
  margin-right: auto;
}

.hero__sub-paragraph {
  margin: 1rem 0 0;
  max-width: 34rem;
  color: #d7e4d3;
  font-size: 1.05rem;
}

.hero__title-accent {
  display: block;
  font-size: 0.86em;
  color: #c9e8b8;
}

.hero__actions,
.hero__actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.35rem;
}

.hero__tags-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.6rem;
}

.hero__tag-capsule {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-pill);
  background: rgba(246, 243, 235, 0.12);
  border: 1px solid rgba(246, 243, 235, 0.18);
  color: #e8f0e6;
  font-size: 0.8rem;
  font-weight: 600;
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 36rem;
  gap: 1.1rem 1rem;
  margin-top: 2.4rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--color-line-light);
}

.stats__value {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.stats__plus,
.stats__unit,
.stats__star {
  font-size: 0.7em;
  margin-left: 0.1rem;
}

.stats__star {
  color: var(--color-amber);
}

.stats__label {
  margin-top: 0.3rem;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #c5cdc2;
}

/* Ticker */
.ticker {
  background: var(--color-forest-deep);
  color: #d7e4d3;
  overflow: hidden;
  padding: 0.85rem 0;
  border-top: 1px solid rgba(245, 158, 11, 0.2);
}

.ticker__track {
  display: flex;
  width: max-content;
  animation: marquee 28s linear infinite;
  animation-play-state: running;
  will-change: transform;
  backface-visibility: hidden;
}

@media (hover: hover) and (pointer: fine) {
  .ticker:hover .ticker__track {
    animation-play-state: paused !important;
  }
}

.ticker__list {
  display: flex;
  flex-shrink: 0;
  list-style: none;
  gap: 2.2rem;
  padding: 0 1.1rem;
  font-size: 0.92rem;
  font-weight: 600;
}

.ticker__list li {
  white-space: nowrap;
}

.ticker__list li::before {
  content: "•";
  color: var(--color-amber);
  margin-right: 0.7rem;
}

@keyframes marquee {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

/* About */
.about,
.services,
.gallery,
.reviews {
  width: var(--container);
  margin: 0 auto;
  padding: var(--space-8) 0;
}

.about {
  padding-bottom: clamp(2rem, 3.5vw, 2.75rem) !important;
}

.services {
  padding-top: clamp(2rem, 3.5vw, 2.75rem) !important;
}

.gallery {
  padding-bottom: clamp(2rem, 3.5vw, 2.75rem) !important;
}

.reviews {
  padding-top: clamp(2rem, 3.5vw, 2.75rem) !important;
}

.about__grid,
.about__container,
.why__grid {
  display: grid;
  gap: var(--space-6);
}

.about__title,
.about__main-title,
.about__hero-statement {
  font-size: clamp(1.55rem, 4vw, 2.45rem);
  line-height: 1.28;
  letter-spacing: -0.03em;
  font-weight: 600;
}

.about__main-title em,
.about__hero-statement em {
  color: var(--color-forest);
  font-style: italic;
}

.about__eyebrow {
  margin: 0 0 0.85rem;
  color: var(--color-forest);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.about__text-block {
  display: grid;
  gap: 1rem;
  margin-top: 1.15rem;
}

.about__para {
  margin: 0;
  color: var(--color-muted);
  font-size: 1.02rem;
  max-width: 38rem;
}

.about__media-column,
.about__video-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  justify-content: center;
}

.about__media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  justify-content: center;
}

.about__media img,
.why__media img,
.services__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about__video {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 485px;
  margin: 0 auto;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  display: block;
  cursor: pointer;
}

.about__play {
  position: absolute;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  width: 4.25rem;
  height: 4.25rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(246, 243, 235, 0.92);
  color: var(--color-forest-deep);
  font-size: 1.35rem;
  pointer-events: none;
  box-shadow: 0 10px 28px rgba(8, 16, 9, 0.28);
}

.about__caption,
.gallery__caption {
  position: absolute;
  left: 0.85rem;
  bottom: 0.85rem;
  background: rgba(19, 40, 20, 0.82);
  color: var(--color-cream);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 600;
}

/* Services */
.services__grid {
  display: grid;
  gap: 1.5rem;
  align-items: stretch;
}

.services__card {
  height: 100%;
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: 1.25rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s var(--ease-app), filter 0.4s var(--ease-app), box-shadow 0.4s var(--ease-app);
}

.services__card:hover,
.services__card:focus-within {
  transform: scale(1.03);
  filter: brightness(1.08);
  box-shadow: var(--shadow-card);
}

.services__card:active,
.reviews__card:active,
.gallery__trigger:active img {
  transform: scale(0.98);
}

.services__media {
  position: relative;
  aspect-ratio: 16 / 11;
  overflow: hidden;
}

.services__body {
  padding: 1.15rem 1.15rem 1.05rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.services__name {
  font-size: 1.2rem;
  letter-spacing: -0.03em;
}

.services__desc {
  margin: 0.45rem 0 1rem;
  color: var(--color-muted);
  font-size: 0.96rem;
  flex-grow: 1;
}

.services__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.85rem;
  border-top: 1px solid var(--color-line);
}

.services__link {
  font-weight: 600;
  font-size: 0.95rem;
}

.services__link:hover {
  color: var(--color-forest);
}

.services__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  margin: 1.15rem 1.15rem 0;
  border-radius: 0.85rem;
  background: var(--color-forest-soft);
  color: var(--color-forest);
  font-size: 1.15rem;
}

.services__media {
  width: 100%;
  height: 14rem;
  overflow: hidden;
}

.services__card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.services__content {
  padding: 1.15rem 1.15rem 1.05rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.services__title {
  font-size: 1.2rem;
  letter-spacing: -0.03em;
}

.services__text {
  margin: 0.45rem 0 1rem;
  color: var(--color-muted);
  font-size: 0.96rem;
  flex-grow: 1;
}

.services__text p {
  margin: 0;
}

.services__actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.85rem;
  border-top: 1px solid var(--color-line);
  margin-top: auto;
}

.services__badge {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.7rem;
  border-radius: var(--radius-pill);
  background: var(--color-cream);
  color: var(--color-muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.services__card > .services__link {
  margin: auto 1.15rem 1.15rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--color-line);
}

/* Photo CTA */
.photo-cta,
.cta-banner-strip {
  width: var(--container);
  margin: 0 auto var(--space-8);
}

.photo-cta__inner,
.cta-banner-strip__wrapper {
  background: var(--color-forest-deep);
  color: var(--color-cream);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.35rem;
  display: grid;
  gap: 1.2rem;
}

.photo-cta__title,
.cta-banner-strip__title {
  font-size: clamp(1.5rem, 4vw, 2.05rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.cta-banner-strip__title span,
.cta-banner-strip__accent {
  color: #9c4f23;
  font-style: italic;
  font-weight: 600;
}

.photo-cta__lede,
.cta-banner-strip__description {
  margin-top: 0.45rem;
  color: #c9d4c5;
}

/* Why */
.why {
  background: var(--color-forest-deep);
  color: var(--color-cream);
  padding: var(--space-8) 0;
}

.why__grid {
  width: var(--container);
  margin: 0 auto;
}

.why__lede {
  margin: 1rem 0 1.6rem;
  color: #c5d1c2;
  max-width: 34rem;
}

ol.features {
  list-style: none;
  display: grid;
  gap: 0.15rem;
}

.features__item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.85rem;
  align-items: start;
  padding: 1rem 0;
  border-top: 1px solid var(--color-line-light);
}

.features__num {
  color: var(--color-amber);
  font-size: 0.78rem;
  font-weight: 700;
  padding-top: 0.2rem;
}

.features__item .features__title {
  font-size: 1.02rem;
}

.features__desc {
  color: #b7c4b4;
  font-size: 0.92rem;
}

.features__item .features__icon {
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--color-line-light);
  color: #c9e8b8;
  font-size: 0.85rem;
}

section.features {
  background: var(--color-forest-deep);
  color: var(--color-cream);
  padding: var(--space-8) 0;
}

.features__container {
  width: var(--container);
  margin: 0 auto;
  display: grid;
  gap: var(--space-6);
  align-items: center;
}

.features__eyebrow {
  margin: 0 0 0.85rem;
  color: #c5e3b8;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.features__main-title {
  font-size: clamp(1.7rem, 4vw, 2.55rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #ffffff;
  font-weight: 700;
}

.features__main-title em,
.features__accent {
  color: #c5e3b8;
  font-style: italic;
}

.features__main-desc {
  margin: 1rem 0 1.6rem;
  color: #c5d1c2;
  max-width: 34rem;
}

.features__list {
  display: grid;
}

section.features .features__item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.85rem;
  align-items: start;
  padding: 1rem 0;
  border-top: 1px solid var(--color-line-light);
}

.features__item-title {
  font-size: 1.02rem;
}

.features__item-title span {
  color: var(--color-amber);
  font-size: 0.78rem;
  font-weight: 700;
  margin-right: 0.35rem;
}

.features__item-desc {
  margin: 0.35rem 0 0;
  color: #b7c4b4;
  font-size: 0.92rem;
}

.features__item-icon {
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--color-line-light);
  color: #c9e8b8;
  font-size: 0.85rem;
}

.features__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.6rem;
}

.features__image-side,
.features__photo-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 280px;
}

body.customize-partial-edit-shortcuts .features__image-side,
body.customize-partial-edit-shortcuts .features__photo-frame {
  overflow: visible;
}

body.customize-partial-edit-shortcuts .features__photo {
  border-radius: var(--radius-lg);
}

body.customize-support .customize-partial-edit-shortcut {
  position: relative !important;
  z-index: 99999 !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  margin-left: 8px !important;
  vertical-align: middle !important;
}

body.customize-support .hero__title,
body.customize-support .about__hero-statement,
body.customize-support .features__main-title,
body.customize-support .cta-banner-strip__title {
  overflow: visible !important;
}

.features__photo {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  aspect-ratio: 5 / 4;
}

.why__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.6rem;
}

.why__media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 280px;
}

.why__media img {
  min-height: 280px;
  aspect-ratio: 5 / 4;
}

/* Gallery */
.gallery__slider .swiper-slide {
  height: auto;
}

.gallery__slider .swiper-slide > .gallery__item {
  width: 100%;
  height: auto;
}

.gallery__slider:not(.swiper-initialized) .swiper-wrapper,
.reviews-swiper:not(.swiper-initialized) .swiper-wrapper {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
}

.gallery__slider:not(.swiper-initialized),
.reviews-swiper:not(.swiper-initialized) {
  overflow: visible;
}

.gallery__slider:not(.swiper-initialized) .swiper-slide,
.reviews-swiper:not(.swiper-initialized) .swiper-slide {
  flex: 0 0 min(78%, 22rem);
}

.gallery__item {
  position: relative;
  border-radius: 1.1rem;
  overflow: hidden;
}

.gallery__trigger {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}

.gallery__trigger img,
.gallery-slider__image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.4s var(--ease-app), filter 0.4s var(--ease-app);
}

.gallery__trigger:hover img,
.gallery__trigger:focus-visible img {
  transform: scale(1.03);
  filter: brightness(1.08);
}

.gallery__trigger:focus-visible {
  outline: 3px solid var(--color-amber);
  outline-offset: -3px;
}

.gallery__caption {
  pointer-events: none;
}

.gallery__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem !important;
  margin-bottom: 0 !important;
}

.slider-arrow {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--color-line);
  background: var(--color-white);
  color: var(--color-forest);
  cursor: pointer;
  transition: transform 0.4s var(--ease-app), background 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.slider-arrow:hover {
  background: var(--color-forest);
  color: var(--color-cream);
}

.slider-arrow:active {
  transform: scale(0.92);
}

.slider-arrow.swiper-button-disabled {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 0.15rem;
}

.slider-dots .swiper-pagination-bullet {
  width: 0.55rem;
  height: 0.55rem;
  background: var(--color-forest);
  opacity: 0.25;
  transition: width 0.4s var(--ease-app), opacity 0.2s ease;
}

.slider-dots .swiper-pagination-bullet-active {
  width: 1.5rem;
  border-radius: var(--radius-pill);
  opacity: 1;
}

/* Lightbox */
.lightbox {
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(8, 16, 9, 0.95);
  color: var(--color-cream);
}

.lightbox::backdrop {
  background: rgba(8, 16, 9, 0.95);
}

.lightbox[open] {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: lightbox-in 0.4s var(--ease-app);
}

body:has(.lightbox[open]) {
  overflow: hidden;
}

@keyframes lightbox-in {
  from {
    opacity: 0;
    transform: scale(0.97);
  }
}

.lightbox__slider {
  width: min(1100px, 100%);
  height: 100%;
}

.lightbox__slide {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4.5rem 1rem 4rem;
}

.lightbox__image,
.lightbox__player {
  max-width: 100%;
  max-height: calc(100dvh - 11rem);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-md);
}

.lightbox__player {
  background: #000;
}

.lightbox--video .lightbox__arrow,
.lightbox--video .lightbox__counter {
  display: none;
}

.lightbox--video .swiper-wrapper {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: none !important;
}

.lightbox__player {
  max-width: min(28rem, 92vw);
  aspect-ratio: 9 / 16;
}

.lightbox__video {
  width: auto !important;
  height: 100% !important;
  max-height: calc(90dvh - 4rem) !important;
  aspect-ratio: 9/16 !important;
  object-fit: contain !important;
  border-radius: var(--radius-md);
  margin: 0 auto;
  display: block;
}

.lightbox__slide:has(.lightbox__video) {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 2rem 1rem !important;
}

.lightbox__caption {
  margin-top: 1rem;
  font-weight: 600;
  text-align: center;
}

.lightbox__close,
.lightbox__arrow {
  position: absolute;
  z-index: 2;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--color-line-light);
  background: rgba(246, 243, 235, 0.08);
  color: var(--color-cream);
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.4s var(--ease-app);
}

.lightbox__close:hover,
.lightbox__arrow:hover {
  background: var(--color-amber);
  color: var(--color-forest-deep);
}

.lightbox__close {
  top: 1rem;
  right: 1rem;
}

.lightbox__arrow {
  top: 50%;
  translate: 0 -50%;
  display: none;
}

.lightbox__arrow--prev {
  left: 1.25rem;
}

.lightbox__arrow--next {
  right: 1.25rem;
}

.lightbox__arrow.swiper-button-disabled {
  opacity: 0.3;
  pointer-events: none;
}

.lightbox__counter {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  translate: -50% 0;
  z-index: 2;
  font-size: 0.88rem;
  color: #c5cdc2;
}

/* Scroll reveal */
.js [data-reveal] {
  opacity: 0;
  translate: 0 28px;
  transition: opacity 0.7s var(--ease-app), translate 0.7s var(--ease-app), transform 0.4s var(--ease-app), filter 0.4s var(--ease-app), box-shadow 0.4s var(--ease-app);
}

.js [data-reveal].is-visible {
  opacity: 1;
  translate: 0 0;
}

.js .services__card[data-reveal]:nth-child(2) { transition-delay: 0.06s, 0.06s, 0s, 0s, 0s; }
.js .services__card[data-reveal]:nth-child(3) { transition-delay: 0.12s, 0.12s, 0s, 0s, 0s; }
.js .services__card[data-reveal]:nth-child(5) { transition-delay: 0.06s, 0.06s, 0s, 0s, 0s; }

/* Reviews */
.review-rating-summary {
  display: inline-flex;
  align-items: center;
  align-self: start;
  background: var(--color-charcoal);
  color: var(--color-cream);
  padding: 0.7rem 1rem;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 600;
}

.stars-gold {
  color: #f5c451;
  letter-spacing: 0.08em;
}

.reviews-swiper {
  padding: 0.5rem 0 4.25rem;
}

.reviews-swiper .swiper-slide {
  height: auto;
}

.reviews__card {
  height: 100%;
  background: #ffffff;
  border-radius: 1rem;
  padding: 1.35rem 1.25rem;
  box-shadow: 0 1px 2px rgba(17, 24, 17, 0.06), 0 8px 24px -12px rgba(17, 24, 17, 0.18);
  transition: transform 0.4s var(--ease-app), box-shadow 0.4s var(--ease-app);
}

.reviews-swiper .swiper-pagination {
  bottom: 1.15rem;
  left: 50%;
  width: auto;
  translate: -50% 0;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.reviews-swiper .swiper-pagination-bullet {
  width: 0.5rem;
  height: 0.5rem;
  margin: 0 !important;
  border-radius: var(--radius-pill);
  background: var(--color-forest);
  opacity: 0.22;
  transition: width 0.4s var(--ease-app), opacity 0.3s ease;
}

.reviews-swiper .swiper-pagination-bullet-active {
  width: 1.6rem;
  opacity: 1;
}

.swiper-button-prev-custom,
.swiper-button-next-custom {
  position: absolute;
  bottom: 0.25rem;
  z-index: 10;
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #ffffff;
  color: var(--color-forest);
  box-shadow: 0 4px 14px -6px rgba(17, 24, 17, 0.35);
  cursor: pointer;
  transition: transform 0.4s var(--ease-app), background 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.swiper-button-prev-custom {
  left: 0;
}

.swiper-button-next-custom {
  right: 0;
}

.swiper-button-prev-custom:hover,
.swiper-button-next-custom:hover {
  background: var(--color-forest);
  color: var(--color-cream);
}

.swiper-button-prev-custom:active,
.swiper-button-next-custom:active {
  transform: scale(0.92);
}

.swiper-button-prev-custom.swiper-button-disabled,
.swiper-button-next-custom.swiper-button-disabled {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
}

.swiper-button-prev-custom.swiper-button-lock,
.swiper-button-next-custom.swiper-button-lock {
  display: none;
}

.reviews__stars {
  color: var(--color-amber);
  letter-spacing: 0.08em;
}

.reviews__text {
  margin: 0.65rem 0 1rem;
}

.reviews__author {
  color: var(--color-muted);
  font-size: 0.92rem;
}

/* Quote form */
.quote {
  background: var(--color-forest-soft);
  padding: var(--space-8) 0;
}

.quote__inner {
  width: var(--container);
  margin: 0 auto;
  display: grid;
  gap: var(--space-6);
}

.quote__lede,
.quote-section__lead-desc {
  margin: 1rem 0 1.4rem;
  color: var(--color-muted);
  max-width: 30rem;
}

.quote-section__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 0.85rem;
  color: var(--color-forest);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.quote-section__title {
  font-family: var(--font-sans);
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 700;
}

.quote-section__title em {
  color: var(--color-forest);
  font-style: italic;
}

.quote__points,
.quote-section__trust-list {
  list-style: none;
  display: grid;
  gap: 0.6rem;
  margin-bottom: 1.6rem;
}

.quote__point,
.quote-section__trust-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
}

.quote__point .fa-check,
.quote-section__check-circle {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--color-forest);
  color: var(--color-cream);
  font-size: 0.7rem;
  flex-shrink: 0;
}

.quote__phone,
.quote-section__direct-call {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-weight: 700;
  color: var(--color-forest);
}

.quote__phone {
  border-bottom: 2px solid var(--color-amber);
  padding-bottom: 0.15rem;
}

.quote-section__direct-call a {
  border-bottom: 2px solid var(--color-amber);
  padding-bottom: 0.15rem;
}

.quote-form {
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-top: 4px solid var(--color-amber);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.25rem;
  box-shadow: var(--shadow-card);
}

.quote-form__honey {
  display: none;
}

.quote-form__grid,
.quote-form__row {
  display: grid;
  gap: 1rem;
}

.quote-form__field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.quote-form__label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-charcoal);
}

.quote-form__req {
  color: var(--color-amber-hover);
}

.quote-form__input {
  width: 100%;
  min-height: 3rem;
  padding: 0.7rem 0.9rem;
  border: 1.5px solid var(--color-cream-dark);
  border-radius: var(--radius-sm);
  background: var(--color-cream);
  color: var(--color-charcoal);
  font: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.quote-form__input::placeholder {
  color: #a8a29e;
}

.quote-form__input:focus {
  outline: none;
  background: #ffffff;
  border-color: var(--color-forest);
  box-shadow: 0 0 0 3px rgba(30, 63, 32, 0.15);
}

.quote-form__input:user-invalid {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

.quote-form__select {
  appearance: none;
  padding-right: 2.5rem;
  background-image: linear-gradient(45deg, transparent 50%, var(--color-forest) 50%), linear-gradient(135deg, var(--color-forest) 50%, transparent 50%);
  background-position: calc(100% - 1.2rem) 50%, calc(100% - 0.85rem) 50%;
  background-size: 0.35rem 0.35rem;
  background-repeat: no-repeat;
  cursor: pointer;
}

.quote-form__textarea {
  min-height: 8rem;
  resize: vertical;
}

.quote-form__upload-container {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.quote-form__input-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.quote-form__btn--upload {
  align-self: flex-start;
  background-color: #fcfbf7;
  color: #4a3b32;
  border: 2px dashed #b8a69a;
  padding: 12px 24px;
  font-weight: 600;
  font-size: 15px;
  border-radius: 8px;
  transition: all 0.25s ease;
  cursor: pointer;
}

.quote-form__btn--upload:hover {
  background-color: #f7f2eb;
  border-color: #8c7667;
}

.quote-form__preview-grid {
  display: flex;
  gap: 12px;
  margin-top: 15px;
  flex-wrap: wrap;
}

.quote-form__preview-item {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 6px;
  border: 2px solid #e1dcd6;
  overflow: visible;
  transition: transform 0.2s ease;
  animation: fadeInPreview 0.3s ease forwards;
}

.quote-form__preview-item:hover {
  transform: scale(1.05);
}

.quote-form__preview-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

.quote-form__remove-preview {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 20px;
  height: 20px;
  background: #ff3333;
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 11px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

@keyframes fadeInPreview {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

.quote-form__feedback {
  min-height: 1.2em;
  margin-top: 0.25rem;
  color: #ff3333;
  font-size: 0.875rem;
  font-weight: 500;
}

.quote-form__submit,
.btn--wide {
  width: 100%;
  margin-top: 1.25rem;
  cursor: pointer;
}

.quote-form__note {
  margin-top: 0.75rem;
  font-size: 0.82rem;
  color: var(--color-muted);
  text-align: center;
}

/* CTA */
.cta {
  position: relative;
  isolation: isolate;
  min-height: 28rem;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--color-white);
  padding: var(--space-8) 1rem;
  background-color: var(--color-forest-deep);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(12, 22, 13, 0.55), rgba(12, 22, 13, 0.78));
}

.cta__inner {
  position: relative;
  max-width: 46rem;
}

.cta__title {
  font-size: clamp(2.1rem, 7vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.cta__lede {
  margin: 1.1rem auto 1.5rem;
  max-width: 34rem;
  color: #e4ebe2;
}

.cta__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.trust-pills {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.5rem;
}

.trust-pills li {
  border: 1px solid var(--color-line-light);
  border-radius: var(--radius-pill);
  padding: 0.35rem 0.8rem;
  font-size: 0.82rem;
}

/* Footer */
.footer {
  background: #0e1a0f;
  color: #d5ddd3;
  padding: var(--space-8) 0 6.5rem;
}

.footer__grid {
  width: var(--container);
  margin: 0 auto;
  display: grid;
  gap: 2rem;
}

.footer__blurb,
.footer__brand-summary {
  margin: 1rem 0;
  max-width: 26rem;
  color: #aeb8ac;
}

.footer__logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--color-cream);
  font-weight: 800;
  letter-spacing: 0.04em;
}

.footer__logo-asset {
  width: 3.5rem;
  height: 3.5rem;
  object-fit: contain;
}

.footer__brand-name {
  line-height: 1.1;
  font-size: 0.95rem;
}

.footer__brand-name small {
  font-size: 0.72em;
  letter-spacing: 0.12em;
}

.footer__phone,
.footer__brand-direct-phone a {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--color-amber);
  letter-spacing: -0.04em;
}

.footer__brand-geotag {
  margin-top: 0.45rem;
  color: #9aa597;
}

.footer__address {
  margin-top: 0.35rem;
  font-style: normal;
  color: #9aa597;
}

.footer__list a {
  overflow-wrap: anywhere;
}

.footer__heading {
  color: var(--color-cream);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}

.footer__list {
  list-style: none;
  display: grid;
  gap: 0.45rem;
}

.footer__list a:hover {
  color: var(--color-amber);
}

.footer__bottom {
  width: var(--container);
  margin: 2.4rem auto 0;
  padding-top: 1.2rem;
  border-top: 1px solid var(--color-line-light);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: #e4e8de;
}

.footer__copyright strong {
  color: var(--color-white);
  font-weight: 700;
}

.footer__bottom a:hover {
  color: var(--color-amber);
}

.brand--on-dark .brand__logo {
  height: 5.75rem;
}

.brand--on-dark .brand__tag {
  color: #b7c3b4;
}

.footer__credit-lead {
  margin-right: 0.3rem;
}

.footer__credit a {
  color: var(--color-cream);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer__credit a:hover {
  color: var(--color-amber);
}

.call-fab {
  position: fixed;
  right: 0.85rem;
  bottom: calc(2.5rem + env(safe-area-inset-bottom));
  z-index: 60;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: #22c55e;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
  transition: transform 0.4s var(--ease-app), filter 0.2s ease;
}

.call-fab:active {
  transform: scale(0.92);
}

.call-fab:hover {
  transform: scale(1.06);
  filter: brightness(1.08);
}

.call-fab__icon {
  font-size: 1rem;
}

.call-fab__label {
  display: none;
  font-weight: 700;
  white-space: nowrap;
}

@media (max-width: 899px) {
  .footer {
    text-align: center !important;
  }

  .footer__grid {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 2.5rem !important;
  }

  .footer__col {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    width: 100% !important;
  }

  .footer__list {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .footer__list li {
    text-align: center !important;
    width: 100% !important;
  }

  .footer__brand,
  .footer__col--brand {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
  }

  .brand--on-dark {
    justify-content: center !important;
    margin-bottom: 1rem !important;
  }

  .footer__bottom {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 1rem !important;
  }
}

@media (min-width: 640px) {
  .services__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quote-form {
    padding: 2rem;
  }

  .quote-form__grid,
  .quote-form__row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quote-form__field--full {
    grid-column: 1 / -1;
  }

  .quote-form__submit:not(.btn--wide) {
    width: auto;
  }

  .quote-form__note {
    text-align: left;
  }

  .photo-cta__inner,
  .cta-banner-strip__wrapper {
    grid-template-columns: 1fr auto;
    align-items: center;
    padding: 1.8rem 1.8rem;
  }

  .call-fab {
    right: 1.5rem;
    bottom: 1.5rem;
    width: auto;
    height: 3rem;
    padding: 0 1.15rem;
    border-radius: var(--radius-pill);
  }

  .call-fab__label {
    display: inline;
  }

  .footer {
    padding-bottom: var(--space-7);
  }
}

@media (min-width: 900px) {
  .header {
    overflow: visible;
  }

  .header__burger {
    display: none;
  }

  .header__inner {
    position: relative;
    overflow: visible;
    flex-wrap: nowrap;
    gap: var(--space-5);
  }

  .brand,
  .header__brand {
    flex-shrink: 0;
  }

  .nav {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    margin-left: auto;
    max-height: none;
    overflow: visible;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
  }

  .nav__list {
    flex-direction: row;
    align-items: center;
    gap: 0;
  }

  .nav__link {
    padding: 0.7rem 0.75rem;
  }

  .nav__link::after {
    left: 0.75rem;
    right: 0.75rem;
  }

  .header__cta {
    align-self: center;
    flex-shrink: 0;
  }

  .nav__item--has-dropdown {
    position: relative;
  }

  .nav__dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 80;
    min-width: 13.5rem;
    background: var(--color-white);
    border: 1px solid var(--color-line);
    border-radius: 0.9rem;
    padding: 0.55rem;
    box-shadow: var(--shadow-card);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(6px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  }

  .nav__item--has-dropdown:hover .nav__dropdown,
  .nav__item--has-dropdown:focus-within .nav__dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }

  .nav__dropdown-link {
    padding: 0.5rem 0.7rem;
    border-radius: 0.55rem;
  }

  .nav__dropdown-link:hover {
    background: var(--color-cream);
    color: var(--color-forest);
  }

  .hero__inner {
    padding: 7.5rem 0 3.2rem;
  }

  .about__grid,
  .about__container {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
  }

  .section-head--split {
    grid-template-columns: 1fr 1fr;
    align-items: end;
  }

  .section-head__aside {
    justify-self: end;
  }

  .services__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    grid-auto-rows: 1fr;
  }

  .services__card {
    grid-column: span 1 !important;
  }

  .services__media,
  .services__image {
    aspect-ratio: auto;
    height: 14rem;
  }

  .brand__tag,
  .header__subtitle {
    font-size: 0.65rem;
    letter-spacing: 0.12em;
  }

  .why__grid,
  .features__container {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 3rem;
  }

  .features__photo {
    min-height: 100%;
    aspect-ratio: auto;
  }

  .reviews__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 2px 4px rgba(17, 24, 17, 0.06), 0 18px 36px -16px rgba(17, 24, 17, 0.28);
  }

  .lightbox__arrow {
    display: grid;
  }

  .quote__inner {
    grid-template-columns: 0.85fr 1.15fr;
    align-items: start;
    gap: 3.5rem;
  }

  .quote__intro,
  .quote-section__details-side {
    position: sticky;
    top: calc(var(--header-h) + 2rem);
  }

  .footer__grid {
    grid-template-columns: 1.4fr 0.8fr 0.8fr 0.9fr;
  }
}

@media (min-width: 900px) and (max-width: 1149px) {
  .header__inner {
    gap: 0.5rem;
  }

  .brand__logo,
  .header__logo {
    height: 2.75rem;
  }

  .nav {
    gap: 0.35rem;
  }

  .nav__link {
    padding: 0.7rem 0.2rem;
    font-size: 0.82rem;
  }

  .nav__link::after {
    left: 0.2rem;
    right: 0.2rem;
  }

  .nav__item--socials {
    gap: 0.65rem;
    padding: 0.5rem 0.15rem;
  }

  .header__cta {
    padding-left: 0.55rem;
    padding-right: 0.55rem;
  }
}

/* Header socials */
.nav__item--socials {
  display: inline-flex;
  align-items: center;
  gap: 1.15rem;
  padding: 0.7rem 0.75rem;
}

.nav__social-link {
  font-size: 1.25rem;
  color: var(--color-forest);
  transition: transform 0.3s var(--ease-app), color 0.2s ease, opacity 0.2s ease;
}

/* Static Brand Colors for Header Social Icons */
.nav__social-link:has(.fa-facebook) {
  color: #1877f2 !important;
}

.nav__social-link:has(.fa-instagram) {
  color: #e1306c !important;
}

/* Keep micro-interaction hover scaling intact */
.nav__social-link:hover {
  transform: scale(1.15);
  opacity: 0.9;
}

/* Ensure the bottom border accent indicator lines do not show under the social icons on hover */
.nav__item--socials .nav__social-link::after {
  display: none !important;
}

/* Footer socials */
.footer__socials {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.footer__social-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(246, 243, 235, 0.08);
  border: 1px solid var(--color-line-light);
  color: var(--color-cream);
  font-size: 1.15rem;
  transition: background 0.25s ease, color 0.25s ease, transform 0.3s var(--ease-app);
}

.footer__social-icon:hover {
  background: var(--color-amber) !important;
  color: var(--color-white) !important;
  transform: translateY(-2px);
}

.footer__social-icon:has(.fa-facebook):hover {
  color: #1877f2 !important;
  background: rgba(24, 119, 242, 0.12) !important;
  border-color: #1877f2 !important;
}

.footer__social-icon:has(.fa-instagram):hover {
  color: #e1306c !important;
  background: rgba(225, 48, 108, 0.12) !important;
  border-color: #e1306c !important;
}

@media (max-width: 899px) {
  .footer__socials {
    justify-content: center !important;
    margin-top: 1.25rem !important;
  }

  .nav__item--socials {
    justify-content: center !important;
    padding: 1rem 0 !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn,
  .services__card,
  .gallery__trigger img,
  .call-fab,
  .lightbox[open] {
    animation: none;
    transition: none;
  }

  .js [data-reveal] {
    opacity: 1;
    translate: 0 0;
    transition: none;
  }

  .ticker__track {
    animation-play-state: paused !important;
  }
}

/* Hide by default on desktop/tablet */
.call-fab {
  display: none !important;
}

/* Only show on mobile devices under 640px wide */
@media (max-width: 639px) {
  .call-fab {
    display: inline-flex !important;
  }
}

@media (max-width: 639px) {
  .footer__bottom {
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    gap: 0.25rem !important; /* Tightens the vertical space */
    font-size: 0.72rem !important; /* Slightly scales down text so it fits small mobile grids in a single line */
  }

  .footer__copyright,
  .footer__credit {
    white-space: nowrap !important; /* Prevents words from breaking onto a second line */
    margin: 0 !important;
    display: block !important;
    width: 100% !important;
  }

  .footer__top {
    display: inline-block !important;
    width: auto !important;
    margin-top: 0.5rem !important;
    padding: 0.2rem var(--space-2) !important;
    color: var(--color-cream) !important;
    font-size: 0.8rem !important;
  }
}

.footer__top {
  color: var(--color-cream);
}

.footer__top:hover {
  color: var(--color-amber);
}

/* Quote Success Alert Styling */
.quote-alert {
  background: #fdf8f5 !important;
  border: 1.5px solid var(--color-amber) !important;
  border-left: 5px solid var(--color-amber) !important;
  border-radius: var(--radius-md) !important;
  padding: 1.25rem 1.5rem !important;
  margin-bottom: 2rem !important;
  box-shadow: 0 10px 25px -5px rgba(156, 79, 35, 0.08) !important;
  animation: slideInDownApp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.quote-alert__content {
  display: flex;
  align-items: start;
  gap: 1.15rem;
}

.quote-alert__icon {
  font-size: 1.75rem;
  color: #22c55e;
  padding-top: 0.15rem;
}

.quote-alert__title {
  font-size: 1.15rem !important;
  font-weight: 700 !important;
  color: var(--color-charcoal) !important;
  margin-bottom: 0.25rem !important;
}

.quote-alert__desc {
  font-size: 0.92rem !important;
  color: var(--color-muted) !important;
  margin: 0 !important;
  line-height: 1.4 !important;
}

.form-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
}

.form-modal-overlay.is-open {
  display: flex;
}

.form-modal-card {
  position: relative;
  width: min(480px, 90%);
  padding: 2.5rem;
  border-radius: 8px;
  background: #112211;
  border: 1px solid #c5e3b8;
  color: #ffffff;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.form-modal-card__close {
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  padding: 0.2rem;
  border: 0;
  background: transparent;
  color: #c5e3b8;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.form-modal-card__close:hover {
  transform: scale(1.2);
}

.form-modal-card__icon {
  font-size: 3rem;
  color: #c5e3b8;
  margin-bottom: 1rem;
}

.form-modal-card__title {
  margin: 0 0 0.5rem;
  font-size: 1.8rem;
  font-weight: 700;
}

.form-modal-card__desc {
  margin: 0;
  color: #e2e8f0;
  font-size: 1rem;
  line-height: 1.5;
}

@keyframes slideInDownApp {
  from { opacity: 0; transform: translateY(-15px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 639px) {
  .quote-alert__content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
  }
}

/* Hide the duplicate amber call button from the mobile navigation panel overlay drawer */
@media (max-width: 899px) {
  .header__cta {
    display: none !important;
  }

  /* Target the floating call button container */
  .call-fab,
  [class*="floating-call"],
  [class*="mobile-cta"] {
    bottom: 3.5rem !important; /* Raises the button safely off the very bottom window edge */
    right: 1.5rem !important;  /* Keeps it perfectly offset from the right boundary margins */
    z-index: 99999 !important; /* Guarantees it remains above the background section maps */
  }
}

@media (max-width: 899px) {
  /* Keep the header completely default and stable */
  .header {
    position: sticky !important;
    top: 0;
    z-index: 1000 !important;
    background: rgba(246, 243, 235, 0.98) !important;
  }
  
  /* Style the button trigger */
  .header__burger {
    border: 1px solid var(--color-line);
    background: var(--color-white);
    cursor: pointer;
  }

  /* Animate burger lines cleanly when the menu-open class is active on body */
  body.menu-open .header__burger-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.menu-open .header__burger-line:nth-child(2) { opacity: 0; }
  body.menu-open .header__burger-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* Clear out hidden checkbox code selectors */
  .header__toggle, .header__toggle:checked ~ .nav { display: none !important; }

  /* 1. Force topbar copy text and call link to stack vertically into 2 rows */
  .topbar {
    padding: 0.5rem var(--space-4) !important;
    min-height: auto !important;
    height: auto !important;
  }
  
  .topbar__copy {
    display: flex !important;
    flex-direction: column !important; /* Forces the tap to call block straight onto line 2 */
    align-items: center !important;
    justify-content: center !important;
    gap: 0.15rem !important; /* Tight vertical row gap */
    line-height: 1.3 !important;
    text-align: center !important;
  }
  
  /* Completely hide the bullet dot divider since elements are now stacked vertically */
  .topbar__dot {
    display: none !important;
  }

  /* 2. Tighten mobile navigation container gaps to eliminate scrolling requirements */
  .nav {
    display: block !important;
    position: fixed !important;
    top: var(--header-h) !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    height: calc(100vh - var(--header-h)) !important;
    width: 100vw !important;
    background: #fbfaf6 !important;
    z-index: 999 !important;
    padding: 1rem 1.25rem !important; /* Trims upper empty container margins */
    overflow-y: auto !important;
    
    /* Hide by default using standard transitions */
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(10px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease !important;
  }

  /* Instantly reveal the menu perfectly when body has the active menu-open class */
  body.menu-open .nav {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
  }

  /* Clean up mobile background freeze behavior */
  body.menu-open {
    position: fixed !important;
    width: 100vw !important;
    overflow: hidden !important;
  }

  /* Compress the main link stack vertical margins */
  .nav__list {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.1rem !important; /* Shaves padding real estate between options */
  }

  .nav__link {
    font-size: 1.15rem !important;
    padding: 0.35rem 0 !important; /* Super tight tap areas */
  }

  /* Tighten nested services text rows layout grid */
  .nav__dropdown {
    padding: 0 0 0.25rem 0.75rem !important;
  }

  .nav__dropdown-link {
    padding: 0.2rem 0 !important;
    font-size: 0.88rem !important;
  }

  /* Pull social media logos up immediately beneath the last list item link node */
  .nav__item--socials {
    margin-top: 0.75rem !important;
    padding: 0.65rem 0 0 0 !important;
    border-top: 1px solid var(--color-line) !important;
    display: flex !important;
    justify-content: center !important;
    gap: 1.75rem !important;
  }
}

.error-page__content {
  padding: 5rem 1rem;
  text-align: center;
  background: var(--color-cream);
}

.error-page__container {
  max-width: 600px;
  margin: 0 auto;
}

.error-page__icon {
  margin-bottom: 1.5rem;
  color: var(--color-amber);
  font-size: 4rem;
  line-height: 1;
}

.error-page__title {
  margin-bottom: 1rem;
  color: var(--color-charcoal);
  font-family: var(--font-sans);
  font-size: clamp(2rem, 5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.error-page__text {
  margin-bottom: 2.5rem;
  color: #4a4a4a;
  font-size: 1.1rem;
  line-height: 1.6;
}

.error-page__actions .btn {
  display: inline-flex;
}

/* Custom edit pencils for logged-in editors */
body.mts-custom-pencils .mts-edit-pencil {
  position: relative;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  margin: 0 8px 0 0;
  padding: 0;
  border: 2px solid #ffffff;
  border-radius: 50%;
  background: #1877f2;
  color: #ffffff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.28);
  cursor: pointer;
  vertical-align: middle;
  line-height: 1;
  flex: 0 0 26px;
  pointer-events: auto;
}

body.mts-custom-pencils .mts-edit-pencil i,
body.mts-custom-pencils .mts-edit-pencil svg {
  width: 12px;
  height: 12px;
  font-size: 11px;
  display: block;
  pointer-events: none;
}

body.mts-custom-pencils .customize-partial-edit-shortcut {
  display: none !important;
}

body.mts-custom-pencils .mts-edit-pencil:hover,
body.mts-custom-pencils .mts-edit-pencil:focus-visible {
  background: #0d65d9;
  outline: 2px solid #1877f2;
  outline-offset: 2px;
}

body.mts-custom-pencils .mts-edit-pencil--beside {
  margin: 0 8px;
}

body.mts-custom-pencils .mts-edit-pencil-host {
  position: relative;
  overflow: visible !important;
}

body.mts-custom-pencils .mts-edit-pencil-host > .mts-edit-pencil {
  position: absolute;
  top: 12px;
  left: 12px;
  margin: 0;
}

body.mts-custom-pencils .hero.mts-edit-pencil-host > .mts-edit-pencil {
  top: 16px;
  left: max(16px, calc((100% - var(--container)) / 2));
}

body.mts-custom-pencils .hero,
body.mts-custom-pencils .hero__inner,
body.mts-custom-pencils .hero__copy,
body.mts-custom-pencils .about__content-column,
body.mts-custom-pencils .about__media-column,
body.mts-custom-pencils .features__content-side,
body.mts-custom-pencils .features__image-side,
body.mts-custom-pencils .features__photo-frame,
body.mts-custom-pencils .section-head,
body.mts-custom-pencils .cta-banner-strip,
body.mts-custom-pencils .quote-section__details-side,
body.mts-custom-pencils .gallery {
  overflow: visible;
}

body.mts-custom-pencils .hero__overlay {
  pointer-events: none;
}

body.mts-custom-pencils .about__video,
body.mts-custom-pencils .features__photo {
  border-radius: var(--radius-lg);
}

/* Customizer Edit Pencil Global Alignment Overrides */
body.customize-support .customize-partial-edit-shortcut button {
  background-color: #1877f2 !important;
  border-color: #1877f2 !important;
}

body.customize-support .section-title,
body.customize-support .quote-section__title,
body.customize-support .hero__main-statement,
body.customize-support .services .section-title,
body.customize-support .reviews .section-title {
  overflow: visible !important;
  position: relative !important;
}

/* Customizer Absolute Layer Fixing Vector */
body.customize-support .hero,
body.customize-support .hero__inner,
body.customize-support .hero__copy,
body.customize-support .about__content-column,
body.customize-support .features__content-side,
body.customize-support .cta-banner-strip,
body.customize-support .cta-banner-strip__text-side,
body.customize-support .section-head,
body.customize-support .quote-section__details-side,
body.customize-support .hero__title,
body.customize-support .about__hero-statement,
body.customize-support .cta-banner-strip__title,
body.customize-support .features__main-title,
body.customize-support .reviews .section-title,
body.customize-support .quote-section__title,
body.customize-support .hero--bottom .hero__main-statement,
body.customize-support #mts-hero-eyebrow-container,
body.customize-support #mts-about-eyebrow-container {
  position: relative;
  overflow: visible !important;
}

body.customize-support .hero__overlay {
  pointer-events: none;
}

body.customize-support .customize-partial-edit-shortcut,
.hero__title .customize-partial-edit-shortcut,
.about__hero-statement .customize-partial-edit-shortcut,
.features__main-title .customize-partial-edit-shortcut,
.cta-banner-strip__title .customize-partial-edit-shortcut {
  position: relative !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  float: none !important;
  transform: none !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: auto !important;
  height: auto !important;
  margin: 0 0 0 8px !important;
  padding: 0 !important;
  vertical-align: middle !important;
  z-index: 99999 !important;
  pointer-events: auto !important;
}

body.customize-support .customize-partial-edit-shortcut button {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  background: #1877f2 !important;
  color: #fff !important;
  border: 1px solid #fff !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25) !important;
  border-radius: 50% !important;
  width: 26px !important;
  height: 26px !important;
  min-width: 26px !important;
  min-height: 26px !important;
  line-height: 24px !important;
  cursor: pointer !important;
  pointer-events: auto !important;
}
