/* AVS Traders · avs.supply
   Brand: kolam line. Night to morning, top to bottom. */

@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url("/assets/fonts/jost-latin-var.woff2") format("woff2");
}

:root {
  --night: #0E1A2B;
  --night-2: #13233A;
  --dusk: #1D3150;
  --kumkum: #C8402F;
  --kumkum-text: #B5372A;   /* kumkum darkened for text on light (5:1) */
  --marigold: #F2A33A;
  --flour: #F4EDE1;
  --paper: #FBF8F2;
  --ink-soft: #3E4A5C;
  --on-night-soft: rgba(244, 237, 225, .74);
  --rule-dark: rgba(244, 237, 225, .14);
  --rule-light: rgba(14, 26, 43, .14);

  --font: "Jost", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --text: 1.0625rem;
  --lead: clamp(1.125rem, 1.05rem + .3vw, 1.25rem);
  --h1: clamp(2.6rem, 1.9rem + 3.4vw, 4.6rem);
  --h2: clamp(2rem, 1.6rem + 1.9vw, 3.2rem);
  --h3: 1.375rem;

  --max: 1180px;
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(72px, 9vw, 128px);
  --radius: 12px;
  --focus: var(--marigold);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--flour);
  color: var(--night);
  font-family: var(--font);
  font-size: var(--text);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--marigold); color: var(--night); padding: 10px 16px; border-radius: 8px; font-weight: 500;
}
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.dark { background-color: var(--night); color: var(--flour); --focus: var(--marigold); }
.light { --focus: var(--night); }
.pulli {
  background-image: radial-gradient(circle, rgba(244, 237, 225, .11) 1.2px, transparent 1.7px);
  background-size: 22px 22px;
  background-position: 11px 11px;
}

.kicker {
  font-size: .75rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase;
  color: var(--marigold);
}
.light .kicker { color: var(--kumkum-text); }
.h2 { font-size: var(--h2); font-weight: 300; line-height: 1.08; letter-spacing: -.01em; margin-top: 18px; text-wrap: balance; }
.intro { font-size: var(--lead); margin-top: 18px; max-width: 36rem; }
.dark .intro { color: var(--on-night-soft); }
.light .intro { color: var(--ink-soft); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px; border-radius: 999px; border: 1.5px solid transparent;
  font-size: 1rem; font-weight: 500; letter-spacing: .01em; text-decoration: none; cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--marigold); color: var(--night); }
.btn-primary:hover { background: #F6B455; }
.btn-ghost { border-color: rgba(244, 237, 225, .45); color: var(--flour); }
.btn-ghost:hover { border-color: var(--flour); background: rgba(244, 237, 225, .06); }
.light .btn-primary { background: var(--night); color: var(--flour); }
.light .btn-primary:hover { background: var(--dusk); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: .9375rem; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--night); color: var(--flour); border-bottom: 1px solid transparent; transition: border-color .2s ease; }
.site-header.is-scrolled { border-bottom-color: var(--rule-dark); }
.header-row { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand svg { width: 34px; height: 34px; color: var(--flour); }
.brand-name { font-size: 1.125rem; font-weight: 500; letter-spacing: .3em; margin-right: -.3em; }
.site-nav ul { display: flex; align-items: center; gap: 30px; }
.site-nav a { text-decoration: none; font-size: .96875rem; color: var(--on-night-soft); transition: color .2s ease; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--flour); }
.menu-toggle {
  display: none; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px;
  background: none; border: 1px solid var(--rule-dark); border-radius: 999px; color: var(--flour); cursor: pointer;
}
.menu-toggle .bars { width: 16px; height: 10px; position: relative; }
.menu-toggle .bars::before, .menu-toggle .bars::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform .2s ease, top .2s ease;
}
.menu-toggle .bars::before { top: 1px; }
.menu-toggle .bars::after { top: 7px; }
.nav-open .menu-toggle .bars::before { top: 4px; transform: rotate(45deg); }
.nav-open .menu-toggle .bars::after { top: 4px; transform: rotate(-45deg); }

