/* =========================================================
   TitanShield Pest Control — Texas, USA
   Theme: Dark green #1A3C2E / green-gold / green-white
   Font: Inter
   Breakpoints: tablet 768–1023.98px, mobile ≤767.98px
   ========================================================= */

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

html,
body,
div,
span,
figure,
h1,
h2,
h3,
h4,
h5,
h6,
p,
a,
img,
i,
ol,
ul,
li,
form,
label,
main,
footer,
header,
nav,
section,
article,
blockquote {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden; /* fallback — contains off-canvas / fixed elements */
  overflow-x: clip;
}

footer,
header,
nav,
section,
main,
article {
  display: block;
}

ol,
ul {
  list-style: none;
}

input {
  -webkit-appearance: none;
  border-radius: 0;
}

input,
textarea,
button,
select {
  font-family: inherit;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  border: transparent;
  cursor: pointer;
  background: none;
}

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

/* ---------- Variables ---------- */
:root {
  --green-deep: #12281e;
  --green-dark: #1a3c2e;
  --green: #245440;
  --green-light: #2f6a51;
  --gold: #c9a227;
  --gold-light: #e6c14b;
  --gold-dark: #a8861a;
  --cream: #f4f1e8;
  --cream-2: #eae5d6;
  --white: #ffffff;
  --ink: #16271f;
  --muted: #5b6b62;
  --line: rgba(201, 162, 39, 0.25);
  --shadow: 0 10px 30px rgba(11, 27, 20, 0.18);
  --radius: 16px;
  --header-h: 77px;
}

/* ---------- Base ---------- */
body {
  font-size: 18px;
  color: var(--ink);
  line-height: 1.6;
  min-height: 100vh;
  background-color: var(--cream);
  display: flex;
  flex-direction: column;
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-weight: 400;
  overflow-x: hidden; /* fallback */
  overflow-x: clip; /* clips off-canvas menu without breaking sticky header */
}

main {
  flex: 1 0 auto;
}

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

.section {
  padding: 80px 0;
}

.section--dark {
  background-color: var(--green-dark);
  color: var(--white);
}

.section--deep {
  background-color: var(--green-deep);
  color: var(--white);
}

.section--light {
  background-color: var(--cream);
  color: var(--ink);
}

.section--white {
  background-color: var(--white);
  color: var(--ink);
}

.section__head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 48px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.section__title {
  font-size: 2.4rem;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.section--light .section__title,
.section--white .section__title {
  color: var(--green-dark);
}

.section__subtitle {
  margin-top: 16px;
  font-size: 1.05rem;
  color: inherit;
  opacity: 0.92;
}

.section--light .section__subtitle,
.section--white .section__subtitle {
  color: var(--muted);
  opacity: 1;
}

.text-gold {
  color: var(--gold);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: 999px;
  white-space: nowrap;
  text-align: center;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background-color 0.25s ease,
    color 0.25s ease;
  cursor: pointer;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn--gold {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--green-deep);
  box-shadow: 0 8px 20px rgba(201, 162, 39, 0.35);
}

.btn--phone {
  background-color: var(--white);
  color: var(--green-dark);
  border: 2px solid transparent;
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.55);
}

.section--light .btn--outline,
.section--white .btn--outline {
  color: var(--green-dark);
  border-color: var(--green-dark);
}

@media (hover: hover) {
  .btn:hover {
    transform: translateY(-3px);
  }
  .btn--gold:hover {
    box-shadow: 0 12px 28px rgba(201, 162, 39, 0.5);
  }
  .btn--phone:hover {
    background-color: var(--gold);
    color: var(--green-deep);
  }
  .btn--outline:hover {
    background-color: var(--white);
    color: var(--green-dark);
    border-color: var(--white);
  }
}

.btn--block {
  width: 100%;
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.cta-group--center {
  justify-content: center;
}

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--green-dark);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition:
    box-shadow 0.3s ease,
    background-color 0.3s ease;
}

.header.scrolled {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
  background-color: var(--green-deep);
}

