/* =============================================
   PLEASANT VALLEY QUILTING — Armstrong, BC
   Quiet editorial boutique-retail system
   ============================================= */

/* ===== VARIABLES ===== */
:root {
  --cream:      #e7e0d2;
  --white:      #ffffff;
  --ink:        #1a1714;
  --ink-soft:   #665d51; /* nudged 1 step darker than the exact swatch (#6f665a) — that value
                             drops to 4.29:1 against the new, darker beige and fails WCAG AA;
                             this passes at 4.91:1. All four other colors are used exactly as given. */
  --forest:     #2e3a22;
  --rust:       #8a4a2e;
  --line:       #e3dbca;

  --font-head: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --max-w: 1120px;
  --section-pad: clamp(56px, 8vw, 108px);
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.65;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; background: none; border: none; font: inherit; }
ul { list-style: none; }
address { font-style: normal; }

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes ruleDraw { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ===== UTILITIES ===== */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 clamp(20px, 5vw, 48px); }

.eyebrow {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 12px;
}
.rule {
  width: 40px;
  height: 1.5px;
  background: var(--rust);
  margin: 0 auto 18px;
  transform-origin: center;
}
.rule.visible { animation: ruleDraw 0.5s ease forwards; }
.section-header { text-align: center; margin-bottom: clamp(36px, 6vw, 56px); }

section { padding: var(--section-pad) 0; }
section.section-white { background: var(--white); }
section.section-line-top { border-top: 1px solid var(--line); }

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.delay-1 { transition-delay: 0.08s; }
.reveal.delay-2 { transition-delay: 0.16s; }
.reveal.delay-3 { transition-delay: 0.24s; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3 { font-family: var(--font-head); font-weight: 500; line-height: 1.15; color: var(--ink); letter-spacing: -0.01em; }
/* H1 is deliberately the boldest, heaviest element on the page — everything
   else (h2/h3 included) stays lighter so it reads as a clear hierarchy
   underneath it, not competing with it. */
h1 { font-size: clamp(2.4rem, 5.6vw, 3.8rem); font-weight: 900; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); font-weight: 500; margin-bottom: 10px; }
h3 { font-size: clamp(1.05rem, 2vw, 1.2rem); font-family: var(--font-body); font-weight: 600; margin-bottom: 8px; }
h4 { font-family: var(--font-body); font-size: 12px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 14px; }
p { color: var(--ink-soft); }
.section-sub { color: var(--ink-soft); max-width: 520px; margin: 0 auto; font-size: 16px; }
.accent { font-style: italic; color: var(--forest); }

:focus-visible { outline: 2px solid var(--forest); outline-offset: 3px; }

/* ===== BUTTONS =====
   Quiet pill outlines only — no gradient fills, no bold color blocks.
   Hover is a barely-there tint, not a solid color swap, so text stays the
   same dark ink/forest tone throughout (no contrast-on-fill problem). */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 13px 30px;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink);
  background: transparent;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.btn:hover { background: rgba(28, 26, 23, 0.05); }
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }

.btn-forest { border-color: var(--forest); color: var(--forest); }
.btn-forest:hover { background: rgba(63, 74, 58, 0.08); }
.btn-full { width: 100%; margin-top: 20px; }

.text-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  padding-bottom: 1px;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.text-link:hover { color: var(--forest); border-color: var(--forest); }

/* ===== NAV ===== */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
  background: transparent;
}
#nav.scrolled {
  background: rgba(231, 224, 210, .94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line);
}
.nav-inner {
  display: flex; align-items: center; gap: 20px;
  height: 74px; max-width: var(--max-w); margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 48px);
}
.nav-logo { flex-shrink: 0; }
.nav-logo .logo-text { font-family: var(--font-head); font-size: 1.25rem; font-weight: 500; color: var(--ink); }

.nav-links { display: none; align-items: center; gap: 30px; margin: 0 0 0 auto; }
.nav-links a {
  position: relative;
  font-size: 11.5px; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--ink-soft);
  padding-bottom: 4px;
  transition: color 0.18s ease;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1.5px; background: var(--rust);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.22s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }

.nav-call {
  display: inline-flex; align-items: center; gap: 7px;
  min-height: 44px;
  font-size: 13px; font-weight: 600; color: var(--ink);
  flex-shrink: 0; margin-left: auto;
  transition: color 0.18s ease;
}
.nav-call:hover { color: var(--forest); }
.nav-call svg { width: 15px; height: 15px; flex-shrink: 0; }
.nav-call-text { display: none; }

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

