:root {
  --atf-ink: #1a1714;
  --atf-charcoal: #2c2824;
  --atf-gold: #b8924a;
  --atf-gold-hover: #9a7838;
  --atf-gold-soft: #d4b07a;
  --atf-olive: #3a5244;
  --atf-olive-soft: #e8efe9;
  --atf-stone: #ebe4d8;
  --atf-paper: #f6f1e8;
  --atf-white: #fffcf7;
  --atf-nav: #5c564e;
  --atf-muted: #6f675e;
  --atf-line: #ddd4c6;
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
}

html {
  scroll-padding-top: 6rem;
}

body {
  font-family: var(--font-body);
  color: var(--atf-ink);
  background:
    radial-gradient(ellipse 80% 50% at 100% -10%, rgba(184, 146, 74, .12), transparent 55%),
    radial-gradient(ellipse 60% 40% at 0% 20%, rgba(58, 82, 68, .08), transparent 50%),
    linear-gradient(180deg, var(--atf-paper) 0%, var(--atf-white) 40%, var(--atf-paper) 100%);
  background-attachment: fixed;
  line-height: 1.65;
}

h1, h2, h3, h4, h5, h6,
.navbar-brand,
.btn {
  font-family: var(--font-display);
  letter-spacing: -.02em;
}

h1, h2 {
  letter-spacing: -.03em;
  line-height: 1.15;
}

.text-secondary {
  color: var(--atf-muted) !important;
}

/* Header */
.site-header {
  background: rgba(255, 252, 247, .88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(221, 212, 198, .7);
  z-index: 1030;
}

.navbar-brand img {
  height: 52px;
  width: auto;
}

.navbar .nav-link {
  color: var(--atf-nav);
  font-weight: 600;
  font-size: .95rem;
  position: relative;
  padding-inline: .65rem !important;
}

.navbar .nav-link::after {
  content: "";
  position: absolute;
  left: .65rem;
  right: .65rem;
  bottom: .35rem;
  height: 2px;
  background: var(--atf-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
  color: var(--atf-ink);
}

.navbar .nav-link:hover::after,
.navbar .nav-link:focus::after {
  transform: scaleX(1);
}

.nav-phone {
  color: var(--atf-ink);
  transition: color .2s ease;
}

.nav-phone:hover {
  color: var(--atf-gold);
}

.btn-outline-gold {
  --bs-btn-color: var(--atf-gold);
  --bs-btn-border-color: var(--atf-gold);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--atf-gold);
  --bs-btn-hover-border-color: var(--atf-gold);
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: var(--atf-gold-hover);
  --bs-btn-active-border-color: var(--atf-gold-hover);
  font-weight: 600;
  border-radius: .65rem;
  border-width: 1.5px;
}

/* Buttons */
.btn-quote {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--atf-gold);
  --bs-btn-border-color: var(--atf-gold);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--atf-gold-hover);
  --bs-btn-hover-border-color: var(--atf-gold-hover);
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: var(--atf-gold-hover);
  --bs-btn-active-border-color: var(--atf-gold-hover);
  font-weight: 700;
  border-radius: .65rem;
  box-shadow: 0 8px 20px rgba(184, 146, 74, .28);
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.btn-quote:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(184, 146, 74, .35);
}

.btn-outline-dark {
  border-width: 1.5px;
  border-radius: .65rem;
  font-weight: 600;
}

.btn-check:checked + .btn-dark,
.btn-dark {
  background-color: var(--atf-ink);
  border-color: var(--atf-ink);
}

/* Hero */
.hero-section {
  position: relative;
  padding-block: 3rem !important;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(58, 82, 68, .06), transparent 40%),
    linear-gradient(225deg, rgba(184, 146, 74, .1), transparent 45%);
  pointer-events: none;
}

.hero-media {
  position: relative;
  background-color: var(--atf-stone);
  min-height: 460px;
  box-shadow: 0 24px 48px rgba(26, 23, 20, .12);
}

.hero-media img {
  transition: transform 1.2s ease;
}

.hero-media:hover img {
  transform: scale(1.04);
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26, 23, 20, .18), transparent 45%);
  pointer-events: none;
}

.hero-card {
  background: rgba(255, 252, 247, .92);
  border-color: var(--atf-line) !important;
  box-shadow: 0 20px 40px rgba(26, 23, 20, .08);
  backdrop-filter: blur(8px);
}

.hero-eyebrow {
  color: var(--atf-gold);
  letter-spacing: .12em;
  font-size: .75rem;
  font-family: var(--font-display);
}

.hero-card .form-control {
  border-color: var(--atf-line);
  background-color: var(--atf-white);
  border-radius: .65rem;
}

.hero-card .form-control:focus {
  border-color: var(--atf-gold);
  box-shadow: 0 0 0 .25rem rgba(184, 146, 74, .18);
}

