/* ============================================================
   GURUKUL ACADEMY — STYLESHEET  (v6 — Indian tricolour theme)
   Layout adapted from the MIT-licensed Restaurant-Website-Template
   (marynganga). Palette: tiranga saffron → white → green, with the
   Ashoka Chakra's navy blue. Colours are blended as soft blurred
   gradients and glows — never hard stripes.
   ============================================================ */

@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,600;0,700;0,800;1,600&family=Poppins:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&display=swap");

:root {
  /* tiranga */
  --saffron: #ff9933;
  --saffron-deep: #e07b00;
  --saffron-soft: #fff3e4;
  --india-green: #138808;
  --green-deep: #0d6804;
  --green-soft: #eaf6e8;
  /* ashoka chakra navy */
  --chakra: #06038d;
  --chakra-deep: #04025c;
  --chakra-soft: #ececf8;

  --ink: #2b2b2b;
  --ink-soft: #555555;
  --muted: #7a7a7a;
  --paper: #ffffff;
  --bg: #ffffff;
  --bg-alt: #faf9f6;
  --line: #e7e4de;
  --grey-strip: #f5f3ef;

  --accent: var(--saffron);
  --accent-dark: var(--saffron-deep);
  --orange: var(--saffron);          /* legacy aliases */
  --orange-dark: var(--saffron-deep);
  --orange-pale: var(--saffron-soft);
  --charcoal: var(--chakra-deep);    /* legacy aliases → chakra navy */
  --charcoal-2: var(--chakra);

  --wa-green: #25d366;
  --wa-green-dark: #1ebe5b;
  --radius: 6px;
  --radius-lg: 8px;
  --shadow-sm: 2px 2px 7px 2px rgba(6, 3, 60, 0.10);
  --shadow-md: 4px 6px 18px rgba(6, 3, 60, 0.14);
  --shadow-lg: 6px 10px 34px rgba(6, 3, 60, 0.20);
  --font: "Poppins", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1100px 520px at 100% 0%, rgba(255, 153, 51, 0.06), transparent 60%),
    radial-gradient(1100px 520px at 0% 100%, rgba(19, 136, 8, 0.06), transparent 60%),
    #ffffff;
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
}

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

/* the hidden attribute always wins, even over display:flex/grid elsewhere */
[hidden] { display: none !important; }

a { color: var(--orange-dark); }

.container { width: min(1150px, 100% - 2.4rem); margin-inline: auto; }

h1, h2, h3 { font-family: var(--font-serif); color: var(--charcoal); line-height: 1.22; }

.muted { color: var(--muted); font-size: 0.92rem; }

code {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.05em 0.35em;
  font-size: 0.85em;
  word-break: break-all;
}

