/* Amrita Lakshmi Mahal — site styles
   Self-hosted. Replaces Bootstrap + Font Awesome (no third-party CSS). */

:root {
  --maroon: #8b0000;
  --maroon-dark: #4a0404;
  --maroon-darker: #2d0202;
  --gold: #ffd700;
  --gold-deep: #ffa500;
  --ink: #2c3e50;
  --muted: #5b6770;
  --surface: #f8f9fa;
  --radius: 15px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, .08);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, .15);
  --maxw: 1200px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Tamil", sans-serif;
  line-height: 1.6;
  color: var(--ink);
  background: #fff;
}

h1, h2, h3, h4, h5, h6 { margin: 0 0 .5rem; line-height: 1.25; font-weight: 700; }
p { margin: 0 0 1rem; }
img, video, iframe { max-width: 100%; }
a { color: var(--maroon); }
a, button, summary { touch-action: manipulation; }
a[href^="tel:"] { white-space: nowrap; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 1rem; }
.section { padding: 4rem 0; }
.section-light { background: linear-gradient(135deg, var(--surface) 0%, #e9ecef 100%); }
.section-white { background: linear-gradient(135deg, var(--surface) 0%, #fff 100%); }
.section-maroon { background: linear-gradient(135deg, var(--maroon) 0%, var(--maroon-dark) 100%); }
.section-deep { background: linear-gradient(135deg, var(--maroon-darker) 0%, var(--maroon-dark) 100%); }

.section-title { text-align: center; margin-bottom: 2.5rem; font-size: clamp(1.6rem, 4vw, 2.2rem); }
.section-title-dark { color: var(--maroon); }
.section-title-gold { color: var(--gold); }

/* Gold gradient text with a readable fallback for unsupported engines */
.goldtext {
  color: var(--gold);
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
}
@supports (-webkit-text-fill-color: transparent) {
  .goldtext { -webkit-text-fill-color: transparent; }
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 1100;
  background: var(--gold); color: var(--maroon-dark);
  padding: .75rem 1.25rem; font-weight: 700; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Navbar ---------- */
.navbar {
  background: linear-gradient(135deg, var(--maroon) 0%, var(--maroon-dark) 100%);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .3);
  position: relative;
}
.navbar-inner {
  max-width: var(--maxw); margin: 0 auto; padding: .75rem 1rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.navbar-brand {
  font-weight: 700; text-decoration: none; font-size: 1rem;
  max-width: 78%; line-height: 1.3;
}
.nav-toggle {
  display: none; background: transparent; border: 2px solid var(--gold);
  color: var(--gold); border-radius: 8px; padding: .3rem .6rem;
  font-size: 1.25rem; cursor: pointer; line-height: 1;
}
.nav-links { display: flex; gap: .5rem; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  color: #fff; text-decoration: none; font-weight: 500;
  padding: .5rem .9rem; border-radius: 6px; display: block;
  transition: background-color .2s, color .2s;
}
.nav-links a:hover, .nav-links a:focus-visible { background: rgba(255, 215, 0, .18); color: var(--gold); }
.nav-links a[aria-current="page"] { color: var(--gold); font-weight: 700; }

@media (max-width: 820px) {
  .nav-toggle { display: block; min-width: 44px; min-height: 44px; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; padding: .5rem 1rem 1rem;
    background: linear-gradient(135deg, var(--maroon) 0%, var(--maroon-dark) 100%);
    box-shadow: var(--shadow-lg); z-index: 50;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: .85rem 1rem; border-radius: 0; border-bottom: 1px solid rgba(255, 255, 255, .1); }
  .nav-links li:last-child a { border-bottom: 0; }
}
@media (max-width: 480px) {
  .navbar-brand { font-size: .9rem; }
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--maroon) 0%, var(--maroon-dark) 100%);
  position: relative; overflow: hidden; text-align: center;
  padding: 3.5rem 1rem; color: #fff;
}
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(circle at 20% 50%, rgba(255, 215, 0, .1) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(255, 215, 0, .1) 0%, transparent 50%);
}
.hero > * { position: relative; z-index: 1; }
.hero-logo {
  width: 120px; height: 120px; object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(255, 215, 0, .3));
}
.hero h1 { font-size: clamp(2rem, 6vw, 3.5rem); margin: 1rem 0 .75rem; }
.hero-lead {
  color: rgba(255, 255, 255, .95); font-size: clamp(1rem, 2.4vw, 1.3rem);
  max-width: 44rem; margin: 0 auto 1.5rem;
}

.btn {
  display: inline-block; cursor: pointer; text-decoration: none;
  border: none; border-radius: 30px; font-weight: 600;
  padding: .9rem 2.5rem; font-size: 1rem;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-deep) 100%);
  color: var(--maroon-dark);
  box-shadow: 0 4px 15px rgba(255, 215, 0, .4);
  transition: transform .2s, box-shadow .2s;
}
.btn:hover, .btn:focus-visible { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255, 215, 0, .55); }

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