/* Trust */
.trust-strip {
  background:
    linear-gradient(180deg, rgba(58, 82, 68, .07), rgba(58, 82, 68, .03)),
    var(--atf-olive-soft);
  border-block: 1px solid rgba(58, 82, 68, .08);
}

.trust-num {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 700;
  line-height: 1;
  color: var(--atf-ink);
  z-index: 1;
}

.trust-num::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 60%;
  height: 60%;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--atf-gold-soft), var(--atf-gold));
  opacity: .45;
  z-index: -1;
}

/* Service intro */
.service-intro {
  background: transparent;
}

.service-intro h2 {
  max-width: 18ch;
}

/* Service options */
.service-options {
  background:
    radial-gradient(circle at 90% 20%, rgba(184, 146, 74, .12), transparent 40%),
    var(--atf-stone);
}

.service-card {
  border-color: rgba(26, 23, 20, .08) !important;
  background: var(--atf-white);
  transition: transform .25s ease, box-shadow .25s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(26, 23, 20, .1);
}

/* Benefits */
.benefits-section {
  background: var(--atf-white);
}

/* Products */
.product-range {
  background:
    linear-gradient(180deg, var(--atf-paper), var(--atf-stone));
}

.product-card {
  border-color: rgba(26, 23, 20, .08) !important;
  background: var(--atf-white);
  transition: transform .25s ease, box-shadow .25s ease;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 36px rgba(26, 23, 20, .12);
}

.product-media {
  aspect-ratio: 4 / 3;
  background-color: var(--atf-stone);
  overflow: hidden;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .5s ease;
}

.product-card:hover .product-media img {
  transform: scale(1.06);
}

#productFilters .btn {
  font-family: var(--font-body);
  font-weight: 600;
}

#productFilters .btn-dark {
  background: var(--atf-ink);
  border-color: var(--atf-ink);
}

/* Process horizontal */
.process-section {
  background: var(--atf-white);
}

.process-steps {
  position: relative;
}

.process-num {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-inline: auto;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--atf-charcoal), var(--atf-ink));
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 0 0 6px rgba(184, 146, 74, .18);
}

@media (min-width: 768px) {
  .process-steps::before {
    content: "";
    position: absolute;
    top: 1.375rem;
    left: 8%;
    right: 8%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--atf-gold), transparent);
    transform: translateY(-50%);
  }
}

/* Install vertical */
.install-process {
  background:
    linear-gradient(180deg, rgba(58, 82, 68, .06), transparent),
    var(--atf-olive-soft);
}

.install-timeline {
  position: relative;
}

.install-timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 1.375rem;
  width: 2px;
  background: linear-gradient(180deg, var(--atf-gold), var(--atf-olive));
  transform: translateX(-50%);
}

.install-marker .process-num {
  margin-inline: 0;
}

/* Subfloor */
.subfloor-section {
  background: var(--atf-white);
}

.subfloor-media {
  aspect-ratio: 4 / 3;
  background-color: var(--atf-stone);
  box-shadow: 0 20px 40px rgba(26, 23, 20, .1);
}

.subfloor-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Rooms */
.rooms-section {
  background:
    radial-gradient(ellipse at 20% 0%, rgba(184, 146, 74, .14), transparent 50%),
    var(--atf-paper);
}

.room-pill {
  font-size: 1rem;
  padding: .7rem 1.35rem;
  background: var(--atf-white) !important;
  border-color: var(--atf-line) !important;
  color: var(--atf-ink) !important;
  font-weight: 600 !important;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.room-pill:hover {
  background: var(--atf-ink) !important;
  border-color: var(--atf-ink) !important;
  color: #fff !important;
}

/* Why ATF */
.why-atf {
  background: var(--atf-white);
}

.why-atf .col-md-4 {
  position: relative;
  padding-bottom: .25rem;
}

.why-atf .col-md-4::before {
  content: "";
  display: block;
  width: 2.75rem;
  height: 3px;
  background: var(--atf-gold);
  margin-bottom: 1rem;
  border-radius: 2px;
}

.why-atf h3 {
  font-size: 1.2rem;
}

/* Warranties */
.warranties-section {
  background:
    linear-gradient(160deg, var(--atf-stone), var(--atf-paper));
}

/* Reviews */
.reviews-section {
  background: var(--atf-white);
}

.review-card {
  border-color: var(--atf-line) !important;
  background: linear-gradient(180deg, var(--atf-white), var(--atf-paper));
  transition: transform .25s ease, box-shadow .25s ease;
}

.review-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(26, 23, 20, .08);
}

.review-quote-mark {
  display: block;
  font-size: 3rem;
  line-height: 1;
  color: var(--atf-gold);
  font-family: Georgia, "Times New Roman", serif;
}

