/* Sri Jaya Supermarket
   Colours taken from the store logo: sky-blue ring, white, black lettering. */
:root {
  --brand: #0b84d0;        /* logo blue */
  --brand-dark: #08406b;   /* deep navy */
  --accent: #00aeef;       /* logo sky */
  --accent-soft: #e8f5fd;
  --gold: #f5b301;         /* stars */
  --ink: #111c26;
  --muted: #5a6875;
  --line: #dde8f0;
  --paper: #f7fbfe;
  --white: #ffffff;
  --radius: 8px;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--brand); }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- top strip ---------- */
.strip {
  background: var(--brand-dark);
  color: #cfe4f4;
  font-size: 13px;
}
.strip .wrap {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 8px;
  padding-bottom: 8px;
}
.strip a { color: var(--white); text-decoration: none; font-weight: 600; }
.strip .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #5bd47a; margin-right: 7px; vertical-align: 1px; }

/* ---------- header ---------- */
.site-header {
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s;
  position: sticky;
  top: 0;
  z-index: 20;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}
.logo img { width: 48px; height: 48px; border-radius: 50%; transition: transform .5s; }
.logo:hover img { transform: rotate(-12deg); }
.logo-text { line-height: 1; }
.logo-text strong {
  display: block;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: var(--ink);
  text-transform: uppercase;
}
.logo-text span {
  display: block;
  margin-top: 4px;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 3.2px;
}

.nav { display: flex; gap: 28px; align-items: center; }
.nav a {
  text-decoration: none;
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 500;
}
.nav a:hover { color: var(--brand); }
.nav .call {
  background: var(--brand);
  color: var(--white);
  padding: 10px 18px;
  border-radius: var(--radius);
  font-weight: 600;
}
.nav .call:hover { background: var(--brand-dark); color: var(--white); }

.menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px 12px;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: 1.5px solid var(--brand);
  transition: background .15s, color .15s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-solid { background: var(--brand); color: var(--white); }
.btn-solid:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn-line { color: var(--brand); background: transparent; }
.btn-line:hover { background: var(--white); }
.btn-wa { background: #1fa855; border-color: #1fa855; color: var(--white); }
.btn-wa:hover { background: #17804a; border-color: #17804a; }
.btn-light { background: var(--white); border-color: var(--white); color: var(--brand); }
.btn-ghost { border-color: rgba(255,255,255,.5); color: var(--white); }
.btn-ghost:hover { background: rgba(255,255,255,.1); }

/* ---------- hero ---------- */
.hero { padding: 56px 0 64px; }
.hero .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 1.6px;
  margin-bottom: 16px;
}
.hero h1 {
  font-size: clamp(30px, 3.8vw, 46px);
  line-height: 1.1;
  letter-spacing: -1.3px;
  font-weight: 800;
  margin: 0 0 20px;
}
.hero h1 em { -webkit-box-decoration-break: clone; box-decoration-break: clone; font-style: normal; color: var(--brand); }
.hero p.lead {
  font-size: 18px;
  color: var(--muted);
  max-width: 500px;
  margin: 0 0 30px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.stats {
  display: flex;
  gap: 0;
  margin-top: 40px;
  border-top: 1px solid var(--line);
}
.stat { padding: 18px 26px 0 0; margin-right: 26px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; margin-right: 0; }
.stat b { display: block; font-size: 26px; font-weight: 800; letter-spacing: -0.8px; color: var(--brand); }
.stat span { font-size: 13px; color: var(--muted); }

.hero-photo {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 4 / 3.3;
  align-self: center;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo .tag {
  position: absolute;
  left: 18px;
  bottom: 18px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 10px 14px;
  font-size: 13px;
  box-shadow: 0 6px 20px rgba(0,0,0,.15);
}
.hero-photo .tag b { display: block; font-size: 14px; }
.hero-photo .tag .stars { font-size: 13px; }

/* ---------- ticker ---------- */
.ticker {
  background: var(--brand);
  color: var(--white);
  overflow: hidden;
  white-space: nowrap;
  font-weight: 600;
  font-size: 14.5px;
}
.ticker-track {
  display: inline-flex;
  gap: 0;
  padding: 13px 0;
  animation: ticker 38s linear infinite;
}
.ticker-track span { padding: 0 22px; }
.ticker-track span::after { content: "✦"; margin-left: 44px; opacity: .7; font-size: 11px; vertical-align: 1px; }
@keyframes ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }

/* ---------- sections ---------- */
section { padding: 88px 0; }
.sec-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 40px;
}
.sec-head h2, .h2 {
  font-size: clamp(28px, 3.6vw, 40px);
  letter-spacing: -1px;
  line-height: 1.12;
  margin: 0;
  font-weight: 800;
}
.sec-head p { margin: 0; color: var(--muted); max-width: 440px; }

/* ---------- about ---------- */
.about .wrap {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: center;
}
.about p { color: #3f4d59; margin: 18px 0 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.chip {
  background: var(--accent-soft);
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: 100px;
}
.about-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.about-photos figure { margin: 0; border-radius: 10px; overflow: hidden; position: relative; }
.about-photos figure:first-child { grid-row: span 2; }
.about-photos img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 4; }
.about-photos figure:not(:first-child) img { aspect-ratio: 4 / 3; }
.about-photos figcaption {
  position: absolute;
  left: 10px; bottom: 10px;
  background: rgba(8,64,107,.82);
  color: var(--white);
  font-size: 12px;
  font-weight: 500;
  padding: 4px 9px;
  border-radius: 4px;
}