/* ---------- Grid ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

/* ---------- Cards ---------- */
.card {
  background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 1.75rem; height: 100%;
  transition: transform .25s, box-shadow .25s;
}
.card-plain { box-shadow: none; background: transparent; }
.card-center { text-align: center; }
.card:not(.card-plain):hover { transform: translateY(-4px); box-shadow: 0 14px 36px rgba(0, 0, 0, .18); }
.card h3 { color: var(--maroon); font-size: 1.1rem; margin-bottom: .5rem; }
.card p { color: var(--muted); margin: 0; }
.card-icon { font-size: 3rem; line-height: 1; color: var(--gold); margin-bottom: .75rem; }

/* ---------- Gallery slider ---------- */
.slider {
  position: relative; width: 100%; max-width: var(--maxw);
  margin: 0 auto; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-lg); background: var(--maroon-dark);
}
.slider-track {
  display: flex; margin: 0; padding: 0; list-style: none;
  overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; -ms-overflow-style: none;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
  -webkit-tap-highlight-color: transparent;
}
.slider-track::-webkit-scrollbar { display: none; }
@media (prefers-reduced-motion: reduce) { .slider-track { scroll-behavior: auto; } }

.slide {
  flex: 0 0 100%; scroll-snap-align: center;
  height: clamp(260px, 52vw, 600px);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; position: relative;
  background: linear-gradient(135deg, var(--maroon) 0%, var(--maroon-dark) 100%);
}
.slide::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at center, rgba(255, 215, 0, .05) 0%, transparent 70%);
}
.slide img {
  max-width: 100%; max-height: 100%;
  width: auto; height: auto; object-fit: contain;
}

.slider-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%; border: none;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-deep) 100%);
  color: var(--maroon-dark); font-size: 1.4rem; font-weight: 700;
  cursor: pointer; z-index: 10;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 15px rgba(255, 215, 0, .4);
  transition: transform .2s, box-shadow .2s;
}
.slider-btn:hover, .slider-btn:focus-visible { transform: translateY(-50%) scale(1.1); }
.slider-prev { left: 10px; }
.slider-next { right: 10px; }

.slider-dots {
  position: absolute; bottom: 12px; left: 0; right: 0;
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 2px; z-index: 10; padding: 0 60px;
  pointer-events: none;
}
/* 24px buttons (WCAG 2.5.8 target size) that draw a 12px dot */
.slider-dots button {
  pointer-events: auto;
  position: relative;
  width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%;
  background: transparent; cursor: pointer;
}
.slider-dots button::after {
  content: ''; position: absolute; inset: 6px; border-radius: 50%;
  border: 2px solid transparent; background: rgba(255, 255, 255, .45);
  transition: background-color .2s, box-shadow .2s;
}
.slider-dots button:hover::after { background: rgba(255, 215, 0, .7); }
.slider-dots button[aria-current="true"]::after {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-deep) 100%);
  border-color: #fff; box-shadow: 0 0 8px rgba(255, 215, 0, .6);
}
.slider-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Below ~900px the 28 dots no longer fit on one row: swipe + arrows + a
   counter pill instead of dots covering the photo. */
@media (max-width: 900px) {
  .slider-dots { display: none; }
  .slider-status {
    width: auto; height: auto; overflow: visible; clip: auto;
    bottom: 12px; right: 12px; margin: 0; z-index: 10;
    padding: .3rem .75rem; border-radius: 20px;
    background: rgba(0, 0, 0, .55); color: #fff;
    font-size: .85rem; font-weight: 600; font-variant-numeric: tabular-nums;
  }
}

