:root {
  color-scheme: light;
  --night: #071b1c;
  --deep-green: #0b342e;
  --emerald: #146451;
  --gold: #e2bd74;
  --soft-gold: #f4dfad;
  --ink: #172b29;
  --muted: #657976;
}

* { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; }
body.pilgrimage-site {
  position: relative;
  isolation: isolate;
  overflow-x: hidden;
  color: var(--ink);
  background: linear-gradient(145deg, #092223 0%, #123c36 48%, #172e30 100%);
  font-family: Vazirmatn, system-ui, sans-serif;
}

.ambient-sky {
  position: fixed;
  z-index: -1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(214, 175, 102, .16), transparent 42%),
    radial-gradient(ellipse at 8% 75%, rgba(28, 118, 93, .2), transparent 38%);
}
.ambient-sky::before,
.ambient-sky::after,
.sky-stars {
  content: "";
  position: absolute;
  inset: -120vh 0 0;
  opacity: .48;
  background-repeat: repeat;
  will-change: transform;
}
.ambient-sky::before {
  background-image:
    radial-gradient(2px 2px at 22px 35px, rgba(255, 236, 182, .9) 50%, transparent 100%),
    radial-gradient(1px 1px at 112px 148px, rgba(255, 255, 255, .8) 50%, transparent 100%),
    radial-gradient(1.5px 1.5px at 205px 82px, rgba(235, 211, 157, .8) 50%, transparent 100%);
  background-size: 260px 240px;
  animation: stars-rise 34s linear infinite;
}
.ambient-sky::after {
  opacity: .3;
  background-image:
    radial-gradient(1px 1px at 55px 72px, white 50%, transparent 100%),
    radial-gradient(2px 2px at 175px 190px, rgba(240, 210, 143, .8) 50%, transparent 100%);
  background-size: 210px 190px;
  animation: stars-rise 52s linear infinite;
}
.sky-stars {
  inset: -150vh 0 0;
  opacity: .2;
  background-image: radial-gradient(1px 1px at 90px 100px, #fff 50%, transparent 100%);
  background-size: 150px 170px;
  animation: stars-rise 70s linear infinite;
}
.sky-glow {
  position: absolute;
  width: min(36vw, 430px);
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .12;
  animation: glow-breathe 9s ease-in-out infinite alternate;
}
.sky-glow-one { top: 12%; right: -12%; background: #e5bd70; }
.sky-glow-two { bottom: 4%; left: -14%; background: #2cbb92; animation-delay: -4s; }
.skyline {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: clamp(90px, 18vh, 190px);
  opacity: .11;
  background:
    radial-gradient(ellipse 85px 72px at 18% 100%, #d7bd82 0 68%, transparent 70%),
    radial-gradient(ellipse 120px 95px at 49% 100%, #d7bd82 0 68%, transparent 70%),
    radial-gradient(ellipse 90px 76px at 79% 100%, #d7bd82 0 68%, transparent 70%),
    linear-gradient(to top, #061817 0 30%, transparent 31%);
  mask-image: linear-gradient(to top, black, transparent 95%);
}
@keyframes stars-rise { from { transform: translateY(0); } to { transform: translateY(-240px); } }
@keyframes glow-breathe { from { opacity: .08; transform: scale(.9); } to { opacity: .17; transform: scale(1.12); } }

.site-header {
  position: relative;
  z-index: 2;
  background: rgba(5, 27, 27, .74);
  border-bottom: 1px solid rgba(236, 211, 157, .23);
  box-shadow: 0 10px 38px rgba(0, 0, 0, .16);
  backdrop-filter: blur(16px);
}
.header-inner { min-height: 72px; }
.brand-link { color: #fff; text-decoration: none; gap: 12px; }
.brand-link > span:last-child { display: flex; flex-direction: column; line-height: 1.35; }
.brand-link small { margin-top: 3px; color: var(--soft-gold); font-size: 10px; font-weight: 500; letter-spacing: .04em; }
.brand-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(240, 215, 164, .65);
  border-radius: 50%;
  color: var(--soft-gold);
  font-size: 25px;
  box-shadow: 0 0 20px rgba(225, 190, 116, .16), inset 0 0 12px rgba(225, 190, 116, .1);
}
.site-nav { gap: 18px; }
.site-nav a, .site-nav button {
  color: #f8f4e9;
  border: 0;
  background: transparent;
  font: inherit;
  text-decoration: none;
  transition: color .2s ease, text-shadow .2s ease;
}
.site-nav a:hover, .site-nav button:hover { color: var(--soft-gold); text-shadow: 0 0 14px rgba(245, 220, 168, .65); }

.site-main { position: relative; z-index: 1; }
.pilgrim-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .66);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .97), rgba(249, 247, 239, .95));
  box-shadow: 0 24px 70px rgba(0, 0, 0, .24), 0 0 0 1px rgba(232, 203, 143, .12);
  animation: card-appear .65s ease both;
}
.pilgrim-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 8%;
  left: 8%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(215, 177, 104, .9), transparent);
}
@keyframes card-appear { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

/* Warm, quiet light only appears while a field is focused or hovered. */
.pilgrim-card input:not([type="file"]),
.pilgrim-card select,
.pilgrim-card textarea {
  transition: border-color .2s ease, box-shadow .24s ease, background-color .2s ease;
}
.pilgrim-card input:not([type="file"]):hover,
.pilgrim-card select:hover,
.pilgrim-card textarea:hover { border-color: #b8a16e; }
.pilgrim-card input:not([type="file"]):focus,
.pilgrim-card select:focus,
.pilgrim-card textarea:focus {
  border-color: #b89045;
  outline: none;
  box-shadow: 0 0 0 3px rgba(205, 166, 87, .19), 0 0 20px rgba(205, 166, 87, .14);
}
.pilgrim-card button,
.pilgrim-card a.block {
  position: relative;
  transition: transform .2s ease, box-shadow .25s ease, filter .2s ease;
}
.pilgrim-card button:hover,
.pilgrim-card a.block:hover {
  transform: translateY(-2px);
  filter: brightness(1.04);
  box-shadow: 0 9px 24px rgba(20, 83, 61, .2), 0 0 18px rgba(224, 190, 117, .24);
}
.pilgrim-card button:focus-visible,
.pilgrim-card a:focus-visible,
.site-nav a:focus-visible,
.site-nav button:focus-visible {
  outline: 3px solid rgba(217, 180, 106, .75);
  outline-offset: 3px;
}
.pilgrim-card h1, .pilgrim-card h2 { letter-spacing: -.02em; }
.pilgrim-card h1 { color: #174f40; }
.pilgrim-card label { color: #28443d; }
.pilgrim-card .bg-gray-50 { border: 1px solid rgba(31, 82, 65, .06); }
.pilgrim-card [readonly] { background: #f1f0e9; color: #50645d; }
.pilgrim-card .text-red-600 { color: #b33e36; }
.message-card { box-shadow: 0 8px 24px rgba(0, 0, 0, .12); }
.home-hero { min-height: 430px; padding-top: 38px; padding-bottom: 38px; }
.home-logo {
  width: 58px;
  height: 80px;
  object-fit: fill;
  mix-blend-mode: multiply;
}
.hero-mark {
  position: relative;
  display: grid;
  width: 84px;
  height: 84px;
  place-items: center;
  margin: 0 auto 12px;
  border: 1px solid rgba(192, 157, 87, .55);
  border-radius: 50%;
  color: #b68c3d;
  background: radial-gradient(circle, rgba(238, 221, 178, .45), rgba(255,255,255,.12) 68%);
  box-shadow: 0 0 0 8px rgba(221, 193, 137, .08), 0 0 34px rgba(196, 157, 76, .2), inset 0 0 20px rgba(196, 157, 76, .16);
}
.hero-mark-logo {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  object-fit: contain;
  mix-blend-mode: multiply;
  filter: saturate(.88);
}
.hero-kicker { margin-bottom: 14px; color: #9b793b; text-align: center; font-size: 12px; font-weight: 700; letter-spacing: .04em; }
.hero-divider { display: flex; align-items: center; gap: 14px; max-width: 240px; margin: 22px auto 12px; color: #aa8a4d; }
.hero-divider::before, .hero-divider::after { content: ""; height: 1px; flex: 1; background: linear-gradient(90deg, transparent, rgba(179, 143, 72, .6)); }
.hero-divider::after { transform: rotate(180deg); }
.hero-divider span { font-size: 13px; }
.hero-caption { color: #687872; text-align: center; font-size: 13px; }
.hero-cta { max-width: 430px; margin: 24px auto 0; background: linear-gradient(115deg, #174e3d, #216a50) !important; box-shadow: 0 9px 24px rgba(20, 83, 61, .2); }
.hero-cta:hover { box-shadow: 0 12px 30px rgba(20, 83, 61, .3), 0 0 24px rgba(224, 190, 117, .32) !important; }
.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(236, 211, 157, .2);
  background: rgba(5, 27, 27, .7);
  backdrop-filter: blur(12px);
}
.site-footer span { padding: 0 7px; color: var(--soft-gold); }

@media (max-width: 640px) {
  .header-inner { min-height: 64px; }
  .brand-link { gap: 9px; font-size: 14px; }
  .brand-icon { width: 36px; height: 36px; font-size: 21px; }
  .site-nav { gap: 12px; font-size: 12px; }
  .site-main { padding-top: 22px; padding-bottom: 26px; }
  .pilgrim-card { padding: 20px !important; border-radius: 20px; }
  .home-hero { min-height: 0; padding-top: 28px !important; padding-bottom: 28px !important; }
  .hero-mark { width: 70px; height: 70px; }
  .hero-mark-logo { width: 54px; height: 54px; }
  .hero-caption { max-width: 280px; margin-inline: auto; line-height: 1.9; }
  .pilgrim-card h1 { font-size: 1.15rem; line-height: 1.8; }
  .pilgrim-card button, .pilgrim-card a.block { min-height: 48px; }
  .sky-glow { width: 70vw; filter: blur(70px); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
