@import url("https://fonts.googleapis.com/css2?family=Anek+Telugu:wght@400;500;600;700;800&family=Cormorant+Garamond:wght@600;700&family=Inter:wght@400;500;600;700;800&family=Lora:wght@500;600;700&family=Mallanna&family=Mandali&family=Noto+Sans+Telugu:wght@400;500;600;700;800&family=Noto+Serif+Telugu:wght@500;600;700;800&family=Playfair+Display:wght@600;700;800&family=Poppins:wght@400;500;600;700;800&family=Tiro+Telugu:ital@0;1&display=swap");

:root {
  --maroon: #7b1719;
  --maroon-dark: #31090a;
  --maroon-soft: #9e3428;
  --saffron: #c48323;
  --saffron-light: #f0bd58;
  --ivory: #fffaf1;
  --ivory-deep: #f3e5c7;
  --green: #12392d;
  --green-soft: #e3eee4;
  --ink: #21100d;
  --muted: #6e5a50;
  --white: #ffffff;
  --border: rgba(49, 9, 10, 0.13);
  --hairline: rgba(196, 131, 35, 0.28);
  --shadow: 0 24px 80px rgba(49, 9, 10, 0.13);
  --shadow-soft: 0 12px 36px rgba(49, 9, 10, 0.08);
  --radius: 8px;
  --max: 1200px;
  --font-body: "Mallanna", "Poppins", "Nirmala UI", "Gautami", "Segoe UI", Arial, sans-serif;
  --font-heading: "Mallanna", "Poppins", "Nirmala UI", "Gautami", "Segoe UI", Arial, sans-serif;
}

body.font-premium,
.font-sample.font-premium {
  --font-body: "Noto Serif Telugu", "Lora", "Nirmala UI", Georgia, serif;
  --font-heading: "Noto Serif Telugu", "Playfair Display", "Nirmala UI", Georgia, serif;
}

body.font-modern,
.font-sample.font-modern {
  --font-body: "Noto Sans Telugu", "Inter", "Nirmala UI", "Gautami", "Segoe UI", Arial, sans-serif;
  --font-heading: "Noto Sans Telugu", "Inter", "Nirmala UI", "Gautami", "Segoe UI", Arial, sans-serif;
}

body.font-friendly,
.font-sample.font-friendly {
  --font-body: "Mallanna", "Poppins", "Nirmala UI", "Gautami", "Segoe UI", Arial, sans-serif;
  --font-heading: "Mallanna", "Poppins", "Nirmala UI", "Gautami", "Segoe UI", Arial, sans-serif;
}

body.font-devotional,
.font-sample.font-devotional {
  --font-body: "Mandali", "Noto Sans Telugu", "Nirmala UI", "Gautami", "Segoe UI", Arial, sans-serif;
  --font-heading: "Tiro Telugu", "Cormorant Garamond", "Noto Serif Telugu", "Nirmala UI", Georgia, serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.68;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 8% 8%, rgba(196, 131, 35, 0.13), transparent 27%),
    radial-gradient(circle at 92% 4%, rgba(18, 57, 45, 0.13), transparent 24%),
    linear-gradient(180deg, #fffaf1 0%, #fbf3e2 48%, #fffaf1 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 52px);
  background: rgba(255, 250, 241, 0.9);
  border-bottom: 1px solid rgba(49, 9, 10, 0.09);
  box-shadow: 0 12px 36px rgba(49, 9, 10, 0.05);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  min-width: 260px;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: var(--ivory);
  background:
    radial-gradient(circle at 35% 28%, rgba(240, 189, 88, 0.38), transparent 30%),
    linear-gradient(145deg, var(--maroon-dark), var(--maroon));
  border: 1px solid rgba(240, 189, 88, 0.72);
  border-radius: 50%;
  font-size: 23px;
  box-shadow: 0 10px 24px rgba(49, 9, 10, 0.2);
}

.brand-title {
  display: block;
  color: var(--maroon-dark);
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.1;
}

