/* ==========================================================================
   LOVELY EVENTS & DECORATION — pages.css
   Styles for the SEO landing pages (town + service pages).
   Loads AFTER styles.css, mobile.css and royal-buttons.css and reuses their
   design tokens (:root in styles.css). It deliberately does NOT load
   hero.css / category.css / quote.css / motion.css / flourish.css, so the
   header brand lockup and the small bits of hero.css these pages need are
   reproduced in section 1 and 2. Mobile-first, plain CSS.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Header brand lockup (same as hero.css section 1)
   -------------------------------------------------------------------------- */
.brand-royal {
  display: flex; align-items: center; gap: .55rem; flex-direction: row;
  transition: transform var(--dur-fast) var(--ease); transform-origin: left center;
  min-height: 44px;
}
.site-header.scrolled .brand-royal { transform: scale(.9); }

.brand-emblem {
  display: block; flex: 0 0 auto; height: 36px; width: 36px; border-radius: 50%;
  opacity: 0; filter: drop-shadow(0 0 0 rgba(201, 164, 92, 0));
  transform: rotate(-90deg) scale(.6);
  animation: brand-emblem-in .8s var(--ease) .1s forwards, brand-emblem-glow 3.6s ease-in-out 1s infinite;
}
@media (min-width: 768px) { .brand-emblem { height: 44px; width: 44px; } }
@keyframes brand-emblem-in { to { opacity: 1; transform: rotate(0deg) scale(1); } }
@keyframes brand-emblem-glow {
  0%, 100% { filter: drop-shadow(0 0 0 rgba(201, 164, 92, 0)); }
  50% { filter: drop-shadow(0 0 6px rgba(201, 164, 92, .65)); }
}
.brand-royal:hover .brand-emblem, .brand-royal:focus-visible .brand-emblem {
  animation: brand-emblem-in .8s var(--ease) forwards, brand-emblem-spin .9s var(--ease);
}
@keyframes brand-emblem-spin {
  from { transform: rotate(0deg) scale(1); filter: drop-shadow(0 0 2px rgba(201, 164, 92, .5)); }
  50% { filter: drop-shadow(0 0 10px rgba(233, 207, 142, .9)); }
  to { transform: rotate(360deg) scale(1); filter: drop-shadow(0 0 2px rgba(201, 164, 92, .5)); }
}

.brand-wordwrap {
  display: flex; flex-direction: column; line-height: 1.05; position: relative;
  opacity: 0; transform: translateY(6px);
  animation: page-fade-up .6s var(--ease) .38s forwards;
}
.brand-word {
  font-family: 'Cinzel Decorative', 'Cinzel', Georgia, serif; font-weight: 700;
  font-size: .92rem; letter-spacing: .1em; color: var(--color-text);
  white-space: nowrap; position: relative; width: fit-content;
}
.brand-word .brand-l { color: var(--color-secondary); }
.brand-word::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: -2px; height: 1.5px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-secondary-light));
  transition: right var(--dur-med) var(--ease);
}
.brand-royal:hover .brand-word::after, .brand-royal:focus-visible .brand-word::after { right: 0; }
.brand-sub-royal {
  font-family: 'Cinzel', Georgia, serif; font-weight: 600; font-size: .38rem;
  letter-spacing: .18em; text-transform: uppercase; color: var(--color-text-muted); white-space: nowrap;
}
.brand-sub-royal .brand-l-alt { color: var(--color-secondary-light); }
@media (min-width: 768px) { .brand-word { font-size: 1.15rem; } .brand-sub-royal { font-size: .46rem; } }
@media (min-width: 900px) { .brand-word { font-size: 1.3rem; } .brand-sub-royal { font-size: .5rem; } }
.brand-royal--drawer .brand-emblem { height: 30px; width: 30px; }
.brand-royal--drawer .brand-word { font-size: .98rem; }
.brand-royal--drawer .brand-sub-royal { font-size: .4rem; }

@keyframes page-fade-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }

/* --------------------------------------------------------------------------
   2. Page hero (compact, damask)
   -------------------------------------------------------------------------- */
