/* ==========================================================================
   Ajantha Vijay Sankar Mahal: styles
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --cream: #FBF6EE;
  --white: #FFFFFF;
  --maroon: #7A1C3B;
  --maroon-dark: #62142F;
  --wine: #4A1428;
  --gold: #C9973A;
  --gold-light: #E3B860;
  --gold-text: #8A6420;   /* gold that passes AA on cream/white */
  --green: #173A2B;
  --ink: #2A2522;
  --muted: #5F5650;
  --placeholder: #776E68;
  --line: #EADFCD;
  --wa: #17803C;          /* WhatsApp green, darkened for AA with white text */
  --wa-dark: #126A31;

  --font-display: "Playfair Display", "Noto Serif Tamil", Georgia, serif;
  --font-body: "Hind Madurai", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 12px 32px rgba(74, 20, 40, 0.10);
  --header-h: 68px;
  --bar-h: 56px;
  --gutter: 16px;
}

@media (min-width: 640px) {
  :root { --gutter: 24px; }
}

@media (min-width: 1120px) {
  :root { --header-h: 80px; }
}

/* ---------- Language switching ----------
   Every string is written twice (lang="en" / lang="ta"); only the active one shows. */
html[data-lang="en"] [lang="ta"],
html[data-lang="ta"] [lang="en"] {
  display: none !important;
}

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

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

body {
  margin: 0;
  padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom));
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-variant-numeric: lining-nums;
  line-height: 1.6;
  overflow-x: hidden;
}

html[data-lang="ta"] body {
  line-height: 1.75;
}

h1, h2, h3, p, figure, blockquote, address {
  margin: 0;
}

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

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

a {
  color: inherit;
}

button,
input,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--maroon);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

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

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon--fill {
  fill: currentColor;
  stroke: none;
}

/* ---------- Shared type ---------- */
.eyebrow {
  margin-bottom: 0.5rem;
  color: var(--gold-text);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow--on-dark {
  color: var(--gold-light);
}

html[data-lang="ta"] .eyebrow {
  font-size: 0.875rem;
  letter-spacing: 0.02em;
}

.section {
  padding-block: clamp(56px, 8vw, 96px);
}

.section-head {
  max-width: 720px;
  margin: 0 auto clamp(32px, 5vw, 48px);
  text-align: center;
}

.section-title {
  color: var(--maroon);
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  text-wrap: balance;
}

html[data-lang="ta"] .section-title {
  font-size: clamp(1.375rem, 1.05rem + 1.5vw, 2rem);
  line-height: 1.45;
}

.section-title--ink {
  color: var(--ink);
}

.section-title em {
  color: var(--maroon);
  font-style: normal;
}

.section-sub {
  margin-top: 0.75rem;
  color: var(--muted);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.7rem 1.25rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn--block {
  width: 100%;
}

.btn--pill {
  border-radius: 999px;
}

.btn--maroon {
  background: var(--maroon);
  color: #fff;
}

.btn--maroon:hover {
  background: var(--maroon-dark);
}

.btn--wa {
  background: var(--wa);
  color: #fff;
}

.btn--wa:hover {
  background: var(--wa-dark);
}

.btn--gold {
  background: var(--gold-light);
  color: var(--wine);
}

.btn--gold:hover {
  background: #EDC877;
}

.btn--outline {
  border-color: var(--maroon);
  background: transparent;
  color: var(--maroon);
}

.btn--outline:hover {
  background: var(--maroon);
  color: #fff;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.2s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 6px 20px rgba(74, 20, 40, 0.08);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  margin-right: auto;
  text-decoration: none;
}

.brand__logo {
  display: block;
  width: auto;
  height: calc(var(--header-h) - 14px);
}

.site-nav__list a {
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav__list a:hover {
  color: var(--maroon);
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-toggle {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  background: #fff;
  color: var(--maroon);
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
}

.lang-toggle:hover {
  background: var(--cream);
}

.site-header__call {
  display: none;
  min-height: 44px;
  padding: 0 18px;
  font-size: 0.9375rem;
  white-space: nowrap;
}

.menu-toggle {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-right: -8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--maroon);
}

.menu-toggle .icon {
  width: 26px;
  height: 26px;
}

.menu-toggle .icon--close,
.menu-toggle[aria-expanded="true"] .icon--open {
  display: none;
}

.menu-toggle[aria-expanded="true"] .icon--close {
  display: block;
}

@media (max-width: 1119.98px) {
  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    display: none;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    padding: 4px var(--gutter) 12px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 24px rgba(74, 20, 40, 0.10);
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav__list a {
    display: block;
    padding: 14px 4px;
    border-bottom: 1px solid var(--line);
    font-size: 1.0625rem;
  }

  .site-nav__list li:last-child a {
    border-bottom: 0;
  }
}

@media (min-width: 760px) {
  .site-header__call {
    display: inline-flex;
  }
}

@media (min-width: 1120px) {
  .site-nav__list {
    display: flex;
    gap: clamp(14px, 1.5vw, 26px);
  }

  .site-nav__list a {
    padding: 8px 0;
  }

  /* Tamil labels run longer; tighten so the row still fits beside the brand. */
  html[data-lang="ta"] .site-nav__list {
    gap: clamp(10px, 1vw, 18px);
  }

  html[data-lang="ta"] .site-nav__list a {
    font-size: 0.875rem;
  }

  .menu-toggle {
    display: none;
  }

  .site-header__inner {
    gap: clamp(16px, 2vw, 32px);
  }
}

/* Tamil nav is wider: between 1120 and 1280 the call button shrinks to its icon. */
@media (min-width: 1120px) and (max-width: 1279.98px) {
  html[data-lang="ta"] .site-header__call {
    width: 44px;
    padding: 0;
  }

  html[data-lang="ta"] .site-header__call-num {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--cream);
}

.hero__inner {
  display: grid;
}

/* On phones the photo sits behind the copy only; the booking card follows on cream. */
.hero__copy {
  position: relative;
  isolation: isolate;
  margin-inline: calc(-1 * var(--gutter));
  padding: 44px var(--gutter) 76px;
  color: #fff;
}

.hero__copy::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(28, 12, 20, 0.55) 0%, rgba(28, 12, 20, 0.82) 100%),
    url("../images/exterior-1280.jpg") center 35% / cover no-repeat;
}

.hero__title {
  margin-top: 1.25rem;
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 1.6rem + 5vw, 4.75rem);
  font-weight: 700;
  line-height: 1.05;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.3);
}