.brand-place {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.25;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2.2vw, 28px);
  color: #4f3028;
  font-size: 14px;
  font-weight: 800;
}

.nav-links a {
  position: relative;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 100%;
  height: 2px;
  background: var(--saffron);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--maroon);
  border-color: transparent;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-actions {
  display: flex;
  justify-content: flex-end;
  min-width: 138px;
}

.language-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 6px 13px;
  border: 1px solid rgba(49, 9, 10, 0.13);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--maroon-dark);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(49, 9, 10, 0.08);
}

.toggle-track {
  position: relative;
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--maroon-dark), var(--maroon));
}

.toggle-knob {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--saffron-light);
  transition: transform 180ms ease;
}

body[data-lang="en"] .toggle-knob {
  transform: translateX(18px);
}

section {
  padding: 96px clamp(18px, 5vw, 64px);
}

.services,
.profile,
.testimonials {
  position: relative;
  overflow: hidden;
}

.services {
  background:
    linear-gradient(180deg, #fffaf1 0%, #fff1d8 52%, #fffaf1 100%);
}

.services::before,
.profile::before,
.testimonials::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 8% 8%, rgba(196, 131, 35, 0.12), transparent 25%),
    radial-gradient(circle at 92% 88%, rgba(18, 57, 45, 0.08), transparent 26%);
  pointer-events: none;
}

.services .section-heading h2,
.testimonials .section-heading h2 {
  position: relative;
  display: inline-block;
}

.services .section-heading h2::after,
.testimonials .section-heading h2::after {
  content: "";
  display: block;
  width: 74px;
  height: 3px;
  margin: 12px auto 0;
  background: linear-gradient(90deg, transparent, var(--saffron), transparent);
}

.section-band {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(123, 23, 25, 0.065), rgba(196, 131, 35, 0.11)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.52), rgba(255, 250, 241, 0));
}

.hero.section-band {
  color: var(--ivory);
  background:
    radial-gradient(circle at 78% 18%, rgba(240, 189, 88, 0.28), transparent 24%),
    radial-gradient(circle at 92% 86%, rgba(30, 99, 104, 0.42), transparent 28%),
    linear-gradient(118deg, #3a0809 0%, #7b1719 45%, #133d31 100%);
}

.hero.section-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 250, 241, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 250, 241, 0.06) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.8), transparent 78%);
  pointer-events: none;
}

.section-band::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 320px;
  height: 320px;
  border: 1px solid rgba(216, 144, 36, 0.24);
  border-radius: 50%;
  box-shadow: inset 0 0 0 28px rgba(255, 255, 255, 0.14);
  pointer-events: none;
}

.hero.section-band::after {
  right: -90px;
  top: -80px;
  width: 420px;
  height: 420px;
  border-color: rgba(240, 189, 88, 0.32);
  box-shadow:
    inset 0 0 0 34px rgba(255, 255, 255, 0.04),
    0 0 90px rgba(240, 189, 88, 0.14);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.78fr);
  align-items: center;
  gap: clamp(42px, 6vw, 92px);
  min-height: calc(100vh - 74px);
  padding-top: 76px;
  padding-bottom: 74px;
}

.hero-copy,
.hero-portrait-wrap,
.panchangam > *,
.articles > *,
.contact > * {
  position: relative;
  z-index: 1;
}

.hero-copy {
  max-width: 760px;
}

.location-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: #f7d98d;
  font-size: 16px;
  font-weight: 800;
}

