/* =============================================
   FLANNEL QUEEN — Pleasant Valley Quilting (Alt Design)
   Armstrong, BC
   Foundation: constructed/graphic system (SVG hero art,
   gradient icon badges, plaque callouts, elevated cards) —
   same approved palette as the primary build, rendered with
   more visual construction, à la the Ponderosa Sports site.
   ============================================= */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body, h1, h2, h3, p, figure, blockquote, ul, table { margin: 0; }
ul { padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
table { border-collapse: collapse; }

/* ═══ TOKENS ══════════════════════════════════════════════ */
:root {
  --white:        #ffffff;
  --cream:        #e7e0d2;
  --ink:          #1a1714;
  --ink-soft:     #665d51; /* AA-adjusted one step darker than the raw swatch value, same as primary build */
  --forest:       #2e3a22;
  --forest-light: #4f5f3c;
  --rust:         #8a4a2e;
  --rust-light:   #b56b46;
  --line:         #ded4c0;

  --grad-rust:   linear-gradient(135deg, var(--rust-light), var(--rust));
  --grad-forest: linear-gradient(135deg, var(--forest-light), var(--forest));
  --grad-cream:  linear-gradient(180deg, var(--white), var(--cream));

  --font-display: 'Unbounded', sans-serif;
  --font-body: 'Work Sans', sans-serif;

  --container: 1180px;
  --radius: 16px;
  --nav-h: 78px;
}

html { font-size: 100%; }
body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.section-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--grad-rust);
  color: var(--white);
  font-weight: 700;
  padding: 12px 18px;
  z-index: 999;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 3px solid var(--rust);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ═══ TYPOGRAPHY ══════════════════════════════════════════ */
h1, h2, h3, .logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
}

.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.eyebrow-center { text-align: center; }
.eyebrow-rust { color: var(--rust); }
.eyebrow-forest { color: var(--forest); }

.section-title {
  font-size: clamp(1.7rem, 4.2vw, 2.5rem);
  color: var(--ink);
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}

/* ═══ BUTTONS ═════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.98rem;
  border-radius: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  white-space: nowrap;
}
.btn svg { width: 19px; height: 19px; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--grad-rust);
  color: var(--white);
  box-shadow: 0 12px 26px -10px rgba(138, 74, 46, 0.55);
}
.btn-primary:hover { filter: brightness(1.05); box-shadow: 0 16px 32px -8px rgba(138, 74, 46, 0.65); }

.btn-forest {
  background: var(--grad-forest);
  color: var(--white);
  box-shadow: 0 12px 26px -10px rgba(46, 58, 34, 0.5);
}
.btn-forest:hover { filter: brightness(1.08); }

.btn-secondary {
  background: rgba(46, 58, 34, 0.05);
  color: var(--forest);
  border: 1.5px solid rgba(46, 58, 34, 0.35);
}
.btn-secondary:hover { background: rgba(46, 58, 34, 0.1); border-color: var(--forest); }

.btn-block { width: 100%; margin-top: 22px; }

/* ═══ NAV ═════════════════════════════════════════════════ */
#nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease;
}
#nav.scrolled {
  background: rgba(255, 255, 255, 0.94);
  border-bottom-color: var(--line);
}

