/* AVS Flooring Website
   Edit the color variables below to adjust the red, black, white and gray brand palette. */
:root {
  --red: #d71920;
  --red-dark: #9e1117;
  --black: #070707;
  --charcoal: #1b1b1b;
  --white: #ffffff;
  --light: #f5f5f5;
  --line: #dedede;
  --text: #2a2a2a;
  --muted: #666666;
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.14);
  --radius: 8px;
  --header-height: 82px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

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

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

p {
  margin: 0 0 1rem;
}

h1,
h2,
h3 {
  margin: 0 0 1rem;
  color: var(--black);
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(2.4rem, 6vw, 4.9rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.1rem);
}

h3 {
  font-size: 1.22rem;
}

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

.container {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.narrow {
  max-width: 880px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 999;
  padding: 10px 14px;
  color: var(--white);
  background: var(--red);
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 3px solid var(--red);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

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

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-left: auto;
}

.site-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 10px 13px;
  color: var(--black);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.86rem;
}

.site-nav a:hover,
.site-nav a:focus,
.site-nav a.active {
  color: var(--red);
}

.header-call {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  color: var(--white);
  background: var(--red);
  border-radius: var(--radius);
  font-weight: 900;
  text-transform: uppercase;
  border: 2px solid var(--red);
}

.header-call:hover,
.header-call:focus {
  background: var(--black);
  border-color: var(--black);
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  margin-left: auto;
  padding: 10px;
  border: 2px solid var(--black);
  border-radius: var(--radius);
  background: var(--white);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 3px;
  margin: 5px 0;
  background: var(--black);
  border-radius: 20px;
}

.hero {
  position: relative;
  min-height: calc(100vh - var(--header-height));
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--white);
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.56), rgba(0, 0, 0, 0.2));
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 820px;
  padding: 90px 0;
}

.hero h1,
.hero h2,
.hero p {
  color: var(--white);
}

.hero-copy {
  max-width: 690px;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: inherit;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 5px;
  background: currentColor;
}

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

.button-row,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.btn {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.btn::after {
  content: "";
  width: 8px;
  height: 8px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
}

.btn:hover,
.btn:focus {
  transform: translateY(-2px);
}

.btn-red {
  color: var(--white);
  background: var(--red);
  border-color: var(--red);
}

.btn-red:hover,
.btn-red:focus {
  background: var(--red-dark);
  border-color: var(--red-dark);
}

.btn-white {
  color: var(--black);
  background: var(--white);
  border-color: var(--white);
}

.btn-white:hover,
.btn-white:focus {
  color: var(--white);
  background: transparent;
}

.btn-black {
  color: var(--white);
  background: var(--black);
  border-color: var(--black);
}

.btn-black:hover,
.btn-black:focus {
  color: var(--black);
  background: var(--white);
}

.trust-strip {
  color: var(--white);
  background: var(--black);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.trust-grid div {
  padding: 28px 22px;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.trust-grid div:last-child {
  border-right: 1px solid rgba(255, 255, 255, 0.18);
}

.trust-grid strong {
  display: block;
  color: var(--white);
  font-size: 1.25rem;
  text-transform: uppercase;
}

.trust-grid span {
  color: #d5d5d5;
}

.section {
  padding: 86px 0;
}

.section-muted {
  background: var(--light);
}

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

.section-dark h2,
.section-dark h3,
.section-dark p {
  color: var(--white);
}

.section-heading {
  max-width: 800px;
  margin-bottom: 36px;
}

.section-heading.center {
  margin-inline: auto;
  text-align: center;
}

.card-grid {
  display: grid;
  gap: 22px;
}

.card-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-card,
.review-card,
.contact-panel,
.lead-form,
.gallery-item,
.feature-list > div {
  border-radius: var(--radius);
}

.service-card,
.review-card {
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.06);
}

.service-card {
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: var(--red);
}

.card-icon {
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  background:
    linear-gradient(135deg, transparent 47%, var(--red) 48% 52%, transparent 53%),
    linear-gradient(45deg, transparent 47%, var(--black) 48% 52%, transparent 53%),
    var(--light);
  border: 2px solid var(--black);
  border-radius: var(--radius);
}

.service-card a {
  color: var(--red);
  font-weight: 900;
  text-transform: uppercase;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.82fr);
  gap: 44px;
  align-items: center;
}

.align-start {
  align-items: start;
}

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

.feature-list > div {
  padding: 22px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  border-left: 5px solid var(--red);
}

.feature-list.light > div {
  color: var(--text);
  background: var(--light);
}

.feature-list.light h3,
.feature-list.light p {
  color: var(--black);
}

.project-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
}