.header__wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
  padding: 10px 20px;
  max-width: 1280px;
  margin: 0 auto;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo__img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.logo__text {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--white);
  line-height: 1.05;
}

.logo__text span {
  display: block;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav__item {
  position: relative;
  font-size: 0.98rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
  padding: 6px 0;
  transition: color 0.25s ease;
}

.nav__item::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: var(--gold);
  transition: width 0.3s ease;
}

@media (hover: hover) {
  .nav__item:hover {
    color: var(--white);
  }
  .nav__item:hover::after {
    width: 100%;
  }
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.header__phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--white);
  white-space: nowrap;
}

.header__phone svg {
  width: 18px;
  height: 18px;
  color: var(--gold);
}

.nav__item--mobile {
  display: none;
}

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 22px;
  cursor: pointer;
  z-index: 120;
}

.burger__line {
  width: 100%;
  height: 3px;
  border-radius: 3px;
  background-color: var(--white);
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}

.burger.active .burger__line:nth-of-type(1) {
  transform: translateY(9.5px) rotate(45deg);
}

.burger.active .burger__line:nth-of-type(2) {
  opacity: 0;
}

.burger.active .burger__line:nth-of-type(3) {
  transform: translateY(-9.5px) rotate(-45deg);
}

/* ---------- Hero (Top / UT Section) ---------- */
.hero {
  position: relative;
  background-color: var(--green-dark);
  color: var(--white);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

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

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    100deg,
    rgba(18, 40, 30, 0.96) 0%,
    rgba(26, 60, 46, 0.85) 45%,
    rgba(26, 60, 46, 0.45) 100%
  );
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero__wrapper {
  max-width: 640px;
  padding: 96px 0 104px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  background-color: rgba(201, 162, 39, 0.18);
  border: 1px solid var(--gold);
  color: var(--gold-light);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 22px;
}

.hero__title {
  font-size: 3.1rem;
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero__title span {
  color: var(--gold);
}

.hero__list {
  margin: 28px 0 34px;
  display: grid;
  gap: 14px;
}

.hero__list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 1.08rem;
}

.hero__list li svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--gold);
  margin-top: 2px;
}

.hero__list strong {
  font-weight: 700;
  color: var(--gold-light);
}

/* ---------- Services Section ---------- */
.services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.service-card {
  display: flex;
  flex-direction: column;
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

@media (hover: hover) {
  .service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(11, 27, 20, 0.22);
  }
}

.service-card__icon {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  background-color: var(--green-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.service-card__icon img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.service-card__title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--green-dark);
  margin-bottom: 14px;
}

.service-card__list {
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
  flex: 1 0 auto;
}

.service-card__list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.98rem;
  color: var(--muted);
}

.service-card__list li svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--gold-dark);
  margin-top: 3px;
}

.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--green-dark);
  align-self: flex-start;
  transition:
    gap 0.25s ease,
    color 0.25s ease;
}

.service-card__link svg {
  width: 16px;
  height: 16px;
  transition: transform 0.25s ease;
}

@media (hover: hover) {
  .service-card__link:hover {
    color: var(--gold-dark);
  }
  .service-card__link:hover svg {
    transform: translateX(4px);
  }
}

/* ---------- How It Works (Steps) ---------- */
.steps__layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.steps__list {
  display: grid;
  gap: 26px;
}

.step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.step__num {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--green-deep);
  font-size: 1.4rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step__title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.step__text {
  opacity: 0.88;
  font-size: 1rem;
}

.steps__media {
  position: relative;
}

.steps__media img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.steps__cta {
  margin-top: 44px;
  text-align: center;
}

.steps__cta-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--gold-light);
}

/* ---------- Our Team ---------- */
.team__layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 48px;
  align-items: center;
}

.team__media {
  position: relative;
}

.team__media img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.team__badge {
  position: absolute;
  right: -12px;
  bottom: -20px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--green-deep);
  padding: 16px 22px;
  border-radius: 14px;
  font-weight: 800;
  font-size: 1.05rem;
  max-width: 200px;
  line-height: 1.25;
  box-shadow: var(--shadow);
}