.nav-inner {
  max-width: var(--container);
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.nav-logo { display: flex; align-items: center; gap: 10px; }
.logo-mark { width: 30px; height: 30px; flex: none; }
.logo-text {
  font-size: 1.02rem;
  color: var(--ink);
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.logo-accent { color: var(--rust); }

.nav-links { display: none; align-items: center; gap: 32px; }
.nav-links a { color: var(--ink-soft); font-weight: 600; font-size: 0.95rem; transition: color 0.2s ease; }
.nav-links a:hover { color: var(--ink); }

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

.nav-call {
  display: none;
  align-items: center;
  gap: 8px;
  color: var(--rust);
  font-weight: 700;
  font-size: 0.92rem;
  border: 1.5px solid var(--line);
  padding: 9px 16px;
  border-radius: 8px;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.nav-call svg { width: 17px; height: 17px; }
.nav-call:hover { border-color: var(--rust); background: rgba(138, 74, 46, 0.06); }

.hamburger { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 40px; height: 40px; padding: 8px; }
.hamburger span { display: block; width: 100%; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.25s ease, opacity 0.25s ease; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-overlay { position: fixed; inset: 0; background: rgba(26, 23, 20, 0.55); z-index: 150; }
.mobile-menu {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(320px, 84vw);
  background: var(--white);
  border-left: 1px solid var(--line);
  z-index: 151;
  padding: 24px;
  display: flex; flex-direction: column; gap: 28px;
}
.mobile-overlay[hidden], .mobile-menu[hidden] { display: none; }
.mobile-close { align-self: flex-end; width: 40px; height: 40px; color: var(--ink); }
.mobile-menu nav { display: flex; flex-direction: column; gap: 4px; }
.mobile-menu a {
  display: block;
  padding: 12px 4px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.25rem;
  border-bottom: 1px solid var(--line);
}
.mobile-call {
  margin-top: auto;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  text-align: center;
  padding: 15px;
  border-radius: 10px;
  background: var(--grad-rust);
  color: var(--white);
  font-weight: 700;
  border-bottom: none !important;
}

/* ═══ REVEAL ═════════════════════════════════════════════ */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal.delay-1 { transition-delay: 0.08s; }
.reveal.delay-2 { transition-delay: 0.16s; }
.reveal.delay-3 { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ═══ HERO — QUILT-BLOCK SVG ART ═════════════════════════ */
.hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  background: var(--grad-cream);
  overflow: hidden;
  padding: 56px 0 64px;
}

.hero-art { position: absolute; inset: 0; z-index: 0; }
.hero-art svg { width: 100%; height: 100%; }

.quilt-layer { transform-box: fill-box; transform-origin: 50% 50%; }
.quilt-layer-a { animation: driftA 26s ease-in-out infinite alternate; }
.quilt-layer-b { animation: driftB 32s ease-in-out infinite alternate; }
.quilt-layer-c { animation: driftC 40s linear infinite; }

@keyframes driftA { from { transform: translate(0,0) rotate(0deg); } to { transform: translate(-14px, 10px) rotate(4deg); } }
@keyframes driftB { from { transform: translate(0,0) rotate(0deg); } to { transform: translate(12px, -10px) rotate(-3deg); } }
@keyframes driftC { from { transform: translateX(0); } to { transform: translateX(-40px); } }
@media (prefers-reduced-motion: reduce) {
  .quilt-layer-a, .quilt-layer-b, .quilt-layer-c { animation: none; }
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

.hero-panel {
  max-width: 640px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-left: 4px solid transparent;
  border-image: var(--grad-rust) 1;
  border-radius: 4px 18px 18px 4px;
  padding: 34px 32px;
  box-shadow: 0 20px 48px -24px rgba(26, 23, 20, 0.25);
}

.hero-title { font-size: clamp(2rem, 6vw, 3.2rem); color: var(--ink); margin-bottom: 18px; }
.hero-title .accent { color: var(--rust); }

.hero-sub { color: var(--ink-soft); font-size: 1.05rem; max-width: 50ch; margin-bottom: 30px; }

.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }

/* ═══ TRUST BAR ═══════════════════════════════════════════ */
.trust-bar { background: var(--white); position: relative; padding: 20px 0; }
.trust-bar::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--rust), var(--forest)); }
.trust-bar::after { content: ""; position: absolute; bottom: 0; left: 0; right: 0; height: 1px; background: var(--line); }
.trust-inner { max-width: var(--container); margin: 0 auto; padding: 0 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 18px; text-align: center; }
.trust-stars { display: flex; gap: 3px; color: var(--rust); }
.trust-stars svg { width: 18px; height: 18px; }
.trust-text { color: var(--ink-soft); font-size: 0.95rem; }
.trust-text strong { color: var(--ink); font-size: 1.05rem; }
.trust-text a { color: var(--rust); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ═══ SECTIONS (generic) ══════════════════════════════════ */
.carry, .why, .location { padding: 84px 0; }
.servicing { padding: 56px 0; background: var(--cream); }
.testimonial, .gallery { padding: 84px 0; background: var(--grad-cream); }

/* ═══ WHAT WE CARRY ═══════════════════════════════════════ */
.carry-grid { display: grid; grid-template-columns: 1fr; gap: 22px; }

.carry-card {
  background: linear-gradient(155deg, var(--white), var(--cream));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: 0 16px 32px -22px rgba(26, 23, 20, 0.3);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.carry-card:hover { transform: translateY(-5px); border-color: var(--rust); box-shadow: 0 22px 40px -18px rgba(138, 74, 46, 0.28); }
.carry-card h3 { color: var(--ink); font-size: 1.2rem; font-weight: 600; margin: 18px 0 10px; }
.carry-card p { color: var(--ink-soft); font-size: 0.96rem; }

.icon-badge { width: 56px; height: 56px; border-radius: 14px; display: flex; align-items: center; justify-content: center; }
.icon-badge svg { width: 26px; height: 26px; color: var(--white); }
.icon-badge-rust { background: var(--grad-rust); }
.icon-badge-forest { background: var(--grad-forest); }

.card-tag {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 999px;
  color: var(--white);
}
.carry-card:nth-child(odd) .card-tag { background: var(--rust); }
.carry-card:nth-child(even) .card-tag { background: var(--forest); }

/* ═══ MACHINE SERVICING — PLAQUE ══════════════════════════ */
.servicing-plaque {
  display: flex;
  align-items: flex-start;
  gap: 22px;
  max-width: 760px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid transparent;
  border-image: var(--grad-forest) 1;
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 16px 36px -26px rgba(26,23,20,0.3);
}
.servicing-icon { flex: none; width: 52px; height: 52px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--grad-forest); color: var(--white); }
.servicing-icon svg { width: 26px; height: 26px; }
.servicing-text h2 { font-size: clamp(1.2rem, 3vw, 1.5rem); color: var(--ink); margin: 4px 0 12px; }
.servicing-text p { color: var(--ink-soft); font-size: 0.98rem; }
.servicing-note { font-weight: 600; color: var(--forest); margin-top: 10px; font-size: 0.92rem; }

/* ═══ WHY SHOP HERE ═══════════════════════════════════════ */
.why-grid { display: grid; grid-template-columns: 1fr; gap: 30px; }
.why-card { position: relative; padding-top: 8px; }
.why-num { display: block; font-family: var(--font-display); font-weight: 700; font-size: 3.2rem; line-height: 1; opacity: 0.15; margin-bottom: -12px; }
.why-num-rust { color: var(--rust); }
.why-num-forest { color: var(--forest); }
.why-card h3 { font-size: 1.15rem; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.why-card p { color: var(--ink-soft); font-size: 0.97rem; }

/* ═══ TESTIMONIAL ═════════════════════════════════════════ */
.quote-wrap { max-width: 760px; margin: 0 auto; text-align: center; }
.quote-mark { width: 48px; height: 36px; color: var(--rust); opacity: 0.85; margin: 0 auto 8px; }
.quote-wrap blockquote p {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.2rem, 3vw, 1.7rem);
  line-height: 1.4;
  color: var(--ink);
}
.quote-stars { display: flex; justify-content: center; gap: 4px; color: var(--rust); margin: 22px 0 12px; }
.quote-stars svg { width: 18px; height: 18px; }
.quote-wrap cite { display: block; font-style: normal; font-weight: 700; color: var(--ink); }
.quote-wrap cite span { color: var(--ink-soft); font-weight: 500; }

/* ═══ GALLERY ═════════════════════════════════════════════ */
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.gallery-item { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 3; border: 1px solid var(--line); background: var(--cream); }
.gallery-item.wide { grid-column: span 2; }
.gallery-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gallery-wash { position: absolute; inset: 0; background-size: 200% 200%; }
.gallery-wash-1 { background-image: linear-gradient(135deg, var(--rust-light), var(--forest)); background-position: 20% 30%; }
.gallery-wash-2 { background-image: linear-gradient(135deg, var(--forest-light), var(--rust)); background-position: 60% 10%; }
.gallery-wash-3 { background-image: linear-gradient(135deg, var(--rust), var(--forest-light)); background-position: 80% 60%; }
.gallery-wash-4 { background-image: linear-gradient(135deg, var(--forest), var(--rust-light)); background-position: 30% 70%; }
.gallery-wash-5 { background-image: linear-gradient(135deg, var(--rust-light), var(--forest-light)); background-position: 50% 40%; }
.gallery-wash-6 { background-image: linear-gradient(135deg, var(--forest-light), var(--rust-light)); background-position: 10% 90%; }
.gallery-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 12px 14px;
  font-size: 0.85rem; font-weight: 600; color: var(--white);
  background: linear-gradient(0deg, rgba(26,23,20,0.72), transparent);
}

/* ═══ LOCATION ════════════════════════════════════════════ */
.location-intro { text-align: center; max-width: 560px; margin: -28px auto 44px; color: var(--ink-soft); }
.location-grid { display: grid; grid-template-columns: 1fr; gap: 22px; }
.map-frame { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); min-height: 300px; }
.map-frame iframe { width: 100%; height: 100%; min-height: 300px; border: 0; display: block; }

