/* ==========================================================================
   தமிழ்நாடு ஆதவன் தொழிலாளர் நலச்சங்கம் — styles
   ========================================================================== */

:root {
  --ink: #17131b;
  --muted: #5b5265;
  --subtle: #8d8495;
  --paper: #fbf7f2;
  --surface: #ffffff;
  --surface-soft: #f3ede6;
  --line: #e7dcd0;
  --violet: #291946;
  --violet-2: #3d246b;
  --maroon: #97133e;
  --gold: #e0b14b;
  --gold-ink: #241604;
  --green: #14614f;
  --focus: #1a73e8;
  --board-a: #3d246b;
  --board-b: #97133e;
  --board-c: #14614f;
  --shadow: 0 22px 55px rgba(32, 24, 42, 0.12);
  --shadow-soft: 0 10px 26px rgba(32, 24, 42, 0.08);
  --radius: 10px;
  --header-h: 104px;
  --tap: 48px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(224, 177, 75, 0.12), transparent 32rem),
    linear-gradient(180deg, #fffaf5 0%, var(--paper) 44%, #fff 100%);
  color: var(--ink);
  font-family: "Noto Sans Tamil", "Nirmala UI", "Latha", "Vijaya", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
  overflow-x: clip;
}

.registration-chip strong,
.footer-sub,
.reg-line,
.hero::after {
  overflow-wrap: anywhere;
  word-break: break-word;
}

::selection {
  background: rgba(224, 177, 75, 0.45);
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 16px;
  font-size: clamp(27px, 3.25vw, 42px);
  font-weight: 800;
  line-height: 1.13;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(25px, 3.6vw, 44px);
  font-weight: 800;
  line-height: 1.2;
}

/* --- a11y helpers --------------------------------------------------------- */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 12px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--violet);
  color: #fff;
  border-radius: var(--radius);
  font-weight: 700;
  transition: top 140ms ease;
}

.skip-link:focus {
  top: 12px;
}

:where(a, button, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}

/* --- Header --------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: var(--header-h);
  padding: 12px clamp(16px, 4vw, 64px);
  background: rgba(255, 250, 245, 0.94);
  border-bottom: 1px solid rgba(231, 220, 208, 0.86);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  min-width: 260px;
}

.brand-mark {
  display: grid;
  width: 84px;
  height: 84px;
  flex: 0 0 84px;
  place-items: center;
  overflow: hidden;
  background: #7f9191;
  border-radius: 18px;
  box-shadow: 0 12px 26px rgba(41, 25, 70, 0.18);
  border: 1px solid rgba(41, 25, 70, 0.14);
}

.brand-mark picture,
.brand-mark img {
  width: 100%;
  height: 100%;
}

.brand-mark img {
  object-fit: cover;
}

.brand-copy {
  display: grid;
  line-height: 1.25;
}

.brand strong {
  font-size: 15px;
  line-height: 1.15;
}

.brand small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  max-width: 38ch;
}

.nav-toggle {
  display: none;
  width: var(--tap);
  height: var(--tap);
  padding: 0;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 22px;
  height: 2px;
  margin-inline: auto;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 180ms ease, opacity 140ms ease;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: relative;
}

.nav-toggle span::before {
  top: -7px;
}

.nav-toggle span::after {
  top: 5px;
}

.nav-toggle[aria-expanded="true"] span {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] span::before {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span::after {
  transform: translateY(-5px) rotate(-45deg);
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px;
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 700;
}

nav a {
  display: inline-flex;
  align-items: center;
  padding: 9px 11px;
  border-radius: var(--radius);
  transition: background 140ms ease, color 140ms ease;
}

nav a:hover,
nav a:focus-visible,
nav a[aria-current="true"] {
  background: var(--surface-soft);
  color: var(--ink);
}

.header-call {
  display: inline-flex;
  min-height: var(--tap);
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 16px;
  background: var(--violet);
  color: #fff;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 800;
  box-shadow: var(--shadow-soft);
  transition: transform 140ms ease;
  white-space: nowrap;
}

.header-call:hover {
  transform: translateY(-1px);
}

/* --- Carousel (shared) ---------------------------------------------------- */