.image-card {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.image-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.image-card div {
  padding: 24px;
}

.center-actions {
  display: flex;
  justify-content: center;
  margin-top: 34px;
}

.review-card {
  border-left: 5px solid var(--red);
}

.review-card p {
  color: var(--black);
  font-size: 1.08rem;
  font-weight: 700;
}

.review-card strong {
  color: var(--red);
}

.area-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.area-list li {
  padding: 15px 18px;
  background: var(--white);
  border-left: 5px solid var(--red);
  border-radius: var(--radius);
  color: var(--black);
  font-weight: 800;
}

.red-list li {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

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

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
}

.faq-question {
  width: 100%;
  min-height: 58px;
  padding: 18px 56px 18px 20px;
  color: var(--black);
  background: var(--white);
  border: 0;
  text-align: left;
  font-weight: 900;
  cursor: pointer;
  position: relative;
}

.faq-question::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--red);
  border-radius: 50%;
  transform: translateY(-50%);
}

.faq-item.active .faq-question::after {
  content: "-";
}

.faq-answer {
  display: none;
  padding: 0 20px 18px;
}

.faq-item.active .faq-answer {
  display: block;
}

.cta-band {
  padding: 48px 0;
  color: var(--white);
  background: var(--red);
}

.cta-inner {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: center;
}

.cta-band h2,
.cta-band p {
  color: var(--white);
}

.cta-band p {
  max-width: 700px;
}

.site-footer {
  color: var(--white);
  background: var(--black);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 36px;
  padding: 52px 0;
}

.footer-logo {
  width: 118px;
  margin-bottom: 18px;
  background: var(--white);
  border-radius: var(--radius);
}

.site-footer h2 {
  color: var(--white);
  font-size: 1rem;
  text-transform: uppercase;
}

.site-footer p,
.site-footer a {
  display: block;
  color: #dddddd;
}

.site-footer a {
  margin-bottom: 10px;
}

.site-footer a:hover,
.site-footer a:focus {
  color: var(--red);
}

.footer-bottom {
  padding: 18px 20px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-bottom p {
  margin: 0;
  color: #cfcfcf;
}

.page-hero {
  padding: 76px 0;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.78)),
    linear-gradient(135deg, #ffffff, #ececec);
  border-bottom: 1px solid var(--line);
}

.page-hero.compact {
  padding: 68px 0;
}

.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.85fr);
  gap: 42px;
  align-items: center;
}

.rounded-image {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 11;
  object-fit: cover;
}

.service-detail {
  scroll-margin-top: 100px;
}

.service-detail-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1fr);
  gap: 42px;
  align-items: center;
}

.service-detail-grid.reverse img {
  order: 2;
}

.check-list {
  margin: 0 0 1.2rem;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding: 8px 0 8px 28px;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 15px;
  width: 14px;
  height: 8px;
  border-left: 3px solid var(--red);
  border-bottom: 3px solid var(--red);
  transform: rotate(-45deg);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.gallery-item {
  margin: 0;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.gallery-item figcaption {
  padding: 16px 18px;
  color: var(--black);
  font-weight: 900;
}

.product-hero-samples {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
}

.product-hero-samples img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center 45%;
  background: var(--white);
  border: 6px solid var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.product-hero-samples img:nth-child(2) {
  transform: translateY(26px);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(205px, 1fr));
  gap: 22px;
}

.product-card {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
}

.product-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center 45%;
  background: var(--white);
}

.product-card-body {
  padding: 20px;
}

.product-tag {
  display: inline-flex;
  margin: 0 0 10px;
  padding: 5px 9px;
  color: var(--white);
  background: var(--red);
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.product-card a {
  color: var(--red);
  font-weight: 900;
  text-transform: uppercase;
}

.contact-grid,
.form-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1.15fr);
  gap: 34px;
  align-items: start;
}