.team__lead {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 18px;
}

.team__checks {
  display: grid;
  gap: 12px;
  margin: 26px 0;
}

.team__checks li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-weight: 600;
  color: var(--green-dark);
}

.team__checks li svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--gold-dark);
  margin-top: 2px;
}

/* ---------- Reviews Carousel ---------- */
.reviews {
  overflow: hidden;
}

.reviews__track-wrap {
  position: relative;
  overflow: hidden;
  margin: 0;
  padding: 8px 0;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    #000 6%,
    #000 94%,
    transparent
  );
  mask-image: linear-gradient(
    to right,
    transparent,
    #000 6%,
    #000 94%,
    transparent
  );
}

.reviews__track {
  display: flex;
  gap: 24px;
  width: max-content;
  padding: 0 20px;
  animation: reviews-scroll 70s linear infinite;
}

.reviews__track:hover {
  animation-play-state: paused;
}

@keyframes reviews-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.review-card {
  flex: 0 0 360px;
  width: 360px;
  background-color: var(--white);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
}

.review-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.review-card__stars {
  color: var(--gold);
  font-size: 1rem;
  letter-spacing: 1px;
}

.review-card__date {
  font-size: 0.85rem;
  color: var(--muted);
}

.review-card__text {
  font-size: 0.98rem;
  color: #3a4a42;
  flex: 1 0 auto;
}

.review-card__author {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  color: var(--green-dark);
}

.review-card__avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-light), var(--green-dark));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  flex-shrink: 0;
}

/* ---------- Experts / Hours / Mission ---------- */
.experts__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hours {
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 26px;
  box-shadow: var(--shadow);
  margin: 26px 0 30px;
}

.hours__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--green-dark);
  margin-bottom: 14px;
}

.hours__title svg {
  width: 22px;
  height: 22px;
  color: var(--gold-dark);
}

.hours__row {
  display: flex;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px dashed var(--line);
  color: var(--muted);
}

.hours__row:last-child {
  border-bottom: 0;
}

.hours__row span:last-child {
  font-weight: 700;
  color: var(--green-dark);
}

.mission {
  position: relative;
}

.mission__media img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.mission__quote {
  position: relative;
  margin-top: 24px;
  padding: 24px 26px;
  background-color: var(--green-dark);
  color: var(--white);
  border-radius: var(--radius);
  font-style: italic;
  font-size: 1.05rem;
  border-left: 4px solid var(--gold);
}

.mission__logo {
  width: 48px;
  height: 48px;
  margin-bottom: 14px;
}

/* ---------- FAQ ---------- */
.faq__wrapper {
  max-width: 860px;
  margin: 0 auto;
}

.accordion__item {
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 14px;
  overflow: hidden;
}

.accordion__header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  text-align: left;
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--green-dark);
  transition: color 0.25s ease;
}

.accordion__header span {
  display: flex;
  gap: 12px;
}

.accordion__num {
  color: var(--gold-dark);
  font-weight: 800;
}

.accordion__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.accordion__header.active {
  color: var(--gold-dark);
}

.accordion__header.active .accordion__icon {
  transform: rotate(180deg);
}

.accordion__content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.accordion__content p {
  padding: 0 24px 22px;
  color: var(--muted);
  font-size: 1rem;
}

/* ---------- CTA Banner / Footer Top ---------- */
.cta-banner {
  background-color: var(--green-deep);
  color: var(--white);
  text-align: center;
}

.cta-banner__title {
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1.15;
  max-width: 820px;
  margin: 0 auto 16px;
}

.cta-banner__text {
  max-width: 640px;
  margin: 0 auto 18px;
  opacity: 0.9;
}

.cta-banner__call {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 26px;
}

.cta-banner__features {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  justify-content: center;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
}

.cta-banner__features span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.cta-banner__features span::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--gold);
}

/* ---------- Footer ---------- */
.footer {
  flex-shrink: 0;
  background-color: var(--green-dark);
  color: rgba(255, 255, 255, 0.85);
  padding: 56px 0 0;
}

