/* ==========================================================================
   Nissanga Umbrella Portal Style Sheet
   Theme: Suave, Subtle, Sublime
   Primary Color Palette:
     - Slate Blue / Deep Indigo: #1E293B
     - Muted Sage Green: #059669 / #10B981
     - Soft Off-White: #F8FAFC
     - Charcoal Body Text: #0F172A
     - Muted Text: #64748B
   ========================================================================== */

:root {
  --primary: #1E293B;
  --primary-light: #334155;
  --accent: #059669;
  --accent-light: #10B981;
  --accent-soft: rgba(5, 150, 105, 0.08);
  --bg-main: #F8FAFC;
  --bg-card: #FFFFFF;
  --text-dark: #0F172A;
  --text-muted: #64748B;
  --border-light: #E2E8F0;
  --border-focus: #10B981;

  --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.06), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  --shadow-hover: 0 20px 35px -10px rgba(15, 23, 42, 0.1), 0 10px 15px -5px rgba(5, 150, 105, 0.08);

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

/* Typography Utility */
h1, h2, h3, h4, .font-heading {
  font-family: var(--font-heading);
  color: var(--primary);
  font-weight: 700;
  line-height: 1.25;
}

.subheadline {
  color: var(--text-muted);
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.7;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-narrow {
  max-width: 800px;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 250, 252, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.7);
  transition: var(--transition-smooth);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: var(--transition-smooth);
}

.header-logo {
  height: 52px;
  width: auto;
  object-fit: contain;
}

.logo-link:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition-smooth);
  position: relative;
}

.nav-link:hover {
  color: var(--primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--accent);
  border-radius: 2px;
  transition: var(--transition-smooth);
}

.nav-link:hover::after {
  width: 100%;
}

.btn-nav {
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-full);
  background-color: var(--primary);
  color: #FFFFFF !important;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.btn-nav:hover {
  background-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.2);
}

.btn-nav::after {
  display: none !important;
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--primary);
  margin: 5px 0;
  transition: var(--transition-smooth);
}

/* Hero Section */
.hero-section {
  padding: 6rem 0 5rem;
  position: relative;
  overflow: hidden;
}

.hero-background-shapes {
  position: absolute;
  top: -10%;
  right: -5%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.08) 0%, rgba(248, 250, 252, 0) 70%);
  border-radius: 50%;
  z-index: -1;
  pointer-events: none;
}

.hero-content {
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background-color: var(--accent-soft);
  border: 1px solid rgba(5, 150, 105, 0.2);
  border-radius: var(--radius-full);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.badge-dot {
  width: 6px;
  height: 6px;
  background-color: var(--accent);
  border-radius: 50%;
}

.hero-title {
  font-size: 3.25rem;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  color: var(--primary);
}

.hero-title span {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto 2.5rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Button Component Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition-smooth);
  text-decoration: none;
}

.btn-primary {
  background-color: var(--primary);
  color: #FFFFFF;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background-color: #0f172a;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-accent {
  background-color: var(--accent);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.25);
}

.btn-accent:hover {
  background-color: #047857;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(5, 150, 105, 0.35);
}

.btn-secondary {
  background-color: #FFFFFF;
  color: var(--primary);
  border-color: var(--border-light);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background-color: var(--bg-main);
  border-color: #CBD5E1;
  transform: translateY(-2px);
}

.btn-icon {
  transition: transform 0.2s ease;
}

.btn:hover .btn-icon {
  transform: translateX(3px);
}

/* Philosophy Section */
.philosophy-section {
  padding: 5rem 0;
  background-color: #FFFFFF;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-title {
  font-size: 2.25rem;
  margin-bottom: 0.75rem;
}

.philosophy-quote-card {
  background: linear-gradient(135deg, #F8FAFC 0%, #F1F5F9 100%);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  margin-bottom: 3rem;
  box-shadow: var(--shadow-sm);
}

.sanskrit-word {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
  display: block;
}

.quote-text {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--primary);
  font-style: italic;
  line-height: 1.6;
}

.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.philosophy-card {
  padding: 2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  background-color: #FFFFFF;
  transition: var(--transition-smooth);
}

.philosophy-card:hover {
  transform: translateY(-4px);
  border-color: rgba(5, 150, 105, 0.3);
  box-shadow: var(--shadow-md);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background-color: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
}

.philosophy-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.philosophy-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Directory Section */
.directory-section {
  padding: 6rem 0;
}

.directory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2.5rem;
  margin-top: 2rem;
}

.practitioner-card {
  background-color: #FFFFFF;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.practitioner-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0;
  transition: var(--transition-smooth);
}

.practitioner-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(16, 185, 129, 0.3);
}

.practitioner-card:hover::before {
  opacity: 1;
}