.carousel-track {
  display: flex;
  scroll-snap-type: x mandatory;
  overflow-x: hidden;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  width: 46px;
  height: 46px;
  margin-top: -23px;
  place-items: center;
  background: rgba(23, 17, 30, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  color: #fff;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  transition: background 140ms ease;
}

.carousel-btn:hover {
  background: rgba(23, 17, 30, 0.78);
}

.carousel-btn.prev {
  left: 14px;
}

.carousel-btn.next {
  right: 14px;
}

.carousel-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  z-index: 3;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

.carousel-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  background: rgba(255, 255, 255, 0.5);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 140ms ease, background 140ms ease;
}

.carousel-dots button[aria-current="true"] {
  background: #fff;
  transform: scale(1.35);
}

/* --- Hero ----------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: var(--violet);
}

.hero-slides {
  position: absolute;
  inset: 0;
}

.hero-slides .carousel-track,
.hero-slides .carousel-slide,
.hero-slides img {
  height: 100%;
}

.hero-slides .carousel-slide img {
  width: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-slides::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(20, 12, 33, 0.48) 0%, rgba(20, 12, 33, 0.34) 40%, rgba(20, 12, 33, 0.94) 100%),
    linear-gradient(90deg, rgba(20, 12, 33, 0.82), rgba(20, 12, 33, 0.28) 74%);
  pointer-events: none;
}

.hero-overlay {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  min-height: min(560px, calc(100svh - var(--header-h)));
  pointer-events: none;
}

.hero-overlay a,
.hero-overlay button {
  pointer-events: auto;
}

.hero-inner {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(34px, 5vw, 58px) 0;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
}

.hero h1 {
  max-width: 680px;
  font-size: clamp(26px, 2.8vw, 34px);
  line-height: 1.08;
  overflow-wrap: anywhere;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.35);
}

.lead {
  max-width: 560px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(15px, 1.6vw, 19px);
  line-height: 1.45;
  overflow-wrap: anywhere;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.3);
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 720px;
  margin-top: 12px;
}

.hero-badges li {
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.94);
  font-size: 13px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
}

.button {
  display: inline-flex;
  min-height: var(--tap);
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: var(--radius);
  font-weight: 800;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--gold-ink);
  box-shadow: 0 16px 30px rgba(224, 177, 75, 0.25);
}

.button.secondary {
  background: #fff;
  border-color: #fff;
  color: var(--violet);
}

.button.ghost {
  color: #fff;
}

.registration-chip {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  align-items: center;
  margin: 12px 0 0;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius);
  color: #fff;
  font-weight: 800;
}

.registration-chip span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
}

/* --- Notice --------------------------------------------------------------- */

.notice-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 16px;
  padding: 14px clamp(18px, 5vw, 72px);
  background: var(--maroon);
  color: #fff;
  text-align: center;
  font-size: clamp(15px, 2vw, 20px);
}

.notice-strip strong {
  color: #ffe9a8;
}

.quick-rail {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding: 14px clamp(18px, 5vw, 72px);
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.quick-rail a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--violet);
  font-size: 14px;
  font-weight: 900;
}

.quick-rail a:hover,
.quick-rail a:focus-visible {
  background: var(--violet);
  color: #fff;
}

/* --- Trust strip ---------------------------------------------------------- */

.trust-section {
  padding-top: clamp(28px, 4vw, 48px);
  padding-bottom: clamp(32px, 4.5vw, 56px);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.trust-card {
  min-height: 100%;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.trust-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--maroon);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.trust-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--violet);
  font-size: 18px;
  line-height: 1.35;
}

.trust-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

/* --- VIP visits ----------------------------------------------------------- */

.vip-section {
  display: grid;
  grid-template-columns: minmax(360px, 0.95fr) minmax(320px, 1.05fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  border-top: 1px solid var(--line);
}

.vip-copy {
  max-width: 560px;
}

.vip-copy h2 {
  margin-bottom: 14px;
  font-size: clamp(34px, 3.8vw, 52px);
  line-height: 1.12;
  letter-spacing: 0;
  overflow-wrap: normal;
  word-break: keep-all;
  hyphens: none;
}

.vip-copy p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.65;
}

.vip-gallery {
  min-width: 0;
}

.vip-card {
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  cursor: zoom-in;
}

.vip-card img {
  display: block;
  width: 100%;
  max-height: min(72vh, 760px);
  object-fit: contain;
  background: #fff;
}

.vip-card span {
  display: block;
  padding: 14px 18px;
  background: var(--violet);
  color: #fff;
  font-weight: 900;
  text-align: center;
}

/* --- Section base --------------------------------------------------------- */