.footer__wrapper {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__about {
  max-width: 380px;
}

.footer .logo {
  margin-bottom: 18px;
}

.footer__disclaimer {
  font-size: 0.9rem;
  opacity: 0.78;
  margin-top: 14px;
}

.footer__title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 18px;
}

.footer__list {
  display: grid;
  gap: 12px;
}

.footer__list a,
.footer__list li {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.82);
  transition: color 0.25s ease;
}

.footer__list a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

@media (hover: hover) {
  .footer__list a:hover {
    color: var(--gold-light);
  }
}

.footer__contact-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}

.footer__contact-row svg {
  width: 18px;
  height: 18px;
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 3px;
}

.footer__legal {
  font-size: 0.82rem;
  line-height: 1.7;
  opacity: 0.65;
  padding: 26px 0;
}

.footer__copy {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 18px 0;
  text-align: center;
  font-size: 0.88rem;
  opacity: 0.8;
}

.footer__copy a {
  color: var(--gold-light);
  font-weight: 700;
}

/* ---------- Quote Modal ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background-color: rgba(8, 20, 14, 0.72);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

.modal.open {
  opacity: 1;
  visibility: visible;
}

.modal__box {
  width: 100%;
  max-width: 480px;
  background-color: var(--white);
  border-radius: var(--radius);
  padding: 34px 30px;
  position: relative;
  max-height: 92vh;
  overflow-y: auto;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.modal.open .modal__box {
  transform: translateY(0);
}

.modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--cream-2);
  color: var(--green-dark);
  font-size: 1.4rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal__title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--green-dark);
  margin-bottom: 6px;
}

.modal__subtitle {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 22px;
}

/* ---------- Forms ---------- */
.form__row {
  margin-bottom: 16px;
}

.input,
.textarea {
  width: 100%;
  padding: 13px 16px;
  font-size: 1rem;
  color: var(--ink);
  background-color: var(--cream);
  border: 1.5px solid var(--cream-2);
  border-radius: 10px;
  outline: none;
  transition:
    border-color 0.25s ease,
    background-color 0.25s ease;
}

.input::placeholder,
.textarea::placeholder {
  color: #9aa49e;
}

.input:focus,
.textarea:focus {
  border-color: var(--gold);
  background-color: var(--white);
}

.input.is-invalid,
.textarea.is-invalid {
  border-color: #d64545;
  background-color: #fdf2f2;
}

.textarea {
  resize: vertical;
  min-height: 96px;
}

.error-message {
  display: none;
  color: #d64545;
  font-size: 0.82rem;
  margin-top: 6px;
}

.error-message--visible {
  display: block;
}

.form__success {
  display: none;
  margin-bottom: 16px;
  padding: 12px 16px;
  border-radius: 10px;
  background-color: #e8f5ee;
  border: 1.5px solid #2f6a51;
  color: #1a3c2e;
  font-size: 0.95rem;
  font-weight: 600;
}

.form__success--visible {
  display: block;
}

.form__checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--muted);
}

.form__checkbox input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  border-radius: 5px;
  border: 1.5px solid var(--cream-2);
  background-color: var(--white);
  cursor: pointer;
  position: relative;
}

.form__checkbox input[type="checkbox"]:checked {
  background-color: var(--gold);
  border-color: var(--gold);
  background-image: url("../img/icons/check.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px 12px;
}

.form__checkbox input[type="checkbox"].is-invalid {
  border-color: #d64545;
}

.form__checkbox a {
  color: var(--gold-dark);
  font-weight: 600;
  text-decoration: underline;
}

.form__checkbox label {
  cursor: pointer;
  line-height: 1.4;
}

/* ---------- Scroll to top ---------- */
.scroll-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(201, 162, 39, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease,
    transform 0.3s ease;
}

.scroll-top.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top img {
  width: 20px;
  height: 20px;
  transform: rotate(180deg);
}

/* ---------- Cookie popup ---------- */
.cookie-popup {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 1100;
  max-width: 420px;
  width: calc(100% - 40px);
  background-color: var(--white);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
  border: 1px solid var(--line);
  transform: translateY(140%);
  transition: transform 0.4s ease;
}

.cookie-popup.show {
  transform: translateY(0);
}

.cookie-popup h2 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--green-dark);
  margin-bottom: 8px;
}