.location-line::before {
  content: "";
  width: 34px;
  height: 2px;
  background: #f0bd58;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 22px;
  color: var(--maroon-dark);
  font-family: var(--font-heading);
  font-size: clamp(36px, 4.05vw, 52px);
  font-weight: 900;
  line-height: 1.17;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 760px;
  color: #fff8e9;
  text-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

h2 {
  margin-bottom: 14px;
  color: var(--maroon-dark);
  font-family: var(--font-heading);
  font-size: clamp(28px, 3.55vw, 42px);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  color: var(--maroon-dark);
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 900;
  line-height: 1.28;
}

.hero-text {
  max-width: 640px;
  margin-bottom: 26px;
  color: rgba(255, 250, 241, 0.78);
  font-size: 19px;
  line-height: 1.8;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 22px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.25;
  text-align: center;
  box-shadow: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button.primary {
  color: var(--ivory);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent 35%),
    linear-gradient(135deg, #e99b2e, #b54024);
  color: #2a0b06;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
}

.button.secondary {
  color: #fff8e9;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 248, 233, 0.28);
  backdrop-filter: blur(8px);
}

.button.secondary:hover,
.button.secondary:focus-visible {
  border-color: rgba(196, 131, 35, 0.55);
  box-shadow: 0 14px 28px rgba(49, 9, 10, 0.08);
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-points span,
.trust-list span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 7px 12px;
  color: var(--green);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(23, 61, 49, 0.13);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 850;
}

.hero .hero-points span {
  color: #fff8e9;
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(255, 248, 233, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.hero-specialties {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.hero-specialties span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 13px;
  color: #301008;
  background: linear-gradient(135deg, #ffe5a0, #e49a36);
  border: 1px solid rgba(255, 248, 233, 0.24);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
}

.hero-portrait-wrap {
  display: grid;
  place-items: center;
  min-height: 520px;
}

.portrait-orbit {
  position: absolute;
  width: min(34vw, 430px);
  min-width: 300px;
  aspect-ratio: 1;
  border: 1px solid rgba(240, 189, 88, 0.36);
  border-radius: 50%;
  background:
    repeating-conic-gradient(from 12deg, rgba(240, 189, 88, 0.22) 0deg 4deg, transparent 4deg 15deg),
    radial-gradient(circle, rgba(255, 255, 255, 0.12), transparent 62%);
}

.portrait-card {
  position: relative;
  width: min(100%, 390px);
  margin: 0;
  padding: 16px 16px 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 238, 196, 0.96)),
    linear-gradient(135deg, rgba(240, 189, 88, 0.22), transparent);
  border: 1px solid rgba(255, 248, 233, 0.45);
  border-radius: 22px 22px 8px 8px;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.34);
}

.portrait-card::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(196, 131, 35, 0.22);
  border-radius: 17px 17px 6px 6px;
  pointer-events: none;
}

.astrologer-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center top;
  border-radius: 16px 16px 5px 5px;
}

.portrait-card figcaption {
  display: grid;
  grid-template-columns: minmax(120px, 0.55fr) minmax(0, 1fr);
  align-items: end;
  gap: 14px;
  padding: 16px 2px 0;
}

.portrait-card strong {
  color: var(--maroon-dark);
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 900;
}

.hero-consult-card {
  position: absolute;
  right: clamp(0px, 2vw, 28px);
  bottom: 44px;
  z-index: 2;
  display: grid;
  gap: 3px;
  width: min(260px, 70%);
  padding: 16px 18px;
  color: #fff8e9;
  background:
    linear-gradient(135deg, rgba(18, 57, 45, 0.95), rgba(12, 36, 29, 0.9));
  border: 1px solid rgba(240, 189, 88, 0.38);
  border-radius: 8px;
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.28);
}

.hero-consult-card strong {
  color: #f7d98d;
  font-size: 17px;
  font-weight: 900;
}

.hero-consult-card span {
  color: rgba(255, 250, 241, 0.82);
  font-size: 13px;
  line-height: 1.45;
}

.portrait-card span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  text-align: right;
}

.section-heading {
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-heading.align-left {
  margin-right: 0;
  margin-left: 0;
  text-align: left;
}

.section-heading p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

.section-symbol {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: 14px;
  color: var(--maroon-dark);
  background: rgba(196, 131, 35, 0.15);
  border: 1px solid rgba(196, 131, 35, 0.32);
  border-radius: 50%;
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(196, 131, 35, 0.12);
}

.service-grid,
.article-grid,
.testimonial-grid {
  display: grid;
  max-width: var(--max);
  margin: 0 auto;
  gap: 20px;
}

.service-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.service-card,
.article-grid article,
.testimonial-grid blockquote {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 246, 226, 0.92));
  border: 1px solid rgba(49, 9, 10, 0.09);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.service-card {
  position: relative;
  min-height: 250px;
  padding: 30px;
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.service-card:nth-child(1),
.service-card:nth-child(4),
.service-card:nth-child(7) {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(233, 245, 232, 0.9));
}