.page-hero {
  position: relative; overflow: hidden; text-align: center;
  margin-top: calc(-1 * var(--header-h));              /* sit under the sticky header, like the home hero */
  padding: calc(var(--header-h) + 1.4rem) 0 clamp(2.6rem, 2rem + 3vw, 4.4rem);
  background:
    radial-gradient(ellipse 70% 60% at 50% 0%, rgba(201, 164, 92, .16), transparent 70%),
    radial-gradient(ellipse 60% 50% at 50% 100%, rgba(215, 25, 32, .13), transparent 70%),
    linear-gradient(180deg, #0B0B0C, #141416);
  border-bottom: 1px solid var(--color-border-gold);
}
.page-hero .damask-panel { opacity: .07; }
.page-hero-inner { position: relative; z-index: 1; }

.breadcrumb { margin-bottom: 1.3rem; }
.breadcrumb ol { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .15rem .1rem; padding: 0; }
.breadcrumb li { display: inline-flex; align-items: center; font-size: .82rem; color: var(--color-text-muted); }
.breadcrumb li + li::before { content: '\203A'; margin-inline: .6em; color: var(--color-accent); font-size: 1rem; }
.breadcrumb a { display: inline-flex; align-items: center; min-height: 44px; padding-inline: .3em; color: var(--color-text); font-weight: 600; }
.breadcrumb a:hover { color: var(--color-accent); }
.breadcrumb li[aria-current] { color: var(--color-accent); font-weight: 600; }

.page-hero-blessing { display: flex; align-items: center; justify-content: center; gap: .8rem; margin-bottom: .9rem; }
.blessing-rule { width: 40px; height: 1px; flex: 0 1 40px; background: linear-gradient(90deg, transparent, var(--color-accent)); }
.blessing-rule:last-child { background: linear-gradient(90deg, var(--color-accent), transparent); }
@media (max-width: 420px) { .blessing-rule { width: 22px; flex-basis: 22px; } }

.page-title {
  font-size: clamp(2rem, 1.35rem + 3.2vw, 3.7rem); line-height: 1.1; color: #fff;
  max-width: 20ch; margin-inline: auto; text-wrap: balance;
  text-shadow: 0 4px 24px rgba(0, 0, 0, .55);
}
.page-intro { max-width: 52ch; margin: 1rem auto 0; color: var(--color-text-muted); font-size: clamp(1rem, .9rem + .3vw, 1.12rem); }
.page-script { margin-top: .8rem; font-size: clamp(1.6rem, 1.3rem + 1vw, 2.2rem); text-shadow: 0 0 18px rgba(201, 164, 92, .45); }
.page-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; margin-top: 1.5rem; }
.page-actions .btn { min-width: 168px; }

/* --------------------------------------------------------------------------
   3. Prose (main copy)
   -------------------------------------------------------------------------- */
.prose-block + .prose-block { margin-top: 2.2rem; padding-top: 2.2rem; border-top: 1px solid var(--color-border-gold); }
.prose-title { font-size: clamp(1.5rem, 1.15rem + 1.5vw, 2.1rem); margin-bottom: .8rem; }
.prose-title::before {
  content: ''; display: block; width: 46px; height: 3px; margin-bottom: .8rem;
  background: var(--color-secondary); border-radius: 2px;
}
.prose p { color: var(--color-text-muted); max-width: 68ch; }
.prose p + p, .prose p + .prose-list, .prose .prose-list + p { margin-top: 1rem; }
.prose-list { display: grid; gap: .6rem; max-width: 68ch; counter-reset: step; }
.prose-list li {
  position: relative; padding-left: 1.7rem; color: var(--color-text-muted);
}
ul.prose-list li::before {
  content: ''; position: absolute; left: .15rem; top: .62em; width: 8px; height: 8px;
  background: var(--color-accent); transform: rotate(45deg);
}
ol.prose-list li { counter-increment: step; padding-left: 2.4rem; }
ol.prose-list li::before {
  content: counter(step); position: absolute; left: 0; top: .05em;
  width: 1.7rem; height: 1.7rem; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--color-border-gold); color: var(--color-accent);
  font: 700 .8rem/1 var(--font-body);
}
@media (min-width: 900px) {
  .prose-block { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); column-gap: 3.5rem; align-items: start; }
  .prose-title { margin-bottom: 0; }
}

/* --------------------------------------------------------------------------
   4. Photo strip
   -------------------------------------------------------------------------- */
