/* ==========================================================================
   North America Flooring: site styles
   Palette: brand navy #011C53 on warm bone neutrals
   ========================================================================== */

:root {
  /* Brand: navy #011C53 pulled from the NAF logo, on a warm bone neutral */
  --brand: #011c53;
  --brand-mid: #1b3a72;
  --bone: #f6f2ec;
  --bone-2: #eeeae1;
  --ink: #011c53;
  --ink-soft: #14305c;
  --accent: #1b3a72;
  --accent-dark: #011c53;
  --olive: #2f5d46;
  --line: rgba(1, 28, 83, 0.16);
  --line-light: rgba(246, 242, 236, 0.2);
  --muted: #5d6478;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --wrap: 1200px;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --pad-y: clamp(4rem, 9vw, 7.5rem);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: clamp(2.6rem, 6.2vw, 4.75rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
h3 { font-size: clamp(1.2rem, 1.9vw, 1.5rem); letter-spacing: -0.01em; }

p { margin: 0; text-wrap: pretty; }

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

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  font-family: var(--body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0;
}

.eyebrow--light { color: #9fb6e0; }

.lede {
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
  color: var(--muted);
  max-width: 58ch;
}

.section { padding-block: var(--pad-y); }
.section--tight { padding-block: clamp(3rem, 6vw, 4.5rem); }
.section--ink { background: var(--ink); color: var(--bone); }
.section--bone2 { background: var(--bone-2); }

.section-head {
  display: grid;
  gap: 1.1rem 3rem;
  grid-template-columns: minmax(0, 1fr);
  margin-bottom: clamp(2.25rem, 4vw, 3.25rem);
}

@media (min-width: 62rem) {
  .section-head {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    align-items: end;
  }
  .section-head .lede { justify-self: end; }
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.6rem;
  border: 1px solid transparent;
  border-radius: 2px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn--solid { background: var(--ink); color: var(--bone); }
.btn--solid:hover { background: var(--accent-dark); }

.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-dark); }

.btn--ghost { border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); background: rgba(1, 28, 83, 0.05); }

.btn--ghost-light { border-color: var(--line-light); color: var(--bone); }
.btn--ghost-light:hover { background: rgba(246, 242, 236, 0.12); }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ---------- header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  background: rgba(246, 242, 236, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, background-color 0.25s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(246, 242, 236, 0.96);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 86px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.brand__logo {
  height: 62px;
  width: auto;
  max-width: 100%;
}

@media (max-width: 30rem) { .brand__logo { height: 46px; } }

.nav { display: none; }
@media (min-width: 60rem) {
  .nav { display: flex; align-items: center; gap: 1.9rem; }
}

.nav a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-soft);
  padding-block: 0.35rem;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.nav a:hover { border-bottom-color: var(--accent); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 2px;
  overflow: hidden;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.lang-switch a,
.lang-switch span {
  padding: 0.35rem 0.55rem;
  line-height: 1.2;
}

.lang-switch .is-active { background: var(--ink); color: var(--bone); }

.header-cta { display: none; }
@media (min-width: 44rem) {
  .header-cta { display: inline-flex; padding: 0.68rem 1.15rem; font-size: 0.84rem; }
}

.nav-toggle {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: transparent;
  cursor: pointer;
}

@media (min-width: 60rem) { .nav-toggle { display: none; } }

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
}

.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--bone);
  padding: 1rem var(--gutter) 1.6rem;
}

.mobile-nav.is-open { display: block; }

.mobile-nav a {
  display: block;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 1rem;
}

@media (min-width: 60rem) { .mobile-nav { display: none !important; } }

/* ---------- hero ---------- */

.hero {
  padding-top: clamp(7rem, 12vw, 9.5rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
  position: relative;
  overflow: hidden;
}

.hero__grid {
  display: grid;
  gap: clamp(2.25rem, 5vw, 4rem);
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
}

@media (min-width: 62rem) {
  .hero__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); }
}