/* ---------- departments ---------- */
.departments { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.dept-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.dept {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--paper);
  display: flex;
  flex-direction: column;
}
.dept-img { aspect-ratio: 16 / 10; overflow: hidden; background: #e3eef6; }
.dept-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.dept:hover .dept-img img { transform: scale(1.04); }
.dept-body { padding: 22px 22px 24px; }
.dept-body small { color: var(--brand); font-weight: 700; font-size: 12px; letter-spacing: 1.2px; text-transform: uppercase; }
.dept-body h3 { margin: 4px 0 14px; font-size: 21px; letter-spacing: -0.4px; }
.dept-body ul { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 16px; }
.dept-body li { font-size: 14px; color: #3f4d59; padding: 4px 0; break-inside: avoid; }
.dept-body li::before { content: ""; display: inline-block; width: 5px; height: 5px; background: var(--accent); border-radius: 50%; margin-right: 8px; vertical-align: 2px; }

/* ---------- why ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 2px solid var(--ink);
}
.why {
  padding: 26px 24px 8px 0;
}
.why + .why { padding-left: 24px; border-left: 1px solid var(--line); }
.why .num { font-size: 13px; font-weight: 700; color: var(--brand); }
.why h3 { margin: 10px 0 8px; font-size: 18px; letter-spacing: -0.3px; }
.why p { margin: 0; font-size: 14.5px; color: var(--muted); }

/* ---------- reviews ---------- */
.reviews-sec { background: var(--accent-soft); }
.rating-sum {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--white);
  padding: 14px 20px;
  border-radius: 12px;
  white-space: nowrap;
}
.rating-sum .big { font-size: 34px; font-weight: 800; letter-spacing: -1px; color: var(--brand); }
.rating-sum small { display: block; font-size: 12.5px; color: var(--muted); }
.stars { color: var(--gold); letter-spacing: 1px; font-size: 16px; }

.reviews {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.review {
  background: var(--white);
  border-radius: 12px;
  padding: 24px 22px 20px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.review::before {
  content: "\201C";
  position: absolute;
  right: 18px;
  top: 4px;
  font-weight: 800;
  font-size: 64px;
  line-height: 1;
  color: var(--accent-soft);
}
.review p { margin: 12px 0 20px; font-size: 15.5px; line-height: 1.55; flex: 1; }
.review .who { display: flex; align-items: center; gap: 10px; padding-top: 16px; border-top: 1px solid var(--line); }
.review .avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--brand);
  color: var(--white);
  font-weight: 700;
  display: grid; place-items: center;
  font-size: 15px;
  flex: none;
}
.review .who b { display: block; font-size: 14px; }
.review .who span { font-size: 12.5px; color: var(--muted); }
.reviews-foot { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- visit ---------- */
.visit-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 40px;
}
.info-list { display: grid; gap: 14px; }
.info {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
}
.info .ic {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--brand);
  display: grid; place-items: center;
}
.info .ic svg { width: 20px; height: 20px; }
.info small { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: 1.1px; color: var(--muted); font-weight: 600; }
.info div { font-size: 15.5px; font-weight: 500; }
.info a { text-decoration: none; font-weight: 600; }
.visit-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.map {
  border-radius: 12px;
  overflow: hidden;
  min-height: 440px;
  background: #e3eef6;
  border: 1px solid var(--line);
}
.map iframe { width: 100%; height: 100%; min-height: 440px; border: 0; display: block; }

/* ---------- cta band ---------- */
.cta {
  background: var(--brand);
  color: #d5e9f7;
  padding: 64px 0;
  position: relative;
  overflow: hidden;
}
.cta::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 8px;
  background: var(--accent);
}
.cta .wrap { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.cta h2 { color: var(--white); margin: 0 0 6px; font-size: clamp(26px, 3.4vw, 36px); letter-spacing: -0.9px; line-height: 1.15; }
.cta p { margin: 0; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--ink);
  color: #a9bccb;
  font-size: 14px;
  padding: 64px 0 0;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 48px;
}
.site-footer h4 { color: var(--white); font-size: 14px; margin: 0 0 14px; letter-spacing: .2px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: 4px 0; }
.site-footer a { color: #e2edf5; text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.site-footer .logo-text strong { color: var(--white); }
.site-footer .about-line { margin: 16px 0 0; max-width: 300px; }
.foot-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
}