.cookie-popup p {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 16px;
}

.cookie-popup p a {
  color: var(--gold-dark);
  text-decoration: underline;
}

.cookie-popup .buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cookie-popup .buttons button {
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  transition:
    opacity 0.25s ease,
    transform 0.2s ease;
}

.cookie-popup .accept-all {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--green-deep);
}

.cookie-popup .reject-non-essential {
  background-color: var(--cream-2);
  color: var(--green-dark);
}

.cookie-popup .customize {
  background: transparent;
  color: var(--green-dark);
  text-decoration: underline;
}

@media (hover: hover) {
  .cookie-popup .buttons button:hover {
    transform: translateY(-2px);
  }
}

.cookie-settings {
  display: none;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.cookie-settings.show {
  display: block;
}

.cookie-settings .checkbox {
  margin-bottom: 12px;
}

.cookie-settings .checkbox__label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.4;
  cursor: pointer;
}

.cookie-settings input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  flex-shrink: 0;
  border-radius: 5px;
  border: 1.5px solid var(--cream-2);
  background-color: var(--white);
  cursor: pointer;
}

.cookie-settings input[type="checkbox"]:checked {
  background-color: var(--gold);
  border-color: var(--gold);
  background-image: url("../img/icons/check.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px 12px;
}

.cookie-settings input[type="checkbox"]:disabled {
  background-color: #c2cbc4;
  border-color: #c2cbc4;
  cursor: not-allowed;
}

.cookie-settings__save {
  width: 100%;
  margin-top: 6px;
  padding: 11px 16px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--green-deep);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

@media (hover: hover) {
  .cookie-settings__save:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(201, 162, 39, 0.35);
  }
}

/* ---------- Service Subpage ---------- */
.subhero {
  position: relative;
  background-color: var(--green-dark);
  color: var(--white);
  overflow: hidden;
}

.subhero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

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

.subhero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    100deg,
    rgba(18, 40, 30, 0.95) 0%,
    rgba(26, 60, 46, 0.8) 55%,
    rgba(26, 60, 46, 0.5) 100%
  );
}

.subhero .container {
  position: relative;
  z-index: 2;
}

.subhero__wrapper {
  max-width: 720px;
  padding: 80px 0 90px;
}

.subhero__title {
  font-size: 2.7rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.subhero__text {
  font-size: 1.08rem;
  opacity: 0.92;
  margin-bottom: 16px;
}

/* breadcrumb */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 0.85rem;
  opacity: 0.8;
  margin-bottom: 18px;
}

.breadcrumb a {
  color: var(--gold-light);
}

.breadcrumb span {
  opacity: 0.6;
}

/* alternating feature rows */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 64px;
}

.feature-row:last-child {
  margin-bottom: 0;
}

.feature-row--reverse .feature-row__media {
  order: 2;
}

.feature-row__media img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.feature-row__title {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--green-dark);
  margin-bottom: 18px;
}

.feature-row__intro {
  color: var(--muted);
  margin-bottom: 18px;
}

.feature-list {
  display: grid;
  gap: 12px;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--green-dark);
  font-weight: 500;
}

.feature-list li svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--gold-dark);
  margin-top: 3px;
}

/* ---------- Legal pages ---------- */
.legal {
  padding: 64px 0 80px;
}

.legal__wrapper {
  max-width: 880px;
  margin: 0 auto;
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 48px 50px;
  box-shadow: var(--shadow);
}

.legal__title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--green-dark);
  margin-bottom: 8px;
}

.legal__updated {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 28px;
}

.legal__wrapper h2 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--green-dark);
  margin: 30px 0 12px;
}

.legal__wrapper p,
.legal__wrapper li {
  color: #3a4a42;
  margin-bottom: 12px;
  font-size: 1rem;
}