.section {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(48px, 6.5vw, 88px) 0;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 32px;
}

.section-heading p {
  color: var(--muted);
  font-size: 18px;
}

/* --- About ---------------------------------------------------------------- */

.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.about-lead {
  margin: 0;
  font-size: clamp(17px, 1.9vw, 20px);
  color: var(--ink);
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.about-stats li {
  padding: 22px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.about-stats strong {
  display: block;
  color: var(--maroon);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 900;
  line-height: 1;
}

.about-stats span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

/* --- Proof ---------------------------------------------------------------- */

.proof-section {
  border-top: 1px solid var(--line);
}

.proof-carousel {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.proof-carousel.image-scroll-row {
  max-width: none;
  margin: 0;
  overflow-x: auto;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.proof-carousel.image-scroll-row .proof-slide {
  flex: 0 0 calc((100% - 36px) / 3);
  min-width: 300px;
  overflow: hidden;
  scroll-snap-align: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.proof-slide {
  margin: 0;
  display: flex;
  flex-direction: column;
}

.proof-slide img {
  width: 100%;
  max-height: 560px;
  object-fit: contain;
  background: #f4eee7;
}

.proof-slide figcaption {
  padding: 18px 22px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
  border-top: 1px solid var(--line);
}

/* --- Services ------------------------------------------------------------- */

.services-section {
  border-top: 1px solid var(--line);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.service-card {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.service-card h3 {
  margin: 0 0 16px;
  font-size: 22px;
  color: var(--violet);
}

.service-card ul {
  display: grid;
  gap: 10px;
}

.service-card li {
  position: relative;
  padding-left: 28px;
  color: var(--ink);
  font-weight: 600;
}

.service-card li::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 4px;
  width: 12px;
  height: 12px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: inset 0 0 0 3px #fff, 0 0 0 1px var(--green);
}

.documents-panel {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) 1.2fr;
  gap: 24px;
  margin-top: 20px;
  padding: 24px;
  background: #fffaf1;
  border: 1px solid rgba(224, 177, 75, 0.36);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.documents-panel h3 {
  margin-bottom: 8px;
  color: var(--violet);
  font-size: clamp(22px, 2.4vw, 30px);
}

.documents-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.documents-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.documents-list li {
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-weight: 800;
}

/* --- Process -------------------------------------------------------------- */

.process-section {
  border-top: 1px solid var(--line);
  padding-top: clamp(40px, 5vw, 72px);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  counter-reset: process;
}

.process-steps li {
  position: relative;
  min-height: 100%;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.process-steps span {
  display: grid;
  width: 38px;
  height: 38px;
  margin-bottom: 14px;
  place-items: center;
  background: var(--violet);
  border-radius: 50%;
  color: #fff;
  font-weight: 900;
}

.process-steps strong {
  display: block;
  margin-bottom: 8px;
  color: var(--violet);
  font-size: 18px;
}

.process-steps p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

/* --- Benefits table ------------------------------------------------------- */

.benefits-section {
  border-top: 1px solid var(--line);
}

.board-legend {
  display: grid;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 14px;
  color: var(--muted);
}

.board-legend .dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 4px;
  border-radius: 3px;
  vertical-align: -1px;
}

.board-legend .dot.a { background: var(--board-a); }
.board-legend .dot.b { background: var(--board-b); }
.board-legend .dot.c { background: var(--board-c); }

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  -webkit-overflow-scrolling: touch;
}

.benefit-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  background: #fff;
  font-size: 15px;
}

.benefit-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 14px 14px;
  background: var(--violet);
  color: #fff;
  font-weight: 800;
  text-align: center;
  vertical-align: middle;
}

.benefit-table thead th small {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
}

.benefit-table thead th.c-scheme {
  left: 0;
  z-index: 4;
  min-width: 220px;
  box-shadow: 1px 0 0 rgba(255, 255, 255, 0.22);
  text-align: left;
}

.benefit-table th[scope="row"] {
  position: sticky;
  left: 0;
  z-index: 1;
  min-width: 220px;
  padding: 13px 16px;
  background: #fbf7f2;
  color: var(--ink);
  font-weight: 700;
  text-align: left;
  box-shadow: 1px 0 0 var(--line);
}

.benefit-table td {
  padding: 13px 14px;
  text-align: center;
  font-weight: 700;
  color: var(--violet-2);
  white-space: nowrap;
}

.benefit-table tbody tr:nth-child(even) th[scope="row"] {
  background: #f6efe6;
}

.benefit-table tbody tr:nth-child(even) td {
  background: #faf6f0;
}

.benefit-table tbody tr:hover th[scope="row"],
.benefit-table tbody tr:hover td {
  background: #fff4d9;
}

/* --- Posters -------------------------------------------------------------- */

.posts-section {
  border-top: 1px solid var(--line);
}

.poster-grid,
.flyer-grid.image-scroll-row,
.proof-carousel.image-scroll-row,
.selva-photos.image-scroll-row {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding: 4px 4px 14px;
  scroll-padding-inline: 4px;
  scroll-snap-type: x mandatory;
  scrollbar-color: var(--maroon) #efe6dc;
}

.poster-grid li,
.flyer-grid.image-scroll-row li {
  flex: 0 0 calc((100% - 48px) / 4);
  min-width: 260px;
  scroll-snap-align: start;
}

.flyer-grid.image-scroll-row li {
  flex-basis: calc((100% - 36px) / 3);
}

.flyer-grid.image-scroll-row {
  display: flex;
  align-items: stretch;
}

.flyer-grid.image-scroll-row li {
  min-width: 0;
}

.flyer-grid.image-scroll-row .flyer-open img {
  aspect-ratio: 4 / 3;
}

.selva-photos.image-scroll-row .flyer-open {
  flex: 0 0 calc((100% - 32px) / 3);
  min-width: 220px;
  scroll-snap-align: start;
}

.poster-grid .flyer-open {
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  cursor: zoom-in;
}

.poster-grid img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top center;
  transition: transform 240ms ease;
}

.poster-grid .flyer-open:hover img,
.poster-grid .flyer-open:focus-visible img {
  transform: scale(1.03);
}

.view-all-wrap {
  display: flex;
  justify-content: center;
  margin-top: clamp(18px, 3vw, 28px);
}

.view-all-button {
  min-width: min(100%, 280px);
}

.image-scroll-controls {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 14px;
}

.image-scroll-btn {
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--maroon);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
}

.image-scroll-btn:hover,
.image-scroll-btn:focus-visible {
  background: var(--maroon);
  color: #fff;
}

/* --- Gallery + lightbox --------------------------------------------------- */

.gallery {
  border-top: 1px solid var(--line);
}

.flyer-grid:not(.image-scroll-row) {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

figure {
  margin: 0;
}

.flyer-grid figure {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.flyer-open {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  background: none;
  border: 0;
  cursor: zoom-in;
}

.flyer-grid .flyer-open img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  background: #eee;
  transition: transform 260ms ease;
}

.flyer-open::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(23, 17, 30, 0.55));
  opacity: 0;
  transition: opacity 200ms ease;
}

