/* ==========================================================================
   Sesha Crackers — tablet, desktop and large-desktop layouts
   Breakpoints: 640 (large phone / small tablet), 760 (tablet), 960 (laptop),
                1080 (full navigation), 1280 (large desktop)
   ========================================================================== */

/* ---------- ≥ 640px ---------- */
@media (min-width: 640px) {
  :root { --gutter: 24px; }

  .topbar__more { display: inline; }
  .hdr__wa { display: inline-flex; }
  .hdr__logo img { height: 56px; }

  .hero { padding: 40px 0 96px; }
  .hero__arch { aspect-ratio: 16 / 10; }
  .hero__inset { width: 28%; bottom: -40px; }
  .hero__tag { right: 16px; }

  .ledger { grid-template-columns: 1fr 1fr; column-gap: 40px; }

  .bento { grid-auto-rows: 210px; gap: 14px; }
  .tile__body { padding: 18px; }
  .tile__title { font-size: 1.3rem; }
  .tile__cta { display: inline-flex; }

  .tools { grid-template-columns: 1fr 260px; align-items: center; }
  .tools__count { grid-column: 1 / -1; }

  .why__badge { right: 24px; }
  .sivakasi__cols { grid-template-columns: 1fr 1fr 1fr; gap: 32px; align-items: start; }

  .eform { padding: 32px 30px; }
  .eform__row--half { grid-template-columns: 1fr 1fr; }

  .card-contact { padding: 28px 28px; }
}

/* ---------- ≥ 760px: price list becomes a real table ---------- */
@media (min-width: 760px) {
  /* Fixed layout so every category table lines up column-for-column. */
  .pltable { table-layout: fixed; }
  .pltable thead { position: static; width: auto; height: auto; overflow: visible; clip: auto; display: table-header-group; }
  .pltable tr { display: table-row; padding: 0; }
  .pltable tr[hidden] { display: none; }
  .pltable th, .pltable td {
    display: table-cell; padding: 13px 10px; vertical-align: middle; border-bottom: 1px solid var(--line);
  }
  .pltable thead th[class] {
    padding: 14px 10px 10px; font-size: 0.72rem; font-weight: 750; letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--muted); border-bottom: 1px solid var(--line); white-space: nowrap;
  }
  .pltable tbody tr { transition: background-color 0.2s; }
  .pltable tbody tr:hover { background: rgba(255, 196, 20, 0.08); }
  .pltable .c-no { width: 52px; padding: 13px 4px; font-size: 0.85rem; }
  .pltable thead th.c-no { padding-left: 4px; }
  .pltable .c-name { font-size: 1.02rem; }
  .pltable .c-pack { width: 128px; font-size: 0.93rem; }
  .pltable .c-mrp { width: 84px; text-align: right; font-size: 0.95rem; }
  .pltable .c-price { width: 96px; text-align: right; white-space: nowrap; }
  .pltable .c-price b { font-size: 1.18rem; display: block; line-height: 1.2; }
  .pltable .save {
    display: inline-block; margin-top: 2px; padding: 1px 6px; border-radius: 5px;
    background: rgba(217, 69, 43, 0.1); color: #a8321c; font-size: 0.7rem; font-weight: 750;
  }
  .pltable .c-act { display: table-cell; width: 172px; text-align: right; white-space: nowrap; margin: 0; padding-right: 2px; }
  .pltable .c-act > * { vertical-align: middle; }
  .pltable .c-act .add-btn { margin-left: 6px; }
  .pltable thead .c-mrp, .pltable thead .c-price { text-align: right; }

  .phase__list { grid-template-columns: 1fr 1fr; column-gap: 32px; }
}