.hero__pre {
  display: block;
  margin-bottom: 0.6rem;
  color: rgba(255, 255, 255, 0.9);
  font-family: var(--font-body);
  font-size: clamp(0.875rem, 0.8rem + 0.3vw, 1rem);
  font-weight: 600;
  letter-spacing: 0.32em;
  line-height: 1.2;
  text-transform: uppercase;
}

.hero__mahal {
  display: block;
  color: var(--gold-light);
}

html[data-lang="ta"] .hero__title {
  font-size: clamp(2.125rem, 1.3rem + 3.6vw, 3.5rem);
  line-height: 1.3;
}

html[data-lang="ta"] .hero__pre {
  letter-spacing: 0.08em;
}

.hero__tagline {
  max-width: 36ch;
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.1875rem);
  font-weight: 500;
}

.hero__tagline i {
  margin-inline: 0.3em;
  color: var(--gold-light);
  font-style: normal;
}

/* ---------- Booking card ---------- */
.book {
  position: relative;
  margin-top: -40px;
  padding: 24px 20px;
  color: var(--ink);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.book__title {
  color: var(--maroon);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.25;
}

html[data-lang="ta"] .book__title {
  font-size: 1.25rem;
  line-height: 1.5;
}

.book__sub {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.9375rem;
}

.book__form {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.book__form .btn {
  margin-top: 4px;
}

.book__note {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.5;
}

.field {
  position: relative;
}

.field__icon,
.field__chevron {
  position: absolute;
  top: 50%;
  width: 18px;
  height: 18px;
  color: var(--muted);
  pointer-events: none;
  translate: 0 -50%;
}

.field__icon {
  left: 14px;
}

.field__chevron {
  right: 14px;
}

.field input,
.field select {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px 10px 44px;
  border: 1px solid #DDD3C4;
  border-radius: var(--radius-sm);
  background: #FCFAF7;
  color: var(--ink);
  font-size: 1rem;
  -webkit-appearance: none;
  appearance: none;
}

.field select {
  padding-right: 40px;
}

.field select:has(option[value=""]:checked),
.field input::placeholder {
  color: var(--placeholder);
  opacity: 1;
}

.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--maroon);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(122, 28, 59, 0.18);
}

.field input[type="number"] {
  -moz-appearance: textfield;
}

.field input[type="number"]::-webkit-inner-spin-button,
.field input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.field input[type="date"]::-webkit-date-and-time-value {
  text-align: left;
}

.field input[type="date"]::-webkit-calendar-picker-indicator {
  opacity: 0.55;
  cursor: pointer;
}

