/* Inkwave Nepal — shared stylesheet */

:root {
  --bg: #FBFAF7;
  --ink: #23211D;
  --ink-soft: #5C5749;
  --ink-faint: #8A8474;
  --line: #E4DFD4;
  --accent: #C4841E;
  --white: #FFFFFF;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--accent); }

img { max-width: 100%; display: block; }

.disp {
  font-family: 'Instrument Serif', 'IBM Plex Sans', serif;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 80px);
}

.divider { height: 1px; background: var(--line); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-family: inherit;
}
.btn-fill { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn-fill:hover { background: var(--accent); border-color: var(--accent); color: var(--white); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.icon { width: 22px; height: 22px; flex-shrink: 0; }

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

/* Header / Nav */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px clamp(20px, 5vw, 80px);
  flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 34px; width: auto; }
.brand span { font-size: 22px; font-style: italic; font-family: 'Instrument Serif', serif; white-space: nowrap; }

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(20px, 4vw, 48px);
  flex-wrap: wrap;
}
.navlink {
  font-size: 14px;
  font-weight: 500;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.navlink.active { border-bottom-color: var(--accent); }

/* Hero */
.hero {
  padding: clamp(60px, 10vw, 120px) clamp(20px, 5vw, 80px) clamp(50px, 8vw, 100px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero h1 { font-size: clamp(44px, 8vw, 104px); line-height: 1.03; margin: 0 0 28px; max-width: 920px; }
.hero p { font-size: 18px; line-height: 1.7; color: var(--ink-soft); max-width: 520px; margin: 0 0 40px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }

/* Two-column split */
.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.split-cell {
  padding: clamp(48px, 8vw, 80px) clamp(24px, 6vw, 72px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.split-cell.bordered { border-right: 1px solid var(--line); }
@media (max-width: 720px) {
  .split { grid-template-columns: 1fr; }
  .split-cell.bordered { border-right: none; border-bottom: 1px solid var(--line); }
}
.split-cell h2 { font-size: clamp(30px, 5vw, 40px); margin: 0; }
.split-cell p { font-size: 15px; line-height: 1.7; color: var(--ink-soft); max-width: 380px; margin: 0; }

/* Product / feature grids */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 56px);
}
@media (max-width: 860px) {
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .grid-3 { grid-template-columns: 1fr; }
}

.section { padding: clamp(60px, 9vw, 100px) clamp(20px, 5vw, 80px); }
.section-head { text-align: center; margin-bottom: 56px; }
.section-head.left { text-align: left; }
.section-head h2 { font-size: clamp(34px, 5vw, 48px); margin: 0; }

.feature-icon-box {
  width: 64px; height: 64px;
  border: 1px solid var(--ink);
  display: flex; align-items: center; justify-content: center;
}

/* Product catalog cards */
.pcard { border: 1px solid var(--line); display: flex; flex-direction: column; }
.pcard .swatch { width: 100%; aspect-ratio: 4 / 3; overflow: hidden; display: flex; align-items: center; justify-content: center; padding: 22px; box-sizing: border-box; }
.pcard .swatch img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.pcard-body { padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.pcard-label { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); }
.pcard-body h3 { font-size: 17px; font-weight: 600; margin: 0; }
.pcard-body p { font-size: 13px; line-height: 1.6; color: var(--ink-soft); margin: 0; }
.pcard-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.price { font-size: 14px; font-weight: 600; color: var(--accent); }
.order-link { font-size: 12.5px; font-weight: 600; border-bottom: 1px solid var(--ink); }

.tabs { display: flex; gap: 12px; flex-wrap: wrap; }
.tab { font-size: 13.5px; font-weight: 500; padding: 10px 20px; border: 1px solid var(--line); color: var(--ink-soft); }
.tab.active { border-color: var(--ink); color: var(--ink); font-weight: 600; }

/* Forms */
.field {
  border: 1px solid var(--ink);
  padding: 15px 18px;
  font-size: 14px;
  font-family: inherit;
  color: var(--ink);
  width: 100%;
  background: var(--bg);
}
.field::placeholder { color: var(--ink-faint); }

/* Footer */
.site-footer { padding: 56px clamp(20px, 5vw, 80px) 40px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col .heading { font-weight: 600; font-size: 13px; margin-bottom: 6px; }
.footer-col a, .footer-col div { color: var(--ink-soft); font-size: 13px; }
.footer-tagline { font-size: 13px; line-height: 1.7; color: var(--ink-faint); max-width: 260px; margin: 8px 0 0; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 12px; color: var(--ink-faint); padding-top: 24px; }

/* Utility */
.center { text-align: center; }
.mt-8 { margin-top: 8px; }

/* Social links in footer */
.social-links a { margin-left: 4px; }
.social-links a:first-child { margin-left: 0; }

/* Scroll-reveal */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s cubic-bezier(.2,.7,.3,1), transform .7s cubic-bezier(.2,.7,.3,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Product cards: clickable, animated */
.pcard { cursor: pointer; transition: transform .3s ease, box-shadow .3s ease; }
.pcard:hover, .pcard:focus-visible { transform: translateY(-6px); box-shadow: 0 18px 34px rgba(35,33,29,0.12); outline: none; }
.pcard .swatch { position: relative; }
.pcard .swatch img { transition: transform .5s ease; }
.pcard:hover .swatch img { transform: scale(1.06); }
.view-details { font-size: 12.5px; font-weight: 600; border-bottom: 1px solid var(--ink); }
.pcard:hover .view-details { color: var(--accent); border-color: var(--accent); }

.tab { cursor: pointer; transition: border-color .2s ease, color .2s ease; }

.split-cell, .step, .grid-3 > div { transition: transform .3s ease; }
.split-cell:hover { transform: translateY(-2px); }

/* Product detail modal */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(35,33,29,0.55);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal-panel {
  background: var(--bg);
  width: 100%; max-width: 880px; max-height: 88vh; overflow-y: auto;
  display: grid; grid-template-columns: 1fr 1fr;
  box-shadow: 0 30px 70px rgba(0,0,0,0.3);
  transform: scale(.95) translateY(10px);
  transition: transform .3s cubic-bezier(.2,.8,.3,1);
}
.modal-overlay.open .modal-panel { transform: scale(1) translateY(0); }
@media (max-width: 720px) { .modal-panel { grid-template-columns: 1fr; } }
.modal-image { background: #EFEBE1; display: flex; align-items: center; justify-content: center; padding: 32px; min-height: 260px; }
.modal-image img { max-height: 340px; width: auto; object-fit: contain; }
.modal-body { padding: clamp(28px, 4vw, 44px); display: flex; flex-direction: column; gap: 16px; position: relative; }
.modal-close {
  position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--bg); color: var(--ink);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: border-color .2s ease, color .2s ease, transform .2s ease;
}
.modal-close:hover { border-color: var(--accent); color: var(--accent); transform: rotate(90deg); }
.modal-price { font-size: 20px; font-weight: 600; color: var(--accent); }
.modal-label { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 8px; }
.chip-row { display: flex; gap: 10px; flex-wrap: wrap; }
.chip {
  border: 1px solid var(--line); padding: 9px 16px; font-size: 13px; font-weight: 500;
  cursor: pointer; background: var(--bg); color: var(--ink); font-family: inherit;
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.chip:hover { border-color: var(--ink); }
.chip.selected { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.color-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.color-swatch {
  width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--line);
  cursor: pointer; transition: transform .15s ease, border-color .15s ease; padding: 0;
}
.color-swatch.selected { border-color: var(--accent); transform: scale(1.15); }
.color-label { font-size: 13px; color: var(--ink-soft); }
.size-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.size-table th, .size-table td { border: 1px solid var(--line); padding: 8px 10px; text-align: center; }
.size-table th { background: #F2EEE4; font-weight: 600; }
body.modal-open { overflow: hidden; }