/* ===== MOBILE MENU ===== */
#mobile-menu {
  position: fixed; inset: 0; z-index: 200;
  background: var(--cream);
  display: flex; flex-direction: column;
  padding: 88px 32px 40px;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
#mobile-menu:not([hidden]) { transform: translateX(0); }
#mobile-menu[hidden] { display: flex; }
.mobile-close {
  position: absolute; top: 18px; right: 20px; width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-soft);
}
.mobile-close:hover { color: var(--ink); }
.mobile-close svg { width: 22px; height: 22px; }
#mobile-menu nav { display: flex; flex-direction: column; gap: 4px; }
#mobile-menu a {
  display: block; font-family: var(--font-head); font-size: 1.9rem; font-weight: 500;
  color: var(--ink); padding: 13px 0; border-bottom: 1px solid var(--line);
  transition: color 0.18s ease;
}
#mobile-menu a:hover { color: var(--forest); }
.mobile-call {
  display: flex !important; align-items: center; gap: 10px;
  font-family: var(--font-body) !important; font-size: 1.05rem !important; font-weight: 600 !important;
  color: var(--forest) !important; border-bottom: none !important; margin-top: 18px;
}
.mobile-call svg { width: 20px; height: 20px; }
.mobile-overlay { position: fixed; inset: 0; z-index: 150; background: rgba(28, 26, 23, .25); }
.mobile-overlay[hidden] { display: none; }

/* ===== HERO ===== */
#hero { padding: 128px 0 64px; background: var(--cream); }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
.hero-copy h1 { margin-bottom: 18px; }
.hero-sub { font-size: clamp(15px, 1.8vw, 17px); color: var(--ink-soft); line-height: 1.7; margin-bottom: 30px; max-width: 440px; }

/* Two solid full-strength blocks meeting at a hard edge — no blend, no
   gradient, no texture overlay. Two same-position color stops (55%/55%)
   is what produces the crisp line instead of a soft transition. */
.hero-visual {
  position: relative;
  aspect-ratio: 4 / 5;
  background: linear-gradient(180deg, var(--forest) 0%, var(--forest) 55%, var(--rust) 55%, var(--rust) 100%);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.hero-visual svg { width: 88px; height: 88px; color: var(--white); position: relative; z-index: 1; }

@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1fr 0.9fr; gap: 64px; }
}

/* ===== TRUST LINE ===== */
#trust { padding: 0 0 var(--section-pad); background: var(--cream); }
.trust-line {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px;
  font-size: 14px; color: var(--ink-soft);
}
.trust-stars { display: flex; gap: 2px; color: var(--rust); }
.trust-stars svg { width: 15px; height: 15px; }
.trust-score { font-weight: 700; color: var(--ink); }
.trust-dot { color: var(--line); }

/* ===== CARD GRID (WHAT WE CARRY) ===== */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.card {
  background: var(--white);
  padding: 34px 26px;
  display: flex; flex-direction: column; gap: 14px;
}
.card-icon { color: var(--forest); }
.card-icon svg { width: 26px; height: 26px; }
.card-body p { font-size: 14.5px; }
.card-tag { font-size: 11px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--rust); margin-top: 2px; }

/* ===== MACHINE SERVICING ===== */
.service-block {
  max-width: 640px; margin: 0 auto; text-align: center;
}
.service-block p { font-size: 16px; margin-bottom: 8px; }
.service-note { font-size: 13.5px; font-weight: 600; letter-spacing: 0.5px; color: var(--rust); text-transform: uppercase; margin-top: 16px; }

/* ===== WHY SHOP HERE (FEATURES) ===== */
.features-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 40px; }
.feature-item { text-align: left; }
.feature-num {
  display: block;
  font-family: var(--font-head); font-size: 2.8rem; font-weight: 700; line-height: 1;
  color: var(--forest);
  margin-bottom: 14px;
}
.feature-item:nth-child(2) .feature-num { color: var(--rust); }
.feature-item p { font-size: 14.5px; }

/* ===== TESTIMONIAL ===== */
.testimonial-wrap { max-width: 680px; margin: 0 auto; text-align: center; }
.quote-mark { display: block; font-family: var(--font-head); font-size: 3.6rem; line-height: 1; color: var(--rust); margin-bottom: 8px; }
.quote-text { font-family: var(--font-head); font-weight: 400; font-style: italic; font-size: clamp(19px, 2.6vw, 26px); line-height: 1.55; color: var(--ink); margin-bottom: 22px; }
.testimonial-stars { display: flex; justify-content: center; gap: 3px; color: var(--rust); margin-bottom: 18px; }
.testimonial-stars svg { width: 16px; height: 16px; }
.quote-author { font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--ink); }
.quote-source { font-size: 12px; color: var(--ink-soft); }

