/* ==========================================================================
   ISKCON Thiruppalai — Social Link Hub
   Light theme: cream / white base, deep maroon-red (from the temple crest),
   gold accents. Companion piece to the main temple site.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Color tokens */
  --cream-50: #f2e6c9;
  --cream-100: #ece0bf;
  --cream-200: #e2d3a9;
  --sand-300: #cbb888;

  --maroon-900: #4d0f10;
  --maroon-700: #7a1c1c;
  --maroon-600: #93231f;
  --maroon-500: #a92e28;

  --gold-500: #c9992f;
  --gold-300: #e0bd6a;
  --gold-100: #f2e3bd;

  --ink-900: #2b1f18;
  --ink-700: #4a3a30;

  /* Platform accents (kept close to brand colors, tuned for light bg) */
  --insta: #b8562f;
  --youtube: #b3281e;
  --facebook: #2f5f8a;
  --whatsapp: #2e7d5b;
  --telegram: #2b7fb0;

  /* Type */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Layout */
  --content-width: 560px;
  --radius-md: 16px;
  --radius-lg: 24px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--cream-50);
  color: var(--ink-900);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

/* -------------------------------------------------------------------- */
/* Whole-site backdrop — the deity photo stays fixed behind everything, */
/* visible the whole way down the page, not just behind the hero.       */
/* -------------------------------------------------------------------- */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: -3;
  background-image: url('hero-bg.jpg');
  background-size: cover;
  background-position: center 15%;
  background-repeat: no-repeat;
}

/* On wider screens, use the full altar photo instead of the tall mobile
   crop — it's shot for a landscape frame and shows the whole shrine. */
@media (min-width: 900px) {
  .backdrop {
    background-image: url('hero-bg-desktop.jpg');
    background-position: center 38%;
  }
}
.backdrop__scrim {
  position: fixed;
  inset: 0;
  z-index: -2;
  /* A moderate, even veil so the photo still reads clearly, while
     keeping every heading and line of text on the page legible. */
  background: linear-gradient(
    180deg,
    rgba(20,8,6,0.42) 0%,
    rgba(20,8,6,0.48) 30%,
    rgba(20,8,6,0.5) 100%
  );
}

/* -------------------------------------------------------------------- */
/* Ambient background glows                                             */
/* -------------------------------------------------------------------- */
.ambience {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.16;
}
.glow--one {
  width: 420px; height: 420px;
  top: -140px; left: 50%;
  transform: translateX(-50%);
  background: var(--gold-300);
}
.glow--two {
  width: 340px; height: 340px;
  bottom: 8%; right: -100px;
  background: var(--maroon-500);
  opacity: 0.12;
}

.page {
  position: relative;
  z-index: 1;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 44px 20px 40px;
}

/* -------------------------------------------------------------------- */
/* Hero — sits directly on the whole-site backdrop, no image of its own */
/* -------------------------------------------------------------------- */
.hero {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: rise 0.8s ease-out both;
  position: relative;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero__mark {
  width: 88px;
  height: 88px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--cream-50);
  padding: 4px;
  box-shadow: 0 0 0 1px rgba(230,190,110,0.55), 0 8px 22px rgba(0,0,0,0.35);
}
.hero__logo {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.hero__eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-300);
  margin: 0 0 10px;
  text-shadow: 0 1px 6px rgba(0,0,0,0.55);
}

.hero__title {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 600;
  font-size: clamp(2.1rem, 8vw, 2.9rem);
  line-height: 1.08;
  margin: 0;
  color: var(--cream-50);
  letter-spacing: -0.01em;
  text-shadow: 0 2px 16px rgba(0,0,0,0.6);
}

.hero__subtitle {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 1.05rem;
  color: var(--gold-300);
  margin: 8px 0 0;
  text-shadow: 0 1px 10px rgba(0,0,0,0.55);
}

.hero__mission {
  margin: 20px 0 0;
  max-width: 42ch;
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--cream-100);
  opacity: 0.96;
  text-shadow: 0 1px 8px rgba(0,0,0,0.35);
}

.hero__cta {
  margin: 14px 0 0;
  max-width: 42ch;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--gold-300);
  text-shadow: 0 1px 8px rgba(0,0,0,0.4);
}
.hero__cta strong {
  color: var(--cream-50);
  font-weight: 700;
}

/* -------------------------------------------------------------------- */
/* Lotus dividers                                                       */
/* -------------------------------------------------------------------- */
.divider {
  display: flex;
  justify-content: center;
  margin: 34px 0;
}
.divider--flip { margin: 40px 0; }
.divider__svg { width: 160px; height: 20px; overflow: visible; }
.divider__line { stroke: rgba(245,242,238,0.4); stroke-width: 1; }
.divider__bud { fill: var(--gold-300); }

/* -------------------------------------------------------------------- */
/* Link section                                                         */
/* -------------------------------------------------------------------- */
.links__heading {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.6rem;
  text-align: center;
  margin: 0 0 24px;
  color: var(--cream-50);
  text-shadow: 0 2px 12px rgba(0,0,0,0.55);
}

.link-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.link-card {
  opacity: 0;
  animation: rise 0.6s ease-out forwards;
}
.link-card:nth-child(1) { animation-delay: 0.05s; }
.link-card:nth-child(2) { animation-delay: 0.12s; }
.link-card:nth-child(3) { animation-delay: 0.19s; }
.link-card:nth-child(4) { animation-delay: 0.26s; }
.link-card:nth-child(5) { animation-delay: 0.33s; }

.link-card__anchor {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 24px;
  background: var(--cream-50);
  border: 1px solid var(--sand-300);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--ink-900);
  box-shadow: 0 1px 3px rgba(77,15,16,0.08);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}