.card-header-wrapper {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.practitioner-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.practitioner-meta h3 {
  font-size: 1.35rem;
  margin-bottom: 0.25rem;
}

.practitioner-role {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  background-color: var(--accent-soft);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
}

.practitioner-body {
  margin-bottom: 2rem;
}

.practitioner-focus-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  list-style: none;
}

.tag-item {
  font-size: 0.85rem;
  background-color: var(--bg-main);
  color: var(--primary);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-light);
  font-weight: 500;
}

.practitioner-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.practitioner-footer {
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
}

.subdomain-badge {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  font-family: monospace;
}

/* Guided Finder Section */
.finder-section {
  padding: 6rem 0;
  background: linear-gradient(180deg, #FFFFFF 0%, #F1F5F9 100%);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.finder-box {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  padding: 3rem;
  box-shadow: var(--shadow-md);
}

.finder-step {
  transition: var(--transition-smooth);
}

.finder-step.hidden {
  display: none;
}

.step-indicator {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
  display: block;
}

.finder-question {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: var(--primary);
}

.options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.option-card {
  position: relative;
  background-color: var(--bg-main);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.option-card:hover {
  border-color: var(--accent-light);
  background-color: #FFFFFF;
  transform: translateY(-2px);
}

.option-card.selected {
  border-color: var(--accent);
  background-color: #FFFFFF;
  box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.12);
}

.option-radio {
  margin-top: 0.2rem;
  accent-color: var(--accent);
  width: 18px;
  height: 18px;
}

.option-text h4 {
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

.option-text p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.recommendation-result {
  background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
  color: #FFFFFF;
  border-radius: var(--radius-md);
  padding: 2.5rem;
  margin-top: 1rem;
  box-shadow: var(--shadow-md);
  animation: fadeIn 0.4s ease-out forwards;
}

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

.recommendation-result h3 {
  color: #FFFFFF;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.recommendation-result p {
  color: #94A3B8;
  margin-bottom: 1.5rem;
}

.recommendation-cards-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.recommendation-card-inner {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.rec-practitioner-info h4 {
  color: #FFFFFF;
  font-size: 1.2rem;
}

.rec-practitioner-info p {
  color: #CBD5E1;
  margin-bottom: 0;
  font-size: 0.9rem;
}

/* Affiliate Inquiry Section */
.inquiry-section {
  padding: 6rem 0;
  text-align: center;
}

.inquiry-box {
  background-color: var(--primary);
  color: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 4rem 2rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-hover);
}

.inquiry-box::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.inquiry-title {
  color: #FFFFFF;
  font-size: 2.25rem;
  margin-bottom: 1rem;
}

.inquiry-desc {
  color: #94A3B8;
  max-width: 600px;
  margin: 0 auto 2.5rem;
  font-size: 1.1rem;
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(6px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 1rem;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 580px;
  padding: 2.5rem;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-hover);
}

.modal-overlay.active .modal-container {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  transition: var(--transition-smooth);
}

.modal-close:hover {
  color: var(--primary);
  background-color: var(--bg-main);
}

.modal-title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.modal-sub {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

/* Form Styling */
.form-group {
  margin-bottom: 1.25rem;
  text-align: left;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.4rem;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-dark);
  background-color: var(--bg-main);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  transition: var(--transition-smooth);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--accent);
  background-color: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

.form-success {
  text-align: center;
  padding: 2rem 1rem;
}

.success-icon {
  width: 60px;
  height: 60px;
  background-color: var(--accent-soft);
  color: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 1rem;
}

/* Footer Section */
.site-footer {
  background-color: var(--primary);
  color: #94A3B8;
  padding: 4rem 0 2rem;
  font-size: 0.9rem;
  border-top: 1px solid var(--primary-light);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand {
  max-width: 320px;
}

.footer-logo {
  height: 56px;
  width: auto;
  margin-bottom: 1rem;
  background-color: #FFFFFF;
  padding: 6px;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  display: inline-block;
  object-fit: contain;
}

.footer-links-group {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
}

.footer-col h5 {
  color: #FFFFFF;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.6rem;
}

.footer-col a {
  color: #94A3B8;
  transition: var(--transition-smooth);
}

.footer-col a:hover {
  color: var(--accent-light);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 2rem;
  font-size: 0.85rem;
}

.footer-disclaimer {
  max-width: 700px;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background-color: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* Responsive Media Queries */
@media (max-width: 900px) {
  .hero-title {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: #FFFFFF;
    flex-direction: column;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border-bottom: 1px solid var(--border-light);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .hero-title {
    font-size: 2.1rem;
  }

  .hero-section {
    padding: 4rem 0 3rem;
  }

  .finder-box {
    padding: 1.75rem;
  }

  .recommendation-card-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .inquiry-box {
    padding: 2.5rem 1.5rem;
  }
}