/* Empty date inputs show our own "Select date" text instead of the browser's dd/mm/yyyy. */
.field__ghost {
  position: absolute;
  top: 50%;
  left: 45px;
  right: 44px;
  overflow: hidden;
  color: var(--placeholder);
  text-overflow: ellipsis;
  white-space: nowrap;
  pointer-events: none;
  translate: 0 -50%;
}

.field--date.has-value .field__ghost,
.field--date input:focus ~ .field__ghost {
  display: none;
}

.field--date:not(.has-value) input:not(:focus),
.field--date:not(.has-value) input:not(:focus)::-webkit-datetime-edit {
  color: transparent;
}

@media (min-width: 960px) {
  .hero {
    background:
      linear-gradient(90deg, rgba(24, 10, 18, 0.92) 0%, rgba(24, 10, 18, 0.74) 32%, rgba(24, 10, 18, 0.28) 60%, rgba(24, 10, 18, 0.12) 100%),
      url("../images/exterior.jpg") 60% 30% / cover no-repeat;
  }

  .hero__inner {
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 48px;
    align-items: center;
    min-height: min(calc(100svh - var(--header-h)), 700px);
    padding-block: 56px;
  }

  .hero__copy {
    margin: 0;
    padding: 0;
  }

  .hero__copy::before {
    display: none;
  }

  .book {
    margin-top: 0;
    padding: 28px 26px;
  }
}

/* ---------- About ---------- */
.about {
  position: relative;
  overflow: hidden;
}

.about::before {
  content: "";
  position: absolute;
  left: -220px;
  bottom: -220px;
  width: 560px;
  aspect-ratio: 1;
  background: url("../images/mandala.svg") center / contain no-repeat;
  opacity: 0.22;
  pointer-events: none;
}

.about__inner {
  position: relative;
  display: grid;
  gap: 40px;
  align-items: center;
}

.about__copy > p[lang] {
  max-width: 60ch;
  margin-top: 1rem;
  color: var(--muted);
}

.events__title {
  margin-top: 1.75rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
}

.events {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.events li {
  padding: 6px 14px;
  border: 1px solid rgba(201, 151, 58, 0.45);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.4;
}

.facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 28px;
}

.fact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 16px 8px;
  text-align: center;
}

.fact:nth-child(odd) {
  border-right: 1px solid var(--line);
}

.fact:nth-child(-n + 2) {
  border-bottom: 1px solid var(--line);
}

.fact .icon {
  width: 34px;
  height: 34px;
  margin-bottom: 6px;
  color: var(--gold);
  stroke-width: 1.5;
}

.fact strong {
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1.1;
}

.fact span {
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.35;
}

/* The arch frame: rounded corners with two scooped-out corners, like the mockup. */
.about__media {
  justify-self: center;
  width: 100%;
  max-width: 480px;
}

.about__media img {
  width: 100%;
  aspect-ratio: 5 / 6;
  object-fit: cover;
  border-radius: 28px;
  -webkit-mask:
    radial-gradient(circle 64px at 0 0, #0000 98%, #000),
    radial-gradient(circle 64px at 100% 100%, #0000 98%, #000);
  -webkit-mask-composite: source-in;
  mask:
    radial-gradient(circle 64px at 0 0, #0000 98%, #000),
    radial-gradient(circle 64px at 100% 100%, #0000 98%, #000);
  mask-composite: intersect;
}

@media (min-width: 640px) {
  .facts {
    grid-template-columns: repeat(4, 1fr);
  }

  .fact:nth-child(odd),
  .fact:nth-child(-n + 2) {
    border: 0;
  }

  .fact + .fact {
    border-left: 1px solid var(--line);
  }
}

@media (min-width: 960px) {
  .about__inner {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 64px;
  }
}

/* ---------- Halls ---------- */
.halls {
  background: #fff;
}

.hall-cards {
  display: grid;
  gap: 24px;
  max-width: 560px;
  margin-inline: auto;
}

.hall-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 8px 24px rgba(74, 20, 40, 0.07);
}

.hall-card__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.hall-card__body {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px 22px;
}

.hall-card__icon {
  width: 36px;
  height: 36px;
  margin-top: 2px;
  color: var(--gold);
  stroke-width: 1.5;
}

.hall-card__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
}

.hall-card p {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.9375rem;
}

.hall-card .hall-card__cap {
  color: var(--ink);
  font-weight: 600;
}

@media (min-width: 860px) {
  .hall-cards {
    grid-template-columns: repeat(3, 1fr);
    max-width: none;
  }
}

/* ---------- Facilities ---------- */
.facilities {
  position: relative;
  overflow: hidden;
}

.facilities::before,
.facilities::after {
  content: "";
  position: absolute;
  top: -80px;
  width: 380px;
  aspect-ratio: 1;
  background: url("../images/mandala.svg") center / contain no-repeat;
  opacity: 0.18;
  pointer-events: none;
}

.facilities::before {
  left: -190px;
}

.facilities::after {
  right: -190px;
}

.amenities {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 12px;
}

.amenities li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.35;
  text-align: center;
}

.amenities li:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.ring {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 6px rgba(201, 151, 58, 0.1);
  color: var(--gold);
}

.ring .icon {
  width: 32px;
  height: 32px;
  stroke-width: 1.5;
}

@media (min-width: 640px) {
  .amenities {
    grid-template-columns: repeat(4, 1fr);
  }

  .amenities li:last-child:nth-child(odd) {
    grid-column: auto;
  }
}

@media (min-width: 1024px) {
  .amenities {
    grid-template-columns: repeat(6, 1fr);
    row-gap: 40px;
  }
}

/* ---------- Gallery ---------- */
.gallery {
  position: relative;
  overflow: hidden;
  background: var(--wine);
  color: #fff;
}

.gallery::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1100px;
  aspect-ratio: 1;
  background: url("../images/mandala.svg") center / contain no-repeat;
  opacity: 0.07;
  pointer-events: none;
  translate: -50% -50%;
}