.flyer-open:hover img,
.flyer-open:focus-visible img {
  transform: scale(1.04);
}

.flyer-open:hover::after,
.flyer-open:focus-visible::after {
  opacity: 1;
}

.zoom-hint {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 1;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 999px;
  color: var(--violet);
  font-size: 13px;
  font-weight: 800;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 200ms ease, transform 200ms ease;
}

.flyer-open:hover .zoom-hint,
.flyer-open:focus-visible .zoom-hint {
  opacity: 1;
  transform: translateY(0);
}

.lightbox {
  width: min(1100px, 100vw);
  max-width: 100vw;
  max-height: 100dvh;
  padding: 0;
  background: transparent;
  border: 0;
  overflow: hidden;
}

.lightbox::backdrop {
  background: rgba(12, 8, 18, 0.9);
  backdrop-filter: blur(6px);
}

.lightbox-inner {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100dvh;
  padding: 56px 16px 64px;
}

.lightbox-figure {
  margin: 0;
  max-width: 100%;
  text-align: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: calc(100dvh - 150px);
  margin-inline: auto;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
  background: #1a1420;
}

.lightbox-caption {
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 15px;
  font-weight: 700;
}

.lightbox-count {
  position: absolute;
  bottom: 20px;
  left: 50%;
  margin: 0;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  z-index: 2;
  display: grid;
  width: var(--tap);
  height: var(--tap);
  place-items: center;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transition: background 140ms ease, transform 140ms ease;
  pointer-events: auto;
}

.lightbox-close:hover,
.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: scale(1.06);
}

.lightbox-close {
  top: 14px;
  right: 14px;
  font-size: 30px;
}

.lightbox-nav {
  top: 50%;
  margin-top: -24px;
  font-size: 34px;
}

