/* =========================================================
   Singapore Plaza — Thanjavur
   Shared stylesheet for all pages
   ========================================================= */

:root {
  /* Vibrant, family-friendly palette */
  --red:        #e2231a;   /* brand red   */
  --red-dark:   #b41a13;
  --yellow:     #ffc60b;   /* brand yellow */
  --yellow-soft:#fff2c2;
  --teal:       #17a2b8;
  --teal-dark:  #0f7c8c;
  --purple:     #7b4bd8;
  --pink:       #ff5c8a;
  --green:      #2fb380;
  --orange:     #ff8a1f;

  --ink:        #26232b;
  --ink-soft:   #5b5763;
  --paper:      #fffdf8;
  --paper-2:    #fff7e8;
  --card:       #ffffff;
  --line:       #eee3cf;

  --shadow-sm:  0 2px 8px rgba(38,35,43,.08);
  --shadow-md:  0 10px 30px rgba(38,35,43,.12);
  --radius:     16px;
  --radius-sm:  10px;

  --wrap:       1160px;
  --font: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; font-weight: 800; }
h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1rem; }

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

.section { padding: clamp(48px, 8vw, 90px) 0; }
.section--tint { background: var(--paper-2); }

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto clamp(28px, 5vw, 48px);
}
.section-head p { color: var(--ink-soft); margin: 0; }

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--teal-dark);
  background: #e2f6f9;
  padding: .35em .8em;
  border-radius: 999px;
  margin-bottom: .9rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-weight: 800;
  padding: .85em 1.6em;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  text-decoration: none;
  font-size: 1rem;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn--primary { background: var(--red); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--red-dark); }