.section-head--on-dark .section-title {
  color: #fff;
}

.section-head--on-dark .section-sub {
  color: rgba(255, 255, 255, 0.78);
}

.carousel {
  position: relative;
}

.carousel__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 82%;
  gap: 14px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.carousel__track::-webkit-scrollbar {
  display: none;
}

.carousel__track > li {
  scroll-snap-align: start;
}

.carousel__item {
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius-sm);
  background: none;
}

.carousel__item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.carousel__item:hover img {
  transform: scale(1.03);
}

.carousel__btn {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
  color: var(--maroon);
  translate: 0 -50%;
  transition: opacity 0.2s ease;
}

.carousel__btn .icon {
  width: 22px;
  height: 22px;
}

.carousel__btn--prev {
  left: -8px;
}

.carousel__btn--next {
  right: -8px;
}

.carousel__btn:disabled {
  opacity: 0;
  pointer-events: none;
}

@media (min-width: 640px) {
  .carousel__track {
    grid-auto-columns: calc((100% - 14px) / 2);
  }
}

@media (min-width: 960px) {
  .carousel__track {
    grid-auto-columns: calc((100% - 3 * 16px) / 4);
    gap: 16px;
  }
}

@media (min-width: 1280px) {
  .carousel__btn--prev {
    left: -22px;
  }

  .carousel__btn--next {
    right: -22px;
  }
}

/* ---------- Reviews ---------- */
.rating {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 16px 20px;
  max-width: 640px;
  margin-inline: auto;
  padding: 24px clamp(20px, 4vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 8px 24px rgba(74, 20, 40, 0.06);
}

.rating__score {
  color: var(--maroon);
  font-family: var(--font-display);
  font-size: clamp(3rem, 2.4rem + 2vw, 4rem);
  font-weight: 700;
  line-height: 1;
}

.rating__stars {
  display: flex;
  gap: 3px;
  color: var(--line);
}

.rating__stars .icon {
  width: 22px;
  height: 22px;
  fill: currentColor;
  stroke: none;
}

.rating__stars .is-on {
  color: var(--gold);
}

.rating__count {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.9375rem;
}

.rating__link {
  grid-column: 1 / -1;
}

.reviews-strip {
  margin-top: 40px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}

.reviews-strip__track {
  display: flex;
  gap: 20px;
  width: max-content;
  padding-block: 8px 16px;
}

.reviews-strip .review-card {
  flex: none;
  display: flex;
  flex-direction: column;
  width: min(340px, 80vw);
}

.reviews-strip .review-card__text {
  flex: 1;
}

.reviews-strip.is-scrolling .reviews-strip__track {
  animation: reviews-scroll var(--reviews-duration, 60s) linear infinite;
}

.reviews-strip.is-scrolling:hover .reviews-strip__track,
.reviews-strip.is-scrolling:focus-within .reviews-strip__track {
  animation-play-state: paused;
}

/* the track holds two copies; moving by one copy (half, plus half a gap) loops seamlessly */
@keyframes reviews-scroll {
  to {
    transform: translateX(calc(-50% - 10px));
  }
}

.review-card__stars .icon {
  color: var(--line);
}

.review-card__stars .is-on {
  color: var(--gold);
}

.review-cards {
  display: grid;
  gap: 20px;
  margin-top: 32px;
}

.review-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 8px 24px rgba(74, 20, 40, 0.06);
}