::selection { background: var(--orange); color: #fff; }

/* ---------- scroll reveal (only when JS is running — html.js) ---------- */

html.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
html.js .reveal.visible { opacity: 1; transform: none; }
html.js .reveal:nth-child(2) { transition-delay: 0.08s; }
html.js .reveal:nth-child(3) { transition-delay: 0.16s; }
html.js .reveal:nth-child(4) { transition-delay: 0.24s; }
html.js .reveal:nth-child(5) { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- topbar ---------- */

.topbar {
  background: var(--charcoal);
  color: #d8d8dc;
  font-size: 0.82rem;
}

.topbar-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 0.4rem 0;
  flex-wrap: wrap;
}

.topbar-item { display: inline-flex; align-items: center; gap: 0.35rem; }
.topbar-item svg { width: 14px; height: 14px; flex: none; color: var(--orange); }
.topbar-item a { color: #d8d8dc; text-decoration: none; }
.topbar-item a:hover { color: #fff; text-decoration: underline; }

.topbar-social { margin-left: auto; display: inline-flex; gap: 0.7rem; }

.social-link {
  color: #d8d8dc;
  display: inline-flex;
  transition: color 0.15s ease, transform 0.15s ease;
}
.social-link:hover { color: var(--orange); transform: translateY(-1px); }
.social-link svg { width: 16px; height: 16px; }

/* ---------- header ---------- */

#site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 3px solid;
  border-image: linear-gradient(90deg, var(--saffron), #ffffff 50%, var(--india-green)) 1;
  transition: box-shadow 0.25s ease;
}
#site-header.scrolled { box-shadow: var(--shadow-md); }

#site-header > .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
  background: none;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  min-width: 0;
}

.brand-logo-wrap { flex: none; }

.brand-logo {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-alt);
  border: 2px solid var(--orange);
}

.brand-text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.brand-text strong {
  font-family: var(--font-serif);
  font-size: 1.14rem;
  color: var(--charcoal);
}
.brand-text small { color: var(--muted); font-size: 0.76rem; }

.site-nav { display: flex; align-items: center; gap: 0.15rem; }

.site-nav a {
  display: block;
  padding: 0.5rem 0.85rem;
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-radius: 4px;
  transition: background 0.15s ease, color 0.15s ease;
}

.site-nav a:hover { color: var(--orange); background: var(--orange-pale); }
.site-nav a.active {
  color: #fff;
  background: var(--orange);
}

/* ---------- hero (template-style: full-bleed, centred logo + slogan) ---------- */

.hero {
  position: relative;
  color: #fff;
  text-align: center;
  padding: 6rem 0 7rem;
  background:
    radial-gradient(820px 420px at 14% -12%, rgba(255, 153, 51, 0.42), transparent 60%),
    radial-gradient(760px 430px at 88% 112%, rgba(19, 136, 8, 0.42), transparent 60%),
    radial-gradient(560px 300px at 50% 55%, rgba(255, 255, 255, 0.10), transparent 65%),
    linear-gradient(165deg, var(--chakra-deep) 0%, var(--chakra) 55%, #0a0a6e 100%);
  overflow: hidden;
}

/* when a real photo is set in site-config (heroImage), main.js adds .has-photo */
.hero.has-photo {
  background-image:
    linear-gradient(rgba(24, 20, 18, 0.62), rgba(24, 20, 18, 0.62)),
    var(--hero-photo);
  background-size: cover;
  background-position: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  pointer-events: none;
}

.hero > .container { position: relative; z-index: 1; }

.hero-logo {
  width: 108px;
  height: 108px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1.3rem;
  border: 3px solid #ffffff;
  box-shadow:
    0 0 0 5px rgba(255, 153, 51, 0.45),
    0 0 34px rgba(255, 153, 51, 0.35),
    var(--shadow-md);
  background: #fff;
}

.hero .est {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #ffd9ae;
  border: 1px solid rgba(255, 153, 51, 0.55);
  background: rgba(255, 153, 51, 0.14);
  border-radius: 999px;
  padding: 0.35rem 1.1rem;
  margin-bottom: 1.4rem;
}

.hero h1 {
  color: #fff;
  font-size: clamp(2rem, 5.2vw, 3.4rem);
  font-weight: 800;
  max-width: 22ch;
  margin: 0 auto 0.4rem;
  text-wrap: balance;
}

.hero h1 .accent { color: var(--saffron); }

.hero .slogan {
  font-style: italic;
  font-weight: 600;
  color: #ffd9ae;
  font-size: 1.12rem;
  letter-spacing: 0.02em;
  margin: 0.6rem auto 0;
}

.hero .tagline {
  color: #e3e0de;
  font-size: 1.06rem;
  max-width: 52ch;
  margin: 1rem auto;
}

.hero-chips {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.hero-chips span {
  font-size: 0.82rem;
  font-weight: 500;
  color: #fff;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 0.32rem 0.95rem;
  border-radius: 999px;
}

.hero-actions { display: flex; gap: 0.9rem; justify-content: center; flex-wrap: wrap; }

/* inner-page hero */
.hero-page { padding: 4.2rem 0 4.6rem; }
.hero-page h1 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); }

/* ---------- explore strip (template section2: info tiles + image tiles) ---------- */

.explore-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}

.explore-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 190px;
  padding: 1.4rem 1rem;
  text-align: center;
  text-decoration: none;
  color: #fff;
  font-style: italic;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.explore-tile:hover { opacity: 0.72; color: var(--orange); }

