/* Graha Vastu — palette aligned to brand logo: gold, burgundy red, forest green */
:root {
  /* Red shades — crimson / maroon (hexagram borders) */
  --red-950: #2a0a0f;
  --red-900: #3d0f16;
  --red-800: #821019; /* Maroon text for logo and headings */
  --red-700: #a11822;
  /* Yellow / gold shades — metallic framework & highlights */
  --yellow-950: #3d3310;
  --yellow-800: #7a6518;
  --yellow-600: #a9872e; /* Gold borders */
  --yellow-500: #d4af37;
  --yellow-400: #e8c547;
  --yellow-300: #f5dc6a;
  --yellow-200: #f5e0a8;
  --yellow-100: #ffecd2;
  --yellow-50: #fbf5e6; /* Beige backgrounds */
  --yellow-muted: rgba(212, 175, 55, 0.42);
  /* Green shades — forest (central “A” / nature accent) */
  --green-950: #101c0c;
  --green-900: #1d3216;
  --green-800: #2B4E26; /* Dark green for banners/buttons */
  --green-700: #3e6b37;
  --green-600: #558a4c;
  --green-500: #6cae61;
  --green-200: #b5e3c8;
  --green-100: #dff3e6;
  --green-50: #eaf6f0;
  /* Semantic tokens */
  --deep-red: var(--red-800);
  --deep-red-dark: var(--red-950);
  --gold: var(--yellow-600);
  --gold-bright: var(--yellow-300);
  --gold-muted: var(--yellow-muted);
  --green: var(--green-800);
  --green-light: var(--green-600);
  /* Page + panels: very light yellow or green (no stark white) */
  --surface-page: #F6F0E0; /* Light beige for page */
  --surface-panel-yellow: #fbf6ec;
  --surface-panel-green: #f2efe5;
  --cream: var(--yellow-50);
  --cream-dark: var(--yellow-200);
  /* Light copy on dark surfaces — warm very light yellow (not white) */
  --text-on-dark: var(--yellow-100);
  --text-on-dark-muted: rgba(255, 236, 210, 0.82);
  --text-on-dark-subtle: rgba(255, 236, 210, 0.7);
  --gold-highlight: #ffecc4;
  /* Body + UI text: dark green + dark yellow only (no black / burgundy copy) */
  --text: var(--green-900);
  --text-heading: var(--red-800);
  --text-muted: var(--green-700);
  --text-accent: var(--green-800);
  --white: var(--yellow-100);
  /* Logo mark sits on light yellow (not white) */
  --logo-bg-light: transparent;
  --shadow: rgba(42, 10, 15, 0.1);
  --shadow-elevated: 0 4px 24px rgba(42, 10, 15, 0.08), 0 12px 48px rgba(42, 10, 15, 0.06);
  --shadow-header: 0 4px 20px rgba(0, 0, 0, 0.06);
  --font-brand: "Berkshire Swash", "Cormorant Garamond", cursive;
  --font-display: "Cormorant Garamond", "Georgia", serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
  --radius: 8px;
  --radius-sm: 4px;
  --radius-lg: 12px;
  --header-h: 76px;
  --transition: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(212, 175, 55, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse 80% 50% at 100% 50%, rgba(20, 83, 45, 0.06) 0%, transparent 45%),
    var(--surface-page);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--text-accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--green-700);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-heading);
}

h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
}

h2 {
  font-size: clamp(1.65rem, 3.5vw, 2.35rem);
  margin-top: 0;
}

h3 {
  font-size: 1.35rem;
}

.container {
  width: min(1180px, 92vw);
  margin-inline: auto;
}

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface-page);
  border-bottom: 1px solid rgba(212, 175, 55, 0.35);
  box-shadow: var(--shadow-header);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--red-800);
}

.logo-link:hover {
  color: var(--red-900);
}

.logo-yantra {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  object-fit: contain;
  border-radius: 50%;
  background: var(--logo-bg-light);
  padding: 3px;
  box-shadow: 0 0 0 2px var(--yellow-500), 0 4px 14px rgba(45, 5, 8, 0.25);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.logo-name {
  font-family: var(--font-brand);
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.logo-tag {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  opacity: 0.92;
  line-height: 1.25;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--gold);
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--text-on-dark);
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gold-highlight);
  border-radius: 1px;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1.25rem;
}