.link-card__anchor:hover,
.link-card__anchor:focus-visible {
  transform: translateY(-2px);
  border-color: var(--gold-500);
  background: var(--gold-100);
  box-shadow: 0 6px 18px rgba(201,153,47,0.18);
}
.link-card__anchor:focus-visible {
  outline: 2px solid var(--maroon-600);
  outline-offset: 3px;
}
.link-card__anchor:active { transform: translateY(0); }

.link-card__icon {
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream-200);
}
.link-card__icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke-width: 1.6;
}
.link-card--instagram .link-card__icon svg { stroke: var(--insta); }
.link-card--instagram .link-card__icon svg .dot { fill: var(--insta); stroke: none; }
.link-card--youtube .link-card__icon svg { stroke: var(--youtube); }
.link-card--youtube .link-card__icon svg .dot { fill: var(--youtube); stroke: none; }
.link-card--facebook .link-card__icon svg { stroke: var(--facebook); }
.link-card--facebook .link-card__icon svg .dot { fill: var(--facebook); stroke: none; }
.link-card--whatsapp .link-card__icon svg { stroke: var(--whatsapp); }
.link-card--whatsapp .link-card__icon svg .dot { fill: var(--whatsapp); stroke: none; }
.link-card--telegram .link-card__icon svg { stroke: var(--telegram); }
.link-card--telegram .link-card__icon svg .dot { fill: var(--telegram); stroke: none; }

.link-card__text {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.link-card__label {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--maroon-900);
}
.link-card__sub {
  font-size: 0.95rem;
  color: var(--ink-700);
  opacity: 0.78;
}

.link-card__arrow {
  flex: 0 0 auto;
  color: var(--gold-500);
  font-size: 1.4rem;
  transition: transform 0.18s ease;
}
.link-card__anchor:hover .link-card__arrow { transform: translateX(3px); }

.links__hint {
  text-align: center;
  min-height: 1.2em;
  font-size: 0.82rem;
  color: var(--gold-300);
  margin: 14px 0 0;
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}

/* -------------------------------------------------------------------- */
/* Visit / contact                                                      */
/* -------------------------------------------------------------------- */
.visit {
  background: var(--cream-50);
  border: 1px solid var(--sand-300);
  border-radius: var(--radius-lg);
  padding: 26px 22px;
  box-shadow: 0 2px 12px rgba(77,15,16,0.08);
}

.visit__heading {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.2rem;
  margin: 0 0 18px;
  text-align: center;
  color: var(--maroon-900);
}

.visit__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 480px) {
  .visit__grid { grid-template-columns: 1fr 1fr; }
}

.visit__label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-500);
  margin-bottom: 4px;
}
.visit__value {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-700);
  line-height: 1.45;
}
.visit__link {
  color: var(--maroon-600);
  text-decoration: none;
  border-bottom: 1px solid rgba(122,28,28,0.3);
}
.visit__link:hover,
.visit__link:focus-visible { color: var(--gold-500); border-color: var(--gold-500); }

/* ---- Map ---- */
.visit__map {
  margin-top: 22px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--sand-300);
  background: var(--cream-200);
}
.visit__map iframe {
  display: block;
  width: 100%;
  filter: saturate(0.85) brightness(0.9) sepia(0.06);
}
.visit__map-link {
  display: block;
  text-align: center;
  padding: 10px 12px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--maroon-600);
  text-decoration: none;
  background: var(--cream-50);
  border-top: 1px solid var(--sand-300);
}
.visit__map-link:hover,
.visit__map-link:focus-visible { color: var(--gold-500); text-decoration: underline; }

.visit__site-link {
  display: block;
  text-align: center;
  margin-top: 22px;
  color: var(--maroon-600);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}
.visit__site-link:hover,
.visit__site-link:focus-visible { text-decoration: underline; color: var(--gold-500); }

/* -------------------------------------------------------------------- */
/* Footer                                                                */
/* -------------------------------------------------------------------- */
.footer {
  text-align: center;
  margin-top: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.footer__mark {
  width: 40px;
  height: 40px;
  margin-bottom: 14px;
  border-radius: 50%;
  opacity: 0.95;
}

.footer__text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--gold-300);
  margin: 0 0 14px;
  text-shadow: 0 1px 8px rgba(0,0,0,0.5);
}
.footer__copy {
  font-size: 0.75rem;
  color: var(--cream-100);
  opacity: 0.8;
  margin: 0;
  max-width: 32ch;
  text-shadow: 0 1px 6px rgba(0,0,0,0.45);
}

/* -------------------------------------------------------------------- */
/* Wider screens — the links are the whole point of the site, so give   */
/* them noticeably more room and presence once there's space for it.    */
/* -------------------------------------------------------------------- */
@media (min-width: 700px) {
  .page { max-width: 700px; }
  .link-card__anchor { padding: 28px 32px; gap: 24px; }
  .link-card__icon { width: 68px; height: 68px; }
  .link-card__icon svg { width: 34px; height: 34px; }
  .link-card__label { font-size: 1.4rem; }
  .link-card__sub { font-size: 1.05rem; }
  .link-card__arrow { font-size: 1.7rem; }
  .links__heading { font-size: 1.9rem; margin-bottom: 30px; }
  .link-list { gap: 20px; }
}

/* -------------------------------------------------------------------- */
/* Small phones                                                         */
/* -------------------------------------------------------------------- */
@media (max-width: 360px) {
  .page { padding: 40px 16px 32px; }
  .link-card__anchor { padding: 14px; gap: 12px; }
  .link-card__icon { width: 40px; height: 40px; }
  .visit__map iframe { height: 220px; }
}