.tile-info {
  background:
    radial-gradient(220px 140px at 80% 15%, rgba(19, 136, 8, 0.14), transparent 65%),
    radial-gradient(240px 150px at 15% 90%, rgba(255, 153, 51, 0.22), transparent 65%),
    var(--saffron-soft);
  color: var(--ink);
}
.tile-info .tile-big { color: var(--chakra); }
.tile-info:hover { color: var(--chakra); }
.tile-info:hover .tile-big { color: var(--chakra-deep); }

.tile-accent {
  background:
    radial-gradient(260px 180px at 85% 100%, rgba(19, 136, 8, 0.55), transparent 65%),
    radial-gradient(260px 180px at 10% 0%, rgba(255, 255, 255, 0.30), transparent 60%),
    linear-gradient(135deg, var(--saffron), var(--saffron-deep));
  color: #fff;
}
.tile-accent:hover { color: #fff; filter: brightness(1.06); }

.tile-photo {
  background-size: cover;
  background-position: center;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.75);
}

.explore-tile .tile-big {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.25rem;
  font-style: normal;
  line-height: 1.2;
}
.explore-tile .tile-small { font-size: 0.82rem; opacity: 0.92; }
.explore-tile.tile-photo .tile-big { text-transform: uppercase; letter-spacing: 0.06em; font-size: 1.05rem; }

/* ---------- buttons (template style: white bg + orange border) ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.72rem 1.5rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease, filter 0.15s ease;
}
.btn svg { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-orange,
.btn-gold {
  background: linear-gradient(135deg, var(--saffron), var(--saffron-deep));
  color: #fff;
  border-color: var(--saffron-deep);
  box-shadow: 0 6px 16px rgba(224, 123, 0, 0.35);
}
.btn-orange:hover,
.btn-gold:hover { filter: brightness(1.05); }

.btn-outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.75);
}
.btn-outline:hover { background: rgba(255, 255, 255, 0.14); }

/* template's signature button: white with saffron border */
.btn-ghost-orange {
  background: #fff;
  color: var(--saffron-deep);
  border: 1px solid var(--saffron);
}
.btn-ghost-orange:hover { background: var(--saffron-soft); color: var(--saffron-deep); }

.btn-blue { background: linear-gradient(135deg, var(--chakra), var(--chakra-deep)); color: #fff; }
.btn-blue:hover { filter: brightness(1.12); }

.btn-green { background: linear-gradient(135deg, var(--wa-green), var(--wa-green-dark)); color: #fff; }
.btn-green:hover { filter: brightness(1.05); }

.btn.disabled { opacity: 0.5; pointer-events: none; }

/* ---------- sections ---------- */

.section { padding: 4.2rem 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }

.section-head { text-align: center; margin-bottom: 2.6rem; }
.section-head h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); }
.section-head .rule {
  width: 96px;
  height: 5px;
  border-radius: 3px;
  margin: 0.8rem auto 1rem;
  background: linear-gradient(90deg, var(--saffron), #ffd9ae 35%, #cde8c8 65%, var(--india-green));
  box-shadow: 0 0 10px rgba(255, 153, 51, 0.35);
}
.section-head .eyebrow {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--orange-dark);
  margin-bottom: 0.5rem;
}
.section-head p { color: var(--ink-soft); max-width: 62ch; margin-inline: auto; }

/* ---------- cards / grids ---------- */

