/* ============================================
   Rudranshi Astrology - Clean CSS
   ============================================ */

:root {
  --orange: #f39c12;
  --orange-bright: #ff9900;
  --orange-light: #fff7ec;
  --red: #e74c3c;
  --white: #ffffff;
  --grey-bg: #f9f9f9;
  --heading: #1a1a1a;
  --charcoal: #222222;
  --body: #555555;
  --body-light: #666666;
  --border: #ececec;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.07);
  --radius: 16px;
  --radius-sm: 12px;
  --transition: all 0.25s ease;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Roboto', 'Montserrat', system-ui, -apple-system, sans-serif;
  color: var(--body);
  background: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', 'Montserrat', sans-serif;
  color: var(--heading);
  line-height: 1.2;
}

a {
  color: inherit;
  text-decoration: none;
}

img, video, iframe {
  max-width: 100%;
  display: block;
}

/* Utility */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.text-center { text-align: center; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.grid { display: grid; }
.hidden { display: none; }

/* Hide on small screens */
.hidden-sm { display: none; }
@media (min-width: 640px) {
  .hidden-sm { display: inline-flex; }
}

/* Card padding utilities */
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }

@media (max-width: 640px) {
  .p-6 { padding: 1.25rem; }
  .p-8 { padding: 1.5rem; }
}

/* Margin utilities */
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }

/* Width utilities */
.w-full { width: 100%; }

/* Flex wrap */
.flex-wrap { flex-wrap: wrap; }

/* Overflow */
.overflow-hidden { overflow: hidden; }

/* Shrink */
.flex-shrink-0 { flex-shrink: 0; }

/* Font utilities */
.font-bold { font-weight: 700; }
.text-3xl { font-size: 1.875rem; }

/* Space-y utility */
.space-y-4 > * + * { margin-top: 1rem; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn-primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 6px 18px rgba(243, 156, 18, 0.28);
}

.btn-primary:hover {
  background: var(--orange-bright);
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(255, 153, 0, 0.4);
}

.btn-secondary {
  color: #fff;
  background: transparent;
  border: 1.6px solid rgba(255, 255, 255, 0.6);
}

.btn-secondary:hover {
  color: var(--heading);
  background: #fff;
  border-color: #fff;
  transform: translateY(-2px);
}

.btn-outline {
  color: var(--heading);
  border: 1.5px solid var(--border);
  background: transparent;
}

.btn-outline:hover {
  border-color: var(--orange);
  color: var(--orange);
  background: var(--orange-light);
}

/* Navigation */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  min-width: 0;
  max-width: calc(100% - 4rem);
}

.brand > div {
  min-width: 0;
  overflow: hidden;
}

.brand-logo {
  width: 3rem;
  height: 3rem;
  flex-shrink: 0;
}

.brand-name {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 0.9rem;
  background: linear-gradient(120deg, #e67e22, #f39c12 40%, #ffc04d);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-sub {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.55rem;
  letter-spacing: 0.06em;
  color: #b9601a;
  text-transform: uppercase;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--charcoal);
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--orange);
}

.menu-toggle {
  display: block;
  background: none;
  border: none;
  color: var(--charcoal);
  cursor: pointer;
  padding: 0.5rem;
  flex-shrink: 0;
}

.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 1rem;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.mobile-menu.open {
  display: flex;
}

/* Section common */
.section {
  padding: 5rem 1rem;
}

@media (max-width: 640px) {
  .section {
    padding: 3rem 1rem;
  }
}

.section-grey {
  background: var(--grey-bg);
}

.section-dark {
  background: #1a1a1a;
  color: #fff;
}

.section-dark h2 {
  color: #fff;
}

.section-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
}

.section-title {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 700;
  margin-top: 0.5rem;
}

.divider {
  width: 70px;
  height: 3px;
  background: linear-gradient(90deg, var(--orange), var(--orange-bright));
  border-radius: 3px;
  margin: 1rem auto 0;
}

.text-orange-gradient {
  background: linear-gradient(120deg, #ff9900, #f39c12 60%, #e67e22);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Hero */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
}

@media (max-width: 640px) {
  .hero {
    min-height: 78vh;
  }
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(6, 9, 20, 0.62), rgba(8, 11, 24, 0.42) 45%, rgba(6, 9, 20, 0.72));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 6rem 1rem;
}

@media (max-width: 640px) {
  .hero-content {
    padding: 4rem 1rem;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(243, 156, 18, 0.15);
  color: #ffc04d;
  border: 1px solid rgba(243, 156, 18, 0.4);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(2rem, 6vw, 3.75rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: rgba(255, 255, 255, 0.82);
  max-width: 700px;
  margin: 0 auto 2rem;
}

.hero-subtitle strong {
  color: #ffc04d;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
}

@media (max-width: 640px) {
  .hero-actions .btn {
    width: 100%;
  }
}

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 3rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 640px) {
  .hero-highlights {
    gap: 1rem;
    margin-top: 2rem;
    font-size: 0.85rem;
  }
}

/* Cards */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
}

.card:hover {
  border-color: rgba(243, 156, 18, 0.5);
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.icon-badge {
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, #fff3e0, #ffe2b8);
  color: var(--orange);
}

/* Forms */
.form-label {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 0.4rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  color: var(--charcoal);
  background: #fff;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

@media (min-width: 641px) {
  .form-input,
  .form-select,
  .form-textarea {
    font-size: 0.95rem;
  }
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(243, 156, 18, 0.15);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #aaa;
}

.form-radio-group {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.form-radio-label {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--charcoal);
  transition: var(--transition);
  min-width: 80px;
}

@media (max-width: 480px) {
  .form-radio-label {
    flex: 1 1 100%;
  }
}

.form-radio-label:has(input:checked) {
  border-color: var(--orange);
  background: var(--orange-light);
}

.form-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: var(--transition);
}

.form-option:has(input:checked) {
  border-color: var(--orange);
  background: var(--orange-light);
}

.step-num {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--orange);
  color: #fff;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
}