.hero h1 { margin-top: 1.1rem; }

.hero h1 em {
  font-style: italic;
  color: var(--accent-dark);
}

.hero__copy { display: grid; gap: 1.5rem; justify-items: start; }

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.6rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--line);
  width: 100%;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.hero__media {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 2px;
}

.hero__badge {
  position: absolute;
  bottom: -1.1rem;
  left: -1.1rem;
  background: var(--accent);
  color: #fff;
  padding: 0.9rem 1.2rem;
  max-width: 15rem;
  font-size: 0.78rem;
  line-height: 1.45;
  letter-spacing: 0.02em;
  border-radius: 2px;
}

@media (max-width: 40rem) {
  .hero__badge { left: 0; bottom: -0.9rem; }
}

/* ---------- marquee strip ---------- */

.strip {
  border-block: 1px solid var(--line);
  background: var(--bone-2);
  overflow: hidden;
}

.strip__inner {
  display: flex;
  gap: 3rem;
  padding: 1.05rem 0;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  white-space: nowrap;
  justify-content: center;
  flex-wrap: wrap;
}

.strip__inner span { display: inline-flex; align-items: center; gap: 0.6rem; }

.strip__dot {
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
  flex: 0 0 auto;
}

/* ---------- product cards ---------- */

.products-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
}

.product {
  border: 1px solid var(--line);
  border-radius: 2px;
  background: #fff;
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.product:hover {
  border-color: rgba(27, 58, 114, 0.55);
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -30px rgba(1, 28, 83, 0.6);
}

.product__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bone-2);
}

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

.product__body { padding: 1.4rem 1.35rem 1.55rem; display: grid; gap: 0.75rem; align-content: start; }

.product__body p { font-size: 0.94rem; color: var(--muted); }

.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.2rem; }

.chip {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.3rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--ink-soft);
  background: var(--bone);
}

/* ---------- feature list ---------- */

.features {
  display: grid;
  gap: 0;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  border-top: 1px solid var(--line);
}

.feature {
  padding: 1.9rem 1.5rem 2.1rem 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 0.6rem;
  align-content: start;
}

@media (min-width: 40rem) {
  .feature { border-right: 1px solid var(--line); padding-inline: 1.6rem; }
  .feature:first-child { padding-left: 0; }
  .feature:nth-child(2n) { border-right: none; }
}

@media (min-width: 68rem) {
  .features { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .feature { border-right: 1px solid var(--line); padding: 2rem 1.8rem 2.2rem; }
  .feature:nth-child(3n) { border-right: none; }
  .feature:nth-child(3n + 1) { padding-left: 0; }
}

.feature__icon {
  width: 34px;
  height: 34px;
  color: var(--accent);
  margin-bottom: 0.35rem;
}

.feature h3 { font-size: 1.08rem; }

.feature p { font-size: 0.92rem; color: var(--muted); }

/* ---------- split / about ---------- */

.split {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
}

@media (min-width: 62rem) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .split--reverse .split__media { order: 2; }
}

.split__media { position: relative; }

.split__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 2px;
}

.split__body { display: grid; gap: 1.25rem; justify-items: start; }

.split__body p { color: var(--muted); }

.section--ink .split__body p { color: rgba(246, 242, 236, 0.72); }

.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: 1.5rem;
  width: 100%;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.section--ink .stat-row { border-top-color: var(--line-light); }

.stat { display: grid; gap: 0.25rem; }

.stat__num {
  font-family: var(--display);
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  line-height: 1;
}

.stat__label {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.section--ink .stat__label { color: rgba(246, 242, 236, 0.6); }

/* ---------- quote band ---------- */

.band {
  position: relative;
  min-height: clamp(22rem, 48vw, 34rem);
  display: grid;
  align-items: end;
  color: var(--bone);
  isolation: isolate;
}

.band img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(1, 28, 83, 0.12) 0%, rgba(1, 28, 83, 0.82) 100%);
}

