/* Sri Abirami Sparklers — detailed sections (why us, range, occasions, process, timeline, FAQ) */
body { counter-reset: ch; }
.chapter b::before { counter-increment: ch; content: counter(ch, decimal-leading-zero); }
.why, .range, .occasions, .process, .timeline-sec, .faq { padding: clamp(90px, 12vw, 150px) 0; }

/* why us */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.why-card { border: 1px solid var(--line); border-radius: var(--r); padding: 30px 26px; background: linear-gradient(180deg, rgb(var(--bg3-rgb) / .5), rgb(var(--bg2-rgb) / .2)); transition: border-color .4s, transform .6s var(--ease), background .4s; }
.why-card:hover { border-color: rgb(var(--accent-rgb) / .4); transform: translateY(-6px); background: linear-gradient(180deg, rgb(var(--bg3-rgb) / .6), rgb(var(--bg2-rgb) / .3)); }
.why-card svg { width: 42px; height: 42px; fill: none; stroke: var(--accent); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 22px; }
.why-card h3 { font: 500 25px/1.15 var(--serif); margin: 0 0 10px; }
.why-card p { color: var(--ink-2); font-weight: 300; font-size: 14.5px; margin: 0; }

/* range table */
.range-wrap { display: grid; grid-template-columns: 1fr 260px; gap: 28px; align-items: start; }
.range-table { border: 1px solid var(--line); border-radius: var(--r); overflow-x: auto; background: rgb(var(--bg2-rgb) / .45); }
.rt-row { display: grid; grid-template-columns: 130px repeat(var(--cols), minmax(46px, 1fr)); border-bottom: 1px solid var(--line); min-width: 620px; }
.rt-row:last-child { border-bottom: 0; }
.rt-row > * { padding: 12px 6px; display: grid; place-items: center; font-size: 12px; }
.rt-head > * { color: var(--ink-3); letter-spacing: .08em; font-weight: 500; }
.rt-fx { justify-items: start !important; padding-left: 18px !important; font: 400 18px/1 var(--serif) !important; }
.rt-row:not(.rt-head):hover { background: rgb(var(--accent-rgb) / .05); }
.rt-dot { width: 28px; height: 28px; border-radius: 50%; border: 0; background: none; cursor: pointer; position: relative; padding: 0; }
.rt-dot::before { content: ''; position: absolute; inset: 9px; border-radius: 50%; background: var(--fx); box-shadow: 0 0 10px var(--fx); transition: transform .3s var(--ease), box-shadow .3s; }
.rt-dot:hover::before, .rt-dot:focus-visible::before { transform: scale(1.7); box-shadow: 0 0 22px 4px var(--fx); }
.rt-none { width: 5px; height: 1px; background: var(--line-2); }
.range-peek { margin: 0; position: sticky; top: 100px; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--bg-2); }
.range-peek img { aspect-ratio: 4 / 5; width: 100%; object-fit: cover; background: #e9e5dd; opacity: 0; transition: opacity .35s; }
.range-peek.on img { opacity: 1; }
.range-peek figcaption { padding: 14px 16px; font: 400 20px/1.2 var(--serif); color: var(--ink-2); }

/* occasions */
.occ-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.occ { position: relative; border-radius: var(--r); padding: 34px 26px 28px; min-height: 320px; display: flex; flex-direction: column; cursor: pointer; overflow: hidden; border: 1px solid var(--line); background: var(--bg-2); transition: transform .6s var(--ease), border-color .4s; }
.occ::before { content: ''; position: absolute; width: 260px; height: 260px; right: -110px; top: -110px; border-radius: 50%; background: radial-gradient(circle, rgb(var(--glow-rgb) / .22), transparent 65%); transition: transform 1s var(--ease); }
.occ:nth-child(2)::before { background: radial-gradient(circle, rgb(var(--accent-rgb) / .28), transparent 65%); }
.occ:nth-child(4)::before { background: radial-gradient(circle, rgba(220,220,230,.18), transparent 65%); }
.occ:hover { transform: translateY(-6px); border-color: rgb(var(--accent-rgb) / .4); }
.occ:hover::before { transform: scale(1.5); }
.occ-tag { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 auto; }
.occ h3 { font: 400 38px/1 var(--serif); margin: 60px 0 12px; }
.occ p:not(.occ-tag) { color: var(--ink-2); font-weight: 300; font-size: 14.5px; margin: 0 0 20px; }
.occ-link { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }

/* process */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); position: relative; }
.steps::before { content: ''; position: absolute; top: 27px; left: 28px; right: 28px; height: 1px; background: var(--line-2); }
.steps::after { content: ''; position: absolute; top: 27px; left: 28px; height: 1px; width: 0; background: linear-gradient(90deg, var(--accent), var(--glow)); box-shadow: 0 0 10px var(--glow); transition: width 2.6s var(--ease); }
.steps.in::after { width: calc(100% - 56px); }
.step { padding-right: 24px; position: relative; }
.step-n { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--bg); font: italic 400 20px/1 var(--serif); color: var(--accent); position: relative; z-index: 1; margin-bottom: 26px; transition: border-color .4s, box-shadow .4s; }
.step:hover .step-n { border-color: var(--accent); box-shadow: 0 0 24px -4px var(--accent); }
.step h3 { font: 500 26px/1.1 var(--serif); margin: 0 0 8px; }
.step p { color: var(--ink-2); font-weight: 300; font-size: 14.5px; margin: 0; }