.location-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid transparent;
  border-image: var(--grad-rust) 1;
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: 0 16px 36px -26px rgba(26,23,20,0.28);
}
.location-panel h3 { color: var(--ink); font-size: 1.3rem; margin-bottom: 16px; }
.location-row { display: flex; align-items: flex-start; gap: 12px; color: var(--ink-soft); margin-bottom: 16px; font-size: 0.97rem; }
.location-row svg { width: 19px; height: 19px; flex: none; color: var(--rust); margin-top: 2px; }
.location-row a { color: var(--ink); font-weight: 600; }
.location-row a:hover { color: var(--rust); }

.hours-table { width: 100%; margin: 4px 0; }
.hours-table tr { border-top: 1px solid var(--line); }
.hours-table td { padding: 8px 0; font-size: 0.95rem; }
.hours-table td:first-child { color: var(--ink); font-weight: 600; }
.hours-table td:last-child { color: var(--ink-soft); text-align: right; }
.hours-note { font-size: 0.85rem; color: var(--ink-soft); font-style: italic; margin-top: 6px; }

/* ═══ FOOTER ══════════════════════════════════════════════ */
.footer { background: var(--white); position: relative; padding-top: 60px; border-top: 1px solid var(--line); }
.footer::before { content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--rust), var(--forest)); }
.footer-inner { display: grid; grid-template-columns: 1fr; gap: 36px; padding-bottom: 40px; }
.footer-brand .logo-text { display: block; margin-bottom: 10px; font-size: 1.15rem; }
.footer-brand p { color: var(--ink-soft); font-size: 0.92rem; max-width: 32ch; margin-bottom: 16px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 9px; display: flex; align-items: center; justify-content: center; color: var(--ink-soft); transition: border-color 0.2s ease, color 0.2s ease; }
.footer-social a svg { width: 18px; height: 18px; }
.footer-social a:hover { border-color: var(--rust); color: var(--rust); }

