/* ===== A&R Floor Supplies — shared stylesheet ===== */

@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@500;600;700;800&family=IBM+Plex+Sans:wght@400;500;600&display=swap');

:root {
  --ink: #211A14;
  --ink-soft: #3A2F26;
  --cream: #F5EFE4;
  --surface: #FBF7EE;
  --sand: #E8DCC6;
  --clay: #B9353B;
  --clay-deep: #90292E;
  --taupe: #6F6557;
  --line: rgba(33, 26, 20, 0.12);
  --line-soft: rgba(33, 26, 20, 0.07);
  --maxw: 1180px;
  --display: 'Archivo', system-ui, sans-serif;
  --body: 'IBM Plex Sans', system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.08; letter-spacing: -0.02em; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }

.eyebrow {
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  font-weight: 600; color: var(--clay);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--body); font-weight: 600; font-size: 15px;
  padding: 13px 26px; border-radius: 2px; cursor: pointer;
  border: 1px solid transparent; transition: all 0.25s ease;
}
.btn-primary { background: var(--clay); color: var(--surface); }
.btn-primary:hover { background: var(--clay-deep); }
.btn-dark { background: var(--ink); color: var(--cream); }
.btn-dark:hover { background: var(--ink-soft); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--cream); }
.btn-light { background: var(--cream); color: var(--ink); }
.btn-light:hover { background: #fff; }
.link-arrow { font-weight: 600; color: var(--clay); display: inline-flex; align-items: center; gap: 6px; transition: gap 0.2s; }
.link-arrow:hover { gap: 11px; }

/* ===== Header / Nav ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245, 239, 228, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { font-family: var(--display); font-size: 21px; font-weight: 800; letter-spacing: -0.02em; text-transform: uppercase; }
.amp { font-family: var(--body); font-weight: 500; }
.amr { letter-spacing: -0.04em; }
.brand .amp { color: var(--clay); margin: 0 -0.04em; }
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; }
.nav-links a { font-size: 14.5px; font-weight: 500; color: var(--ink-soft); transition: color 0.2s; position: relative; }
.nav-links a:hover { color: var(--clay); }
.nav-links a.active { color: var(--clay); }
.nav-cta { margin-left: 8px; }
.nav-toggle { display: none; background: none; border: none; font-size: 26px; cursor: pointer; color: var(--ink); }

/* Showroom dropdown */
.has-dropdown { position: relative; }
.has-dropdown > a { display: inline-flex; align-items: center; gap: 5px; }
.dropdown {
  position: absolute; top: 100%; left: -8px; min-width: 196px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 3px;
  padding: 8px; list-style: none; display: flex; flex-direction: column; gap: 2px;
  opacity: 0; visibility: hidden; transform: translateY(7px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  box-shadow: 0 16px 36px -22px rgba(33,26,20,0.55);
}
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: none; }
.dropdown li { margin: 0; }
.dropdown a { display: block; padding: 9px 13px; border-radius: 2px; font-size: 14.5px; color: var(--ink-soft); }
.dropdown a:hover { background: var(--sand); color: var(--clay-deep); }

/* ===== Hero ===== */
.hero {
  background: var(--ink); color: var(--cream);
  position: relative; overflow: hidden;
}
.hero-inner { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; padding: 88px 0 96px; }
.hero h1 { font-size: clamp(40px, 6vw, 68px); color: var(--cream); margin: 18px 0 22px; }
.hero h1 em { font-style: italic; color: var(--cream); }
.hero p { font-size: 18px; color: #C9BEAD; max-width: 460px; margin-bottom: 32px; }
.hero-eyebrow { color: #E9D9BC; }
.hero-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.hero-visual {
  aspect-ratio: 4 / 5; background: var(--ink-soft);
  border: 1px solid rgba(245,239,228,0.14); border-radius: 3px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  color: #7C6F60; text-align: center; padding: 24px;
}
.hero-visual .ico { font-size: 46px; opacity: 0.6; }
.hero-visual small { font-size: 13px; letter-spacing: 0.04em; }

/* page hero (inner pages) */
.page-hero { background: var(--ink); color: var(--cream); padding: 70px 0 60px; }
.page-hero h1 { color: var(--cream); font-size: clamp(34px, 5vw, 54px); margin: 14px 0 16px; }
.page-hero p { color: #C9BEAD; max-width: 600px; font-size: 18px; }
.breadcrumb { font-size: 13px; color: #8C7F70; letter-spacing: 0.03em; }
.breadcrumb a:hover { color: var(--clay); }

/* ===== Trust bar ===== */
.trust { background: var(--surface); border-bottom: 1px solid var(--line); }
.trust-inner { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 44px; padding: 18px 0; }
.trust-item { display: flex; align-items: center; gap: 9px; font-size: 14px; color: var(--taupe); font-weight: 500; }
.trust-item .ico { color: var(--clay); font-size: 18px; }

/* ===== Sections ===== */
section { padding: 86px 0; }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(30px, 4vw, 44px); margin: 14px 0 16px; }
.section-head p { color: var(--taupe); font-size: 18px; }

/* ===== Category grid ===== */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cat-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 3px; overflow: hidden; transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex; flex-direction: column;
}
.cat-card:hover { transform: translateY(-5px); box-shadow: 0 18px 40px -22px rgba(33,26,20,0.5); }
.cat-swatch { height: 230px; position: relative; display: flex; align-items: flex-end; padding: 16px; background-size: cover; background-position: center; }
.cat-swatch .ico { font-size: 30px; color: rgba(255,255,255,0.85); }
.sw-carpet { background: #C9B9A2; }
.sw-hardwood { background: #8A5E3B; }
.sw-laminate { background: #C2AE8A; }
.sw-vinyl { background: #6E7C68; }
.sw-rugs { background: #A98E7C; }
.sw-supply { background: #5C5247; }
.cat-body { padding: 22px 22px 26px; flex: 1; display: flex; flex-direction: column; }
.cat-body h3 { font-size: 23px; margin-bottom: 8px; }
.cat-body p { font-size: 15px; color: var(--taupe); margin-bottom: 18px; flex: 1; }

/* ===== Why / features ===== */
.why { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.why-card { text-align: center; max-width: 320px; margin: 0 auto; }
.why-card .ico { font-size: 32px; color: var(--clay); margin-bottom: 18px; display: block; }
.why-card h3 { font-size: 21px; margin-bottom: 10px; }
.why-card p { color: var(--taupe); font-size: 16px; }

/* ===== Supply callout (secondary) ===== */
.supply-band { background: var(--sand); }
.supply-band .wrap { display: grid; grid-template-columns: 1fr 0.9fr; gap: 48px; align-items: center; }
.supply-band h2 { font-size: clamp(28px, 3.6vw, 40px); margin: 12px 0 16px; }
.supply-band p { color: var(--ink-soft); font-size: 17px; margin-bottom: 24px; }
.supply-visual {
  background: #5C5247; border-radius: 3px; aspect-ratio: 3/2;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  color: rgba(245,239,228,0.5); font-size: 13px; flex-direction: column;
}
.supply-visual .ico { font-size: 40px; }

/* ===== Split content (inner pages) ===== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split-visual { aspect-ratio: 4/3; border-radius: 3px; display: flex; align-items: flex-end; padding: 20px; }
.prose h2 { font-size: clamp(26px, 3vw, 38px); margin-bottom: 18px; }
.prose p { color: var(--ink-soft); margin-bottom: 16px; }
.spec-list { list-style: none; margin: 22px 0; }
.spec-list li { display: flex; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line-soft); font-size: 16px; }
.spec-list .ico { color: var(--clay); flex-shrink: 0; margin-top: 3px; }

/* supply sections */
.supply-section { padding: 54px 0; border-bottom: 1px solid var(--line); }
.supply-section:last-of-type { border-bottom: none; }
.supply-section .split { gap: 48px; }
.tag { display: inline-block; background: var(--sand); color: var(--clay-deep); font-size: 12px; font-weight: 600; letter-spacing: 0.04em; padding: 5px 12px; border-radius: 2px; margin-bottom: 14px; }

/* ===== CTA band ===== */
.cta-band { background: var(--ink); color: var(--cream); text-align: center; }
.cta-band h2 { color: var(--cream); font-size: clamp(30px, 4vw, 46px); margin-bottom: 14px; }
.cta-band p { color: #C9BEAD; font-size: 18px; max-width: 520px; margin: 0 auto 30px; }

/* ===== Contact ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.loc-card { background: var(--surface); border: 1px solid var(--line); border-radius: 3px; padding: 30px; margin-bottom: 22px; }
.loc-card .tag { margin-bottom: 12px; }
.loc-card h3 { font-size: 22px; margin-bottom: 14px; }
.loc-row { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; color: var(--ink-soft); padding: 7px 0; }
.loc-row .ico { color: var(--clay); flex-shrink: 0; margin-top: 3px; }
.placeholder { background: rgba(176,98,59,0.1); color: var(--clay-deep); padding: 1px 7px; border-radius: 2px; font-weight: 600; font-size: 0.92em; }

form .field { margin-bottom: 18px; }
form label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 7px; }
form input, form select, form textarea {
  width: 100%; font-family: var(--body); font-size: 16px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 2px; background: var(--surface); color: var(--ink);
}
form input:focus, form select:focus, form textarea:focus { outline: none; border-color: var(--clay); }
form textarea { resize: vertical; min-height: 120px; }
.map-embed { aspect-ratio: 16/10; background: var(--sand); border-radius: 3px; display: flex; align-items: center; justify-content: center; color: var(--taupe); font-size: 14px; gap: 8px; margin-top: 22px; }

/* ===== Footer ===== */
.site-footer { background: var(--ink); color: #B8AC9C; padding: 64px 0 30px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid rgba(245,239,228,0.12); }
.footer-brand { font-family: var(--display); font-size: 24px; font-weight: 600; color: var(--cream); margin-bottom: 14px; }
.footer-brand .amp { color: var(--clay); }
.site-footer h4 { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cream); margin-bottom: 16px; font-family: var(--body); font-weight: 600; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { font-size: 15px; transition: color 0.2s; }
.site-footer a:hover { color: var(--clay); }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 26px; font-size: 13px; color: #8C7F70; flex-wrap: wrap; gap: 10px; }

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(20px); animation: rise 0.7s ease forwards; }
.d1 { animation-delay: 0.05s; } .d2 { animation-delay: 0.15s; } .d3 { animation-delay: 0.25s; } .d4 { animation-delay: 0.35s; }
@keyframes rise { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .reveal { animation: none; opacity: 1; transform: none; } }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-links.open { display: flex; position: absolute; top: 74px; left: 0; right: 0; flex-direction: column; background: var(--cream); padding: 20px 32px; gap: 18px; border-bottom: 1px solid var(--line); }
  .nav-toggle { display: block; }
  .has-dropdown .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; background: transparent; padding: 4px 0 4px 16px; min-width: 0; }
  .has-dropdown > a i { display: none; }
  .hero-inner, .split, .supply-band .wrap, .contact-grid, .footer-top { grid-template-columns: 1fr; gap: 36px; }
  .hero-visual { aspect-ratio: 16/10; max-width: 420px; }
  .cat-grid, .why-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 20px; }
  section { padding: 60px 0; }
  .footer-top { grid-template-columns: 1fr; }
}

/* ===== Who we serve ===== */
.serve-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.serve-card { background: var(--surface); border: 1px solid var(--line); border-radius: 3px; padding: 30px 26px; display: flex; flex-direction: column; }
.serve-card .ico { font-size: 28px; color: var(--clay); margin-bottom: 16px; }
.serve-card h3 { font-size: 22px; margin-bottom: 10px; }
.serve-card p { color: var(--taupe); font-size: 15.5px; margin-bottom: 18px; flex: 1; }

/* ===== Feature band (visualizer / gallery teaser) ===== */
.feature-band { background: var(--ink); color: var(--cream); }
.feature-band .wrap { display: grid; grid-template-columns: 1fr 0.9fr; gap: 52px; align-items: center; }
.feature-band.flip .wrap { grid-template-columns: 0.9fr 1fr; }
.feature-band.flip .feature-text { order: 2; }
.feature-band h2 { color: var(--cream); font-size: clamp(28px, 3.8vw, 42px); margin: 12px 0 16px; }
.feature-band p { color: #C9BEAD; font-size: 17px; margin-bottom: 26px; max-width: 440px; }
.feature-visual { aspect-ratio: 4/3; border-radius: 3px; overflow: hidden; border: 1px solid rgba(245,239,228,0.14); }

/* mini gallery preview tiles */
.tile-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; height: 100%; }
.tile { border-radius: 2px; display: flex; align-items: flex-end; padding: 12px; color: #fff; font-size: 12px; font-weight: 600; letter-spacing: 0.03em; min-height: 120px; background-size: cover; background-position: center; position: relative; text-shadow: 0 1px 6px rgba(0,0,0,0.55); }

/* ===== Gallery page ===== */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.g-item { border-radius: 3px; overflow: hidden; position: relative; display: flex; align-items: flex-end; padding: 18px; min-height: 230px; transition: transform 0.3s ease; background-size: cover; background-position: center; }
.g-item::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(20,16,12,0.55), rgba(20,16,12,0) 55%); }
.g-item .g-label { position: relative; z-index: 1; }
.g-item:hover { transform: scale(1.015); }
.g-item.tall { grid-row: span 2; min-height: 476px; }
.g-item .g-label { color: #fff; font-weight: 600; font-size: 15px; text-shadow: 0 1px 8px rgba(0,0,0,0.4); }
.g-item .g-sub { color: rgba(255,255,255,0.85); font-size: 12.5px; display: block; margin-top: 2px; font-weight: 400; }

/* ===== Room visualizer tool ===== */
.viz { display: grid; grid-template-columns: 1.4fr 1fr; gap: 36px; align-items: start; }
.viz-stage { position: relative; aspect-ratio: 4/3; background: var(--sand); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.viz-stage img.room { width: 100%; height: 100%; object-fit: cover; display: block; }
.viz-empty { text-align: center; color: var(--taupe); padding: 30px; }
.viz-empty .ico { font-size: 42px; color: var(--clay); display: block; margin-bottom: 12px; }
.viz-floor { position: absolute; left: 0; right: 0; bottom: 0; height: 42%; mix-blend-mode: multiply; opacity: 0; transition: opacity 0.35s ease; pointer-events: none; }
.viz-floor.on { opacity: 0.92; }
.viz-tag { position: absolute; left: 14px; bottom: 14px; background: rgba(27,22,18,0.82); color: var(--cream); font-size: 13px; padding: 6px 13px; border-radius: 2px; opacity: 0; transition: opacity 0.3s; }
.viz-tag.on { opacity: 1; }
.viz-controls h3 { font-size: 19px; margin-bottom: 6px; }
.viz-controls p.hint { font-size: 14px; color: var(--taupe); margin-bottom: 18px; }
.upload-btn { width: 100%; justify-content: center; margin-bottom: 22px; }
.swatch-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.swatch { aspect-ratio: 1; border-radius: 3px; cursor: pointer; border: 2px solid transparent; position: relative; transition: border-color 0.2s, transform 0.15s; }
.swatch:hover { transform: translateY(-2px); }
.swatch.sel { border-color: var(--ink); }
.swatch span { position: absolute; left: 0; right: 0; bottom: 0; font-size: 10.5px; color: #fff; text-align: center; padding: 3px; background: rgba(0,0,0,0.3); border-radius: 0 0 2px 2px; }

/* ===== Simplified footer ===== */
.footer-locations { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(245,239,228,0.12); }
.footer-loc h4, .footer-brand-block h4 { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cream); margin-bottom: 14px; font-family: var(--body); font-weight: 600; }
.footer-loc p { font-size: 15px; margin-bottom: 8px; line-height: 1.55; }
.footer-loc p.hrs { color: #8C7F70; font-size: 14px; }
.footer-loc a:hover { color: var(--clay); }
.footer-brand-block .footer-brand { margin-bottom: 12px; }
.footer-brand-block p { font-size: 15px; max-width: 260px; margin-bottom: 16px; }
.footer-mini-links { font-size: 14.5px; }
.footer-mini-links a { transition: color 0.2s; }
.footer-mini-links a:hover { color: var(--clay); }

@media (max-width: 900px) {
  .serve-grid, .gallery-grid, .feature-band .wrap, .feature-band.flip .wrap, .viz, .footer-locations { grid-template-columns: 1fr; }
  .g-item.tall { grid-row: span 1; min-height: 230px; }
  .feature-band.flip .feature-text { order: 0; }
}

/* ===== Real photo support ===== */
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; opacity: 1; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(105deg, rgba(38,22,10,0.80) 0%, rgba(46,26,12,0.42) 48%, rgba(60,34,14,0.08) 100%), linear-gradient(0deg, rgba(226,150,72,0.22) 0%, rgba(226,150,72,0.22) 100%); pointer-events: none; }
.hero-inner { position: relative; z-index: 2; }
.real-img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 3px; }
.split-visual.photo, .hero-visual.photo { padding: 0; overflow: hidden; }

.brands { padding: 58px 0; background: var(--sand); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.brand-marquee { margin-top: 30px; overflow: hidden; position: relative;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 7%, #000 93%, transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 7%, #000 93%, transparent 100%); }
.brand-track { display: flex; align-items: center; gap: 22px; width: max-content; animation: brand-scroll 40s linear infinite; }
.brand-marquee:hover .brand-track { animation-play-state: paused; }
.brand-track span { font-family: 'Archivo', sans-serif; font-weight: 800; font-size: 22px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink); opacity: 0.5; white-space: nowrap; }
.brand-chip { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; height: 98px; min-width: 165px; padding: 0 32px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 1px 4px rgba(33,26,20,0.05); }
.brand-logo { height: 56px; width: auto; max-width: 200px; object-fit: contain; display: block; }
@keyframes brand-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (max-width: 600px){ .brand-chip { height: 66px; min-width: 110px; padding: 0 20px; } .brand-logo { height: 34px; max-width: 130px; } .brand-track { gap: 14px; } }
@media (prefers-reduced-motion: reduce){ .brand-track { animation: none; flex-wrap: wrap; justify-content: center; } }

.brands .eyebrow { font-size: 24px; letter-spacing: 0.10em; }
.brands .section-head h2 { font-size: clamp(17px, 2vw, 20px); font-weight: 600; color: var(--taupe); margin: 8px 0 0; }
@media (max-width: 600px){ .brands .eyebrow { font-size: 19px; } }

/* ===== Four-card audience grid responsiveness ===== */
@media (max-width: 900px){ .serve-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px){ .serve-grid { grid-template-columns: 1fr; } }

/* ===== Wide-screen overflow guard (letters fitting the page on large monitors) ===== */
html, body { overflow-x: hidden; }
h1, h2, h3, p { overflow-wrap: break-word; word-break: normal; }

/* ===== Brand logo in header ===== */
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand-logo { height: 38px; width: auto; display: block; }
@media (max-width: 560px){ .brand-logo { height: 32px; } }