.site-nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--red-800);
  border-bottom-color: var(--red-800);
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.65rem;
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow var(--transition), background var(--transition), color var(--transition);
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--green-800);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(43, 78, 38, 0.4);
}

.btn-primary:hover {
  color: var(--white);
  box-shadow: 0 6px 16px rgba(43, 78, 38, 0.5);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--text-on-dark);
  border: 2px solid var(--gold);
}

.btn-outline:hover {
  background: rgba(212, 175, 55, 0.2);
  color: var(--gold-highlight);
  border-color: var(--gold-highlight);
}

.btn-green {
  background: var(--green);
  color: var(--text-on-dark);
}

.btn-green:hover {
  background: var(--green-light);
  color: var(--text-on-dark);
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: clamp(440px, 72vh, 680px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--surface-page);
}

.hero-bg {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background:
    radial-gradient(ellipse 90% 55% at 50% -10%, rgba(245, 220, 106, 0.35) 0%, transparent 50%),
    radial-gradient(circle at 15% 85%, rgba(34, 139, 74, 0.35) 0%, transparent 42%),
    radial-gradient(circle at 88% 60%, rgba(92, 20, 32, 0.5) 0%, transparent 40%);
}

.hero-pattern {
  position: absolute;
  inset: -20%;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0L60 30L30 60L0 30Z' fill='none' stroke='%23d4af37' stroke-width='0.5'/%3E%3C/svg%3E");
  background-size: 60px 60px;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1180px, 92vw);
  margin-inline: auto;
  padding: clamp(2.5rem, 6vw, 3.5rem) clamp(1rem, 4vw, 1.5rem) clamp(3.5rem, 8vw, 4.5rem);
  text-align: center;
  color: var(--text);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-yantra-large {
  display: block;
  width: min(200px, 48vw);
  height: min(200px, 48vw);
  margin: 0 auto 1.5rem;
  object-fit: contain;
}

.hero h1 {
  font-family: var(--font-brand);
  color: var(--red-800);
  margin: 0 0 0.65rem;
  letter-spacing: 0.04em;
  font-weight: 400;
}

.hero-tagline {
  font-family: var(--font-body);
  font-size: clamp(0.9rem, 1.5vw + 0.55rem, 1.25rem);
  font-weight: 500;
  background: var(--green-800);
  color: var(--gold);
  border: 4px double var(--gold);
  margin: 0 0 2rem;
  margin-inline: auto;
  padding: 10px 30px;
  line-height: 1.35;
  letter-spacing: 0.04em;
  max-width: 100%;
  text-align: center;
  white-space: nowrap;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
  justify-content: center;
  align-items: center;
  width: 100%;
}

@media (max-width: 440px) {
  .hero-tagline {
    white-space: normal;
    font-size: clamp(0.9375rem, 4vw, 1.2rem);
    line-height: 1.4;
    text-wrap: balance;
  }
}

@media (max-width: 900px) {
  .logo-tag {
    white-space: normal;
    max-width: min(210px, 52vw);
  }
}

/* —— Sections —— */
.section {
  padding: clamp(3.25rem, 9vw, 5.5rem) 0;
}

.section-alt {
  background: linear-gradient(180deg, rgba(255, 236, 210, 0.65) 0%, var(--yellow-50) 48%, rgba(234, 246, 240, 0.35) 100%);
  border-block: 1px solid rgba(212, 175, 55, 0.18);
}

.section-title {
  text-align: center;
  margin-bottom: 0.65rem;
  letter-spacing: 0.03em;
}

.section-intro {
  text-align: center;
  color: var(--text-muted);
  max-width: 56ch;
  margin: 0 auto 2.5rem;
  padding-inline: 0.5rem;
  line-height: 1.7;
}

/* —— Cards grid —— */
.grid-3 {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
  background: linear-gradient(165deg, rgba(255, 252, 245, 0.95) 0%, var(--surface-panel-yellow) 100%);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2rem);
  border: 1px solid rgba(212, 175, 55, 0.22);
  box-shadow: var(--shadow-elevated);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.card:hover {
  border-color: rgba(212, 175, 55, 0.4);
  box-shadow: 0 16px 48px rgba(42, 10, 15, 0.1), 0 4px 16px rgba(212, 175, 55, 0.12);
  transform: translateY(-3px);
}