.grid { display: grid; gap: 1.3rem; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 4px solid;
  border-image: linear-gradient(90deg, var(--saffron), #fff 50%, var(--india-green)) 1;
  border-radius: var(--radius);
  padding: 1.9rem 1.7rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }

.card .card-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background:
    radial-gradient(60px 60px at 70% 25%, rgba(19, 136, 8, 0.16), transparent 70%),
    var(--saffron-soft);
  color: var(--saffron-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.card .card-icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.18rem; margin-bottom: 0.45rem; }
.card p { color: var(--ink-soft); font-size: 0.94rem; }

/* ---------- stats band (chakra navy with tricolour glows) ---------- */

.stats {
  position: relative;
  color: #fff;
  padding: 2.8rem 0;
  background:
    radial-gradient(620px 300px at 12% 0%, rgba(255, 153, 51, 0.40), transparent 62%),
    radial-gradient(620px 300px at 88% 100%, rgba(19, 136, 8, 0.45), transparent 62%),
    linear-gradient(120deg, var(--chakra-deep), var(--chakra));
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.4rem;
  text-align: center;
}
.stat b {
  display: block;
  font-family: var(--font-serif);
  font-size: 2.1rem;
  color: var(--saffron);
  line-height: 1.15;
}
.stat span { font-size: 0.86rem; color: #dfe3f6; letter-spacing: 0.04em; }

/* dark variant for the closing CTA band */
.band-dark {
  background:
    radial-gradient(560px 300px at 16% 110%, rgba(255, 153, 51, 0.38), transparent 62%),
    radial-gradient(560px 300px at 84% -10%, rgba(19, 136, 8, 0.40), transparent 62%),
    linear-gradient(120deg, var(--chakra-deep), var(--chakra));
  color: #fff;
  text-align: center;
  padding: 3.6rem 0;
}
.band-dark h2 { color: #fff; font-size: clamp(1.5rem, 3.4vw, 2.1rem); }
.band-dark p { color: #d8daf0; max-width: 56ch; margin: 0.8rem auto 1.6rem; }

/* ---------- announcements ---------- */

.announcements { list-style: none; display: grid; gap: 1rem; max-width: 780px; margin-inline: auto; }
.announcement {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--orange);
  border-radius: var(--radius);
  padding: 1rem 1.3rem;
  display: flex;
  gap: 1rem;
  align-items: baseline;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.announcement:hover { transform: translateX(4px); box-shadow: var(--shadow-md); }
.announcement-date {
  flex: none;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--orange-dark);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.announcement p { color: var(--ink-soft); }

/* ---------- YouTube section (bordered photo boxes, template style) ---------- */

.featured-video {
  max-width: 820px;
  margin: 0 auto 2.4rem;
  padding: 0.8rem;
  border: 2px solid rgba(0, 0, 0, 0.10);
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius);
  background: var(--paper);
}
.featured-video iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; display: block; border-radius: 3px; }

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.4rem;
}

.video-card {
  display: block;
  text-decoration: none;
  background: var(--paper);
  border: 2px solid rgba(0, 0, 0, 0.10);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.video-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }

.video-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--bg-alt);
  overflow: hidden;
}
.video-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.video-card:hover .video-thumb img { transform: scale(1.06); }

.video-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-play span {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(35, 35, 42, 0.78);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
}
.video-play svg { width: 26px; height: 26px; margin-left: 3px; }
.video-card:hover .video-play span { background: var(--orange); transform: scale(1.1); }