.lightbox-nav.prev { left: 14px; }
.lightbox-nav.next { right: 14px; }

/* --- Branches ------------------------------------------------------------- */

.branches-section {
  border-top: 1px solid var(--line);
}

.branch-showcase-heading {
  display: flex;
  max-width: 760px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.branch-showcase-heading strong {
  color: var(--violet);
  font-size: 20px;
}

.branch-showcase-heading span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.branch-card-showcase {
  position: relative;
  max-width: 760px;
  margin: 0 0 28px;
  overflow: hidden;
  border-radius: var(--radius);
}

.branch-card-showcase .carousel-track {
  border-radius: var(--radius);
}

.visiting-slide {
  background: var(--surface);
}

.visiting-slide .flyer-open {
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.visiting-slide img {
  width: 100%;
  aspect-ratio: 1063 / 626;
  object-fit: cover;
  transition: transform 180ms ease;
}

.visiting-slide .flyer-open:hover img,
.visiting-slide .flyer-open:focus-visible img {
  transform: scale(1.02);
}

.branch-card-showcase .carousel-btn {
  background: rgba(41, 20, 67, 0.78);
  border-color: rgba(255, 255, 255, 0.38);
}

.branch-card-showcase .carousel-dots {
  bottom: 12px;
}

.branch-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.branch-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.branch-district {
  color: var(--gold-ink);
  background: #f5ead6;
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.branch-card h3 {
  margin: 4px 0 0;
  font-size: 20px;
  color: var(--violet);
}

.branch-card address {
  font-style: normal;
  white-space: pre-line;
  color: var(--muted);
  line-height: 1.6;
}

.branch-phones {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 8px;
}

.branch-phones a {
  flex: 1 1 auto;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  background: var(--violet);
  color: #fff;
  border-radius: var(--radius);
  font-weight: 800;
  transition: transform 140ms ease;
}

.branch-phones a:hover {
  transform: translateY(-1px);
}

.official-role {
  margin: 0;
  color: var(--gold-ink);
  font-weight: 800;
}

/* --- CTA band ------------------------------------------------------------- */

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 0;
  padding: clamp(30px, 5vw, 48px);
  background: var(--violet);
  border-radius: var(--radius);
  color: #fff;
}

.cta-band h2 {
  max-width: 760px;
  margin: 0;
  color: #fff;
  font-size: clamp(24px, 3.2vw, 38px);
}

.cta-band .section-kicker {
  color: var(--gold);
}

.cta-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 10px;
}

/* --- Contact -------------------------------------------------------------- */

.contact-section {
  display: grid;
  grid-template-columns: 1fr minmax(300px, 400px);
  gap: clamp(28px, 6vw, 76px);
  align-items: center;
  padding: clamp(52px, 8vw, 90px) clamp(18px, 5vw, 72px);
  background:
    linear-gradient(135deg, rgba(41, 25, 70, 0.98), rgba(151, 19, 62, 0.92)),
    var(--violet);
  color: #fff;
}

.contact-copy {
  max-width: 720px;
  min-width: 0;
}

.profile-card {
  display: flex;
  gap: 18px;
  align-items: center;
  margin: 18px 0;
  padding: 18px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
}

.profile-photo {
  width: 96px;
  height: 96px;
  flex: 0 0 96px;
  object-fit: cover;
  object-position: top center;
  border-radius: 999px;
  border: 3px solid var(--gold);
}

.profile-card > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.profile-card strong {
  font-size: 19px;
}

.profile-card span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
}

.profile-call {
  margin-top: 8px;
  color: var(--gold);
  font-weight: 800;
}

.selva-photos:not(.image-scroll-row) {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 560px;
  margin: 12px 0 18px;
}

.selva-photos.image-scroll-row {
  width: 100%;
  max-width: 640px;
  margin: 12px 0 18px;
}

.selva-photo {
  display: block;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius);
  cursor: zoom-in;
}

.selva-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 180ms ease;
}

.selva-photo:hover img {
  transform: scale(1.04);
}

.reg-line {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 700;
  font-size: 14px;
}

.cert-thumb {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  max-width: 340px;
  margin-top: 4px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius);
  color: #fff;
  cursor: zoom-in;
  transition: background 140ms ease;
}

.cert-thumb:hover {
  background: rgba(255, 255, 255, 0.18);
}