.service-card:nth-child(2),
.service-card:nth-child(5) {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 238, 202, 0.93));
}

.service-card:nth-child(3),
.service-card:nth-child(6) {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(251, 230, 224, 0.92));
}

.service-card::before {
  content: "";
  position: absolute;
  right: -42px;
  top: -42px;
  width: 126px;
  height: 126px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(196, 131, 35, 0.18), transparent 62%);
}

.service-card::after,
.article-grid article::after {
  content: "";
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--saffron), transparent);
  opacity: 0.75;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(196, 131, 35, 0.35);
  box-shadow: 0 24px 60px rgba(49, 9, 10, 0.12);
}

.card-icon {
  display: grid;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  place-items: center;
  color: var(--ivory);
  background:
    radial-gradient(circle at 35% 25%, rgba(240, 189, 88, 0.3), transparent 35%),
    linear-gradient(145deg, var(--green), #0c241d);
  border-radius: 50%;
  font-size: 22px;
  box-shadow: 0 12px 24px rgba(18, 57, 45, 0.18);
}

.service-card:nth-child(2n) .card-icon {
  background:
    radial-gradient(circle at 35% 25%, rgba(240, 189, 88, 0.32), transparent 35%),
    linear-gradient(145deg, var(--maroon), var(--maroon-dark));
}

.service-card:nth-child(3n) .card-icon {
  background:
    radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.28), transparent 35%),
    linear-gradient(145deg, #b56e1f, #6f1718);
}

.service-card p,
.article-grid p,
.testimonial-grid p {
  color: var(--muted);
}

.compact {
  display: grid;
  grid-template-columns: minmax(260px, 0.45fr) minmax(0, 0.75fr);
  align-items: start;
  gap: 46px;
}

.panchangam.section-band {
  background:
    radial-gradient(circle at 16% 22%, rgba(240, 189, 88, 0.2), transparent 26%),
    linear-gradient(118deg, rgba(18, 57, 45, 0.96), rgba(49, 9, 10, 0.92));
  color: var(--ivory);
}

.panchangam .section-symbol {
  color: #2b0e06;
  background: linear-gradient(135deg, #ffe8a7, #d8942d);
  border-color: rgba(255, 248, 233, 0.38);
}

.panchangam h2 {
  color: var(--ivory);
}

.panchangam .section-heading p {
  color: rgba(255, 250, 241, 0.74);
}

.panchangam-panel {
  max-width: 760px;
  padding: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 238, 204, 0.9));
  border: 1px solid rgba(255, 248, 233, 0.34);
  border-radius: var(--radius);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.24);
}

.panchangam-list {
  display: grid;
  gap: 8px;
  margin: 0;
}

.panchangam-list div {
  display: grid;
  grid-template-columns: minmax(120px, 0.38fr) 1fr;
  gap: 16px;
  padding: 17px 18px;
  background: rgba(255, 250, 241, 0.9);
  border: 1px solid rgba(49, 9, 10, 0.055);
  border-radius: 6px;
  transition: transform 180ms ease, background 180ms ease;
}

.panchangam-list div:hover {
  transform: translateX(4px);
  background: #fffaf1;
}

.panchangam-list dt {
  color: var(--maroon);
  font-size: 14px;
  font-weight: 900;
}

.panchangam-list dd {
  margin: 0;
  color: var(--green);
  font-weight: 850;
}

.profile {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
  gap: clamp(34px, 5vw, 76px);
  padding-top: 110px;
  padding-bottom: 110px;
  background:
    linear-gradient(135deg, rgba(255, 250, 241, 0.9), rgba(227, 238, 228, 0.74));
  border-top: 1px solid rgba(49, 9, 10, 0.06);
  border-bottom: 1px solid rgba(49, 9, 10, 0.06);
}