/* Booking form */
.booking-form {
  max-width: 700px;
  margin: 0 auto;
  background: #fff;
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

@media (max-width: 640px) {
  .booking-form {
    padding: 1.25rem;
  }
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.form-fieldset {
  border: none;
  margin-bottom: 1.5rem;
}

.form-legend {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--heading);
  margin-bottom: 0.75rem;
}

/* Horoscope */
.zodiac-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.zodiac-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}

.zodiac-card:hover,
.zodiac-card.active {
  border-color: var(--orange);
  background: var(--orange-light);
  box-shadow: 0 10px 26px rgba(243, 156, 18, 0.18);
}

.zodiac-card .symbol {
  font-size: 2rem;
  color: var(--orange);
}

.zodiac-card .name {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
}

.zodiac-card .hindi {
  font-size: 0.75rem;
  color: var(--body-light);
}

.horoscope-result {
  margin-top: 1.5rem;
  padding: 1.5rem;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--border);
}

/* Stats */
.stats-bar {
  background: linear-gradient(120deg, #f39c12, #ff9900);
  padding: 3rem 1rem;
  color: #fff;
}

.stat-number {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
}

/* Testimonials */
.quote-mark {
  color: var(--orange);
  opacity: 0.35;
  width: 36px;
  height: 36px;
}

.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff3e0;
  color: var(--orange);
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
}

/* Star rating */
.star-btn {
  background: none;
  border: none;
  color: #d9d9d9;
  cursor: pointer;
  padding: 2px;
  transition: color 0.15s, transform 0.15s;
}

.star-btn.active {
  color: var(--orange);
}

.star-btn:hover {
  transform: scale(1.15);
}

/* Footer */
.footer {
  background: #14100a;
  color: rgba(255, 255, 255, 0.7);
  padding: 3.5rem 1rem;
}

@media (max-width: 640px) {
  .footer {
    padding: 2.5rem 1rem;
  }
}

.footer a {
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.2s;
}

.footer a:hover {
  color: #fff;
}

.footer h4 {
  color: #fff;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 3rem;
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.45);
}

.social-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  transition: background 0.2s;
}

.social-icon:hover {
  background: var(--orange);
}

/* Editable mode */
.editable-active [data-editable]:hover {
  outline: 2px dashed var(--orange);
  outline-offset: 4px;
  cursor: text;
}

.editable-active [data-editable]:focus {
  outline: 2px solid var(--orange);
  background: rgba(243, 156, 18, 0.05);
}

.edit-toolbar {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  display: flex;
  gap: 0.5rem;
  z-index: 9999;
}

.edit-toolbar button {
  padding: 0.6rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  border: none;
}

/* Toast */
.toast {
  position: fixed;
  top: 1rem;
  right: 1rem;
  padding: 1rem 1.25rem;
  border-radius: 10px;
  color: #fff;
  font-weight: 500;
  z-index: 10000;
  transform: translateX(150%);
  transition: transform 0.3s ease;
  max-width: 320px;
}

.toast.show {
  transform: translateX(0);
}

.toast.success { background: #27ae60; }
.toast.error { background: #e74c3c; }

/* Loader */
.loader {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: none;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Responsive */
@media (min-width: 640px) {
  .brand-logo { width: 5rem; height: 5rem; }
  .hero-actions { flex-direction: row; }
  .form-grid { grid-template-columns: repeat(2, 1fr); }
  .zodiac-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 768px) {
  .navbar .container { gap: 1rem; padding-top: 0.75rem; padding-bottom: 0.75rem; }
  .brand { gap: 0.75rem; }
  .brand-logo { width: 6rem; height: 6rem; }
  .brand-name { font-size: 1.05rem; }
  .brand-sub { font-size: 0.65rem; }
  .nav-links { display: flex; }
  .menu-toggle { display: none; }
  .mobile-menu { display: none !important; }
  .zodiac-grid { grid-template-columns: repeat(6, 1fr); }
}

@media (max-width: 768px) {
  .section { padding: 3.5rem 1rem; }
}

@media (max-width: 640px) {
  .section { padding: 3rem 1rem; }
  
  h1 { font-size: clamp(1.9rem, 8vw, 2.6rem); }
  h2 { font-size: clamp(1.5rem, 6vw, 2rem); }
  
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  
  .hero-highlights {
    gap: 1rem;
    margin-top: 2rem;
    font-size: 0.85rem;
  }
  
  .booking-form { padding: 1.25rem; }
  
  .card { border-radius: 14px; }
  
  .icon-badge { width: 50px; height: 50px; }
  
  .footer { padding: 2.5rem 1rem; }
}

@media (max-width: 480px) {
  .brand-logo { width: 2.75rem; height: 2.75rem; }
  .brand-name { font-size: 0.8rem; }
  .brand-sub { font-size: 0.5rem; }
  
  h1 { font-size: clamp(1.7rem, 8.5vw, 2.3rem); }
  
  .hero-content { padding: 3rem 1rem; }
  
  .section-title { font-size: clamp(1.6rem, 5.5vw, 2.2rem); }
}
