/* AP Balaji Textiles. Brand kit of 20 Nov 2026: seal gold #d29b24 on brown #321600, Cinzel and Catamaran.
   Pages are cream for reading; the header, heroes, the 50-years band and the footer carry the seal's brown and gold. */
:root {
  --brown: #321600; --brown-2: #40200a; --brown-3: #5c3815; --shade: #1f0d00;
  --gold: #d29b24; --gold-2: #e6b75d; --gold-3: #f3dca6; --gold-ink: #8a5a0e;
  --cream: #fbf5ea; --cream-2: #f4e8d2; --paper: #fffaf1;
  --ink: #2a1505; --muted: #66513b; --line: #e7d7ba;
  --wa: #15803d; --wa-2: #116a32;
  --radius: 18px; --shadow: 0 10px 30px rgba(50, 22, 0, .14);
  --font: 'Catamaran', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Cinzel', Georgia, serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--cream); font-size: 18px; line-height: 1.6; overflow-wrap: break-word; }
/* Long Tamil words can't wrap inside a flex row unless its text column may shrink. */
.info > div, .how li, .how li > div, .points li, .points li > span, .mini, .bundle, .card, .way, .steps li { min-width: 0; }
img, svg { display: block; max-width: 100%; }
a { color: var(--gold-ink); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }
.center { text-align: center; }
.small { font-size: 15px; color: var(--muted); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: #fff; color: var(--brown); padding: 8px 14px; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

h1, h2, h3 { line-height: 1.2; margin: 0; }
h1, h2 { font-family: var(--display); font-weight: 700; letter-spacing: .01em; }
h3 { font-weight: 800; font-size: 22px; }
:lang(ta) h1, :lang(ta) h2 { font-family: var(--font); font-weight: 800; letter-spacing: 0; line-height: 1.3; }

/* ── header ─────────────────────────────────────────────── */
.top { background: var(--brown); color: var(--cream); position: sticky; top: 0; z-index: 50; border-bottom: 1px solid rgba(210, 155, 36, .35); }
.top-in { display: flex; align-items: center; gap: 14px; min-height: 68px; position: relative; }
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; margin-right: auto; }
.brand img { width: 44px; height: 44px; }
.brand b { display: block; font-family: var(--display); font-size: 18px; letter-spacing: .04em; color: var(--gold-3); line-height: 1.15; }
.brand small { display: block; font-size: 13px; color: var(--gold-2); letter-spacing: .1em; text-transform: uppercase; }
:lang(ta) .brand small { letter-spacing: 0; text-transform: none; font-size: 14px; }
.nav { display: flex; gap: 2px; }
.nav a { color: var(--cream); text-decoration: none; padding: 8px 12px; border-radius: 999px; font-weight: 600; font-size: 16px; }
.nav a:hover { background: rgba(255, 255, 255, .08); }
.nav a[aria-current="page"], .nav a.here { color: var(--gold-2); box-shadow: inset 0 -2px 0 var(--gold); border-radius: 0; }
.lang { color: var(--brown); background: var(--gold-2); text-decoration: none; font-weight: 700; padding: 7px 16px; border-radius: 999px; font-size: 15px; white-space: nowrap; }
.lang:hover { background: var(--gold-3); }
.menu { display: none; background: none; border: 1px solid rgba(230, 183, 93, .5); color: var(--gold-3); width: 44px; height: 44px; border-radius: 12px; padding: 10px; cursor: pointer; }
@media (max-width: 900px) {
  .menu { display: block; }
  .nav { position: absolute; left: -20px; right: -20px; top: 100%; flex-direction: column; background: var(--brown-2); padding: 8px 20px 16px; gap: 2px; border-bottom: 1px solid rgba(210, 155, 36, .35); display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 12px; border-radius: 10px; font-size: 18px; }
  .nav a[aria-current="page"], .nav a.here { border-radius: 10px; box-shadow: inset 3px 0 0 var(--gold); }
}
@media (max-width: 420px) { .brand b { font-size: 16px; } .brand img { width: 38px; height: 38px; } }

/* ── buttons ────────────────────────────────────────────── */
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.btns.center { justify-content: center; }
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 12px 22px; border-radius: 999px; font-weight: 700; font-size: 18px; text-decoration: none; border: 2px solid transparent; line-height: 1.2; cursor: pointer; }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn.wa { background: var(--wa); color: #fff; }
.btn.wa:hover { background: var(--wa-2); }
.btn.call { background: var(--gold-2); color: var(--brown); }
.btn.call:hover { background: var(--gold-3); }
.btn.ghost { border-color: var(--gold); color: var(--gold-ink); background: transparent; }
.btn.ghost:hover { background: rgba(210, 155, 36, .12); }
.btn.ghost svg { width: 18px; height: 18px; }
.btn.ghost.light { color: var(--gold-3); border-color: var(--gold-2); }
.btn.sm { min-height: 42px; padding: 8px 16px; font-size: 16px; margin-top: 12px; }

/* ── home hero ──────────────────────────────────────────── */
.hero { background: radial-gradient(ellipse 70% 80% at 78% 40%, #5a2c06 0%, var(--brown) 60%, var(--shade) 100%); color: var(--cream); padding-top: 56px; overflow: hidden; }
.hero-in { display: grid; grid-template-columns: 1.3fr .7fr; gap: 40px; align-items: center; padding-bottom: 52px; }
.eyebrow { font-family: var(--display); color: var(--gold-2); letter-spacing: .14em; text-transform: uppercase; font-size: 15px; font-weight: 700; margin: 0 0 14px; }
:lang(ta) .eyebrow { font-family: var(--font); letter-spacing: .01em; text-transform: none; font-size: 17px; }
.hero h1 { font-size: clamp(34px, 5vw, 56px); color: var(--gold-3); }
:lang(ta) .hero h1 { font-size: clamp(30px, 4.4vw, 50px); }
.lede { font-size: clamp(18px, 2.1vw, 21px); color: #eadbc0; margin: 18px 0 0; max-width: 42ch; }
.hero-seal img { width: min(320px, 100%); height: auto; margin: 0 auto; filter: drop-shadow(0 18px 40px rgba(0, 0, 0, .5)); }
.strip { display: flex; height: 14px; }
.strip i { flex: 1; }
@media (max-width: 820px) {
  .hero { padding-top: 28px; }
  .hero-in { grid-template-columns: 1fr; gap: 18px; padding-bottom: 36px; }
  .hero-seal { order: -1; }
  .hero-seal img { width: 150px; }
}

/* ── sections ───────────────────────────────────────────── */
.section { padding: 72px 0; }
.section.tint { background: var(--cream-2); }
.sec-head { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.sec-head h2 { font-size: clamp(28px, 3.6vw, 40px); color: var(--brown); }
.sec-head h2::after { content: ""; display: block; width: 84px; height: 3px; background: var(--gold); margin: 16px auto 0; border-radius: 2px; }
.sec-sub { color: var(--muted); font-size: 19px; margin: 14px 0 0; }
@media (max-width: 640px) { .section { padding: 52px 0; } .sec-head { margin-bottom: 28px; } }

/* ── product cards ──────────────────────────────────────── */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px; text-decoration: none; color: inherit; display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card .art { background: radial-gradient(circle at 50% 40%, #4a2304, var(--brown)); border-radius: 14px; padding: 18px; margin-bottom: 16px; display: grid; place-items: center; aspect-ratio: 1 / 1; }
.card .art svg { height: 100%; max-height: 210px; width: auto; }
.card h3 { color: var(--brown); }
.card p { color: var(--muted); margin: 8px 0 14px; font-size: 17px; flex: 1; }
.more { color: var(--gold-ink); font-weight: 700; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.more svg { width: 18px; height: 18px; }
@media (max-width: 980px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
  .cards, .cards.three { grid-template-columns: 1fr 1fr; gap: 12px; }
  .card { padding: 12px 12px 16px; }
  .card .art { padding: 10px; margin-bottom: 10px; }
  .card h3 { font-size: 18px; }
  .card p { font-size: 15px; margin: 4px 0 10px; }
  .more { font-size: 15px; }
}

/* ── two ways to buy ────────────────────────────────────── */
.ways { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.way { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.way .art { background: radial-gradient(circle at 50% 40%, #4a2304, var(--brown)); border-radius: 14px; width: 100%; display: grid; place-items: center; padding: 16px; margin-bottom: 20px; }
.way .art svg { height: 200px; width: auto; }
.way p { color: var(--muted); margin: 10px 0 20px; max-width: 40ch; }
.way .btn { margin-top: auto; }
@media (max-width: 760px) { .ways { grid-template-columns: 1fr; } .way { padding: 20px; } .way .art svg { height: 160px; } }

/* ── stitched in our own shop ───────────────────────────── */
.stitched { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: center; }
.stitched h2 { font-size: clamp(28px, 3.6vw, 40px); color: var(--brown); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; position: relative; }
.steps::before { content: ""; position: absolute; top: 48px; left: 12%; right: 12%; border-top: 3px dotted var(--gold); }
.steps li { display: flex; flex-direction: column; align-items: center; gap: 10px; position: relative; text-align: center; }
.ring { width: 96px; height: 96px; border-radius: 50%; background: var(--brown); color: var(--gold-2); display: grid; place-items: center; border: 2px solid var(--gold); box-shadow: var(--shadow); }
.ring svg { width: 56px; height: 56px; }
.step-name { font-weight: 800; font-size: 19px; color: var(--brown); }
@media (max-width: 820px) {
  .stitched { grid-template-columns: 1fr; gap: 28px; text-align: center; }
  .ring { width: 72px; height: 72px; }
  .ring svg { width: 40px; height: 40px; }
  .steps::before { top: 36px; }
  .step-name { font-size: 17px; }
}

/* ── 50 years ───────────────────────────────────────────── */
.years { background: radial-gradient(ellipse 60% 120% at 50% 50%, #5a2c06, var(--brown) 70%); color: var(--cream); padding: 56px 0; text-align: center; border-top: 3px solid var(--gold); border-bottom: 3px solid var(--gold); }
.years-big { font-family: var(--display); font-weight: 700; font-size: clamp(48px, 8vw, 88px); color: var(--gold-2); margin: 0; line-height: 1.05; }
:lang(ta) .years-big { font-family: var(--font); font-weight: 800; }
.years-line { font-size: 20px; margin: 12px auto 0; max-width: 46ch; color: #eadbc0; }

/* ── visit ──────────────────────────────────────────────── */
.visit-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 28px; align-items: stretch; }
.visit-info { display: flex; flex-direction: column; gap: 14px; }
.info { display: flex; gap: 16px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.info .ic { flex: none; width: 52px; height: 52px; border-radius: 50%; background: var(--brown); color: var(--gold-2); display: grid; place-items: center; }
.info .ic svg { width: 26px; height: 26px; }
.info h2, .info h3 { font-family: var(--display); font-size: 15px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-ink); }
:lang(ta) .info h2, :lang(ta) .info h3 { font-family: var(--font); text-transform: none; letter-spacing: 0; font-size: 17px; }
.info address { font-style: normal; font-weight: 600; margin-top: 4px; }
.info p { margin: 4px 0 0; }
.big-num a { font-size: 30px; font-weight: 800; color: var(--brown); text-decoration: none; letter-spacing: .02em; }
.note { background: rgba(210, 155, 36, .14); border-left: 4px solid var(--gold); padding: 12px 16px; border-radius: 8px; margin: 4px 0 0; font-size: 16px; }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); min-height: 380px; background: var(--cream-2); }
.map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }
@media (max-width: 860px) { .visit-grid { grid-template-columns: 1fr; } .map, .map iframe { min-height: 300px; } }

/* ── questions ──────────────────────────────────────────── */
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 2px 20px; margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 800; font-size: 19px; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; color: var(--brown); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold-ink); font-size: 26px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 16px; color: var(--muted); }

/* ── inner page heads ───────────────────────────────────── */
.pagehead { background: radial-gradient(ellipse 70% 90% at 80% 30%, #5a2c06 0%, var(--brown) 60%, var(--shade) 100%); color: var(--cream); padding: 36px 0 48px; border-bottom: 3px solid var(--gold); }
.pagehead-in { display: grid; grid-template-columns: 1.35fr .65fr; gap: 32px; align-items: center; }
.pagehead h1 { font-size: clamp(34px, 5vw, 54px); color: var(--gold-3); }
.pagehead-art { background: rgba(0, 0, 0, .2); border: 1px solid rgba(210, 155, 36, .35); border-radius: 20px; padding: 22px; display: grid; place-items: center; }
.pagehead-art svg { height: 240px; width: auto; }
.crumbs { font-size: 15px; color: var(--gold-2); margin-bottom: 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.crumbs a { color: var(--gold-2); }
@media (max-width: 760px) {
  .pagehead { padding: 24px 0 36px; }
  .pagehead-in { grid-template-columns: 1fr; gap: 18px; }
  .pagehead-art { order: -1; padding: 14px; }
  .pagehead-art svg { height: 150px; }
}

/* ── product page ───────────────────────────────────────── */
.product { max-width: 880px; }
.points { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 12px; }
.points li { display: flex; gap: 14px; align-items: flex-start; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; font-weight: 600; font-size: 19px; }
.points svg { flex: none; width: 24px; height: 24px; color: var(--wa); margin-top: 3px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mini { background: var(--cream-2); border-radius: 14px; padding: 20px; }
.mini h2 { font-family: var(--font); font-size: 15px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-ink); font-weight: 800; }
:lang(ta) .mini h2 { letter-spacing: 0; text-transform: none; font-size: 17px; }
.mini p { margin: 8px 0 0; font-size: 18px; }
@media (max-width: 640px) { .two { grid-template-columns: 1fr; } .points li { font-size: 17px; } }

/* ── for shops ──────────────────────────────────────────── */
.bundles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.bundle { background: var(--paper); border: 1px solid var(--line); border-top: 5px solid var(--gold); border-radius: 14px; padding: 20px; }
.bundle .size { font-weight: 800; font-size: 20px; color: var(--brown); margin: 8px 0 4px; line-height: 1.3; }
.bundle p { margin: 0; }
@media (max-width: 900px) { .bundles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .bundles { grid-template-columns: 1fr; } }
.how { list-style: none; margin: 0 auto 8px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: 1000px; }
.how li { display: flex; gap: 16px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.how .num { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--brown); color: var(--gold-2); display: grid; place-items: center; font-weight: 800; font-size: 20px; }
.how p { margin: 6px 0 0; color: var(--muted); }
@media (max-width: 860px) { .how { grid-template-columns: 1fr; } }

/* ── footer ─────────────────────────────────────────────── */
.foot { background: var(--shade); color: #d9c7a6; padding-top: 56px; }
.foot-in { display: grid; grid-template-columns: 1.4fr 1fr 1.3fr .8fr; gap: 32px; }
.foot h2 { font-family: var(--display); font-size: 15px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-2); margin-bottom: 14px; }
:lang(ta) .foot h2 { font-family: var(--font); letter-spacing: 0; text-transform: none; font-size: 17px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot a { color: #f3e5c8; text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot address { font-style: normal; margin-bottom: 8px; }
.foot p { margin: 4px 0; }
.foot-brand img { width: 80px; height: 80px; margin-bottom: 10px; }
.foot-name { font-family: var(--display); font-size: 20px; color: var(--gold-3); font-weight: 700; }
.social { display: flex; gap: 12px; }
.social a { width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(230, 183, 93, .5); display: grid; place-items: center; color: var(--gold-3); }
.social a:hover { background: rgba(230, 183, 93, .12); }
.social svg { width: 22px; height: 22px; }
.foot-base { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid rgba(230, 183, 93, .2); margin-top: 40px; padding-top: 18px; padding-bottom: 18px; font-size: 15px; }
@media (max-width: 860px) { .foot-in { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-in { grid-template-columns: 1fr; gap: 26px; } }

/* ── the bar that stays on phones ───────────────────────── */
.dock { display: none; }
@media (max-width: 900px) {
  .dock { display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(31, 13, 0, .96); border-top: 1px solid rgba(210, 155, 36, .4); }
  .dock .btn { justify-content: center; min-height: 50px; padding: 10px 12px; font-size: 17px; }
  body { padding-bottom: 76px; }
}

/* ── price, shown only once the shop sets one (content/site.json merchant) ── */
.price { margin: 18px 0 0; font-size: 20px; color: #eadbc0; }
.price span { font-size: 15px; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-2); margin-right: 6px; }
:lang(ta) .price span { letter-spacing: 0; text-transform: none; }
.price b { font-size: 30px; color: var(--gold-3); }


/* ── pictures: photos and illustrations fill their frame; drawings keep the brown panel ── */
.card .art:has(img), .way .art:has(img), .pagehead-art:has(img) { padding: 0; overflow: hidden; background: var(--cream-2); }
/* Cards stay square like the drawings beside them; page tops and the two-ways panels show the 3:2 photo. */
.card .art img { display: block; width: 100%; height: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.way .art img, .pagehead-art img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.way .art:has(img) svg, .pagehead-art:has(img) svg { display: none; }

/* ── the map: an address card until the visitor asks for Google's map ── */
.map-cover { height: 100%; min-height: 380px; display: grid; place-content: center; justify-items: center; gap: 10px; padding: 28px; text-align: center;
  background: radial-gradient(circle at 50% 40%, var(--paper), var(--cream-2)); }
.map-cover .ic { width: 64px; height: 64px; border-radius: 50%; background: var(--brown); color: var(--gold-2); display: grid; place-items: center; }
.map-cover .ic svg { width: 32px; height: 32px; }
.map-cover p { margin: 4px 0 0; font-weight: 600; }
.map-cover .btns { margin-top: 8px; }
.wholesale-row-link, .bundle h3 a { color: inherit; text-decoration: none; }
.bundle h3 a:hover { text-decoration: underline; color: var(--gold-ink); }
@media (max-width: 860px) { .map-cover { min-height: 300px; } }
