/* Sholapur Terry Co — brand guidelines v1.1
   Layout: full-width plum and ivory bands; content in a 1160px measure; plum leads, ivory carries the reading. */
/* Brand fonts, self-hosted (SIL Open Font License) */
@font-face { font-family: "Cormorant Garamond"; font-weight: 600; font-style: normal; font-display: swap; src: url("/cormorant-garamond-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 700; font-style: normal; font-display: swap; src: url("/cormorant-garamond-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 600; font-style: italic; font-display: swap; src: url("/cormorant-garamond-latin-600-italic.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-weight: 400; font-style: normal; font-display: swap; src: url("/jost-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-weight: 500; font-style: normal; font-display: swap; src: url("/jost-latin-500-normal.woff2") format("woff2"); }

:root {
  --plum: #4B3870;      /* hero */
  --deep: #2F2349;      /* text ink */
  --ivory: #F7F4EE;     /* surface */
  --mist: #F3EFF9;      /* light surface */
  --gold: #D8B45E;      /* action, middle bar */
  --sage: #A6BE8C;      /* top bar */
  --soft: #B3A0D1;      /* bottom bar */
  --muted: #5A5468;     /* secondary text on light */
  --dgold: #8A6A1F;     /* figures on light */
  --line: #DDD3EE;      /* hairlines on light */
  --onplum: #E6E0F0;    /* secondary text on plum */
  --plumline: #6E5E92;  /* hairlines on plum */
  --white: #FFFFFF;
  --serif: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --sans: "Jost", "Futura", "Century Gothic", "Helvetica Neue", Arial, sans-serif;
  --measure: 1160px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--deep);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.wrap {
  max-width: var(--measure);
  margin: 0 auto;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
}
@media (max-width: 600px) {
  body { font-size: 17px; }
  .wrap { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
}

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--serif); color: inherit; margin: 0; text-wrap: balance; letter-spacing: -0.005em; }
h1 { font-weight: 700; font-size: clamp(42px, 6.2vw, 64px); line-height: 1.02; }
h2 { font-weight: 600; font-size: clamp(32px, 4vw, 44px); line-height: 1.1; }
h3 { font-weight: 600; font-size: clamp(24px, 2.4vw, 28px); line-height: 1.2; }
p { margin: 0; }
.lead { font-size: clamp(19px, 1.7vw, 21px); line-height: 1.55; max-width: 34em; }
.label { font-family: var(--sans); font-weight: 500; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; }
.small { font-size: 15px; line-height: 1.5; color: var(--muted); }
.plum .small { color: var(--onplum); }
.num { font-variant-numeric: tabular-nums; }

/* ---------- bands ---------- */
.plum { background: var(--plum); color: var(--ivory); }
.plum .label { color: var(--gold); }
.plum .lead { color: var(--onplum); }
.deep { background: var(--deep); color: var(--ivory); }
.mist { background: var(--mist); }
.band { padding-block: clamp(56px, 8vw, 104px); }
.light .label, .mist .label { color: var(--plum); }
.stack { display: flex; flex-direction: column; gap: 18px; }

/* ---------- buttons ---------- */
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--sans); font-weight: 500; font-size: 16px; line-height: 1;
  padding: 15px 22px; min-height: 48px; text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn-gold { background: var(--gold); color: var(--deep); }