/* Hero */
.hero { padding: clamp(40px, 7vw, 96px) 0 clamp(64px, 8vw, 112px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: var(--h1); font-weight: 300; line-height: 1.04; letter-spacing: -.018em; text-wrap: balance; }
.hero-lead { font-size: var(--lead); color: var(--on-night-soft); margin-top: 24px; max-width: 34rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-figure { justify-self: center; width: 100%; max-width: 470px; }

.hero-kolam { width: 100%; height: auto; overflow: visible; }
.hero-kolam .ghost { fill: none; stroke: var(--flour); stroke-opacity: .1; stroke-width: 3; }
.hero-kolam .line {
  fill: none; stroke: var(--flour); stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: draw 4.2s linear .3s forwards;
}
.hero-kolam .dot { fill: var(--flour); opacity: 0; transform-box: fill-box; transform-origin: center; animation: pop .5s ease-out forwards; }
.hero-kolam .d1 { animation-delay: .78s; }
.hero-kolam .d2 { animation-delay: 1.83s; }
.hero-kolam .d3 { animation-delay: 2.88s; }
.hero-kolam .d4 { animation-delay: 3.93s; }
.hero-kolam .centre { fill: var(--marigold); }
.hero-kolam .ring { fill: none; stroke: var(--marigold); stroke-width: 1.5; opacity: 0; transform-box: fill-box; transform-origin: center; animation: ring 1.6s ease-out 4.5s forwards; }
.hero-kolam .pen { fill: var(--marigold); }
.hero-kolam .lb { font-family: var(--font); font-size: 10.5px; font-weight: 500; letter-spacing: .24em; fill: var(--flour); opacity: 0; animation: fade .7s ease forwards; }
.hero-kolam .lb.sg { fill: var(--marigold); }
.hero-kolam .l1 { animation-delay: .9s; }
.hero-kolam .l2 { animation-delay: 1.95s; }
.hero-kolam .l3 { animation-delay: 3s; }
.hero-kolam .l4 { animation-delay: 4.05s; }
.hero-kolam .l5 { animation-delay: 4.55s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: scale(1); } }
@keyframes fade { to { opacity: .85; } }
@keyframes ring { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(2.6); } }

/* What we supply */
.supply { background-color: var(--dusk); padding: var(--section) 0; }
.supply-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 56px; }
.card { border: 1px solid var(--rule-dark); border-radius: 18px; padding: clamp(28px, 3vw, 40px); background: rgba(14, 26, 43, .32); display: flex; flex-direction: column; gap: 14px; }
.card-icon { width: 48px; height: 48px; color: var(--marigold); }
.card h3 { font-size: 1.75rem; font-weight: 400; line-height: 1.2; margin-top: 8px; }
.card .examples { font-size: 1.0625rem; color: var(--flour); }
.card .examples span { color: var(--on-night-soft); }
.card p { color: var(--on-night-soft); }
.supply-note { display: flex; align-items: baseline; gap: 12px; margin-top: 32px; color: var(--on-night-soft); }
.supply-note::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--marigold); flex: none; transform: translateY(-1px); }

/* Dawn stripe between night and morning */
.dawn { height: 14px; background: linear-gradient(var(--kumkum) 0 4px, var(--marigold) 4px 100%); }

/* How ordering works */
.how { padding: var(--section) 0; }
.steps { position: relative; margin-top: 64px; }
.steps-list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0 24px; }
.steps-line { position: absolute; left: 0; right: 0; top: 0; width: 100%; height: 80px; overflow: visible; }
.steps-line path { fill: none; stroke: var(--night); stroke-width: 1.75; }
.step { position: relative; padding-top: 104px; text-align: center; }
.step::before {
  content: ""; position: absolute; top: 33px; left: 50%; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%;
  background: var(--night);
}
.step:first-child::before { background: var(--kumkum); }
.step .num { font-size: .75rem; font-weight: 500; letter-spacing: .22em; color: var(--kumkum-text); }
.step h3 { font-size: var(--h3); font-weight: 500; line-height: 1.25; margin-top: 8px; }
.step p { margin-top: 10px; color: var(--ink-soft); font-size: 1rem; }

/* About */
.about { background: var(--paper); padding: var(--section) 0; border-top: 1px solid var(--rule-light); }
.about-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(40px, 6vw, 88px); align-items: start; }
.about-lead { margin-top: 20px; color: var(--ink-soft); font-size: var(--lead); max-width: 36rem; }
.facts { margin-top: 40px; border-top: 1px solid var(--rule-light); }
.facts div { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--rule-light); }
.facts dt { font-size: .75rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-soft); padding-top: 3px; }
.mark-card { border-radius: 22px; padding: clamp(32px, 4vw, 48px); }
.mark-card svg { width: 132px; height: 132px; color: var(--flour); }
.mark-card h3 { font-size: 1.5rem; font-weight: 400; margin-top: 28px; }
.mark-card p { margin-top: 12px; color: var(--on-night-soft); }

/* Order */
.order { padding: var(--section) 0; }
.order-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, .8fr); gap: clamp(32px, 5vw, 64px); margin-top: 48px; align-items: start; }
.form-card { background: var(--paper); border: 1px solid var(--rule-light); border-radius: 22px; padding: clamp(24px, 3.4vw, 44px); }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 22px; }
.field label { font-size: .9375rem; font-weight: 500; }
.field .opt { font-weight: 400; color: var(--ink-soft); }
.field input, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 10px; background: #fff;
  border: 1px solid rgba(14, 26, 43, .28); font-size: 1rem; line-height: 1.4;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #636C7A; }