.cert-thumb img {
  width: 54px;
  height: 72px;
  flex: 0 0 54px;
  object-fit: cover;
  object-position: top center;
  border-radius: 6px;
  background: #fff;
}

.cert-thumb span {
  font-weight: 800;
  font-size: 15px;
  color: var(--gold);
}

.contact-panel {
  display: grid;
  gap: 12px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.18);
}

.contact-panel > span {
  color: var(--gold);
  font-size: 14px;
  font-weight: 800;
}

.contact-panel a {
  display: block;
  padding: 13px 14px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--violet);
  border-radius: var(--radius);
  font-size: clamp(18px, 2.6vw, 26px);
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  transition: background 140ms ease;
}

.contact-panel a:hover {
  background: var(--gold);
}

.contact-panel .wa-btn {
  background: #1d8f4f;
  color: #fff;
  font-size: 18px;
}

.contact-panel .wa-btn:hover {
  background: #17a555;
}

/* --- Disclaimer ----------------------------------------------------------- */

.disclaimer {
  color: var(--muted);
}

.disclaimer h2 {
  color: var(--ink);
  font-size: clamp(20px, 2.2vw, 26px);
}

.disclaimer strong {
  color: var(--maroon);
}

/* --- Floating actions ----------------------------------------------------- */

.float-actions {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 40;
  display: none;
  gap: 8px;
}

.float-btn {
  display: inline-flex;
  min-height: var(--tap);
  flex: 1;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: var(--radius);
  box-shadow: 0 18px 35px rgba(32, 24, 42, 0.24);
  font-weight: 800;
}

.float-btn.call {
  background: var(--gold);
  color: var(--gold-ink);
}

.float-btn.whatsapp {
  background: #1d8f4f;
  color: #fff;
}

/* --- Footer --------------------------------------------------------------- */

footer {
  padding: 28px clamp(18px, 5vw, 72px);
  background: #17111e;
  color: rgba(255, 255, 255, 0.8);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}

.footer-title {
  margin: 0;
  color: #fff;
  font-weight: 800;
}

.footer-sub {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  font-size: 14px;
}

.footer-nav a {
  padding: 8px 10px;
  border-radius: var(--radius);
  color: var(--gold);
  font-weight: 700;
}

.footer-nav a:hover {
  background: rgba(255, 255, 255, 0.08);
}

.footer-legal {
  margin: 22px 0 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
}

/* --- Responsive ----------------------------------------------------------- */