.legal__wrapper ul {
  list-style: disc;
  padding-left: 22px;
  margin-bottom: 14px;
}

.legal__wrapper li {
  margin-bottom: 8px;
}

.legal__wrapper a {
  color: var(--gold-dark);
  text-decoration: underline;
}

.legal__intro {
  background-color: var(--cream);
  border-left: 4px solid var(--gold);
  padding: 16px 20px;
  border-radius: 8px;
  margin-bottom: 24px;
}

/* =========================================================
   SCROLL REVEAL (AOS-style, dependency-free)
   ========================================================= */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

[data-reveal="left"] {
  transform: translateX(-36px);
}

[data-reveal="right"] {
  transform: translateX(36px);
}

[data-reveal="zoom"] {
  transform: scale(0.92);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translate(0, 0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .reviews__track {
    animation: none !important;
  }
}

/* Shine sweep on the primary gold button */
.btn--gold {
  position: relative;
  overflow: hidden;
}

.btn--gold::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    100deg,
    transparent,
    rgba(255, 255, 255, 0.5),
    transparent
  );
  transform: skewX(-20deg);
  transition: left 0.6s ease;
}

@media (hover: hover) {
  .btn--gold:hover::after {
    left: 130%;
  }
}

/* =========================================================
   STATS BAND (animated counters)
   ========================================================= */
.stats-band {
  padding: 52px 0;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat {
  position: relative;
  padding: 0 10px;
}

.stat + .stat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 56px;
  width: 1px;
  background-color: rgba(255, 255, 255, 0.14);
}

.stat__num {
  font-size: 2.9rem;
  font-weight: 800;
  line-height: 1;
  color: var(--gold-light);
  letter-spacing: -0.02em;
}

.stat__label {
  margin-top: 10px;
  font-size: 0.95rem;
  opacity: 0.85;
}

/* =========================================================
   MOBILE STICKY CALL BAR
   ========================================================= */
.mobile-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 95;
  display: none;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  background-color: var(--green-deep);
  box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.28);
}

.mobile-cta a {
  flex: 0 0 50%;
  width: 50%;
  max-width: 50%;
  min-width: 0;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 8px;
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mobile-cta a svg {
  width: 18px;
  height: 18px;
}

.mobile-cta__call {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--green-deep);
  animation: cta-pulse 2.4s ease-in-out infinite;
}

.mobile-cta__quote {
  color: var(--white);
  border-left: 1px solid rgba(255, 255, 255, 0.16);
}

@keyframes cta-pulse {
  0%,
  100% {
    box-shadow: inset 0 0 0 0 rgba(255, 255, 255, 0);
  }
  50% {
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.35);
  }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-cta__call {
    animation: none;
  }
}

/* =========================================================
   TABLET  (768px – 1023.98px)
   ========================================================= */
@media (min-width: 768px) and (max-width: 1023.98px) {
  body {
    font-size: 17px;
  }
  .section {
    padding: 64px 0;
  }
  .section__title {
    font-size: 2rem;
  }
  .hero__title {
    font-size: 2.5rem;
  }
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .nav {
    gap: 18px;
  }
  .header__phone span {
    display: none;
  }
  .footer__wrapper {
    grid-template-columns: 1fr 1fr;
  }
  .footer__about {
    grid-column: 1 / -1;
    max-width: none;
  }
}

/* =========================================================
   MOBILE NAV  (≤1023.98px)  — burger menu
   ========================================================= */