.review-card__stars {
  display: flex;
  gap: 2px;
  color: var(--gold);
}

.review-card__stars .icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
  stroke: none;
}

.review-card__text {
  margin-top: 12px;
}

.review-card__name {
  margin-top: 16px;
  font-weight: 700;
}

.review-card__event {
  color: var(--muted);
  font-size: 0.875rem;
}

@media (min-width: 640px) {
  .rating {
    grid-template-columns: auto 1fr auto;
  }

  .rating__link {
    grid-column: auto;
  }
}

@media (min-width: 900px) {
  .review-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------- Location ---------- */
.location {
  position: relative;
  overflow: hidden;
  padding-bottom: 0;
  background: var(--green);
  color: #fff;
}

.location::before {
  content: "";
  position: absolute;
  left: -40px;
  bottom: 0;
  width: 280px;
  height: 448px;
  background: url("../images/gopuram.svg") left bottom / contain no-repeat;
  opacity: 0.14;
  pointer-events: none;
}

.location__inner {
  position: relative;
  display: grid;
  gap: 32px;
  align-items: center;
}

.location .section-title {
  color: #fff;
}

.contact-list {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.contact-list .icon {
  width: 26px;
  height: 26px;
  margin-top: 2px;
  color: var(--gold-light);
}

.contact-list address {
  color: rgba(255, 255, 255, 0.88);
  font-style: normal;
}

.contact-list strong {
  color: #fff;
}

.contact-list a {
  color: #fff;
  font-size: 1.125rem;
  font-weight: 600;
  text-decoration: none;
}

.contact-list a:hover {
  text-decoration: underline;
}

.location__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.location__map {
  position: relative;
  display: block;
  overflow: hidden;
  border: 4px solid #fff;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
  color: var(--maroon);
  text-decoration: none;
}

.location__map img {
  width: 100%;
  aspect-ratio: 1200 / 760;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.location__map:hover img {
  transform: scale(1.03);
}

.location__map-cta {
  position: absolute;
  left: 12px;
  top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  font-size: 0.9375rem;
  font-weight: 700;
}

.location__map-cta .icon {
  width: 18px;
  height: 18px;
}

.site-footer {
  position: relative;
  margin-top: clamp(48px, 6vw, 72px);
  padding-block: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.875rem;
}

@media (min-width: 900px) {
  .location__inner {
    grid-template-columns: 1fr 1.1fr;
    gap: 56px;
  }


}

/* ---------- Contact buttons ---------- */
.contact-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--wine);
  box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.15);
}

.contact-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--bar-h);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.contact-bar .icon {
  width: 22px;
  height: 22px;
}

.contact-bar__call {
  background: var(--maroon);
}

.contact-bar__wa {
  background: var(--wa);
}

.wa-float {
  display: none;
}

@media (min-width: 960px) {
  body {
    padding-bottom: 0;
  }

  .contact-bar {
    display: none;
  }

  .wa-float {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 40;
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--wa);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
    color: #fff;
  }

  .wa-float:hover {
    background: var(--wa-dark);
  }

  .wa-float .icon {
    width: 30px;
    height: 30px;
  }
}

/* ---------- Lightbox ---------- */
.lightbox {
  width: min(100vw - 32px, 1080px);
  max-width: none;
  max-height: none;
  padding: 0;
  overflow: visible;
  border: 0;
  background: transparent;
  color: #fff;
}

.lightbox::backdrop {
  background: rgba(20, 8, 14, 0.92);
}

.lightbox__figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.lightbox__img {
  width: auto;
  max-width: 100%;
  max-height: calc(100vh - 140px);
  border-radius: var(--radius-sm);
  object-fit: contain;
}

.lightbox__caption {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9375rem;
  text-align: center;
}

.lightbox__btn {
  position: fixed;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--maroon);
}

.lightbox__btn .icon {
  width: 24px;
  height: 24px;
}

.lightbox__close {
  top: 16px;
  right: 16px;
}

.lightbox__prev,
.lightbox__next {
  top: 50%;
  translate: 0 -50%;
}

.lightbox__prev {
  left: 16px;
}

.lightbox__next {
  right: 16px;
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }

  .carousel__item:hover img {
    transform: none;
  }

  .reviews-strip {
    overflow-x: auto;
  }
}
