/* =========================================================
   Page-specific components
   ========================================================= */

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  background: var(--umber);
  color: var(--paper);
  padding: 96px 0 80px;
  overflow: hidden;
}
.hero-inner { position: relative; z-index: 2; max-width: 720px; }
.hero h1 { color: var(--paper); }
.hero .lede { color: #E7DCC7; font-size: 1.2rem; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 44px; }
.hero .tag-strip .tag-chip { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.22); color: #E7DCC7; }

/* ---------- Category preview chips (home) ---------- */
.cat-preview { display: flex; flex-wrap: wrap; gap: 12px; }
.cat-pill {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 10px 16px; border-radius: 999px; background: var(--paper);
  border: 1px solid var(--line); font-size: 0.86rem; font-weight: 500; color: var(--ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.cat-pill:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.cat-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }

/* ---------- Quote block ---------- */
.quote-block { max-width: 760px; margin: 0 auto; text-align: center; }
.quote-block blockquote { font-family: var(--font-display); font-style: italic; font-size: clamp(1.3rem, 2.6vw, 1.7rem); color: var(--umber); margin: 0 0 20px; line-height: 1.45; }
.quote-block cite { font-family: var(--font-mono); font-style: normal; font-size: 0.8rem; letter-spacing: 0.06em; color: var(--gold-dark); text-transform: uppercase; }
.section--umber .quote-block blockquote { color: var(--paper); }

/* ---------- Feature card (home featured products / value props) ---------- */
.feature-card { display: flex; flex-direction: column; gap: 14px; }
.feature-icon { width: 46px; height: 46px; color: var(--forest); }
.feature-icon svg { width: 100%; height: 100%; }
.feature-card h3 { margin-bottom: 4px; }
.feature-card p { color: #6B5B47; font-size: 0.95rem; margin: 0; }

/* ---------- Product filter bar ---------- */
.filter-bar { position: sticky; top: 73px; z-index: 40; background: var(--parchment); padding: 18px 0; border-bottom: 1px solid var(--line); }
.filter-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.filter-chip {
  font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.03em;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 15px; border-radius: 999px; border: 1.5px solid var(--line);
  background: var(--paper); color: var(--ink); transition: all 0.15s ease;
}
.filter-chip .cat-dot { width: 8px; height: 8px; }
.filter-chip:hover { border-color: var(--gold); }
.filter-chip.is-active { background: var(--umber); border-color: var(--umber); color: var(--paper); }
.filter-chip.is-active .cat-dot { box-shadow: 0 0 0 2px rgba(255,255,255,0.3); }
.filter-count { font-family: var(--font-mono); font-size: 0.82rem; color: #8B7A5C; margin-top: 10px; }

/* ---------- Specimen (product) card ---------- */
.specimen-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 920px) { .specimen-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .specimen-grid { grid-template-columns: 1fr; } }

.specimen-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  text-align: left;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
}
.specimen-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--gold); }
.specimen-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.specimen-num { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.08em; color: #A08A62; }
.specimen-icon { width: 56px; height: 56px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.specimen-icon svg { width: 30px; height: 30px; }
.specimen-card h3 { margin-bottom: 2px; font-size: 1.12rem; }
.specimen-tagline { color: #6B5B47; font-size: 0.88rem; margin: 0; }
.specimen-cat { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.04em; color: #6B5B47; margin-top: auto; }
.specimen-view { font-size: 0.82rem; font-weight: 600; color: var(--gold-dark); display: inline-flex; align-items: center; gap: 6px; }
.specimen-view svg { width: 15px; height: 15px; flex-shrink: 0; }

/* placeholder photo slot inside card, ready to swap for real photo */
.specimen-photo-slot {
  width: 100%; aspect-ratio: 4/3; border-radius: var(--radius-sm);
  border: 1.5px dashed var(--line); display: flex; align-items: center; justify-content: center;
  background: repeating-linear-gradient(135deg, rgba(74,50,34,0.03) 0px, rgba(74,50,34,0.03) 8px, transparent 8px, transparent 16px);
  overflow: hidden;
}
.specimen-photo-slot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.modal-photo { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius-sm); display: block; margin-bottom: 22px; }

/* ---------- Product detail modal ---------- */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(42,31,22,0.55); backdrop-filter: blur(2px);
  z-index: 300; display: flex; align-items: flex-end; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.25s ease;
}
.modal-overlay.is-open { opacity: 1; pointer-events: auto; }
@media (min-width: 720px) { .modal-overlay { align-items: center; padding: 24px; } }

.modal-panel {
  background: var(--paper); width: 100%; max-width: 640px;
  max-height: 88vh; max-height: 88dvh; overflow-y: auto; -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  border-radius: 20px 20px 0 0; padding: 36px 32px 40px; position: relative;
  transform: translateY(24px); transition: transform 0.3s ease;
}
.modal-overlay.is-open .modal-panel { transform: translateY(0); }
@media (min-width: 720px) { .modal-panel { border-radius: var(--radius); } }

.modal-close { position: absolute; top: 20px; right: 20px; width: 36px; height: 36px; border-radius: 50%; background: var(--parchment); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; }
.modal-close svg { width: 18px; height: 18px; }
.modal-head { display: flex; align-items: center; gap: 16px; margin-bottom: 6px; }
.modal-icon { width: 60px; height: 60px; border-radius: 14px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.modal-icon svg { width: 32px; height: 32px; }
.modal-cat { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.05em; margin-bottom: 14px; color: #6B5B47; }
.modal-panel h2 { font-size: 1.5rem; margin-bottom: 2px; }
.modal-tagline { color: #6B5B47; font-style: italic; margin-bottom: 20px; }
.modal-section { margin-bottom: 22px; }
.modal-section h4 { font-family: var(--font-mono); text-transform: uppercase; font-size: 0.72rem; letter-spacing: 0.1em; color: var(--gold-dark); margin-bottom: 10px; }
.modal-list li { position: relative; padding-left: 20px; margin-bottom: 8px; font-size: 0.95rem; }
.modal-list li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 6px; height: 6px; border-radius: 50%; background: var(--forest); }
.modal-callout { background: #FBF0DC; border: 1px solid #EAD3A0; border-left: 4px solid var(--rust); border-radius: var(--radius-sm); padding: 16px 18px; font-size: 0.88rem; color: #5C4A2E; }
.modal-callout strong { color: var(--rust); }

body.modal-open { overflow: hidden; }

/* ---------- Timeline (about) ---------- */
.timeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; counter-reset: step; }
@media (max-width: 800px) { .timeline { grid-template-columns: 1fr; } }
.timeline-item { position: relative; padding-top: 34px; }
.timeline-item::before {
  content: attr(data-year); counter-increment: step;
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em;
  display: inline-block; padding: 6px 12px; border-radius: 999px;
  background: var(--umber); color: var(--gold); position: absolute; top: 0; left: 0;
}

/* ---------- Values grid ---------- */
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 900px) { .values-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .values-grid { grid-template-columns: 1fr; } }
.value-card { text-align: center; padding: 26px 18px; }
.value-card .feature-icon { margin: 0 auto 12px; }
.value-card h3 { font-size: 1rem; }
.value-card p { font-size: 0.86rem; }

/* ---------- Leadership ---------- */
.leader-card { display: grid; grid-template-columns: 200px 1fr; gap: 30px; align-items: center; }
@media (max-width: 700px) { .leader-card { grid-template-columns: 1fr; } }
.leader-photo-slot {
  width: 100%; aspect-ratio: 1/1; border-radius: var(--radius);
  border: 1.5px dashed var(--line); display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 8px;
  color: #A08A62; font-family: var(--font-mono); font-size: 0.72rem; text-align: center; padding: 12px; background: var(--parchment);
}
.leader-photo-slot svg { width: 40px; height: 40px; }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 900px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
.gallery-tile {
  aspect-ratio: 1/1; border-radius: var(--radius-sm); border: 1.5px dashed var(--line);
  background: var(--paper); display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; color: #A08A62; text-align: center; padding: 10px;
}
.gallery-tile svg { width: 30px; height: 30px; }
.gallery-tile span { font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.03em; }
.gallery-tile--wide { grid-column: span 2; }
@media (max-width: 600px) { .gallery-tile--wide { grid-column: span 1; } }

/* ---------- Contact ---------- */
.contact-layout { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 44px; align-items: start; }
@media (max-width: 860px) { .contact-layout { grid-template-columns: 1fr; } }

.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-size: 0.86rem; font-weight: 600; margin-bottom: 7px; color: var(--umber); }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: 13px 15px; border-radius: var(--radius-sm); border: 1.5px solid var(--line);
  background: var(--paper); font-family: var(--font-body); font-size: 0.95rem; color: var(--ink);
  transition: border-color 0.15s ease;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--gold); outline: none; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 480px) { .form-row { grid-template-columns: 1fr; } }