.band__inner { padding-block: clamp(2.5rem, 6vw, 4rem); display: grid; gap: 1rem; max-width: 46rem; }

.band blockquote {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.5rem, 3.2vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

/* ---------- process ---------- */

.process {
  display: grid;
  gap: 0;
  grid-template-columns: minmax(0, 1fr);
  counter-reset: step;
}

@media (min-width: 56rem) {
  .process { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.step {
  padding: 1.75rem 1.5rem 1.9rem;
  border-top: 1px solid var(--line-light);
  border-left: 1px solid var(--line-light);
  display: grid;
  gap: 0.6rem;
  align-content: start;
  position: relative;
}

.step:first-child { border-left: none; }

@media (max-width: 55.99rem) {
  .step { border-left: none; }
  .step:first-child { border-top: 1px solid var(--line-light); }
}

.step__num {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #9fb6e0;
}

.step h3 { font-size: 1.05rem; color: var(--bone); }

.step p { font-size: 0.9rem; color: rgba(246, 242, 236, 0.66); }

/* ---------- FAQ ---------- */

.faq { display: grid; gap: 0; max-width: 56rem; }

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 1.25rem 0;
}

.faq details:first-child { border-top: 1px solid var(--line); }

.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  font-family: var(--display);
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  letter-spacing: -0.01em;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  font-family: var(--body);
  font-size: 1.2rem;
  color: var(--accent);
  flex: 0 0 auto;
  transition: transform 0.2s ease;
}

.faq details[open] summary::after { content: "–"; }

.faq details p {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  color: var(--muted);
  max-width: 68ch;
}

/* ---------- contact ---------- */

.contact-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 62rem) {
  .contact-grid { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); }
}

.contact-info { display: grid; gap: 1.4rem; align-content: start; }

.contact-info p { color: var(--muted); }

.contact-item { display: grid; gap: 0.2rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }

.contact-item span {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.contact-item a,
.contact-item strong { font-size: 1.02rem; font-weight: 500; }

.contact-item a:hover { color: var(--accent-dark); }

.form { display: grid; gap: 1rem; }

.form__row { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }

@media (min-width: 34rem) {
  .form__row--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.field { display: grid; gap: 0.4rem; }

.field label {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-soft);
}

.field input,
.field select,
.field textarea {
  font-family: inherit;
  font-size: 0.96rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0.72rem 0.8rem;
  width: 100%;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field textarea { resize: vertical; min-height: 8rem; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(1, 28, 83, 0.14);
}

.form__note { font-size: 0.8rem; color: var(--muted); }

.form__status {
  font-size: 0.88rem;
  color: var(--olive);
  font-weight: 500;
  min-height: 1.2rem;
}

/* ---------- footer ---------- */

.site-footer {
  background: var(--ink);
  color: rgba(246, 242, 236, 0.72);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: minmax(0, 1fr);
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--line-light);
}

@media (min-width: 52rem) {
  .footer-grid { grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 0.8fr)); }
}

.site-footer .brand__logo { height: 58px; }

.site-footer p { font-size: 0.92rem; max-width: 34ch; margin-top: 1rem; }

.footer-col h4 {
  font-family: var(--body);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(246, 242, 236, 0.55);
  margin-bottom: 1rem;
  font-weight: 600;
}

.footer-col a { display: block; font-size: 0.92rem; padding-block: 0.28rem; }
.footer-col a:hover { color: var(--bone); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  justify-content: space-between;
  padding-top: 1.75rem;
  font-size: 0.78rem;
  color: rgba(246, 242, 236, 0.5);
}

/* ---------- reveal ---------- */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .product:hover { transform: none; }
}

/* skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--bone);
  padding: 0.75rem 1rem;
  z-index: 200;
}

.skip-link:focus { left: 1rem; top: 1rem; }