.profile-media {
  position: relative;
  padding: 16px;
  background:
    linear-gradient(145deg, rgba(123, 23, 25, 0.14), rgba(196, 131, 35, 0.22));
  border: 1px solid rgba(49, 9, 10, 0.1);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.profile-media::after {
  content: "";
  position: absolute;
  inset: 28px -18px -18px 28px;
  z-index: -1;
  border: 1px solid rgba(196, 131, 35, 0.34);
  border-radius: var(--radius);
}

.profile-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center top;
  border-radius: 6px;
  box-shadow: 0 18px 48px rgba(49, 9, 10, 0.16);
}

.profile-copy p {
  max-width: 680px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

.profile-copy {
  position: relative;
  padding: clamp(8px, 2vw, 22px);
}

.profile-copy::before {
  content: "";
  position: absolute;
  left: -18px;
  top: 6px;
  bottom: 6px;
  width: 4px;
  background: linear-gradient(180deg, var(--saffron), var(--maroon), var(--green));
  border-radius: 999px;
}

.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.article-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.articles.section-band {
  background:
    radial-gradient(circle at 12% 22%, rgba(240, 189, 88, 0.16), transparent 26%),
    radial-gradient(circle at 90% 75%, rgba(18, 57, 45, 0.16), transparent 28%),
    linear-gradient(180deg, #fff7e7, #f6ead0);
}

.articles .section-symbol {
  color: #fffaf1;
  background: linear-gradient(145deg, var(--maroon), var(--maroon-dark));
  border-color: rgba(196, 131, 35, 0.38);
}

.article-grid article {
  position: relative;
  padding: 28px;
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease;
  border-top: 4px solid rgba(196, 131, 35, 0.76);
}

.article-grid article:nth-child(2) {
  border-top-color: rgba(18, 57, 45, 0.74);
}

.article-grid article:nth-child(3) {
  border-top-color: rgba(123, 23, 25, 0.78);
}

.article-grid article:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 54px rgba(49, 9, 10, 0.12);
}

.testimonial-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.testimonials {
  background:
    linear-gradient(135deg, rgba(18, 57, 45, 0.08), rgba(196, 131, 35, 0.12)),
    #fffaf1;
}

.testimonial-grid blockquote {
  position: relative;
  padding: 34px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(255, 246, 226, 0.92));
}

.testimonial-grid blockquote:nth-child(1) {
  border-left: 4px solid var(--saffron);
}

.testimonial-grid blockquote:nth-child(2) {
  border-left: 4px solid var(--green);
}

.testimonial-grid blockquote::before {
  content: "“";
  position: absolute;
  top: 4px;
  right: 24px;
  color: rgba(196, 131, 35, 0.24);
  font-family: Georgia, serif;
  font-size: 76px;
  line-height: 1;
}

.testimonial-grid p {
  margin-bottom: 18px;
  font-size: 18px;
  line-height: 1.78;
}

.testimonial-grid cite {
  color: var(--maroon);
  font-style: normal;
  font-weight: 850;
}

.contact {
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.contact.section-band {
  background:
    radial-gradient(circle at 82% 18%, rgba(240, 189, 88, 0.18), transparent 25%),
    radial-gradient(circle at 15% 85%, rgba(18, 57, 45, 0.18), transparent 28%),
    linear-gradient(118deg, rgba(255, 250, 241, 0.98), rgba(241, 224, 190, 0.82));
}

.contact .section-symbol {
  color: #fffaf1;
  background: linear-gradient(145deg, var(--green), var(--maroon-dark));
  border-color: rgba(196, 131, 35, 0.34);
}

.contact-copy {
  max-width: 620px;
}

.contact-copy p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

.office-address {
  display: grid;
  gap: 6px;
  max-width: 620px;
  padding: 20px;
  color: var(--green);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 247, 229, 0.9));
  border: 1px solid rgba(23, 61, 49, 0.13);
  border-radius: var(--radius);
  font-style: normal;
  box-shadow: var(--shadow-soft);
}

