:root, [data-theme="daylight"] {
  --bg: #FAF9F6;
  --surface: #FFFFFF;
  --surface-alt: #F2EFE9;
  --text: #161615;
  --muted: #5C5B57;
  --border: #E2DFD7;
  --accent: #B45309;
  --accent-soft: rgba(180, 83, 9, 0.10);
}

[data-theme="midnight"] {
  --bg: #0E1013;
  --surface: #16191E;
  --surface-alt: #1E2229;
  --text: #F3F4F6;
  --muted: #9CA3AF;
  --border: #2A2F3A;
  --accent: #F59E0B;
  --accent-soft: rgba(245, 158, 11, 0.14);
}

[data-theme="zari"] {
  --bg: #1A1412;
  --surface: #241C19;
  --surface-alt: #2E2420;
  --text: #FDF8F2;
  --muted: #C7B9AE;
  --border: #3D302B;
  --accent: #EAB308;
  --accent-soft: rgba(234, 179, 8, 0.15);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  transition: background-color 0.25s ease, color 0.25s ease;
  -webkit-font-smoothing: antialiased;
}

.mono { font-family: 'JetBrains Mono', monospace; }
.serif { font-family: 'Instrument Serif', Georgia, serif; }

header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.brand-logo {
  width: 88px;
  height: 68px;
  flex: 0 0 auto;
  object-fit: contain;
}
nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
nav a { text-decoration: none; color: var(--muted); font-size: 0.85rem; transition: color 0.15s; }
nav a:hover { color: var(--text); }
nav a span { color: var(--accent); margin-right: 0.25rem; font-size: 0.75rem; }

.mood-bar {
  display: inline-flex;
  align-items: center;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.2rem;
  gap: 0.2rem;
}
.mood-btn {
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 0.75rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 500;
  transition: all 0.15s;
}
.mood-btn.active {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

main { max-width: 1120px; margin: 0 auto; padding: 0 1.5rem 5rem; }
section { padding: 4.5rem 0; border-bottom: 1px solid var(--border); }
section:last-of-type { border-bottom: none; }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 1rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
  align-items: center;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  padding-top: 4rem;
}
.hero-copy { min-width: 0; }
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

.hero-brand-logos {
  display: grid;
  justify-items: center;
  gap: 1.5rem;
}
.hero-brand-logos img {
  display: block;
  width: min(100%, 300px);
  max-height: 220px;
  object-fit: contain;
}

h1 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(2.75rem, 6vw, 4.65rem);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.025em;
  max-width: 15ch;
  margin-bottom: 1.35rem;
}

h1 em {
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
  padding-right: 0.04em;
}

.hero-sub {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  max-width: 58ch;
  color: var(--muted);
  font-size: clamp(1rem, 1.35vw, 1.12rem);
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: -0.005em;
  margin-bottom: 2.15rem;
}

.hero-sub strong {
  color: var(--text);
  font-weight: 500;
}
.hero-actions { display: flex; gap: 0.85rem; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.3rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid var(--border);
  transition: transform 0.15s, border-color 0.15s, background 0.15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-secondary { background: var(--surface); color: var(--text); }

h2 { font-size: clamp(1.85rem, 3.2vw, 2.5rem); font-weight: 400; line-height: 1.15; margin-bottom: 0.75rem; }
.section-desc { color: var(--muted); max-width: 58ch; margin-bottom: 2.25rem; }

.cap-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; }
.cap-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 1.5rem; }
.cap-num { color: var(--accent); font-size: 0.85rem; margin-bottom: 0.75rem; display: block; }
.cap-card h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 0.5rem; }
.cap-card p { font-size: 0.9rem; color: var(--muted); }

.filter-bar { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1.75rem; }
.filter-btn {
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.85rem;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
}
.filter-btn.active, .filter-btn:hover { background: var(--text); color: var(--bg); border-color: var(--text); }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 1.35rem; }
.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, transform 0.2s;
}
.product-card:hover { border-color: var(--accent); transform: translateY(-2px); }

/* .product-swatch {
  height: 155px;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  border-bottom: 1px solid var(--border);
  background-size: cover;
  background-position: center;
} */

.product-swatch {
  position: relative;
  height: 220px;
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  overflow: hidden;
  background-color: #FFFFFF;
  background-size: contain !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}