@media (max-width: 1040px) {
  .site-header {
    grid-template-columns: 1fr auto auto;
    gap: 12px;
  }

  .nav-toggle {
    display: grid;
    place-items: center;
    order: 3;
  }

  nav {
    display: none;
    grid-column: 1 / -1;
    order: 4;
    flex-direction: column;
    gap: 2px;
  }

  nav.is-open {
    display: flex;
  }

  nav a {
    padding: 13px 12px;
  }

  .header-call {
    order: 2;
    padding-inline: 12px;
  }

  .quick-rail {
    display: flex;
    grid-column: auto;
    order: initial;
    flex-direction: row;
  }

  .about-grid,
  .vip-section,
  .services-grid,
  .documents-panel,
  .process-steps,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .trust-grid {
    grid-template-columns: 1fr;
  }

  .branch-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .flyer-grid:not(.image-scroll-row) {
    grid-template-columns: repeat(2, 1fr);
  }

  .cta-band {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 820px) {
  .header-call {
    display: none;
  }
}

@media (max-width: 660px) {
  :root {
    --header-h: 94px;
  }

  .site-header {
    padding: 10px 14px;
  }

  .brand {
    gap: 10px;
    min-width: 0;
  }

  .brand-mark {
    width: 72px;
    height: 72px;
    flex-basis: 72px;
    border-radius: 16px;
  }

  .brand strong {
    font-size: 14px;
    line-height: 1.15;
  }

  .brand small {
    font-size: 9px;
    line-height: 1.2;
    max-width: 25ch;
  }

  .hero-overlay {
    min-height: min(620px, calc(100svh - var(--header-h)));
    align-items: flex-start;
  }

  .hero-inner {
    padding: 28px 0 36px;
  }

  .eyebrow {
    margin-bottom: 8px;
    font-size: 12px;
    line-height: 1.45;
  }

  .hero h1 {
    max-width: calc(100% - 30px);
    margin-bottom: 12px;
    font-size: clamp(21px, 6.4vw, 26px);
    line-height: 1.08;
  }

  .lead {
    max-width: calc(100% - 24px);
    font-size: 15px;
    line-height: 1.5;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 14px;
  }

  .hero-badges {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    margin-top: 12px;
    overflow-x: visible;
    max-width: calc(100% - 28px);
  }

  .hero-badges li {
    max-width: 100%;
    padding: 6px 9px;
    font-size: 11px;
    overflow-wrap: anywhere;
  }

  .hero-badges li:nth-child(n + 3) {
    display: none;
  }

  .quick-rail {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding: 10px 14px;
    -webkit-overflow-scrolling: touch;
  }

  .quick-rail a {
    flex: 0 0 auto;
    min-height: 36px;
    font-size: 13px;
  }

  .button {
    min-height: 44px;
    padding: 10px 16px;
  }

  .registration-chip {
    margin-top: 14px;
    padding: 8px 10px;
    font-size: 13px;
  }

  .about-stats,
  .documents-list,
  .branch-grid,
  .flyer-grid:not(.image-scroll-row) {
    grid-template-columns: 1fr;
  }

  .trust-card,
  .service-card,
  .process-steps li,
  .documents-panel {
    padding: 18px;
  }

  .branch-showcase-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .branch-card-showcase {
    margin-bottom: 20px;
  }

  .cta-band {
    width: min(1180px, calc(100% - 28px));
    padding: 22px 18px;
  }

  .cta-actions {
    display: grid;
    width: 100%;
    grid-template-columns: 1fr;
  }

  .poster-grid li {
    flex-basis: min(72vw, 340px);
  }

  .flyer-grid.image-scroll-row li,
  .proof-carousel.image-scroll-row .proof-slide,
  .selva-photos.image-scroll-row .flyer-open {
    flex-basis: min(72vw, 340px);
  }

  .flyer-grid.image-scroll-row {
    display: flex;
  }

  .float-actions {
    display: none;
  }

  .profile-card {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .selva-photos:not(.image-scroll-row) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 100%;
  }

  .selva-photos.image-scroll-row {
    max-width: 100%;
  }

  .lightbox-nav {
    top: auto;
    bottom: 16px;
    margin-top: 0;
  }

  .lightbox-nav.prev { left: 20px; }
  .lightbox-nav.next { right: 20px; }

  .zoom-hint {
    opacity: 1;
    transform: none;
  }

  footer {
    padding-bottom: 88px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 400px) {
  body {
    font-size: 15px;
  }

  :root {
    --header-h: 88px;
  }

  .site-header {
    padding: 8px 14px;
  }

  .brand-mark {
    width: 64px;
    height: 64px;
    flex-basis: 64px;
  }

  .brand strong {
    font-size: 13px;
  }

  .brand small {
    font-size: 8.5px;
    max-width: 22ch;
  }

  .hero-overlay {
    min-height: min(560px, calc(100svh - var(--header-h)));
  }

  .hero-inner {
    padding: 20px 0 28px;
  }

  .eyebrow {
    font-size: 11px;
  }

  .hero h1 {
    max-width: calc(100% - 24px);
    font-size: clamp(19px, 6vw, 21px);
    line-height: 1.12;
  }

  .lead {
    max-width: calc(100% - 20px);
    font-size: 13.5px;
    line-height: 1.42;
  }

  .hero-actions {
    margin-top: 10px;
  }

  .poster-grid li,
  .flyer-grid.image-scroll-row li,
  .proof-carousel.image-scroll-row .proof-slide,
  .selva-photos.image-scroll-row .flyer-open {
    flex-basis: min(84vw, 320px);
  }

  .flyer-grid.image-scroll-row {
    display: flex;
  }

  .section,
  .hero-inner {
    width: min(1180px, calc(100% - 28px));
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .carousel-track {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (prefers-contrast: more) {
  :root {
    --muted: #3a3342;
    --line: #b9ab9c;
  }
}

@media print {
  .site-header,
  .float-actions,
  .carousel-btn,
  .carousel-dots,
  .footer-nav,
  .skip-link,
  .lightbox,
  .zoom-hint {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
    font-size: 11pt;
  }

  .hero,
  .contact-section {
    background: #fff !important;
    color: #000 !important;
  }

  .hero-slides { position: static; }
  .hero-slides::after { display: none; }

  .table-wrap {
    overflow: visible;
  }

  .section,
  figure,
  .branch-card {
    break-inside: avoid;
  }
}