/* Phones: taller slides for portrait photos, smaller arrows */
@media (max-width: 640px) {
  .slide {
    height: clamp(300px, 115vw, 560px);
    height: min(clamp(300px, 115vw, 560px), 80svh);
  }
  .slider-btn { width: 42px; height: 42px; font-size: 1.2rem; -webkit-tap-highlight-color: transparent; }
  .slider-prev { left: 6px; }
  .slider-next { right: 6px; }
}

/* ---------- Video facade ---------- */
.video-frame {
  max-width: 1000px; margin: 0 auto; border-radius: var(--radius);
  overflow: hidden; border: 3px solid var(--gold); box-shadow: var(--shadow-lg);
  background: #000;
}
.video-facade {
  position: relative; display: block; width: 100%; padding: 0; border: none;
  cursor: pointer; background: #000; line-height: 0;
}
.video-facade img { width: 100%; height: auto; display: block; opacity: .85; }
.video-facade::after {
  content: ''; position: absolute; top: 50%; left: 50%;
  width: 74px; height: 74px; margin: -37px 0 0 -37px; border-radius: 50%;
  background: rgba(255, 215, 0, .92)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%234a0404'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E")
    no-repeat center / 38px 38px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, .45);
  transition: transform .2s;
}
.video-facade:hover::after, .video-facade:focus-visible::after { transform: scale(1.1); }
.video-frame video { width: 100%; display: block; max-height: 600px; }
.video-note { text-align: center; color: rgba(255, 255, 255, .85); font-size: .92rem; margin: .9rem auto 0; max-width: 1000px; }

/* ---------- About ---------- */
.about-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 2.5rem; }
.about-layout { display: grid; gap: 2rem; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 768px) { .about-layout { grid-template-columns: 1fr 2fr; } }
.about-logo { width: 220px; height: 220px; object-fit: contain; }
.lead { font-size: 1.1rem; }
.about-points { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: 1.5rem; }
.point { display: flex; align-items: center; gap: .75rem; }
.point-icon { font-size: 1.8rem; color: var(--gold-deep); line-height: 1; }
.point h4 { font-size: .98rem; margin: 0; color: var(--ink); }
.point small { color: var(--muted); }
.quote { text-align: center; color: var(--muted); font-style: italic; margin-top: 1.5rem; }

/* ---------- Testimonials ---------- */
.stars { color: var(--gold-deep); font-size: 1.15rem; letter-spacing: 2px; margin-bottom: .6rem; }
.testimonial { margin: 0; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 1.5rem; height: 100%; }
.testimonial blockquote { margin: 0 0 .75rem; quotes: none; }
.testimonial blockquote p { margin: 0; }
.testimonial figcaption { margin-top: .5rem; }
.testimonial cite { color: var(--muted); font-weight: 700; font-style: normal; }

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed; bottom: 20px; right: 20px; z-index: 1000;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  right: calc(20px + env(safe-area-inset-right, 0px));
  display: flex; align-items: center; gap: .5rem;
  padding: .75rem 1.25rem; border-radius: 50px;
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: #fff; font-weight: 600; text-decoration: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, .3);
  transition: transform .2s;
}
.wa-float:hover, .wa-float:focus-visible { transform: scale(1.05); color: #fff; }
.wa-float svg { width: 24px; height: 24px; fill: currentColor; flex-shrink: 0; }
@media (max-width: 768px) {
  .wa-float {
    bottom: 12px; right: 12px; padding: .75rem; border-radius: 50%;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    right: calc(12px + env(safe-area-inset-right, 0px));
  }
  /* Keep the text in the accessibility tree so the link still has a name */
  .wa-float .wa-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* ---------- Footer ---------- */
.footer {
  background: linear-gradient(135deg, var(--maroon-dark) 0%, var(--maroon-darker) 100%);
  border-top: 2px solid var(--gold);
  color: #fff; text-align: center; padding: 2.5rem 1rem;
}
.footer p { color: rgba(255, 255, 255, .92); margin-bottom: .6rem; }
.footer .addr { color: var(--gold); font-size: 1.05rem; }
.footer a { color: var(--gold); }
.social { display: flex; justify-content: center; gap: 1rem; margin-top: 1rem; }
.social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255, 215, 0, .12); color: var(--gold);
  transition: background-color .2s, transform .2s;
}
.social a:hover, .social a:focus-visible { background: rgba(255, 215, 0, .3); transform: translateY(-2px); }
.social svg { width: 22px; height: 22px; fill: currentColor; }
.footer-nav { margin-top: 1rem; display: flex; justify-content: center; gap: .5rem 1rem; flex-wrap: wrap; }
.footer-nav a { color: rgba(255, 255, 255, .9); text-decoration: none; display: inline-block; padding: .6rem .5rem; }
.footer-nav a:hover { text-decoration: underline; color: var(--gold); }