.video-card .video-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  padding: 0.9rem 1.1rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--charcoal);
  line-height: 1.45;
}
.video-card .video-source {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0 1.1rem 1rem;
  font-size: 0.76rem;
  color: var(--muted);
}
.video-source svg { width: 16px; height: 16px; color: #d92d20; }

/* ---------- social wall ---------- */

.social-wall { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 1.3rem; align-items: stretch; }

.social-tile {
  background: var(--paper);
  border: 2px solid rgba(0, 0, 0, 0.10);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.social-tile h3 {
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1rem;
}
.social-tile h3 svg { width: 22px; height: 22px; }
.social-tile h3 .yt { color: #d92d20; }
.social-tile h3 .fb { color: #1877f2; }
.social-tile h3 .ig { color: #c13584; }
.social-tile h3 .wa { color: var(--wa-green-dark); }

.fb-frame {
  width: 100%;
  border: 0;
  border-radius: 4px;
  background: var(--bg-alt);
  flex: 1;
  min-height: 420px;
}

.ig-card {
  display: block;
  text-decoration: none;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: #fff;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.ig-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.ig-card svg { width: 40px; height: 40px; margin: 0 auto 0.8rem; }
.ig-card b { display: block; font-size: 1.05rem; margin-bottom: 0.25rem; }
.ig-card span { font-size: 0.85rem; opacity: 0.9; }

.social-cta {
  margin-top: auto;
  padding-top: 1.1rem;
}
.social-cta .btn { width: 100%; justify-content: center; }

/* ---------- testimonials (template style: centred, orange names) ---------- */

.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.3rem; }

.testimonial {
  background: var(--paper);
  border: 2px solid rgba(0, 0, 0, 0.10);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem 1.6rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  display: flex;
  flex-direction: column;
  text-align: center;
}
.testimonial .quote-mark {
  position: absolute;
  top: 0.6rem;
  right: 1.2rem;
  font-family: var(--font-serif);
  font-size: 4rem;
  line-height: 1;
  color: var(--orange-pale);
  pointer-events: none;
}
.testimonial .stars { color: var(--orange); letter-spacing: 2px; font-size: 0.95rem; margin-bottom: 0.7rem; }
.testimonial p { color: var(--ink-soft); font-size: 0.95rem; flex: 1; font-style: italic; }
.testimonial .who { display: flex; align-items: center; justify-content: center; gap: 0.75rem; margin-top: 1.2rem; }
.testimonial .avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--chakra);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex: none;
}
.testimonial .who b { display: block; color: var(--chakra); font-size: 0.92rem; line-height: 1.3; }
.testimonial .who small { color: var(--muted); font-size: 0.78rem; }

/* ---------- contact ---------- */

.contact-card {
  background: var(--paper);
  border: 2px solid rgba(0, 0, 0, 0.10);
  border-radius: var(--radius);
  padding: 1.7rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.contact-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.contact-card h3 {
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.9rem;
}
.contact-card h3 svg { width: 20px; height: 20px; color: var(--orange); }

.contact-list { list-style: none; display: grid; gap: 0.55rem; }
.contact-list li { color: var(--ink-soft); font-size: 0.95rem; }

.contact-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--charcoal);
  font-weight: 600;
}
.contact-pill svg { width: 18px; height: 18px; color: var(--orange); }
.contact-pill:hover { text-decoration: underline; }

.dise-code {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  letter-spacing: 0.08em;
  color: var(--charcoal);
  background: var(--bg-alt);
  border: 1px dashed var(--orange);
  border-radius: 6px;
  padding: 0.4rem 0.9rem;
  display: inline-block;
}

.map-wrap {
  border: 2px solid rgba(0, 0, 0, 0.10);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  line-height: 0;
  background: var(--bg-alt);
}
.map-wrap iframe { border: 0; width: 100%; height: 420px; display: block; }

.map-actions {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.2rem;
}

.map-placeholder {
  padding: 2.5rem 1.5rem;
  text-align: center;
  color: var(--ink-soft);
  line-height: 1.6;
  background: var(--bg-alt);
}
.map-placeholder svg { width: 40px; height: 40px; color: var(--orange); margin: 0 auto 0.6rem; }

/* ---------- app page ---------- */

.app-hero { text-align: center; }

.app-download-card {
  background:
    radial-gradient(500px 240px at 90% 10%, rgba(241, 90, 41, 0.4), transparent 60%),
    var(--charcoal);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 2.8rem 1.6rem;
  text-align: center;
  box-shadow: var(--shadow-lg);
  max-width: 640px;
  margin: 0 auto;
}
.app-download-card h2 { color: #fff; font-size: 1.6rem; }
.app-download-card .app-meta { color: #e3e0de; font-size: 0.9rem; margin: 0.3rem 0 1.4rem; }

.install-steps { counter-reset: step; list-style: none; display: grid; gap: 1rem; max-width: 640px; margin: 0 auto; }
.install-steps li {
  counter-increment: step;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.2rem 1rem 3.5rem;
  position: relative;
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.install-steps li::before {
  content: counter(step);
  position: absolute;
  left: 1rem;
  top: 1rem;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  background: var(--chakra);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-shots { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }
.app-shot {
  width: 180px;
  border-radius: var(--radius);
  border: 2px solid rgba(0, 0, 0, 0.10);
  box-shadow: var(--shadow-sm);
}

.notice {
  background: var(--orange-pale);
  border: 1px solid #f5c9b3;
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  color: #7c3a16;
  font-size: 0.93rem;
  max-width: 620px;
  margin: 1.2rem auto 0;
}

/* ---------- feedback form ---------- */

.form-card {
  background: var(--paper);
  border: 2px solid rgba(0, 0, 0, 0.10);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 2.2rem;
  max-width: 640px;
  margin: 0 auto;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.form-field { margin-bottom: 1.1rem; }
.form-field label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--charcoal);
  margin-bottom: 0.35rem;
}
.form-field .optional { color: var(--muted); font-weight: 400; font-size: 0.8rem; }

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.75rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  font: inherit;
  color: var(--ink);
  background: var(--bg);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--chakra);
  box-shadow: 0 0 0 3px rgba(255, 153, 51, 0.20);
  background: #fff;
}
.form-field textarea { resize: vertical; min-height: 130px; }

.form-note { font-size: 0.85rem; color: var(--muted); margin-top: 0.9rem; }

.setup-card {
  background: var(--orange-pale);
  border: 1px solid #f5c9b3;
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 640px;
  margin: 0 auto;
  color: var(--ink-soft);
}
.setup-card h3 { margin-bottom: 0.7rem; }
.setup-card ol { padding-left: 1.3rem; display: grid; gap: 0.5rem; }

/* ---------- 404 ---------- */

.notfound { text-align: center; padding: 5rem 1rem; }
.notfound .code {
  font-family: var(--font-serif);
  font-size: 5.5rem;
  color: var(--orange);
  line-height: 1;
}
.notfound h1 { margin: 0.5rem 0 0.8rem; }
.notfound p { color: var(--ink-soft); margin-bottom: 1.6rem; }

/* ---------- floating WhatsApp ---------- */

.wa-float {
  position: fixed;
  right: 1.3rem;
  bottom: 1.3rem;
  z-index: 90;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--wa-green), var(--wa-green-dark));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.5);
  transition: transform 0.15s ease;
}
.wa-float::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid var(--wa-green);
  opacity: 0.55;
  animation: wa-pulse 2.2s ease-out infinite;
}
@keyframes wa-pulse {
  0% { transform: scale(0.85); opacity: 0.55; }
  70% { transform: scale(1.25); opacity: 0; }
  100% { transform: scale(1.25); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .wa-float::before { animation: none; } }

.wa-float:hover { transform: scale(1.07); }
.wa-float svg { width: 31px; height: 31px; }

.wa-tooltip {
  position: absolute;
  right: 70px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--charcoal);
  color: #fff;
  font-size: 0.8rem;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}