/* timeline */
.timeline { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.timeline li { padding: 30px 26px 10px; border-right: 1px solid var(--line); position: relative; }
.timeline li:first-child { padding-left: 0; }
.timeline li:last-child { border-right: 0; }
.timeline li::before { content: ''; position: absolute; top: -5px; left: 26px; width: 9px; height: 9px; border-radius: 50%; background: var(--glow); box-shadow: 0 0 12px var(--glow); }
.timeline li:first-child::before { left: 0; }
.tl-year { font: italic 400 34px/1 var(--serif); color: var(--accent); margin: 0 0 14px; }
.timeline h3 { font: 500 22px/1.15 var(--serif); margin: 0 0 8px; }
.timeline p:not(.tl-year) { color: var(--ink-2); font-weight: 300; font-size: 14.5px; margin: 0; }

/* faq */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 90px); align-items: start; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative; font: 400 23px/1.25 var(--serif); transition: color .3s; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font: 300 26px/1 var(--sans); color: var(--accent); transition: transform .4s var(--ease); }
.faq-list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-list summary:hover { color: var(--accent); }
.faq-list details p { color: var(--ink-2); font-weight: 300; margin: 0; padding: 0 40px 24px 0; animation: fadeDown .5s var(--ease); }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-6px); } }

/* ordering steps */
.order-steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.order-steps li { border: 1px solid var(--line); border-radius: 14px; padding: 14px 12px; display: grid; gap: 8px; font-size: 13px; color: var(--ink-2); }
.order-steps b { font: italic 500 20px/1 var(--serif); color: var(--accent); }

/* richer modal */
.m-specs .wide { grid-column: 1 / -1; }
.m-related { margin: 0 0 26px; }
.m-rel-h { font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 8px; }
.m-rel { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.m-rel button { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: none; color: var(--ink-2); font: 500 12px/1 var(--sans); cursor: pointer; transition: all .3s; }
.m-rel button i { width: 6px; height: 6px; border-radius: 50%; background: var(--fx); }
.m-rel button:hover { border-color: var(--accent); color: var(--ink); }
.m-rel .none { font-size: 13px; color: var(--ink-3); }
.modal-nav { position: absolute; top: 50%; z-index: 5; width: 44px; height: 44px; margin-top: -22px; border-radius: 50%; border: 1px solid var(--line-2); background: rgb(var(--bg-rgb) / .8); color: var(--ink); font-size: 24px; line-height: 1; cursor: pointer; transition: border-color .3s, transform .3s; }
.modal-nav.prev { left: 14px; }
.modal-nav.next { right: 14px; }
.modal-nav:hover { border-color: var(--accent); transform: scale(1.08); }
.modal-info { padding-right: clamp(40px, 5vw, 70px); }

@media (max-width: 1000px) {
  .why-grid, .occ-grid { grid-template-columns: repeat(2, 1fr); }
  .range-wrap { grid-template-columns: 1fr; }
  .range-peek { display: none; }
  .steps { grid-template-columns: 1fr; gap: 26px; }
  .steps::before, .steps::after { display: none; }
  .step { display: grid; grid-template-columns: 56px 1fr; gap: 20px; padding: 0; }
  .step-n { margin: 0; }
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .timeline li:nth-child(2) { border-right: 0; }
  .timeline li:nth-child(3) { padding-left: 0; }
  .timeline li:nth-child(3)::before { left: 0; }
  .faq-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .why-grid, .occ-grid, .timeline { grid-template-columns: 1fr; }
  .timeline li { border-right: 0; padding-left: 0; border-bottom: 1px solid var(--line); }
  .timeline li::before { left: 0 !important; }
  .order-steps { grid-template-columns: repeat(2, 1fr); }
  .occ { min-height: 0; }
  .modal-nav { top: 30vh; }
}
@media (prefers-reduced-motion: reduce) {
  .steps::after { width: calc(100% - 56px); }
}