.review-avatar {
  width: 42px;
  height: 42px;
  background: linear-gradient(145deg, var(--atf-gold-soft), var(--atf-olive));
}

.testimonial-slider .slick-track {
  display: flex;
}

.testimonial-slider .slick-slide {
  height: auto;
}

.testimonial-slider .slick-slide > div {
  height: 100%;
}

.testimonial-slider .slick-dots {
  position: static;
  display: flex !important;
  justify-content: center;
  align-items: center;
  gap: .4rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.testimonial-slider .slick-dots li {
  width: auto;
  height: auto;
  margin: 0;
}

.testimonial-slider .slick-dots li button {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 50%;
  background-color: var(--atf-line);
  border: 0;
  font-size: 0;
  line-height: 0;
  color: transparent;
  transition: width .2s ease, background-color .2s ease;
}

.testimonial-slider .slick-dots li button:before {
  display: none;
}

.testimonial-slider .slick-dots li.slick-active button {
  width: 28px;
  border-radius: 999px;
  background-color: var(--atf-gold);
}

/* FAQ */
.faq-section {
  background:
    linear-gradient(180deg, var(--atf-olive-soft), var(--atf-paper));
}

.faq-accordion .accordion-item {
  border-color: var(--atf-line) !important;
  background-color: var(--atf-white);
  box-shadow: 0 4px 16px rgba(26, 23, 20, .04);
}

.faq-accordion .accordion-button {
  background-color: var(--atf-white);
  color: var(--atf-ink);
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.faq-accordion .accordion-button:not(.collapsed) {
  background-color: var(--atf-white);
  color: var(--atf-ink);
  box-shadow: none;
}

.faq-accordion .accordion-button:focus {
  box-shadow: none;
  border-color: transparent;
}

.faq-accordion .accordion-button::after {
  background-size: 1rem;
}

.thank-you-section {
  min-height: 60vh;
  display: flex;
  align-items: center;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(184, 146, 74, .14), transparent 55%),
    var(--atf-paper);
}

.thank-you-card {
  background: var(--atf-white);
  border-color: var(--atf-line) !important;
  box-shadow: 0 20px 40px rgba(26, 23, 20, .08);
}

/* Footer CTA */
.footer-cta {
  position: relative;
  background:
    radial-gradient(ellipse at 15% 20%, rgba(184, 146, 74, .22), transparent 45%),
    radial-gradient(ellipse at 90% 80%, rgba(58, 82, 68, .35), transparent 40%),
    linear-gradient(145deg, #2a2420 0%, #1a1714 55%, #24352c 100%);
  overflow: hidden;
}

.footer-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -12deg,
    transparent,
    transparent 10px,
    rgba(255, 255, 255, .015) 10px,
    rgba(255, 255, 255, .015) 11px
  );
  pointer-events: none;
}

.footer-cta-card {
  background: rgba(48, 43, 38, .85);
  border-color: rgba(184, 146, 74, .28) !important;
  backdrop-filter: blur(8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, .25);
}

.footer-cta-card .form-control {
  color: #fff;
  background-color: rgba(26, 23, 20, .65);
  border-color: rgba(255, 255, 255, .12);
  border-radius: .65rem;
}

.footer-cta-card .form-control::placeholder {
  color: #9a9288;
}

.footer-cta-card .form-control:focus {
  border-color: var(--atf-gold);
  box-shadow: 0 0 0 .25rem rgba(184, 146, 74, .2);
  background-color: rgba(26, 23, 20, .85);
  color: #fff;
}

.site-footer {
  background-color: #120f0d;
  border-top: 1px solid rgba(184, 146, 74, .15);
}

.footer-logo {
  height: 56px;
  width: auto;
}

.footer-muted {
  color: #a8a29a;
}

.footer-accent {
  color: var(--atf-gold-soft);
  transition: color .2s ease;
}

.footer-accent:hover {
  color: var(--atf-gold);
}

/* Mobile bottom CTA */
.mobile-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1040;
  display: flex;
  min-height: 3.25rem;
  box-shadow: 0 -6px 20px rgba(26, 23, 20, .18);
}

.mobile-cta a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: .9rem .75rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .95rem;
  text-decoration: none;
  line-height: 1.2;
  text-align: center;
}

.mobile-cta-call {
  background-color: var(--atf-ink);
  color: #fff;
}

.mobile-cta-book {
  background-color: var(--atf-gold);
  color: var(--atf-ink);
}

@media (max-width: 767.98px) {
  body {
    padding-bottom: 3.5rem;
  }
}

/* Reveal motion */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s ease, transform .7s ease;
}

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

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .hero-media img,
  .product-card,
  .service-card,
  .btn-quote {
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}