.btn--sun { background: var(--yellow); color: var(--ink); }
.btn--sun:hover { background: #ffb800; }
.btn--ghost { border-color: #fff; color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,.15); }
.btn--outline { border-color: var(--red); color: var(--red); }
.btn--outline:hover { background: var(--red); color: #fff; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,253,248,.95);
  backdrop-filter: blur(6px);
  border-bottom: 3px solid var(--yellow);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 20px;
  max-width: var(--wrap);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}
.brand:hover { text-decoration: none; }
.brand__mark {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: var(--red);
  color: #fff;
  font-weight: 900;
  font-size: 1.35rem;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}
.brand__name { font-weight: 900; font-size: 1.15rem; letter-spacing: .01em; }
.brand__name span { color: var(--red); }
.brand__loc { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .22em; color: var(--teal-dark); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  display: block;
  padding: .6em .95em;
  border-radius: 999px;
  color: var(--ink);
  font-weight: 700;
  font-size: .98rem;
}
.nav-links a:hover { background: var(--yellow-soft); text-decoration: none; }
.nav-links a.is-active { background: var(--red); color: #fff; }

.nav-cta { margin-left: 8px; }

.nav-toggle {
  display: none;
  background: var(--red);
  border: 0;
  width: 46px; height: 46px;
  border-radius: 12px;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 22px; height: 3px;
  background: #fff;
  border-radius: 3px;
  margin: 0 auto;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle span::before { transform: translateY(-7px); }
.nav-toggle span::after  { transform: translateY(4px); }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { transform: rotate(-45deg) translateY(-2px); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 45%, #7d130d 100%);
  overflow: hidden;
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  opacity: .18;
}
.hero::before { width: 420px; height: 420px; background: var(--yellow); top: -140px; right: -90px; }
.hero::after  { width: 320px; height: 320px; background: var(--pink);  bottom: -150px; left: -80px; }
.hero .wrap { position: relative; z-index: 1; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 40px;
  align-items: center;
  padding: clamp(48px, 8vw, 96px) 0;
}
.hero h1 { color: #fff; }
.hero h1 .hl { color: var(--yellow); }
.hero p.lead { font-size: 1.12rem; color: #ffe9e8; max-width: 44ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 30px;
  font-weight: 700;
  font-size: .92rem;
}
.hero-badges span::before { content: "★ "; color: var(--yellow); }

/* floating product tiles */
.hero-art {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.hero-art .tile {
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: var(--radius);
  padding: 22px 16px;
  text-align: center;
  font-weight: 800;
  backdrop-filter: blur(2px);
}
.hero-art .tile .emoji { font-size: 2.4rem; display: block; margin-bottom: 6px; }
.hero-art .tile:nth-child(odd) { transform: translateY(-10px); }

/* ---------- Promo banner strip ---------- */
.promo {
  background: repeating-linear-gradient(45deg, var(--yellow) 0 22px, #ffd84d 22px 44px);
  color: var(--ink);
  text-align: center;
  padding: 14px 20px;
  font-weight: 800;
  font-size: 1rem;
}
.promo strong { color: var(--red-dark); }

/* ---------- Feature cards ---------- */
.grid {
  display: grid;
  gap: 22px;
}
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card__icon {
  width: 58px; height: 58px;
  border-radius: 14px;
  display: grid; place-items: center;
  font-size: 1.8rem;
  margin-bottom: 14px;
}
.card h3 { margin-bottom: .35em; }
.card p { color: var(--ink-soft); margin: 0; font-size: .96rem; }

.i-red    { background: #ffe3e1; }
.i-yellow { background: var(--yellow-soft); }
.i-teal   { background: #dcf3f6; }
.i-purple { background: #ece2fb; }
.i-pink   { background: #ffe1ea; }
.i-green  { background: #d8f3e7; }
.i-orange { background: #ffe8d3; }

/* category card variant with count pill */
.cat-card { position: relative; overflow: hidden; }
.cat-card .tag {
  display: inline-block;
  font-size: .78rem;
  font-weight: 800;
  color: var(--teal-dark);
  background: #e2f6f9;
  padding: .25em .7em;
  border-radius: 999px;
  margin-top: 12px;
}
.cat-card ul {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--ink-soft);
  font-size: .92rem;
}
.cat-card li { margin-bottom: 3px; }

/* ---------- Split / about ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 6vw, 64px);
  align-items: center;
}
.split__media {
  border-radius: var(--radius);
  min-height: 340px;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,.35), transparent 60%),
    linear-gradient(135deg, var(--teal) 0%, var(--purple) 100%);
  display: grid;
  place-items: center;
  color: #fff;
  text-align: center;
  padding: 30px;
  box-shadow: var(--shadow-md);
}
.split__media .big { font-size: 3rem; font-weight: 900; }
.split--flip .split__media { order: -1; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  text-align: center;
}
.stat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 22px 12px;
  box-shadow: var(--shadow-sm);
}
.stat b { display: block; font-size: 1.9rem; color: var(--red); }
.stat span { font-size: .86rem; color: var(--ink-soft); font-weight: 700; }

/* ---------- Values list ---------- */
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li {
  position: relative;
  padding-left: 34px;
  margin-bottom: 14px;
  font-weight: 600;
}
.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0; top: 0;
  width: 24px; height: 24px;
  background: var(--green);
  color: #fff;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: .85rem;
  font-weight: 900;
}

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.shot {
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
  text-align: center;
  padding: 18px;
  box-shadow: var(--shadow-sm);
}
.shot .emoji { font-size: 2.6rem; display: block; margin-bottom: 8px; }
.g1 { background: linear-gradient(140deg,#ff5c8a,#e2231a); }
.g2 { background: linear-gradient(140deg,#ffc60b,#ff8a1f); color: var(--ink); }
.g3 { background: linear-gradient(140deg,#17a2b8,#0f7c8c); }
.g4 { background: linear-gradient(140deg,#7b4bd8,#4b2fb3); }
.g5 { background: linear-gradient(140deg,#2fb380,#0f7c8c); }
.g6 { background: linear-gradient(140deg,#ff8a1f,#e2231a); }
.g7 { background: linear-gradient(140deg,#3a86ff,#7b4bd8); }
.g8 { background: linear-gradient(140deg,#e2231a,#b41a13); }
.g9 { background: linear-gradient(140deg,#ffc60b,#2fb380); color: var(--ink); }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}
.info-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.info-row {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px dashed var(--line);
}
.info-row:last-child { border-bottom: 0; }
.info-row .ico {
  flex: none;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--yellow-soft);
  display: grid; place-items: center;
  font-size: 1.25rem;
}
.info-row h4 { margin: 0 0 2px; font-size: 1rem; }
.info-row p  { margin: 0; color: var(--ink-soft); font-size: .96rem; }
.info-row a  { font-weight: 700; }

.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  background: var(--paper-2);
}
.map-embed iframe { width: 100%; height: 380px; border: 0; display: block; }
.map-fallback {
  padding: 40px 24px;
  text-align: center;
}
.map-fallback .pin { font-size: 2.6rem; }

/* Form */
.form-grid { display: grid; gap: 16px; }
.form-grid .row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { font-weight: 700; font-size: .9rem; display: block; margin-bottom: 5px; }
input, textarea {
  width: 100%;
  font: inherit;
  padding: .75em .9em;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
}
input:focus, textarea:focus { outline: 2px solid var(--teal); border-color: var(--teal); }
textarea { min-height: 120px; resize: vertical; }
.form-note { font-size: .82rem; color: var(--ink-soft); }

/* ---------- Hours table ---------- */
.hours { width: 100%; border-collapse: collapse; }
.hours th, .hours td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); font-size: .95rem; }
.hours th { color: var(--ink-soft); font-weight: 700; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--teal) 0%, var(--purple) 100%);
  color: #fff;
  text-align: center;
  border-radius: var(--radius);
  padding: clamp(34px, 6vw, 60px);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #eef; max-width: 52ch; margin-inline: auto; }
.cta-band .btn { margin-top: 12px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #cdc8d4;
  padding: 54px 0 26px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 32px;
}
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.site-footer a { color: #cdc8d4; }
.site-footer a:hover { color: var(--yellow); text-decoration: none; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-brand .brand__name { color: #fff; }
.footer-brand p { font-size: .92rem; margin-top: 12px; }
.footer-bottom {
  border-top: 1px solid #3a3642;
  margin-top: 36px;
  padding-top: 20px;
  text-align: center;
  font-size: .85rem;
}

/* ---------- Page banner (inner pages) ---------- */
.page-banner {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  color: #fff;
  text-align: center;
  padding: clamp(40px, 7vw, 72px) 0;
}
.page-banner h1 { color: #fff; margin-bottom: .3em; }
.page-banner p { color: #ffe0de; margin: 0; }
.crumbs { font-size: .85rem; color: #ffd; margin-bottom: 10px; }
.crumbs a { color: #fff; }

/* ---------- Utilities ---------- */
.center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.hide { display: none !important; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 420px; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .split--flip .split__media { order: 0; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    left: 0; right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: var(--paper);
    border-bottom: 3px solid var(--yellow);
    padding: 12px 16px 18px;
    box-shadow: var(--shadow-md);
    display: none;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: .8em 1em; border-radius: 10px; }
  .nav-cta { margin: 6px 0 0; }
  .nav-cta .btn { display: block; text-align: center; }
}

@media (max-width: 620px) {
  .grid--3, .grid--4, .grid--2 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .form-grid .row-2 { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .hero-art { grid-template-columns: repeat(2, 1fr); }
  .brand__loc { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto; }
}