.office-address strong {
  color: var(--maroon-dark);
}

.office-address a {
  color: var(--maroon);
  font-weight: 850;
}

.booking-form {
  display: grid;
  gap: 17px;
  padding: clamp(24px, 4vw, 40px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 246, 226, 0.92));
  border: 1px solid rgba(49, 9, 10, 0.095);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.booking-form::before {
  content: "Consultation";
  display: inline-flex;
  width: max-content;
  padding: 5px 10px;
  color: var(--green);
  background: var(--green-soft);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.booking-form label {
  display: grid;
  gap: 7px;
  color: var(--maroon-dark);
  font-weight: 850;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid rgba(49, 9, 10, 0.18);
  border-radius: 6px;
  background: rgba(255, 250, 241, 0.86);
  color: var(--ink);
  font: inherit;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

input:focus,
select:focus,
textarea:focus {
  background: var(--white);
  border-color: rgba(196, 131, 35, 0.7);
  box-shadow: 0 0 0 4px rgba(196, 131, 35, 0.14);
}

textarea {
  resize: vertical;
}

.form-button {
  color: var(--ivory);
  background: linear-gradient(135deg, var(--green), #0d281f);
  cursor: pointer;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 38px clamp(18px, 5vw, 64px);
  color: var(--ivory);
  background:
    linear-gradient(135deg, rgba(196, 131, 35, 0.12), transparent 35%),
    var(--maroon-dark);
}

.site-footer p {
  margin-bottom: 0;
  color: rgba(255, 248, 233, 0.76);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-weight: 800;
}

.admin-page .site-header {
  position: static;
}

.admin-shell {
  display: grid;
  grid-template-columns: minmax(260px, 0.55fr) minmax(320px, 0.9fr);
  align-items: start;
  gap: clamp(28px, 5vw, 72px);
  min-height: calc(100vh - 86px);
}

.calendar-admin-shell {
  grid-template-columns: minmax(240px, 0.45fr) minmax(420px, 1fr) minmax(340px, 0.65fr);
}

.table-admin-shell {
  grid-template-columns: minmax(240px, 0.28fr) minmax(0, 1fr);
}

.admin-copy,
.admin-form,
.admin-calendar-panel {
  position: relative;
  z-index: 1;
}

.admin-copy p {
  max-width: 620px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

.admin-form {
  display: grid;
  gap: 16px;
  padding: clamp(22px, 4vw, 36px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 250, 241, 0.88));
  border: 1px solid rgba(49, 9, 10, 0.1);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.admin-form label {
  display: grid;
  gap: 7px;
  color: var(--maroon-dark);
  font-weight: 850;
}

.time-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

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

.admin-actions .button {
  min-width: 150px;
}

.admin-status {
  min-height: 28px;
  margin: 0;
  color: var(--green);
  font-size: 14px;
  font-weight: 800;
}

.admin-status.is-error {
  color: var(--maroon);
}

.admin-table-form {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 16px;
  min-width: 0;
}

.table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(255, 247, 229, 0.92));
  border: 1px solid rgba(49, 9, 10, 0.1);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.table-toolbar > div:first-child {
  display: grid;
  gap: 3px;
}

.table-toolbar strong {
  color: var(--maroon-dark);
  font-size: 18px;
  line-height: 1.25;
}

.table-toolbar span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.panchangam-table-wrap {
  overflow-x: auto;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 246, 226, 0.92));
  border: 1px solid rgba(49, 9, 10, 0.1);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.panchangam-admin-table {
  width: 100%;
  min-width: 1240px;
  border-collapse: separate;
  border-spacing: 0;
}

.panchangam-admin-table th,
.panchangam-admin-table td {
  padding: 12px 10px;
  border-bottom: 1px solid rgba(49, 9, 10, 0.08);
  vertical-align: middle;
}

.panchangam-admin-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  color: #fff8e9;
  background: linear-gradient(145deg, var(--maroon), var(--maroon-dark));
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
  text-align: left;
  white-space: nowrap;
}

.panchangam-admin-table tbody tr {
  background: rgba(255, 250, 241, 0.72);
}

.panchangam-admin-table tbody tr:nth-child(even) {
  background: rgba(255, 246, 226, 0.9);
}

.panchangam-admin-table tbody tr.is-today {
  background: #fff0bf;
}

.panchangam-admin-table tbody tr.is-saved {
  box-shadow: inset 4px 0 0 var(--green);
}

.panchangam-admin-table select,
.panchangam-admin-table input {
  min-width: 126px;
  min-height: 42px;
  padding: 8px 9px;
  background: #fffdf7;
  font-size: 14px;
}

.panchangam-admin-table select[data-field="tithiValue"],
.panchangam-admin-table select[data-field="nakshatramValue"],
.panchangam-admin-table select[data-field="muhurtamValue"] {
  min-width: 180px;
}

.date-cell {
  min-width: 132px;
}

.date-cell strong,
.date-cell span {
  display: block;
}

.date-cell strong {
  color: var(--maroon-dark);
  font-size: 14px;
  line-height: 1.2;
  white-space: nowrap;
}

.date-cell span {
  width: max-content;
  margin-top: 5px;
  padding: 2px 7px;
  color: #2a0b06;
  background: var(--saffron-light);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
}

.row-status {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.is-saved .row-status {
  color: var(--green);
}

.admin-calendar-panel {
  display: grid;
  gap: 18px;
}

.calendar-help {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  color: var(--green);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 247, 229, 0.9));
  border: 1px solid rgba(49, 9, 10, 0.1);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.calendar-help strong {
  color: var(--maroon-dark);
}

.calendar-help span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  text-align: right;
}

