/* Seematti Super Market — site styles
   Palette is taken from the logo: signboard red, cart blue, ribbon indigo. */

:root {
  --red: #e01e26;
  --red-deep: #b9141b;
  --blue: #1f6fd6;
  --indigo: #3b3486;
  --indigo-deep: #262058;
  --leaf: #6fae1f;
  --saffron: #f39a1e;
  --ink: #1b1a3a;
  --muted: #5b5a78;
  --paper: #ffffff;
  --tint: #f3f6fc;
  --line: #dfe4f1;

  --display: "Anek Tamil", "Noto Sans Tamil", system-ui, sans-serif;
  --body: "Mukta Malar", "Noto Sans Tamil", system-ui, sans-serif;

  --wrap: 1180px;
  --skew: -12deg;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; margin: 0; text-wrap: balance; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--saffron); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 0; }

/* ---------- Top strip + header ---------- */
.topstrip { background: var(--indigo-deep); color: #e6e4ff; font-size: .9rem; }
.topstrip .wrap { display: flex; justify-content: space-between; gap: 1rem; padding-block: .45rem; flex-wrap: wrap; }
.topstrip a { color: #fff; text-decoration: none; font-weight: 600; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 1.5rem; padding-block: .6rem; }
.brand img { height: 74px; width: auto; }
.nav { margin-left: auto; display: flex; align-items: center; gap: .25rem; }
.nav a { font-family: var(--display); font-weight: 600; font-size: 1.02rem; color: var(--ink); text-decoration: none; padding: .55rem .9rem; border-radius: 6px; }
.nav a:hover { background: var(--tint); }
.nav a[aria-current="page"] { color: var(--red); box-shadow: inset 0 -3px 0 var(--red); border-radius: 0; }
.nav .btn { margin-left: .6rem; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 2px solid var(--ink); border-radius: 8px; padding: .45rem .7rem; font: 600 1rem var(--display); color: var(--ink); cursor: pointer; }

/* ---------- Buttons ---------- */
.btn { display: inline-block; font-family: var(--display); font-weight: 700; font-size: 1.05rem; text-decoration: none; padding: .8rem 1.5rem; border-radius: 8px; border: 2px solid transparent; cursor: pointer; transition: transform .15s, background .15s; }
.btn:active { transform: translateY(1px); }
.btn-red, .nav a.btn-red { background: var(--red); color: #fff; }
.btn-red:hover, .nav a.btn-red:hover { background: var(--red-deep); }
.btn-ghost { border-color: var(--indigo); color: var(--indigo); background: transparent; }
.btn-ghost:hover { background: var(--indigo); color: #fff; }
.btn-white { background: #fff; color: var(--indigo-deep); }
.btn-white:hover { background: #fff3d6; }

/* ---------- Hero ---------- */
.hero { background:
    radial-gradient(circle at 92% 8%, rgba(243,154,30,.16) 0 14rem, transparent 14.1rem),
    radial-gradient(circle at 4% 96%, rgba(31,111,214,.10) 0 11rem, transparent 11.1rem),
    var(--tint);
  overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center; padding-block: clamp(3rem, 7vw, 5.5rem); }
.hero h1 { font-size: clamp(2.5rem, 5.6vw, 4.6rem); font-weight: 800; color: var(--red); letter-spacing: -.01em; line-height: 1.12; }
.hero h1 span { display: block; color: var(--indigo-deep); }
.hero .lede { font-size: 1.25rem; color: var(--muted); max-width: 34ch; margin: 1.4rem 0 2rem; }
.hero-cta { display: flex; gap: .8rem; flex-wrap: wrap; }

/* CSS shelf — the store, drawn */
.shelf { background: #fff; border-radius: 18px; padding: 1.6rem 1.6rem 1.2rem; box-shadow: 0 30px 60px -30px rgba(38,32,88,.45), 0 0 0 1px var(--line); position: relative; }
.shelf-sign { position: absolute; top: -1.1rem; left: 1.6rem; background: var(--red); color: #fff; font: 700 1rem var(--display); padding: .35rem 1.1rem; transform: skewX(var(--skew)); }
.shelf-sign b { display: inline-block; transform: skewX(12deg); font-weight: 700; }
.row { display: flex; align-items: flex-end; gap: .5rem; height: 108px; padding: 0 .4rem; border-bottom: 10px solid var(--indigo); position: relative; margin-top: .9rem; }
.row::after { content: ""; position: absolute; left: 0; right: 0; bottom: -18px; height: 8px; background: rgba(38,32,88,.12); border-radius: 0 0 6px 6px; }
.row i { display: block; flex: 1; border-radius: 6px 6px 0 0; position: relative; transform-origin: bottom; animation: stock .7s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--n) * 45ms); }
.row i::before { content: ""; position: absolute; left: 18%; right: 18%; top: 30%; height: 26%; background: rgba(255,255,255,.75); border-radius: 3px; }
.row .bottle { border-radius: 40% 40% 6px 6px / 22% 22% 6px 6px; flex: .6; }
.row .bottle::after { content: ""; position: absolute; left: 32%; right: 32%; top: -12px; height: 14px; background: inherit; border-radius: 3px 3px 0 0; filter: brightness(.8); }
.row .jar { border-radius: 10px 10px 6px 6px; }
.row .sack { border-radius: 30% 30% 8px 8px / 14% 14% 8px 8px; flex: 1.3; }
.c-red { background: var(--red); } .c-blue { background: var(--blue); } .c-ind { background: var(--indigo); }
.c-leaf { background: var(--leaf); } .c-saf { background: var(--saffron); } .c-sky { background: #9cc6f5; } .c-rose { background: #f6a5a8; }
@keyframes stock { from { transform: scaleY(0); opacity: 0; } to { transform: scaleY(1); opacity: 1; } }

/* ---------- Ribbon (the slanted band from the logo) ---------- */
.ribbon { background: var(--indigo); color: #fff; transform: skewY(-1.4deg); margin-block: -1.2rem 0; position: relative; z-index: 2; }
.ribbon .wrap { transform: skewY(1.4deg); display: flex; justify-content: space-between; align-items: baseline; gap: 1rem 2.5rem; flex-wrap: wrap; padding-block: 1.3rem; }
.ribbon strong { font: 800 clamp(1.6rem, 3.4vw, 2.4rem) var(--display); font-style: italic; }
.ribbon span { font-size: 1.05rem; color: #d9d6ff; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section-tint { background: var(--tint); }
.section-head { max-width: 46rem; margin-bottom: 2.5rem; }
.section-head h2 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); font-weight: 800; color: var(--indigo-deep); }
.section-head p { color: var(--muted); font-size: 1.15rem; margin-top: .8rem; }

/* Aisle signs */
.aisles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2.2rem 1.4rem; list-style: none; margin: 0; padding: 0; }
.aisle { position: relative; padding-top: 22px; }
.aisle::before, .aisle::after { content: ""; position: absolute; top: 0; width: 3px; height: 24px; background: #b9bfd3; }
.aisle::before { left: 22%; } .aisle::after { right: 22%; }
.aisle-board { background: var(--c, var(--blue)); color: #fff; border-radius: 10px; padding: 1.1rem 1.2rem 1.2rem; height: 100%; display: flex; flex-direction: column; box-shadow: 0 14px 24px -16px var(--c, var(--blue)); }
.aisle-no { font: 800 .95rem var(--display); background: #fff; color: var(--c, var(--blue)); align-self: flex-start; padding: .1rem .7rem; border-radius: 99px; }
.aisle h3 { font-size: 1.45rem; font-weight: 700; margin: .7rem 0 .15rem; }
.aisle .en { font-weight: 600; opacity: .95; margin: 0 0 .5rem; }
.aisle .items { font-size: .95rem; line-height: 1.5; opacity: .92; margin: 0; }

/* Promise columns */
.promises { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
.promise { border-top: 5px solid var(--red); padding-top: 1.2rem; }
.promise:nth-child(2) { border-color: var(--blue); }
.promise:nth-child(3) { border-color: var(--leaf); }
.promise h3 { font-size: 1.45rem; font-weight: 700; margin-bottom: .5rem; color: var(--indigo-deep); }
.promise p { color: var(--muted); margin: 0; }

/* Order steps — a real sequence */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: step; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1.6rem; position: relative; }
.steps li::before { content: counter(step); font: 800 2.6rem/1 var(--display); color: var(--saffron); display: block; margin-bottom: .6rem; }
.steps h3 { font-size: 1.3rem; margin-bottom: .4rem; color: var(--indigo-deep); }
.steps p { margin: 0; color: var(--muted); }

/* Visit band */
.visit { background: var(--red); color: #fff; }
.visit .wrap { display: grid; grid-template-columns: 1.2fr 1fr 1fr auto; gap: 2rem; align-items: center; padding-block: 3rem; }
.visit h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 800; }
.visit dl { margin: 0; }
.visit dt { font: 700 1rem var(--display); opacity: .85; }
.visit dd { margin: 0; font-size: 1.1rem; font-weight: 600; }
.visit a:not(.btn) { color: #fff; }

/* ---------- Inner pages ---------- */
.page-head { background: var(--indigo); color: #fff; padding-block: clamp(2.5rem, 6vw, 4rem); position: relative; overflow: hidden; }
.page-head::after { content: ""; position: absolute; right: -4rem; top: 0; bottom: 0; width: 38%; background: var(--red); transform: skewX(var(--skew)); opacity: .95; }
.page-head .wrap { position: relative; z-index: 1; }
.page-head h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800; }
.page-head p { margin: .6rem 0 0; color: #dcd9ff; max-width: 40rem; font-size: 1.12rem; }

.policy { display: grid; grid-template-columns: 15rem 1fr; gap: 3.5rem; align-items: start; }
.policy-nav { position: sticky; top: 6.5rem; border-left: 3px solid var(--line); }
.policy-nav a { display: block; padding: .5rem 1rem; margin-left: -3px; border-left: 3px solid transparent; color: var(--muted); text-decoration: none; font-family: var(--display); font-weight: 600; }
.policy-nav a:hover { color: var(--ink); }
.policy-nav a[aria-current="page"] { color: var(--red); border-color: var(--red); }
.prose { max-width: 68ch; }
.prose h2 { font-size: 1.55rem; font-weight: 700; color: var(--indigo-deep); margin: 2.2rem 0 .6rem; }
.prose h2:first-of-type { margin-top: 0; }
.prose ul { padding-left: 1.2rem; margin: 0 0 1em; }
.prose li { margin-bottom: .35rem; }
.prose li::marker { color: var(--red); }
.updated { color: var(--muted); font-size: .95rem; margin-bottom: 2rem; }
.note { background: #fff7e6; border-left: 4px solid var(--saffron); padding: 1rem 1.2rem; border-radius: 0 8px 8px 0; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: 3.5rem; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { padding: 1.2rem 0; border-bottom: 1px solid var(--line); }
.contact-list li:first-child { padding-top: 0; }
.contact-list h3 { font-size: 1.05rem; color: var(--red); margin-bottom: .2rem; font-weight: 700; }
.contact-list p { margin: 0; font-size: 1.15rem; font-weight: 600; }
.contact-list a { color: var(--ink); }
.form { background: var(--tint); border-radius: 16px; padding: clamp(1.4rem, 3vw, 2.2rem); }
.form h2 { font-size: 1.6rem; color: var(--indigo-deep); margin-bottom: 1.2rem; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font: 600 1rem var(--display); margin-bottom: .3rem; }
.field input, .field textarea, .field select { width: 100%; font: inherit; color: inherit; padding: .75rem .9rem; border: 1.5px solid #c5cbe0; border-radius: 8px; background: #fff; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(31,111,214,.2); }
.field-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-status { margin: 1rem 0 0; font-weight: 600; color: var(--indigo); min-height: 1.5em; }
.map { margin-top: 3.5rem; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); }
.map iframe { display: block; width: 100%; height: 380px; border: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--indigo-deep); color: #cfcdf0; padding-top: 3.5rem; font-size: 1rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.5rem; padding-bottom: 2.5rem; }
.footer-logo { background: #fff; border-radius: 12px; padding: .7rem 1rem; display: inline-block; margin-bottom: 1rem; }
.footer-logo img { height: 64px; width: auto; }
.site-footer h2 { font-size: 1.1rem; color: #fff; margin-bottom: .8rem; font-weight: 700; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .45rem; }
.site-footer a { color: #cfcdf0; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-base { border-top: 1px solid rgba(255,255,255,.14); padding-block: 1.1rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .92rem; }

.wa-float { position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 60; background: #1fa855; color: #fff; font: 700 1rem var(--display); text-decoration: none; padding: .8rem 1.2rem; border-radius: 99px; box-shadow: 0 10px 24px -8px rgba(0,0,0,.45); }
.wa-float:hover { background: #17904a; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .aisles { grid-template-columns: repeat(2, 1fr); }
  .visit .wrap { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; flex-direction: column; align-items: stretch; padding: .8rem 1.25rem 1.2rem; border-bottom: 1px solid var(--line); box-shadow: 0 20px 30px -20px rgba(0,0,0,.3); }
  .nav.open { display: flex; }
  .nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--red); }
  .nav .btn { margin: .6rem 0 0; text-align: center; }
  .brand img { height: 50px; }
  .hero .wrap, .contact, .policy { grid-template-columns: 1fr; }
  .policy-nav { position: static; display: flex; flex-wrap: wrap; border-left: 0; gap: .3rem; }
  .policy-nav a { border: 1px solid var(--line); border-radius: 99px; margin: 0; padding: .35rem .9rem; }
  .policy-nav a[aria-current="page"] { background: var(--red); color: #fff; border-color: var(--red); }
  .promises, .steps { grid-template-columns: 1fr; }
  .page-head::after { width: 22%; opacity: .5; }
}
@media (max-width: 560px) {
  .aisles, .visit .wrap, .footer-grid, .field-2 { grid-template-columns: 1fr; }
  .topstrip .hide-sm { display: none; }
  .row { height: 84px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .row i { animation: none; }
  .btn { transition: none; }
}
@media print {
  .site-header, .topstrip, .wa-float, .policy-nav, .site-footer { display: none; }
}

/* Anchored sections stop below the sticky header */
#aisles, #order { scroll-margin-top: 6rem; }

/* ---------- About page ---------- */
.about-intro { display: grid; grid-template-columns: 1.3fr 1fr; gap: 3.5rem; align-items: center; }
.about-intro .prose h2 { font-size: clamp(1.9rem, 3.8vw, 2.7rem); font-weight: 800; color: var(--red); margin-bottom: 1rem; }
.about-card { background: var(--tint); border-radius: 18px; padding: 2.2rem 2rem; text-align: center; border-bottom: 8px solid var(--indigo); }
.about-card img { margin: 0 auto 1.4rem; width: min(100%, 340px); height: auto; }
.about-card p { margin: 0; color: var(--muted); }
.about-count { font-size: 1.15rem; }
.about-count strong { display: block; font: 800 3.2rem/1.1 var(--display); color: var(--indigo-deep); }
.about-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 2.5rem; }
.about-list li { padding: 1.2rem 0; border-top: 1px solid var(--line); color: var(--muted); }
.about-list strong { display: block; font: 700 1.2rem var(--display); color: var(--indigo-deep); margin-bottom: .2rem; }
@media (max-width: 820px) {
  .about-intro { grid-template-columns: 1fr; }
  .about-list { grid-template-columns: 1fr; }
}
@media (min-width: 821px) and (max-width: 1080px) {
  .nav a { padding-inline: .55rem; font-size: .95rem; }
  .brand img { height: 56px; }
}