/* ---------- ≥ 960px ---------- */
@media (min-width: 960px) {
  :root { --hdr-h: 84px; --hdr-sticky: 68px; }

  body { padding-bottom: 0; }

  .hdr__logo img { height: 64px; }
  .hdr.is-compact .hdr__in { height: 68px; }
  .hdr.is-compact .hdr__logo img { height: 50px; }

  /* Hero */
  .hero { padding: 56px 0 128px; }
  .hero__grid { grid-template-columns: 1.08fr 0.92fr; gap: 56px; align-items: center; }
  .hero__lede { font-size: 1.2rem; }
  .hero__visual { margin: 0 0 0 auto; width: 100%; max-width: 520px; }
  .hero__arch { aspect-ratio: 4 / 5; border-radius: 999px 999px var(--r-lg) var(--r-lg); }
  .hero__arch::before {
    content: ""; position: absolute; inset: 12px; z-index: 1; pointer-events: none;
    border: 1px solid rgba(255, 214, 120, 0.4); border-radius: inherit;
  }
  .hero__inset { width: 40%; max-width: 210px; left: -14%; bottom: 7%; border-width: 6px; }
  .hero__tag { right: -9%; top: 14%; }
  .hero__script { right: -4%; bottom: -54px; font-size: 1.9rem; }

  .ribbon { margin-top: -34px; }
  .ribbon__list li { font-size: 1rem; padding: 16px 0 16px 26px; gap: 26px; }

  /* Trust */
  .trust__grid { grid-template-columns: 5fr 7fr; gap: 72px; align-items: start; }
  .trust__lead { position: sticky; top: calc(var(--hdr-sticky) + 40px); }

  /* Categories */
  .sec-head--split { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: end; }
  .sec-head--split .sec-intro { justify-self: end; }
  .bento { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 226px; gap: 16px; }
  .tile__body { padding: 22px; }
  .tile--tall .tile__title, .tile--wide .tile__title, .tile--type .tile__title { font-size: 1.65rem; }
  .tile__desc { display: block; }
  .tile:not(.tile--tall):not(.tile--wide):not(.tile--type) .tile__desc {
    max-height: 0; opacity: 0; overflow: hidden; transition: max-height 0.4s var(--ease), opacity 0.3s;
  }
  .tile:not(.tile--tall):not(.tile--wide):not(.tile--type):hover .tile__desc,
  .tile:not(.tile--tall):not(.tile--wide):not(.tile--type):focus-visible .tile__desc { max-height: 4.5em; opacity: 1; }
  .tile--type .tile__burst { width: 170px; height: 170px; }

  /* Featured */
  .featured__head { grid-template-columns: 1fr auto; align-items: end; }
  .featured__nav { gap: 28px; }
  .shelf-btns { display: flex; }
  .shelf__track { gap: 22px; }
  .pcard { width: 350px; }

  /* Offer */
  .offer__grid { grid-template-columns: 1.15fr 0.85fr; gap: 64px; }
  .offer__bg { right: -12%; top: -30%; width: 62%; }
  .bill { justify-self: end; padding: 34px 30px 30px; }

  /* Catalogue */
  .catalog__layout { display: grid; grid-template-columns: 250px 1fr; gap: 44px; align-items: start; }
  .catalog__index {
    display: block; position: sticky; top: calc(var(--hdr-sticky) + 24px);
    max-height: calc(100vh - var(--hdr-sticky) - 48px); overflow-y: auto; padding-right: 6px;
    scrollbar-width: thin; scrollbar-color: #e2d6b8 transparent;
  }
  .catalog__index-title { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-ink); margin: 6px 0 10px 12px; }
  .catalog__index button {
    display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%;
    padding: 9px 12px; border: 0; border-radius: var(--r-sm); background: none; text-align: left;
    font-size: 0.94rem; font-weight: 550; line-height: 1.3; color: var(--text); transition: background-color 0.2s, color 0.2s;
  }
  .catalog__index button span { font-size: 0.78rem; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
  .catalog__index button:hover { background: var(--cream); }
  .catalog__index button[aria-pressed="true"] { background: var(--navy); color: var(--gold-hi); }
  .catalog__index button[aria-pressed="true"] span { color: var(--gold); }
  .tools { grid-template-columns: 1fr auto; margin: 0 0 6px; padding: 14px 0; top: calc(var(--hdr-sticky) - 1px); }
  .tools__select { display: none; }
  .tools__count { grid-column: auto; white-space: nowrap; }
  .plgroup__head { grid-template-columns: 64px 1fr auto; }
  .plgroup__thumb { width: 64px; height: 64px; grid-row: auto; }
  .plgroup__range { grid-column: 3; align-self: end; text-align: right; }
  .plgroup__titles h3 { font-size: 1.5rem; }

  /* Why */
  .why__grid { grid-template-columns: 5fr 6fr; gap: 72px; align-items: center; }
  .why__img { aspect-ratio: 4 / 5; }
  .why__badge { right: -28px; bottom: 40px; }
  .reasons { grid-template-columns: 1fr 1fr; gap: 26px 32px; }

  /* Safety */
  .safety__grid { grid-template-columns: 5fr 7fr; gap: 72px; align-items: start; }
  .safety__head { position: sticky; top: calc(var(--hdr-sticky) + 40px); }

  /* Enquiry */
  .enquiry__grid { grid-template-columns: 1fr 1fr; gap: 72px; }
  .eform { padding: 36px; }

  /* Contact */
  .contact { padding: calc(var(--sec) + 40px) 0 var(--sec); }
  .contact__in { grid-template-columns: 1.3fr 0.9fr; gap: 64px; min-height: 460px; }
  .contact__bg::after {
    background: linear-gradient(90deg, rgba(5, 13, 26, 0.9) 0%, rgba(5, 13, 26, 0.62) 50%, rgba(5, 13, 26, 0.4) 100%),
                linear-gradient(180deg, transparent 60%, rgba(5, 13, 26, 0.8));
  }

  /* Footer */
  .ftr__grid { grid-template-columns: 1.4fr 1fr 1.2fr; gap: 48px; }
  .ftr__base { grid-template-columns: 1fr auto; align-items: start; padding-right: calc(var(--gutter) + 84px); }
  .credits { text-align: right; }
  .credits ul { text-align: left; max-width: 640px; margin-left: auto; }

  /* Floating contact: FAB replaces the mobile dock */
  .dock { bottom: 24px; display: flex; justify-content: center; }
  .dock__bar { display: none; }
  .dock__list { width: auto; min-width: 380px; margin: 0; }
  .fab {
    position: fixed; right: 24px; bottom: 24px; z-index: 56;
    display: inline-flex; align-items: center; gap: 0; height: 60px; padding: 0 18px;
    border-radius: 999px; text-decoration: none; font-weight: 750;
    background: linear-gradient(180deg, var(--gold-hi), var(--gold) 55%, var(--amber)); color: var(--navy);
    box-shadow: 0 18px 36px -14px rgba(5, 13, 26, 0.7), 0 0 0 4px rgba(255, 196, 20, 0.18);
    transition: transform 0.3s var(--ease), box-shadow 0.3s;
  }
  .fab .ico { width: 26px; height: 26px; }
  .fab__label { max-width: 0; overflow: hidden; white-space: nowrap; transition: max-width 0.4s var(--ease), margin 0.4s var(--ease); }
  .fab:hover, .fab:focus-visible { transform: translateY(-3px); }
  .fab:hover .fab__label, .fab:focus-visible .fab__label { max-width: 120px; margin-left: 10px; }

  .drawer { margin: 0 0 0 auto; width: 440px; height: 100vh; max-height: 100vh; border-radius: 0; }
  .drawer__in { height: 100%; max-height: 100vh; }
  .drawer[open] { animation-name: sheetIn; }
  @keyframes sheetIn { from { transform: translateX(40px); opacity: 0; } }

  .toast { bottom: 100px; }
}