.footer-col h4 { color: var(--ink); font-family: var(--font-body); font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 14px; }
.footer-col p, .footer-col a { color: var(--ink-soft); font-size: 0.94rem; }
.footer-col p { margin-bottom: 8px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a:hover { color: var(--rust); }

.footer-bottom { border-top: 1px solid var(--line); padding: 20px; text-align: center; }
.footer-bottom p { color: var(--ink-soft); font-size: 0.85rem; }

/* ═══ RESPONSIVE ══════════════════════════════════════════ */
@media (min-width: 768px) {
  .nav-links { display: flex; }
  .nav-call { display: flex; }
  .hamburger { display: none; }

  .hero { min-height: 680px; }
  .carry-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(3, 1fr); gap: 40px; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery-item.wide { grid-column: span 1; }
  .location-grid { grid-template-columns: 1.1fr 0.9fr; align-items: stretch; }
  .map-frame { min-height: 100%; }
  .map-frame iframe { min-height: 100%; }

  .footer-inner { grid-template-columns: 1.4fr 1fr 1fr; }
}

@media (min-width: 1024px) {
  .carry-grid { grid-template-columns: repeat(4, 1fr); }
  .hero { min-height: 720px; }
  .hero-panel { padding: 44px 40px; }
}

@media (min-width: 1440px) {
  :root { --container: 1280px; }
  .hero { min-height: 760px; }
}