/* ===== GALLERY ===== */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: 200px 200px; gap: 10px; }
/* Solid full-strength blocks, alternating forest/rust — no gradient wash. */
.gallery-item { position: relative; overflow: hidden; background: var(--forest); }
.gallery-item:nth-child(even) { background: var(--rust); }
.gallery-item-wide { grid-column: span 2; }
.gallery-img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.4s ease; }
.gallery-img.loaded { opacity: 1; }
.gallery-placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  color: var(--white); font-size: 12.5px; font-weight: 600; text-align: center; padding: 16px;
}
.gallery-placeholder svg { width: 22px; height: 22px; }
.gallery-placeholder.hidden { display: none; }

/* ===== LOCATION ===== */
.location-grid { display: grid; grid-template-columns: 1fr; gap: 28px; }
.map-wrap { overflow: hidden; border: 1px solid var(--line); height: 300px; }
.map-wrap iframe { display: block; width: 100%; height: 100%; filter: grayscale(0.25) contrast(0.96); }
.info-block { display: flex; flex-direction: column; gap: 22px; border-top: 4px solid var(--forest); padding-top: 24px; }
.info-row { display: flex; gap: 14px; align-items: flex-start; }
.info-icon { width: 20px; height: 20px; color: var(--forest); flex-shrink: 0; margin-top: 2px; }
.info-icon svg { width: 20px; height: 20px; }
.info-label { display: block; font-size: 11px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 5px; }
.info-value { color: var(--ink); font-size: 15px; line-height: 1.6; }
.info-link { color: var(--ink); font-weight: 600; border-bottom: 1px solid var(--line); }
.info-link:hover { color: var(--forest); border-color: var(--forest); }
.hours-table { width: 100%; border-collapse: collapse; margin-top: 2px; }
.hours-table td { padding: 4px 0; font-size: 14px; color: var(--ink); }
.hours-table td:first-child { color: var(--ink-soft); padding-right: 16px; }
.hours-table td:last-child { font-weight: 600; text-align: right; }
.hours-table tr { border-bottom: 1px solid var(--line); }
.hours-table tr:last-child { border-bottom: none; }
.hours-note { font-size: 12.5px; color: var(--ink-soft); margin-top: 8px; }

/* ===== FOOTER ===== */
footer { background: var(--cream); border-top: 4px solid var(--rust); padding: 48px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 32px; margin-bottom: 36px; }
.footer-logo .logo-text { font-family: var(--font-head); font-size: 1.15rem; font-weight: 500; color: var(--ink); }
.footer-tagline { font-size: 13.5px; line-height: 1.6; max-width: 280px; margin: 12px 0 16px; }
.footer-socials { display: flex; gap: 16px; }
.social-link { color: var(--ink-soft); transition: color 0.18s; }
.social-link svg { width: 17px; height: 17px; }
.social-link:hover { color: var(--forest); }
.footer-nav h4, .footer-contact h4 { color: var(--ink); }
.footer-nav ul { display: flex; flex-direction: column; gap: 9px; }
.footer-nav a, .footer-contact a { font-size: 13.5px; color: var(--ink-soft); transition: color 0.18s; }
.footer-nav a:hover, .footer-contact a:hover { color: var(--forest); }
.footer-contact p { font-size: 13.5px; margin-bottom: 7px; color: var(--ink-soft); }
.footer-contact p:last-child { margin-bottom: 0; }
.footer-bottom { padding-top: 22px; border-top: 1px solid var(--line); text-align: center; }
.footer-bottom p { font-size: 12.5px; color: var(--ink-soft); }

/* ===== RESPONSIVE ===== */
@media (min-width: 560px) { .nav-call-text { display: inline; } }

@media (min-width: 768px) {
  .nav-links { display: flex; }
  .hamburger { display: none; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery-grid { grid-template-rows: 220px 220px; }
  .location-grid { grid-template-columns: 1fr 1fr; }
  .map-wrap { height: 100%; min-height: 380px; }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; }
}

@media (min-width: 1024px) {
  .cards-grid { grid-template-columns: repeat(4, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); grid-template-rows: 240px 240px; }
}

@media (min-width: 1440px) { h1 { font-size: 4.2rem; } }

@media (max-width: 767px) {
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-template-rows: repeat(3, 160px); }
  .gallery-item-wide { grid-column: span 2; }
}
@media (max-width: 479px) {
  .gallery-grid { grid-template-columns: 1fr; grid-template-rows: repeat(6, 180px); }
  .gallery-item-wide { grid-column: span 1; }
}