@media (max-width: 1023.98px) {
  /* On mobile the header is fixed (not sticky): locking body scroll with
     overflow:hidden when the menu opens would break position:sticky and make
     the header "scroll away". Fixed keeps it pinned regardless of scroll lock.
     The body padding-top compensates for the header leaving the normal flow. */
  .header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
  }
  body {
    padding-top: var(--header-h, 77px);
  }
  .burger {
    display: flex;
  }
  /* Keep logo and burger above the open menu panel so they stay
     visible (and the burger stays tappable to close the menu). */
  .logo,
  .burger {
    position: relative;
    z-index: 130;
  }
  .header__inner {
    position: fixed;
    top: var(--header-h, 77px);
    right: 0;
    height: calc(100vh - var(--header-h, 77px));
    height: calc(100dvh - var(--header-h, 77px));
    width: min(86vw, 360px);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 28px 28px 40px;
    background-color: var(--green-deep);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.4);
    transform: translateX(100%);
    transition: transform 0.35s ease;
    overflow-y: auto;
    z-index: 110;
  }
  .header__inner.open {
    transform: translateX(0);
  }
  .nav {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
  }
  .nav__item {
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1.05rem;
  }
  .nav__item::after {
    display: none;
  }
  .nav__item--mobile {
    display: block;
  }
  .header__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    margin-top: 26px;
    width: 100%;
  }
  .header__phone {
    justify-content: center;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
  }
  .header__actions .btn {
    width: 100%;
  }
}

/* =========================================================
   MOBILE  (≤767.98px)
   ========================================================= */
@media (max-width: 767px) {
}
@media (max-width: 767.98px) {
  body {
    font-size: 16px;
  }
  .section {
    padding: 52px 0;
  }
  .container {
    padding: 0 16px;
  }
  .section__head {
    margin-bottom: 34px;
  }
  .section__title {
    font-size: 1.7rem;
  }

  /* Hero */
  .hero__wrapper {
    padding: 56px 0 64px;
    max-width: 100%;
    min-height: calc(100vh - 52px);
  }

  .hero__title {
    font-size: 2.05rem;
  }
  .hero__list li {
    font-size: 1rem;
  }
  .cta-group {
    display: none;
  }
  .cta-group .btn {
    width: 100%;
  }

  /* Services */
  .services__grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  /* Steps */
  .steps__layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .steps__media {
    order: -1;
  }
  .step__num {
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
  }

  /* Team */
  .team__layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .team__media {
    order: -1;
  }
  .team__badge {
    right: 12px;
    bottom: -16px;
    font-size: 0.95rem;
    padding: 12px 16px;
  }

  /* Reviews */
  .review-card {
    flex-basis: 280px;
    width: 280px;
    padding: 22px;
  }
  .reviews__track {
    animation-duration: 48s;
  }

  /* Experts */
  .experts__layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  /* CTA banner */
  .cta-banner__title {
    font-size: 1.5rem;
  }
  .cta-banner__features {
    flex-direction: column;
    gap: 8px;
    align-items: center;
  }

  /* Footer */
  .footer {
    padding-top: 44px;
  }
  .footer__wrapper {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .footer__about {
    max-width: none;
  }

  /* Subpage */
  .subhero__wrapper {
    padding: 48px 0 56px;
  }
  .subhero__title {
    font-size: 1.95rem;
  }
  .feature-row {
    grid-template-columns: 1fr;
    gap: 26px;
    margin-bottom: 44px;
  }
  .feature-row--reverse .feature-row__media {
    order: 0;
  }
  .feature-row__media {
    order: -1;
  }
  .feature-row__title {
    font-size: 1.4rem;
  }

  /* Legal */
  .legal__wrapper {
    padding: 28px 22px;
  }
  .legal__title {
    font-size: 1.7rem;
  }

  /* Cookie */
  .cookie-popup {
    left: 12px;
    bottom: 12px;
    width: calc(100% - 24px);
    padding: 18px 18px;
  }

  /* Modal */
  .modal__box {
    padding: 28px 22px;
  }

  /* Stats */
  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 16px;
  }
  .stat:nth-child(odd)::before {
    display: none;
  }
  .stat__num {
    font-size: 2.1rem;
  }

  /* Mobile sticky call bar */
  .mobile-cta {
    display: flex;
  }
  body {
    padding-bottom: 56px;
  }

  .scroll-top {
    right: 14px;
    bottom: 70px;
  }
}

/* Small phones */
@media (max-width: 380px) {
  .hero__title {
    font-size: 1.8rem;
  }
  .logo__text {
    font-size: 1.1rem;
  }
}