/* ---------- ≥ 1080px: full navigation ---------- */
@media (min-width: 1080px) {
  .burger { display: none; }
  .hdr__nav { display: block; margin-left: auto; }
  .hdr__nav ul { display: flex; gap: 4px; }
  .hdr__nav a {
    position: relative; display: block; padding: 10px 12px; text-decoration: none;
    font-weight: 550; font-size: 0.98rem; color: var(--on-dark); transition: color 0.2s;
  }
  .hdr__nav a::after {
    content: ""; position: absolute; left: 50%; bottom: 2px; width: 5px; height: 5px; border-radius: 50%;
    background: var(--gold); transform: translateX(-50%) scale(0); transition: transform 0.3s var(--ease);
  }
  .hdr__nav a:hover, .hdr__nav a.is-active { color: var(--gold); }
  .hdr__nav a.is-active::after { transform: translateX(-50%) scale(1); }
  .hdr__actions { margin-left: 18px; }
}

/* ---------- ≥ 1280px ---------- */
@media (min-width: 1280px) {
  :root { --gutter: 32px; }
  .hdr__nav ul { gap: 10px; }
  .hdr__call { width: auto; padding: 0 16px 0 12px; gap: 8px; display: inline-flex; align-items: center; color: var(--cream); font-weight: 600; font-size: 0.95rem; }
  .hdr__call .ico { color: var(--gold); }
  .hdr__call-num { display: inline; }
  .hero__grid { gap: 80px; }
  .hero__visual { max-width: 560px; }
  .bento { grid-auto-rows: 250px; }
}

/* ---------- Very large screens ---------- */
@media (min-width: 1600px) {
  html { font-size: 106.25%; }
}