.product-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.swatch-gold {
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.14) 0px, rgba(255,255,255,0.14) 2px, transparent 2px, transparent 6px),
    linear-gradient(135deg, #92400E, #D97706, #FBBF24);
}
.swatch-silver {
  background:
    repeating-linear-gradient(-45deg, rgba(255,255,255,0.2) 0px, rgba(255,255,255,0.2) 2px, transparent 2px, transparent 6px),
    linear-gradient(135deg, #4B5563, #9CA3AF, #E5E7EB);
}
.swatch-core {
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.12) 0px, rgba(255,255,255,0.12) 1px, transparent 1px, transparent 5px),
    linear-gradient(135deg, #1E3A8A, #2563EB, #60A5FA);
}
.swatch-dyed {
  background:
    repeating-linear-gradient(30deg, rgba(255,255,255,0.12) 0px, rgba(255,255,255,0.12) 2px, transparent 2px, transparent 6px),
    linear-gradient(135deg, #7F1D1D, #B91C1C, #F87171);
}
.swatch-twine {
  background:
    repeating-linear-gradient(60deg, rgba(255,255,255,0.14) 0px, rgba(255,255,255,0.14) 2px, transparent 2px, transparent 6px),
    linear-gradient(135deg, #065F46, #059669, #34D399);
}

.product-tag {
  position: relative;
  z-index: 1;
  background: rgba(15, 15, 15, 0.72);
  color: #fff;
  backdrop-filter: blur(6px);
  font-size: 0.72rem;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
}
.product-body { padding: 1.35rem; flex: 1; display: flex; flex-direction: column; }
.product-body p strong {
  color: var(--text);
  font-weight: 600;
  font-size: 0.96rem; /* Slightly larger than the 0.88rem body text */
}
.product-index { font-size: 0.75rem; color: var(--muted); margin-bottom: 0.35rem; }
.product-body h3 { font-size: 1.12rem; font-weight: 600; margin-bottom: 0.5rem; }
.product-body p { font-size: 0.88rem; color: var(--muted); margin-bottom: 1.15rem; }

.metrics-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.15rem;
  margin-top: auto;
}
.metrics-row > div {
  display: grid;
  grid-template-rows: 1fr auto;
  min-width: 0;
}
.metric-val { font-size: 0.92rem; font-weight: 600; color: var(--text); display: block; }
.metric-lbl { font-size: 0.72rem; color: var(--muted); }

.quote-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.6rem 0.9rem;
  border-radius: 8px;
  background: var(--surface-alt);
  color: var(--text);
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 500;
  border: 1px solid var(--border);
  transition: background 0.15s, border-color 0.15s;
}
.quote-link:hover { border-color: var(--accent); background: var(--accent-soft); }

.spec-table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 0.9rem; }
th, td { padding: 1rem 1.25rem; border-bottom: 1px solid var(--border); }
th { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); background: var(--surface-alt); }
tr:last-child td { border-bottom: none; }

.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; }
.contact-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 1.4rem; }
.contact-card .lbl { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 0.4rem; display: block; }
.contact-val { font-size: 1rem; font-weight: 500; margin-bottom: 0.85rem; word-break: break-word; }
.copy-btn {
  padding: 0.4rem 0.75rem;
  font-size: 0.78rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--surface-alt);
  color: var(--text);
  cursor: pointer;
}
.copy-btn:hover { border-color: var(--accent); }

footer {
  max-width: 1120px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.84rem;
  border-top: 1px solid var(--border);
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.footer-logo {
  width: 104px;
  height: 80px;
  object-fit: contain;
}
footer a { color: var(--text); text-decoration: none; }

/* Keep phone & email links matching your site text colour — never browser blue */
#phoneVal a,
#emailVal a,
.contact-link,
.contact-link:visited,
.contact-link:active {
  color: inherit !important;
  text-decoration: none;
  font-weight: inherit;
}

#phoneVal a:hover,
#emailVal a:hover,
.contact-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* 2x2 Grid using existing .cap-card styling */
.contact-grid-4 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}

.contact-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

/* Make the 4 Contact Headers larger and bolder than the values below them */
/* Keep exact original .cap-num theme color — only adjust size and weight */
.contact-card-top .cap-num {
  margin-bottom: 0;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

/* Keep the values clean, readable, and slightly smaller than the headers */
.contact-grid-4 .cap-card h3 {
  font-size: 0.92rem;
  font-weight: 400;
  line-height: 1.55;
  margin: 0;
}

/* Keep links inheriting exact h3 font, size, weight, and theme color */
#phoneVal a,
#emailVal a,
.contact-link,
.contact-link:visited,
.contact-link:active {
  font: inherit;
  color: inherit !important;
  text-decoration: none;
}

#phoneVal a:hover,
#emailVal a:hover,
.contact-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 720px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-brand-logos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-items: start;
    width: min(100%, 360px);
    gap: 1rem;
  }

  .hero-brand-logos img {
    width: 100%;
    max-height: 100px;
  }

  .contact-grid-4 {
    grid-template-columns: 1fr;
  }

  #emailVal a {
    font-size: clamp(0.85rem, 3.8vw, 1.15rem);
  }
}