.photo-strip { display: grid; gap: .8rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.photo-strip--3 .photo-item:first-child { grid-column: 1 / -1; }
.photo-item figure { margin: 0; }
.photo-item picture, .photo-item img { display: block; width: 100%; }
.photo-item img {
  aspect-ratio: 4 / 3; height: auto; object-fit: cover;
  border-radius: var(--radius-md); border: 1px solid var(--color-border-gold); background: #1c1c1e;
}
.photo-strip--3 .photo-item:first-child img { aspect-ratio: 16 / 9; }
.photo-item figcaption { margin-top: .5rem; font-size: .82rem; color: var(--color-text-muted); line-height: 1.35; }
.photo-more { margin-top: 1.2rem; }
@media (min-width: 768px) {
  .photo-strip { gap: 1rem; }
  .photo-strip--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .photo-strip--3 .photo-item:first-child { grid-column: auto; }
  .photo-strip--3 .photo-item:first-child img { aspect-ratio: 4 / 3; }
  .photo-strip--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* --------------------------------------------------------------------------
   5. Tamil paragraph
   -------------------------------------------------------------------------- */
.tamil-section { padding-block: clamp(2.2rem, 1.6rem + 3vw, 4rem); }
.tamil-card {
  position: relative; max-width: 820px; margin-inline: auto; padding: 1.6rem 1.4rem;
  border: 1px solid var(--color-border-gold); border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(201, 164, 92, .07), rgba(201, 164, 92, .02));
  box-shadow: inset 0 0 0 3px var(--color-primary), inset 0 0 0 4px rgba(201, 164, 92, .25);
}
.tamil-eyebrow { font-family: var(--font-body), 'Noto Sans Tamil', 'Nirmala UI', 'Latha', sans-serif; letter-spacing: .08em; text-transform: none; font-size: .95rem; }
.tamil-text {
  font-family: var(--font-body), 'Noto Sans Tamil', 'Nirmala UI', 'Latha', sans-serif;
  font-size: 1.05rem; line-height: 1.95; color: var(--color-text);
}
@media (min-width: 768px) { .tamil-card { padding: 2rem 2.4rem; } .tamil-text { font-size: 1.12rem; } }

/* --------------------------------------------------------------------------
   6. FAQ
   -------------------------------------------------------------------------- */
.faq-wrap { max-width: 860px; }
.faq-list { border-top: 1px solid var(--color-border-gold); }
.faq-item { border-bottom: 1px solid var(--color-border-gold); }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 56px; padding: .8rem .2rem; font-weight: 700; font-size: 1.02rem; line-height: 1.35; color: var(--color-text);
  -webkit-tap-highlight-color: transparent;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; flex: none; width: 30px; height: 30px; display: grid; place-items: center;
  border: 1px solid var(--color-border-gold); border-radius: 50%;
  color: var(--color-accent); font-size: 1.2rem; line-height: 1;
  transition: transform var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}
.faq-item[open] summary::after { content: '\2212'; background: rgba(201, 164, 92, .12); }
.faq-item summary:hover { color: var(--color-accent); }
.faq-item p { padding: 0 .2rem 1.2rem; color: var(--color-text-muted); max-width: 66ch; }

/* --------------------------------------------------------------------------
   7. Internal-link pills
   -------------------------------------------------------------------------- */
.links-grid { display: grid; gap: 2.2rem; }
.links-title { font-size: 1.35rem; margin-bottom: 1rem; }
.pill-list { display: flex; flex-wrap: wrap; gap: .6rem; }
.pill-list a {
  display: inline-flex; align-items: center; min-height: 44px; padding: .45em 1.1em;
  border: 1px solid var(--color-border-gold); border-radius: 999px;
  color: var(--color-accent); font-size: .9rem; font-weight: 600; line-height: 1.25;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.pill-list a:hover { background: rgba(201, 164, 92, .12); color: #E9CF8E; }
.pill-list a[aria-current="page"] { background: rgba(201, 164, 92, .16); color: #E9CF8E; border-color: var(--color-accent); }
.links-note { margin-top: 1rem; font-size: .9rem; color: var(--color-text-muted); }
@media (min-width: 768px) { .links-grid { grid-template-columns: 1fr 1fr; gap: 3rem; } }

/* --------------------------------------------------------------------------
   8. CTA band
   -------------------------------------------------------------------------- */
.cta-band {
  text-align: center; overflow: hidden;
  background:
    radial-gradient(ellipse 60% 80% at 50% 0%, rgba(201, 164, 92, .14), transparent 70%),
    linear-gradient(180deg, #141416, #0B0B0C);
  border-top: 1px solid var(--color-border-gold);
}
.cta-inner { position: relative; z-index: 1; }
.cta-band .section-title { max-width: 22ch; margin-inline: auto; text-wrap: balance; }
.cta-sub { max-width: 52ch; margin: .4rem auto 0; color: var(--color-text-muted); }
.cta-actions { display: flex; flex-direction: column; align-items: stretch; gap: .8rem; max-width: 340px; margin: 1.8rem auto 0; }
@media (min-width: 768px) {
  .cta-actions { flex-direction: row; flex-wrap: wrap; justify-content: center; max-width: none; }
  .cta-actions .btn { min-width: 190px; }
}

/* --------------------------------------------------------------------------
   9. Footer: one extra column ("Areas We Serve")
   -------------------------------------------------------------------------- */
.footer-brand { grid-column: 1 / -1; }
@media (min-width: 700px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 2.4rem; }
}
@media (min-width: 1100px) {
  .footer-grid { grid-template-columns: 1.1fr repeat(4, 1fr); }
  .footer-brand { grid-column: auto; }
}
.footer-col a:not(.footer-call):not(.footer-wa) { display: flex; align-items: center; min-height: 44px; }
.footer-col { gap: 0; }
.footer-col h4 { margin-bottom: .5rem; }
.footer-col p { padding-block: .35rem; }

/* --------------------------------------------------------------------------
   10. Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .brand-emblem { animation: none !important; opacity: 1; transform: none; filter: none; }
  .brand-wordwrap { animation: none !important; opacity: 1; transform: none; }
  .brand-royal:hover .brand-emblem, .brand-royal:focus-visible .brand-emblem { animation: none; }
  .brand-word::after, .faq-item summary::after, .pill-list a { transition: none; }
}