.form-note { font-size: 0.82rem; color: #8B7A5C; margin-top: 12px; }
#form-status { margin-top: 14px; font-size: 0.9rem; font-weight: 600; display: none; }
#form-status.status-ok { display: block; color: var(--forest); }
#form-status.status-err { display: block; color: var(--rust); }

.contact-info-card { display: flex; flex-direction: column; gap: 22px; }
.contact-info-row { display: flex; gap: 14px; align-items: flex-start; }
.contact-info-icon { width: 38px; height: 38px; border-radius: 10px; background: var(--umber); color: var(--gold); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-info-icon svg { width: 19px; height: 19px; }
.contact-info-row h4 { margin: 0 0 3px; font-size: 0.95rem; color: var(--umber); }
.contact-info-row p, .contact-info-row a { margin: 0; font-size: 0.92rem; color: #6B5B47; }
.contact-info-row a:hover { color: var(--gold-dark); }

/* ---------- Page hero (interior pages) ---------- */
.page-hero { background: var(--umber); color: var(--paper); padding: 64px 0 56px; position: relative; overflow: hidden; }
.page-hero h1 { color: var(--paper); margin-bottom: 10px; }
.page-hero .lede { color: #E7DCC7; margin: 0; }

/* CTA band */
.cta-band { background: var(--gold); color: var(--umber-dark); text-align: center; padding: 64px 0; }
.cta-band h2 { color: var(--umber-dark); }
.cta-band .lede { color: var(--umber-dark); opacity: 0.85; margin: 0 auto 28px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta-band .btn-ghost { border-color: var(--umber-dark); color: var(--umber-dark); }
.cta-band .btn-ghost:hover { background: var(--umber-dark); color: var(--gold); }
.cta-band .btn-primary { background: var(--umber); color: var(--paper); }
.cta-band .btn-primary:hover { background: var(--umber-dark); }