.wa-float:hover .wa-tooltip, .wa-float:focus-visible .wa-tooltip { opacity: 1; }

/* ---------- footer (template style: solid orange, centred) ---------- */

#site-footer {
  background:
    radial-gradient(700px 320px at 12% 0%, rgba(255, 153, 51, 0.35), transparent 62%),
    radial-gradient(700px 320px at 88% 100%, rgba(19, 136, 8, 0.35), transparent 62%),
    linear-gradient(150deg, var(--chakra-deep), var(--chakra));
  color: #fff;
  margin-top: 4.5rem;
}

.footer-inner {
  width: min(680px, 100% - 2.4rem);
  margin-inline: auto;
  padding: 3.6rem 0 2rem;
  text-align: center;
}

.footer-logo {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
  border: 3px solid #fff;
  margin: 0 auto 1.1rem;
}

.footer-name {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3.6vw, 2rem);
  color: #fff;
  line-height: 1.2;
}

.footer-tagline {
  font-style: italic;
  color: #ffd9ae;
  margin: 0.4rem 0 1.2rem;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.4rem;
}
.footer-social .social-link {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.65);
  align-items: center;
  justify-content: center;
  display: inline-flex;
  color: #fff;
}
.footer-social .social-link:hover { background: #fff; color: var(--chakra); transform: translateY(-2px); }
.footer-social .social-link svg { width: 19px; height: 19px; }

.footer-contact-line {
  font-size: 0.92rem;
  color: #ffe0d2;
  margin: 0.3rem auto;
  max-width: 60ch;
}
.footer-contact-line a { color: #fff; text-decoration: none; }
.footer-contact-line a:hover { text-decoration: underline; }

.footer-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.3rem 1.4rem;
  margin: 1.6rem 0 0;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
}
.footer-links a {
  color: #fff;
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.footer-links a:hover { color: var(--saffron); }

.footer-bottom {
  font-size: 0.8rem;
  color: #ffd4c2;
  padding: 1.6rem 0 1.4rem;
}

/* ---------- social buttons (home/contact follow strips) ---------- */

.social-row { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.75rem 1.4rem;
  border-radius: 4px;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}
.social-btn:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.social-btn svg { width: 20px; height: 20px; }
.social-btn.youtube { color: #d92d20; }
.social-btn.instagram { color: #c13584; }
.social-btn.facebook { color: #1877f2; }
.social-btn.whatsapp { color: var(--wa-green-dark); }

/* ---------- gallery ---------- */

.album-tabs {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 1.8rem;
}

.album-tab {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 4px;
  padding: 0.6rem 1.15rem;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.album-tab:hover { box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.album-tab.active { border-color: var(--orange); box-shadow: inset 0 0 0 1px var(--orange); background: var(--orange-pale); }
.album-tab-title { display: block; font-weight: 600; color: var(--charcoal); font-size: 0.95rem; }
.album-tab-meta { display: block; color: var(--muted); font-size: 0.78rem; }

.album-title { text-align: center; margin-bottom: 1.2rem; font-size: 1.25rem; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.1rem;
}

.gallery-item {
  border-radius: 4px;
  overflow: hidden;
  cursor: zoom-in;
  background: var(--paper);
  border: 2px solid rgba(0, 0, 0, 0.10);
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.gallery-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.gallery-item:hover img { transform: scale(1.06); }

.album-empty { text-align: center; }
.album-empty-tiles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem;
  max-width: 640px;
  margin: 0 auto 1.2rem;
}
.album-empty .muted { max-width: 52ch; margin-inline: auto; }

/* lightbox */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15, 13, 12, 0.93);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 1rem;
}
.lightbox.open { display: flex; }

.lightbox img {
  max-width: min(1000px, 100%);
  max-height: 82vh;
  border-radius: 4px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
  position: absolute;
  bottom: 1.4rem;
  left: 50%;
  transform: translateX(-50%);
  color: #e8e4e1;
  font-size: 0.9rem;
}

.lightbox button {
  position: absolute;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 0;
  border-radius: 50%;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease;
}
.lightbox button:hover { background: var(--orange); }
.lightbox button svg { width: 24px; height: 24px; }

.lightbox-close { top: 1.2rem; right: 1.2rem; }
.lightbox-prev { left: 1.2rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 1.2rem; top: 50%; transform: translateY(-50%); }

/* ---------- responsive ---------- */

@media (max-width: 980px) {
  .explore-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .social-wall { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .topbar .topbar-item a { word-break: break-all; }
  .topbar-social { margin-left: 0; }

  /* Menu buttons are ALWAYS visible on phones — a swipeable bar under the brand */
  #site-header > .header-inner { flex-wrap: wrap; }

  .site-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.3rem;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0.2rem 0 0.6rem;
    scrollbar-width: none;
  }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav a { padding: 0.45rem 0.85rem; white-space: nowrap; flex: none; }

  .hero { padding: 4rem 0 5.2rem; }

  .explore-grid { grid-template-columns: repeat(2, 1fr); }
  .explore-tile { min-height: 150px; }

  .section { padding: 2.8rem 0; }

  .form-row { grid-template-columns: 1fr; }

  .map-wrap iframe { height: 320px; }
}

@media (max-width: 420px) {
  .explore-grid { grid-template-columns: 1fr; }
  .explore-tile { min-height: 120px; }
}