.contact-panel,
.lead-form {
  padding: 30px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.contact-panel strong {
  color: var(--black);
}

.contact-panel a {
  color: var(--red);
  font-weight: 900;
}

.map-placeholder {
  min-height: 360px;
  display: grid;
  place-items: center;
  padding: 22px;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(0, 0, 0, 0.82), rgba(215, 25, 32, 0.82)),
    repeating-linear-gradient(45deg, #f1f1f1 0 12px, #e1e1e1 12px 24px);
  border-radius: var(--radius);
  text-align: center;
}

.map-placeholder strong {
  display: block;
  color: var(--white);
  font-size: 1.8rem;
}

.map-placeholder span {
  color: var(--white);
}

.lead-form {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.form-row {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  border: 0;
}

.form-row label,
.form-row legend {
  color: var(--black);
  font-weight: 900;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 13px;
  color: var(--black);
  background: var(--white);
  border: 1px solid #cfcfcf;
  border-radius: var(--radius);
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: 3px solid rgba(215, 25, 32, 0.22);
  border-color: var(--red);
}

.radio-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: 18px;
  font-weight: 700;
}

.radio-line input {
  width: auto;
  min-height: auto;
}

.form-row small {
  color: var(--muted);
}

.form-message {
  display: none;
  margin: 0;
  padding: 12px 14px;
  border-radius: var(--radius);
  font-weight: 800;
}

.form-message.show {
  display: block;
}

.form-message.success {
  color: #155724;
  background: #d4edda;
  border: 1px solid #b7dfc0;
}

.form-message.error {
  color: #7b1117;
  background: #ffe3e5;
  border: 1px solid #f5b6bb;
}

.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 90;
  width: 54px;
  height: 54px;
  display: none;
  color: var(--white);
  background: var(--black);
  border: 2px solid var(--red);
  border-radius: 50%;
  font-size: 0.78rem;
  font-weight: 900;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.back-to-top.show {
  display: block;
}

@media (max-width: 980px) {
  .header-inner {
    min-height: 74px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    margin: 0;
    padding: 10px 20px 20px;
    background: var(--white);
    border-bottom: 3px solid var(--red);
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.1);
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    border-bottom: 1px solid var(--line);
  }

  .header-call {
    display: none;
  }

  .card-grid.three,
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split-layout,
  .page-hero-grid,
  .service-detail-grid,
  .contact-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .service-detail-grid.reverse img {
    order: 0;
  }

  .cta-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 700px) {
  :root {
    --header-height: 74px;
  }

  .container {
    width: min(100% - 28px, 1160px);
  }

  .brand-logo {
    width: 94px;
  }

  .hero {
    min-height: auto;
  }

  .hero-content {
    padding: 70px 0;
  }

  .hero-shade {
    background: rgba(0, 0, 0, 0.72);
  }

  .section {
    padding: 62px 0;
  }

  .page-hero,
  .page-hero.compact {
    padding: 52px 0;
  }

  .trust-grid,
  .project-row,
  .card-grid.three,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .trust-grid div,
  .trust-grid div:last-child {
    border-right: 0;
    border-left: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  }

  .button-row,
  .contact-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .service-card,
  .review-card,
  .contact-panel,
  .lead-form {
    padding: 22px;
  }

  .radio-line {
    display: flex;
    margin: 0 0 8px;
  }
}

/* Finished AVS Flooring image and product styling */
.card-icon {
  display: none;
}

.service-card.with-image {
  padding: 0;
}

.service-card.with-image::before {
  display: none;
}

.service-card-image {
  width: 100%;
  height: 190px;
  object-fit: cover;
  object-position: center;
  border-bottom: 5px solid var(--red);
}

.service-card-body {
  padding: 24px;
}

.showroom-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 38px;
  align-items: center;
}

.showroom-images {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.showroom-image {
  object-fit: cover;
}

.contact-visual {
  display: grid;
  gap: 18px;
}

.sales-contact-list {
  margin: 22px 0;
}

.sales-contact-list h3 {
  margin-bottom: 0.6rem;
}

.service-image {
  width: 100%;
  min-height: 320px;
}

.product-service-image {
  padding: 16px;
  background: var(--white);
  object-fit: contain;
}

.product-grid {
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
}

.product-hero-samples img,
.product-card img {
  object-fit: contain;
  object-position: center;
  background: var(--white);
}

.product-card img {
  height: 280px;
  aspect-ratio: auto;
  padding: 12px;
  border-bottom: 1px solid var(--line);
}

.product-card h3 {
  margin-bottom: 0.65rem;
}

.product-specs {
  display: grid;
  gap: 8px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.product-specs li {
  padding: 10px 12px;
  background: var(--light);
  border-left: 4px solid var(--red);
  border-radius: var(--radius);
}

.availability {
  color: var(--black);
  font-weight: 900;
}

.product-card a.btn {
  width: 100%;
  color: var(--white);
}

.product-card a.btn:hover,
.product-card a.btn:focus {
  color: var(--white);
}

.gallery-item img {
  height: 260px;
  aspect-ratio: auto;
  object-fit: cover;
}

.site-footer p strong {
  color: var(--white);
}

.site-footer p a {
  display: inline;
  margin-bottom: 0;
}

@media (max-width: 980px) {
  .showroom-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .showroom-images {
    grid-template-columns: 1fr;
  }

  .service-card-image,
  .gallery-item img,
  .product-card img {
    height: 230px;
  }
}

/* Mobile overflow protection for long names, emails, and CTA labels */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

.site-footer p,
.site-footer a,
.contact-panel p,
.contact-panel a,
.product-card,
.product-specs li,
.btn {
  overflow-wrap: anywhere;
}