.calendar-grid {
  display: grid;
  gap: 18px;
}

.calendar-card {
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 246, 226, 0.92));
  border: 1px solid rgba(49, 9, 10, 0.1);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.calendar-card h2 {
  margin-bottom: 14px;
  font-size: 24px;
}

.month-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 6px;
  table-layout: fixed;
}

.month-table th {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.month-table td {
  height: 56px;
  padding: 0;
}

.month-table td.is-empty {
  background: rgba(255, 250, 241, 0.45);
  border-radius: 6px;
}

.month-table button {
  display: grid;
  width: 100%;
  height: 56px;
  place-items: center;
  padding: 6px 4px;
  color: var(--ink);
  background: rgba(255, 250, 241, 0.9);
  border: 1px solid rgba(49, 9, 10, 0.09);
  border-radius: 6px;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 900;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.month-table button:hover,
.month-table button:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(196, 131, 35, 0.5);
  box-shadow: 0 10px 24px rgba(49, 9, 10, 0.1);
}

.month-table button.is-today {
  color: var(--maroon-dark);
  background: #ffe6a8;
  border-color: rgba(196, 131, 35, 0.55);
}

.month-table button.is-selected {
  color: #fff8e9;
  background: linear-gradient(145deg, var(--maroon), var(--maroon-dark));
  border-color: rgba(240, 189, 88, 0.72);
}

.month-table button.is-saved:not(.is-selected) {
  color: var(--green);
  background: var(--green-soft);
  border-color: rgba(18, 57, 45, 0.24);
}

.month-table small {
  min-height: 13px;
  color: inherit;
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
}

.selected-date-card {
  display: grid;
  gap: 3px;
  padding: 16px 18px;
  color: var(--green);
  background: var(--green-soft);
  border: 1px solid rgba(18, 57, 45, 0.14);
  border-radius: var(--radius);
}

.selected-date-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.selected-date-card strong {
  color: var(--maroon-dark);
  font-size: 18px;
  line-height: 1.3;
}

.font-options-page .font-options-hero {
  min-height: auto;
  padding-top: 82px;
  padding-bottom: 58px;
  color: var(--ivory);
  background:
    radial-gradient(circle at 84% 18%, rgba(240, 189, 88, 0.25), transparent 24%),
    linear-gradient(118deg, #3a0809 0%, #7b1719 50%, #12392d 100%);
}

.font-options-page .font-options-hero h1 {
  max-width: 760px;
  color: #fff8e9;
}

.font-options-page .font-options-hero .hero-text {
  max-width: 740px;
  margin-bottom: 0;
}

.font-options-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: var(--max);
  margin: 0 auto;
  gap: 22px;
}

.font-sample {
  display: grid;
  gap: 12px;
  padding: clamp(24px, 3vw, 34px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 246, 226, 0.92));
  border: 1px solid rgba(49, 9, 10, 0.1);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.font-sample h2,
.font-sample h3,
.font-sample p,
.font-sample .sample-meta {
  font-family: var(--font-body);
}

.font-sample h2 {
  margin-bottom: 0;
  color: var(--maroon-dark);
  font-family: var(--font-heading);
  font-size: clamp(32px, 4vw, 46px);
}

.font-sample h3 {
  margin-bottom: 4px;
  font-family: var(--font-heading);
}

.font-sample p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

.font-sample .button {
  width: max-content;
  margin-top: 12px;
}

.sample-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
}