.field input:hover, .field textarea:hover { border-color: rgba(14, 26, 43, .5); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--night); box-shadow: 0 0 0 3px rgba(242, 163, 58, .45); }
.field [aria-invalid="true"] { border-color: var(--kumkum-text); }
.field-error { font-size: .875rem; color: var(--kumkum-text); min-height: 0; }
.field-error:empty { display: none; }
.hint { font-size: .875rem; color: var(--ink-soft); }
.consent { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; align-items: start; margin: 4px 0 8px; font-size: .9375rem; color: var(--ink-soft); }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--night); }
.consent a { color: var(--night); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.turnstile { margin: 18px 0 6px; min-height: 65px; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 14px; }
.form-status { font-size: 1rem; }
.form-status:empty { display: none; }
.form-status.is-ok { color: #1F6B45; }
.form-status.is-error { color: var(--kumkum-text); }
.form-card.is-sent .form-status { font-size: 1.125rem; }

.contact h3 { font-size: 1.375rem; font-weight: 400; }
.contact-list { margin-top: 20px; border-top: 1px solid var(--rule-light); }
.contact-list li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--rule-light); }
.contact-list svg { width: 22px; height: 22px; color: var(--kumkum-text); margin-top: 3px; }
.contact-list .label { display: block; font-size: .75rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-soft); }
.contact-list a { text-decoration-color: rgba(14, 26, 43, .3); text-underline-offset: 3px; }
.contact-list a:hover { text-decoration-color: currentColor; }
.contact-note { margin-top: 18px; font-size: .9375rem; color: var(--ink-soft); }

/* Footer */
.site-footer { padding: 72px 0 40px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 32px; padding-bottom: 40px; border-bottom: 1px solid var(--rule-dark); }
.footer-brand { display: flex; align-items: center; gap: 16px; }
.footer-brand svg { width: 48px; height: 48px; color: var(--flour); }
.footer-brand .brand-name { font-size: 1.375rem; }
.footer-line { font-size: 1.375rem; font-weight: 300; color: var(--on-night-soft); }
.footer-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; padding: 40px 0; font-size: .9375rem; color: var(--on-night-soft); }
.footer-cols h2 { font-size: .75rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--flour); margin-bottom: 12px; }
.footer-cols a { display: inline-block; padding: 5px 0; text-decoration-color: rgba(244, 237, 225, .3); text-underline-offset: 3px; }
.footer-cols a:hover { color: var(--flour); }
.footer-cols li + li { margin-top: 2px; }
.footer-bottom { font-size: .875rem; color: rgba(244, 237, 225, .6); }

/* Simple pages */
.page-head { padding: clamp(56px, 8vw, 104px) 0 clamp(48px, 6vw, 72px); }
.page-head h1 { font-size: var(--h2); font-weight: 300; line-height: 1.08; }
.page-head p { margin-top: 16px; color: var(--on-night-soft); }
.prose { padding: clamp(48px, 6vw, 80px) 0 var(--section); }
.prose .wrap > * { max-width: 44rem; }
.prose h2 { font-size: 1.5rem; font-weight: 400; margin-top: 44px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose ul { margin-top: 14px; color: var(--ink-soft); }
.prose ul { list-style: disc; padding-left: 1.25rem; }
.prose li + li { margin-top: 6px; }

@media (max-width: 960px) {
  .site-nav { position: fixed; inset: 76px 0 auto; background: var(--night); border-bottom: 1px solid var(--rule-dark); padding: 8px var(--gutter) 28px; display: none; }
  .nav-open .site-nav { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav li a { display: block; padding: 16px 0; font-size: 1.25rem; color: var(--flour); border-bottom: 1px solid var(--rule-dark); }
  .menu-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-figure { max-width: 380px; }
  .supply-grid { grid-template-columns: 1fr; }
  .about-grid, .order-grid { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { margin-top: 44px; }
  .steps-list { grid-template-columns: 1fr; gap: 0; }
  .steps-line { display: none; }
  .steps::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 1.75px; background: var(--night); }
  .step { text-align: left; padding: 0 0 36px 44px; }
  .step:last-child { padding-bottom: 0; }
  .step::before { top: 5px; left: 0; margin-left: 0; }
}
@media (max-width: 640px) {
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .facts div { grid-template-columns: 1fr; gap: 4px; }
  .footer-cols { grid-template-columns: 1fr; }
  .brand-name { letter-spacing: .26em; }
  .hero-actions .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-kolam .line { animation: none; stroke-dashoffset: 0; }
  .hero-kolam .dot, .hero-kolam .lb { animation: none; opacity: .85; }
  .hero-kolam .dot { opacity: 1; }
  .hero-kolam .ring, .hero-kolam .pen { display: none; }
  .btn, .site-nav a, .site-header { transition: none; }
}