.card-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 1rem;
  color: var(--green-800);
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  color: var(--text-heading);
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.98rem;
}

/* —— About strip —— */
.about-strip {
  display: grid;
  gap: 2rem;
  align-items: center;
  grid-template-columns: 1fr 1fr;
}

.about-strip .yantra-deco {
  justify-self: center;
  max-width: 280px;
}

.about-strip .about-logo-deco {
  justify-self: center;
  width: min(280px, 70vw);
  height: auto;
  object-fit: contain;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #fff3c9 0%, var(--logo-bg-light) 55%, #ffe598 100%);
  padding: 12px;
  box-shadow: 0 0 0 2px var(--yellow-300), 0 12px 40px var(--shadow);
}

@media (max-width: 768px) {
  .about-strip {
    grid-template-columns: 1fr;
  }
}

/* —— Testimonials —— */
.testimonials {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.testimonial {
  background: linear-gradient(145deg, var(--green-50) 0%, var(--yellow-50) 100%);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-left: 4px solid var(--gold);
  padding: 1.5rem 1.5rem 1.5rem 1.35rem;
  border-radius: var(--radius);
  font-style: italic;
  color: var(--text-muted);
  box-shadow: 0 4px 20px rgba(42, 10, 15, 0.06);
}

.testimonial cite {
  display: block;
  margin-top: 1rem;
  font-style: normal;
  font-weight: 600;
  color: var(--text-accent);
  font-size: 0.9rem;
}

/* —— CTA band —— */
.cta-band {
  background:
    radial-gradient(ellipse 80% 120% at 100% 0%, rgba(245, 220, 106, 0.15) 0%, transparent 45%),
    radial-gradient(ellipse 60% 80% at 0% 100%, rgba(34, 139, 74, 0.35) 0%, transparent 50%),
    linear-gradient(125deg, var(--green-800) 0%, var(--deep-red-dark) 55%, #1a0508 100%);
  color: var(--text-on-dark);
  text-align: center;
  padding: clamp(3rem, 7vw, 4.5rem) 1.5rem;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 35% 40%, rgba(212, 175, 55, 0.2) 0%, transparent 55%);
  opacity: 0.85;
  pointer-events: none;
}

.cta-band h2 {
  color: var(--text-on-dark);
  position: relative;
  margin-bottom: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.cta-band p {
  position: relative;
  max-width: 42ch;
  margin: 0 auto 1.5rem;
  color: var(--text-on-dark-muted);
  line-height: 1.65;
}

/* —— Footer —— */
.site-footer {
  background: linear-gradient(180deg, #1f080d 0%, var(--deep-red-dark) 40%, #16060a 100%);
  color: var(--text-on-dark);
  padding: clamp(2.75rem, 6vw, 3.75rem) 0 1.5rem;
  border-top: 1px solid rgba(212, 175, 55, 0.4);
  box-shadow: inset 0 1px 0 rgba(255, 236, 200, 0.06);
}

.footer-grid {
  display: grid;
  gap: 2rem 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-bottom: 2rem;
  align-items: start;
}

.footer-grid > div > h3 {
  margin-bottom: 0.65rem;
  letter-spacing: 0.04em;
}

.footer-grid > div > p {
  margin: 0;
  line-height: 1.65;
  color: var(--text-on-dark);
}

.site-footer h3 {
  color: var(--gold-highlight);
  font-size: 1.05rem;
  margin-top: 0;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: var(--font-body);
}

.site-footer a {
  color: var(--text-on-dark);
  text-decoration: none;
  text-underline-offset: 3px;
}

.site-footer a:hover {
  color: var(--gold-highlight);
  text-decoration: underline;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer li {
  margin-bottom: 0.5rem;
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(212, 175, 55, 0.28);
  font-size: 0.875rem;
  color: var(--text-on-dark-subtle);
  text-align: center;
}

.footer-bottom p {
  margin: 0;
}

/* —— Forms —— */
.form-grid {
  display: grid;
  gap: 1.25rem;
  max-width: 640px;
}

.form-grid.two {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--green-800);
  font-size: 0.9rem;
}

input,
select,
textarea {
  width: 100%;
  padding: 0.8rem 1.1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1px solid rgba(20, 83, 45, 0.2);
  border-radius: var(--radius-sm);
  background: rgba(255, 253, 248, 0.9);
  color: var(--text);
  box-shadow: inset 0 1px 2px rgba(42, 10, 15, 0.04);
  transition: border-color var(--transition), box-shadow var(--transition);
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-color: var(--gold);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.form-note {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 1rem;
}

/* —— Page header —— */
.page-hero {
  background:
    radial-gradient(ellipse 70% 80% at 80% 20%, rgba(245, 220, 106, 0.12) 0%, transparent 45%),
    linear-gradient(155deg, var(--deep-red) 0%, var(--deep-red-dark) 42%, var(--green-900) 100%);
  color: var(--text-on-dark);
  padding: clamp(2.75rem, 7vw, 4.25rem) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 70% at 50% 100%, rgba(26, 6, 10, 0.4) 0%, transparent 55%);
  pointer-events: none;
}

.page-hero h1 {
  color: var(--text-on-dark);
  margin: 0 0 0.5rem;
  position: relative;
  z-index: 1;
}

.page-hero p {
  margin: 0;
  color: var(--text-on-dark-muted);
  max-width: 50ch;
  margin-inline: auto;
  position: relative;
  z-index: 1;
  line-height: 1.65;
}

.breadcrumb {
  font-size: 0.85rem;
  margin-bottom: 1rem;
  color: var(--text-on-dark-subtle);
  position: relative;
  z-index: 1;
}

.breadcrumb a {
  color: var(--gold-highlight);
}

/* —— Blog —— */
.blog-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.blog-card {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr auto;
  align-items: start;
  background: linear-gradient(165deg, rgba(255, 255, 252, 0.9) 0%, var(--surface-panel-green) 100%);
  padding: 1.5rem 1.65rem;
  border-radius: var(--radius);
  border: 1px solid rgba(20, 83, 45, 0.15);
  text-decoration: none;
  color: inherit;
  box-shadow: 0 4px 20px rgba(42, 10, 15, 0.05);
  transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
}

.blog-card:hover {
  box-shadow: var(--shadow-elevated);
  border-color: rgba(212, 175, 55, 0.35);
  transform: translateY(-2px);
}

.blog-card .btn-outline {
  color: var(--text-heading);
  border-color: var(--gold);
}

.blog-card .btn-outline:hover {
  color: var(--green-800);
  background: rgba(212, 175, 55, 0.16);
}

.blog-card h3 {
  margin: 0 0 0.35rem;
  color: var(--text-heading);
}

.blog-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* —— Map —— */
.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.35);
  min-height: 320px;
  background: var(--green-100);
  box-shadow: var(--shadow-elevated);
}

.map-wrap iframe {
  width: 100%;
  height: 360px;
  border: 0;
}

.contact-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr 1fr;
  align-items: start;
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* —— Courses —— */
.course-card {
  border-top: 3px solid var(--green);
}

.course-card h3 {
  color: var(--text-heading);
}

/* —— WhatsApp float (green + yellow — brand palette) —— */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 200;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--green-600) 0%, var(--green-800) 100%);
  color: var(--gold-highlight);
  border: 2px solid rgba(255, 236, 196, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 28px rgba(15, 82, 48, 0.4), 0 2px 8px rgba(42, 10, 15, 0.2);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.whatsapp-float:hover {
  transform: scale(1.07) translateY(-2px);
  color: var(--text-on-dark);
  box-shadow: 0 12px 36px rgba(15, 82, 48, 0.5), 0 4px 12px rgba(212, 175, 55, 0.2);
}

.whatsapp-float svg {
  width: 30px;
  height: 30px;
}

/* —— Mobile nav —— */
@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: rgba(42, 10, 15, 0.97);
    backdrop-filter: blur(16px) saturate(1.1);
    -webkit-backdrop-filter: blur(16px) saturate(1.1);
    border-bottom: 1px solid rgba(212, 175, 55, 0.35);
    padding: 1rem 1.5rem 1.5rem;
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: transform var(--transition), opacity var(--transition), visibility var(--transition);
    box-shadow: 0 12px 40px rgba(45, 5, 8, 0.35);
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }

  .site-nav li {
    width: 100%;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
  }

  .site-nav a {
    display: block;
    padding: 0.85rem 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }

  .card:hover,
  .blog-card:hover {
    transform: none;
  }

  .btn-primary:hover {
    transform: none;
  }

  .whatsapp-float:hover {
    transform: none;
  }
}