/* ---------- Contact page ---------- */
.contact-card {
  display: grid; grid-template-columns: 1fr; overflow: hidden;
  border-radius: 20px; box-shadow: var(--shadow-lg); background: #fff;
}
@media (min-width: 860px) { .contact-card { grid-template-columns: 5fr 7fr; } }
.contact-info {
  background: linear-gradient(135deg, var(--maroon) 0%, var(--maroon-dark) 100%);
  color: #fff; padding: 2.5rem; position: relative;
}
.contact-info h2 { color: var(--gold); text-align: center; font-size: 1.3rem; margin-bottom: 1.5rem; }
.contact-row {
  position: relative;
  display: flex; align-items: flex-start; gap: .9rem; margin-bottom: 1.1rem;
  padding: .85rem; border-radius: 10px;
  background: rgba(255, 215, 0, .1); border: 1px solid rgba(255, 215, 0, .22);
}
/* Make the whole row tappable (each row holds at most one link) */
.contact-row a::after { content: ''; position: absolute; inset: 0; border-radius: 10px; }
.contact-row:has(a:hover), .contact-row:has(a:focus-visible) { background: rgba(255, 215, 0, .18); }
.contact-row svg { width: 22px; height: 22px; fill: var(--gold); flex-shrink: 0; margin-top: .2rem; }
.contact-row .label { display: block; font-size: .8rem; opacity: .8; }
.contact-row a, .contact-row span.value { color: var(--gold); font-weight: 600; font-size: 1.05rem; text-decoration: none; }
.contact-row span.value { color: rgba(255, 255, 255, .95); font-weight: 500; }
.map-wrap { min-height: 420px; position: relative; }
.map-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin: 0 auto; }
.faq details {
  background: #fff; border-radius: 12px; box-shadow: var(--shadow-sm);
  margin-bottom: .85rem; border-left: 4px solid var(--gold);
}
.faq summary {
  cursor: pointer; padding: 1.1rem 1.25rem; font-weight: 600;
  color: var(--maroon); list-style: none; display: flex;
  justify-content: space-between; align-items: center; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.5rem; color: var(--gold-deep); line-height: 1; }
.faq details[open] summary::after { content: '\2212'; }
.faq .faq-body { padding: 0 1.25rem 1.25rem; color: var(--muted); }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-lg { margin-top: 2rem; }
.linkrow { display: flex; justify-content: center; gap: 1.5rem; flex-wrap: wrap; }
.linkrow a { color: var(--maroon); font-weight: 600; display: inline-block; padding: .5rem .25rem; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- Phone density ----------
   Tighter rhythm and a two-up grid for the short icon cards so the home
   page is roughly half as long to scroll on a phone. */
@media (max-width: 640px) {
  .section { padding: 2.75rem 0; }
  .section-title { margin-bottom: 1.5rem; }
  .hero { padding: 2.5rem 1rem; }
  .hero-logo { width: 100px; height: 100px; }
  .grid { gap: 1rem; }
  .card { padding: 1.25rem; }
  .about-card, .contact-info { padding: 1.5rem; }
  .about-logo { width: 160px; height: 160px; }

  .grid-compact { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
  .grid-compact .card { padding: 1rem .75rem; border-radius: 12px; }
  .grid-compact .card-icon { font-size: 2.2rem; margin-bottom: .5rem; }
  .grid-compact .card h3 { font-size: .95rem; }
  .grid-compact .card p { font-size: .88rem; line-height: 1.45; }
}