.btn-gold:hover { background: #E3C277; }
.btn-plum { background: var(--plum); color: var(--ivory); }
.btn-plum:hover { background: var(--deep); }
.btn-line-light { border-color: #9C8CBF; color: var(--ivory); background: transparent; }
.btn-line-light:hover { border-color: var(--ivory); }
.btn-line { border-color: var(--plum); color: var(--plum); background: transparent; }
.btn-line:hover { background: var(--plum); color: var(--ivory); }

/* ---------- header ---------- */
.site-head { background: var(--plum); color: var(--ivory); position: relative; z-index: 5; }
.head-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 18px; border-bottom: 1px solid var(--plumline); }
.brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; }
.brand-name { display: flex; flex-direction: column; line-height: 1; }
.brand-name b { font-family: var(--serif); font-weight: 600; font-size: 30px; line-height: .9; letter-spacing: 0; }
.brand-name span { font-family: var(--sans); font-size: 9.5px; letter-spacing: 0.5em; margin-top: 6px; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { font-weight: 500; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; padding-block: 6px; border-bottom: 1px solid transparent; }
.nav a:hover { border-bottom-color: var(--soft); }
.nav a[aria-current="page"] { border-bottom-color: var(--gold); }
.nav .btn { text-transform: none; letter-spacing: 0; font-size: 15px; min-height: 42px; padding: 11px 18px; border-bottom: 1px solid #9C8CBF; }
.menu-btn { display: none; font-family: var(--sans); font-weight: 500; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; background: transparent; color: var(--ivory); border: 1px solid #9C8CBF; padding: 10px 14px; min-height: 42px; cursor: pointer; }
@media (max-width: 900px) {
  .menu-btn { display: inline-flex; align-items: center; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--deep); flex-direction: column; align-items: stretch; gap: 0;
         padding: 8px max(16px, env(safe-area-inset-right, 0px)) 20px max(16px, env(safe-area-inset-left, 0px)); }
  .nav.open { display: flex; }
  .nav a { padding-block: 14px; border-bottom: 1px solid var(--plumline); }
  .nav a[aria-current="page"] { color: var(--gold); border-bottom-color: var(--plumline); }
  .nav .btn { margin-top: 16px; justify-content: center; border: 1px solid #9C8CBF; }
}

/* ---------- hero ---------- */
.hero { padding-block: clamp(48px, 7vw, 96px) clamp(56px, 8vw, 112px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.hero-art { position: relative; min-width: 0; }
.hero-art svg { display: block; width: 100%; height: auto; }
.hero-art .stamp { margin: 18px 0 0 auto; max-width: 300px; background: var(--deep); }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-art { max-width: 520px; }
}
.page-hero { padding-block: clamp(44px, 6vw, 80px); }
.page-hero .stack { max-width: 760px; }

/* ---------- serves strip ---------- */
.serves { border-bottom: 1px solid var(--line); background: var(--white); }
.serves-in { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 34px; padding-block: 22px; }
.serves-in .label { color: var(--muted); }
.serves-in span:not(.label) { font-family: var(--serif); font-weight: 600; font-size: 22px; color: var(--deep); }

/* ---------- proof stamp ---------- */
.stamp { background: var(--white); border: 1px solid var(--plum); padding: 14px 18px; color: var(--deep); font-size: 15px; line-height: 1.6; }
.stamp-h { font-weight: 500; font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--plum); margin-bottom: 6px; }
.stamp .gsm { color: var(--dgold); font-weight: 500; }
.plum .stamp.on-plum, .stamp.on-plum { background: transparent; border-color: var(--gold); color: var(--ivory); }
.stamp.on-plum .stamp-h, .stamp.on-plum .gsm { color: var(--gold); }

/* ---------- sections ---------- */
.sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: clamp(28px, 4vw, 44px); }
.sec-head .stack { max-width: 640px; gap: 12px; }

.products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 980px) { .products { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .products { grid-template-columns: minmax(0, 1fr); } .product-art { aspect-ratio: 16 / 9; } }
.product { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); min-width: 0; }
.product-art { background: var(--mist); aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; padding: 18px; max-width: 100%; }
.product-art svg { width: 88%; height: auto; }
.product-body { display: flex; flex-direction: column; gap: 12px; padding: 20px 22px 24px; flex: 1; }
.product-body .stamp { border-color: var(--line); padding: 12px 14px; margin-top: auto; font-size: 14.5px; }
.product-body p { font-size: 16px; line-height: 1.55; color: var(--muted); }
.tag { align-self: flex-start; font-weight: 500; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--plum); }

.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 48px); }
@media (max-width: 860px) { .three { grid-template-columns: minmax(0, 1fr); } }
.three > div { display: flex; flex-direction: column; gap: 12px; min-width: 0; border-top: 1px solid var(--line); padding-top: 22px; }
.plum .three > div { border-top-color: var(--plumline); }
.three p { color: var(--muted); }
.plum .three p { color: var(--onplum); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; counter-reset: s; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: minmax(0, 1fr); } }
.steps li { counter-increment: s; display: flex; flex-direction: column; gap: 10px; min-width: 0; padding-top: 18px; border-top: 1px solid var(--plumline); }
.steps li::before { content: counter(s); font-family: var(--serif); font-weight: 700; font-size: 40px; line-height: 1; color: var(--gold); }
.steps p { color: var(--onplum); font-size: 16.5px; line-height: 1.55; }
.light .steps li { border-top-color: var(--line); }
.light .steps li::before { color: var(--dgold); }
.light .steps p { color: var(--muted); }

.cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta .stack { max-width: 620px; gap: 12px; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); background: var(--white); }
table { width: 100%; border-collapse: collapse; font-size: 16px; min-width: 560px; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 500; font-size: 12.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--plum); background: var(--mist); }
tr:last-child td { border-bottom: 0; }
td.num { color: var(--dgold); font-weight: 500; white-space: nowrap; }

/* ---------- filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filters button { font-family: var(--sans); font-weight: 500; font-size: 15px; padding: 10px 16px; min-height: 44px; background: transparent; color: var(--plum); border: 1px solid var(--line); cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--plum); color: var(--ivory); border-color: var(--plum); }

/* ---------- split / prose ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } }
.prose { display: flex; flex-direction: column; gap: 18px; max-width: 36em; min-width: 0; }
.prose p { color: var(--deep); }
.quote { font-family: var(--serif); font-weight: 600; font-style: italic; font-size: clamp(26px, 3vw, 34px); line-height: 1.25; color: var(--plum); }
.plum .quote { color: var(--ivory); }
.spell { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 520px) { .spell { grid-template-columns: minmax(0, 1fr); } }
.spell > div { background: var(--white); border: 1px solid var(--line); padding: 20px 22px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.spell b { font-family: var(--serif); font-weight: 700; font-size: 34px; line-height: 1.05; }
.spell p { font-size: 16px; color: var(--muted); }

/* ---------- contact ---------- */
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
@media (max-width: 620px) { .form { grid-template-columns: minmax(0, 1fr); } }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label, .field legend { font-weight: 500; font-size: 14px; letter-spacing: 0.04em; color: var(--deep); padding: 0; }
.field .hint { font-size: 14px; color: var(--muted); }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], select, textarea {
  font: inherit; font-size: 17px; color: var(--deep); background: var(--white); border: 1px solid #C9BEDF; padding: 12px 14px; min-height: 50px; width: 100%; border-radius: 0;
}
textarea { min-height: 130px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--plum); outline-offset: 0; border-color: var(--plum); }
fieldset.field { border: 0; margin: 0; padding: 0; }
.checks { display: flex; flex-wrap: wrap; gap: 10px; }
.checks label { display: inline-flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 400; letter-spacing: 0; border: 1px solid #C9BEDF; background: var(--white); padding: 9px 14px; cursor: pointer; }
.checks input { accent-color: var(--plum); width: 18px; height: 18px; }
.err { color: #9B2C2C; font-size: 14px; }
.notice { grid-column: 1 / -1; border: 1px solid var(--plum); background: var(--mist); padding: 16px 18px; font-size: 16px; }
.contact-card { background: var(--plum); color: var(--ivory); padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.contact-card .label { color: var(--gold); }
.contact-line { display: flex; flex-direction: column; gap: 6px; }
.contact-line .val { font-size: 18px; word-break: break-word; }
.copy { align-self: flex-start; font-family: var(--sans); font-weight: 500; font-size: 14px; background: transparent; color: var(--ivory); border: 1px solid #9C8CBF; padding: 8px 12px; cursor: pointer; }

/* ---------- footer ---------- */
.site-foot { background: var(--deep); color: var(--ivory); padding-block: 56px 32px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 36px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: minmax(0, 1fr); } }
.foot-grid .label { color: var(--gold); margin-bottom: 12px; display: block; }
.foot-grid a { text-decoration: none; display: block; padding-block: 4px; color: var(--onplum); }
.foot-grid a:hover { color: var(--ivory); }
.foot-grid p { color: var(--onplum); font-size: 16px; }
.foot-legal { margin-top: 44px; padding-top: 20px; border-top: 1px solid #4A3F66; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 14px; color: #B9B0CC; }

.demo-flag { background: var(--gold); color: var(--deep); font-size: 14px; text-align: center; padding: 8px 16px; font-weight: 500; }

@media (prefers-reduced-motion: no-preference) {
  .hero-art svg .fold { animation: settle .9s cubic-bezier(.2, .7, .2, 1) both; }
  .hero-art svg .fold:nth-of-type(2) { animation-delay: .08s; }
  .hero-art svg .fold:nth-of-type(3) { animation-delay: .16s; }
  .hero-art svg .fold:nth-of-type(4) { animation-delay: .24s; }
  @keyframes settle { from { transform: translateY(-10px); } to { transform: none; } }
}

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