/* ---------- legal pages ---------- */
.legal { padding: 56px 0 80px; }
.legal .wrap { max-width: 780px; }
.legal h1 { font-size: clamp(30px, 4vw, 44px); letter-spacing: -1.2px; margin: 0 0 6px; }
.legal .updated { color: var(--muted); font-size: 14px; margin: 0 0 36px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.legal h2 { font-size: 19px; margin: 36px 0 10px; letter-spacing: -0.3px; }
.legal p, .legal li { color: #33414d; }
.legal ul { padding-left: 20px; }
.page-banner { background: var(--brand); color: #d5e9f7; padding: 14px 0; font-size: 14px; }
.page-banner a { color: var(--white); font-weight: 600; text-decoration: none; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .reviews { grid-template-columns: 1fr 1fr; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .why:nth-child(3) { padding-left: 0; border-left: 0; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .hero .wrap, .about .wrap, .visit-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-photo { border-radius: 14px; }
  .hero { padding-bottom: 48px; }
  .dept-grid { grid-template-columns: 1fr; max-width: 560px; }
}
@media (max-width: 760px) {
  .menu-btn { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 20px 16px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav .call { text-align: center; margin-top: 12px; border: 0; }
  .strip .hide-sm { display: none; }
  section { padding: 64px 0; }
  .hero { padding-top: 36px; }
  .sec-head { flex-direction: column; align-items: start; }
  .reviews { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .why, .why + .why { padding: 22px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .stat { padding-right: 16px; margin-right: 16px; }
  .stat b { font-size: 22px; }
  .foot-grid { grid-template-columns: 1fr; gap: 28px; }
  .map, .map iframe { min-height: 320px; }
}

/* ---------- footer tone ---------- */
.site-footer { background: #0a2a45; }
.site-footer .logo img { background: var(--white); }

/* ---------- animation ---------- */
.site-header.scrolled { box-shadow: 0 6px 24px rgba(8,64,107,.10); }

/* hero entrance */
.hero .wrap > div:first-child > * { animation: rise .8s cubic-bezier(.2,.7,.2,1) both; }
.hero .wrap > div:first-child > :nth-child(2) { animation-delay: .08s; }
.hero .wrap > div:first-child > :nth-child(3) { animation-delay: .16s; }
.hero .wrap > div:first-child > :nth-child(4) { animation-delay: .24s; }
.hero .wrap > div:first-child > :nth-child(5) { animation-delay: .32s; }
.hero-photo { animation: photo-in 1s cubic-bezier(.2,.7,.2,1) .15s both; }
.hero-photo img { animation: slow-zoom 14s ease-out both; }
.hero-photo .tag { animation: rise .7s cubic-bezier(.2,.7,.2,1) .7s both; }
.hero h1 em { background: linear-gradient(transparent 62%, rgba(0,174,239,.22) 62%) no-repeat; background-size: 0 100%; animation: mark 1s ease .9s forwards; }

@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes photo-in { from { opacity: 0; clip-path: inset(12% 0 0 0 round 14px); } to { opacity: 1; clip-path: inset(0 0 0 0 round 14px); } }
@keyframes slow-zoom { from { transform: scale(1.12); } to { transform: scale(1); } }
@keyframes mark { to { background-size: 100% 100%; } }
@keyframes spin-in { from { transform: rotate(-200deg) scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }

.site-header .logo img { animation: spin-in .9s cubic-bezier(.2,.7,.2,1) both; }

/* scroll reveal (class added by JS, so content stays visible without it) */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* hover lift */
.dept, .review, .info { transition: transform .4s cubic-bezier(.2,.7,.2,1), box-shadow .25s ease, opacity .7s ease; transition-delay: var(--d, 0s); }
.dept:hover, .review:hover, .info:hover { transform: translateY(-5px); box-shadow: 0 14px 32px rgba(8,64,107,.12); }
.btn { transition: background .15s, color .15s, transform .15s; }
.btn:hover { transform: translateY(-2px); }
.about-photos img { transition: transform .5s ease; }
.about-photos figure:hover img { transform: scale(1.05); }

/* whatsapp pulse */
.btn-wa { position: relative; }
.btn-wa::after { content: ""; position: absolute; inset: -1.5px; border-radius: inherit; box-shadow: 0 0 0 0 rgba(31,168,85,.5); animation: pulse 2.4s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 12px rgba(31,168,85,0); } 100% { box-shadow: 0 0 0 0 rgba(31,168,85,0); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
.site-footer .logo-text span { color: var(--accent); }