.sample-meta span {
  padding: 5px 10px;
  color: #fff8e9;
  background: var(--maroon);
  border-radius: 999px;
}

@media (max-width: 1040px) {
  .site-header {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .header-actions {
    min-width: 0;
  }

  .hero,
  .compact,
  .profile,
  .contact,
  .admin-shell,
  .calendar-admin-shell,
  .table-admin-shell {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-portrait-wrap {
    min-height: 430px;
  }

  .service-grid,
  .article-grid,
  .font-options-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .site-header {
    gap: 14px;
    padding: 12px 16px;
  }

  .brand {
    min-width: 0;
    flex: 1;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    font-size: 21px;
  }

  .brand-title {
    font-size: 14px;
  }

  .brand-place {
    font-size: 12px;
  }

  .language-toggle {
    min-height: 38px;
    padding: 5px 9px;
    font-size: 13px;
  }

  .nav-links {
    gap: 16px;
    font-size: 14px;
  }

  section {
    padding: 68px 16px;
  }

  .hero {
    gap: 26px;
    padding-top: 42px;
    padding-bottom: 50px;
  }

  h1 {
    font-size: 30px;
    line-height: 1.2;
  }

  h2 {
    font-size: 28px;
  }

  .hero-text,
  .profile-copy p,
  .contact-copy p {
    font-size: 16px;
  }

  .hero-text {
    margin-bottom: 20px;
    line-height: 1.58;
  }

  .hero-points {
    gap: 7px;
  }

  .hero .hero-points span {
    min-height: 30px;
    padding: 5px 9px;
    font-size: 12px;
  }

  .hero-specialties {
    gap: 7px;
    margin-top: 10px;
  }

  .hero-specialties span {
    min-height: 30px;
    padding: 5px 10px;
    font-size: 12px;
  }

  .hero-actions,
  .contact-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .hero-portrait-wrap {
    min-height: 330px;
  }

  .portrait-card {
    width: min(100%, 300px);
  }

  .portrait-card figcaption {
    display: grid;
  }

  .portrait-card span {
    text-align: left;
  }

  .hero-consult-card {
    right: 12px;
    bottom: 18px;
    width: min(240px, 76%);
    padding: 13px 14px;
  }

  .service-grid,
  .article-grid,
  .testimonial-grid,
  .font-options-grid {
    grid-template-columns: 1fr;
  }

  .font-sample .button {
    width: 100%;
  }

  .time-pair {
    grid-template-columns: 1fr;
  }

  .calendar-help {
    align-items: flex-start;
    flex-direction: column;
  }

  .calendar-help span {
    text-align: left;
  }

  .table-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .table-toolbar .admin-actions {
    display: grid;
  }

  .calendar-card {
    padding: 12px;
  }

  .month-table {
    border-spacing: 4px;
  }

  .month-table td,
  .month-table button {
    height: 46px;
  }

  .month-table th {
    font-size: 10px;
  }

  .service-card {
    min-height: auto;
    padding: 24px;
  }

  .panchangam-list div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
