/* AstroSadhna — Premium layer */
:root {
  --glass: rgba(255, 255, 255, 0.55);
  --glass-border: rgba(255, 255, 255, 0.45);
  --glass-shadow: 0 20px 50px rgba(14, 7, 8, 0.1);
  --card-radius: 24px;
  --surface: #f7f3ef;
  --surface-2: #fff;
  --bg: #f3eee8;
  --header-bg: rgba(14, 7, 8, 0.82);
  --blob-a: rgba(232, 93, 28, 0.18);
  --blob-b: rgba(176, 31, 31, 0.14);
}

html[data-theme="light"] {
  --sand: #f3eee8;
  --sand-2: #e8e0d6;
  --text: #1a1012;
  --text-soft: #5a4548;
  --surface: #fff;
  --bg: #f3eee8;
  --header-bg: rgba(255, 255, 255, 0.78);
  --ink: #0e0708;
  --line: rgba(176, 31, 31, 0.12);
}

html[data-theme="light"] body { background: var(--bg); color: var(--text); }
html[data-theme="light"] .site-header {
  background: var(--header-bg);
  border-bottom-color: rgba(176, 31, 31, 0.12);
  backdrop-filter: blur(18px) saturate(1.2);
}
html[data-theme="light"] .brand-text strong {
  background: linear-gradient(180deg, #ff7a2f, #b01f1f);
  -webkit-background-clip: text;
  background-clip: text;
}
html[data-theme="light"] .brand-text span { color: #8a5a3a; }
html[data-theme="light"] .nav-drop-btn { color: #4a3538; }
html[data-theme="light"] .nav-drop-btn:hover,
html[data-theme="light"] .nav-drop.open .nav-drop-btn,
html[data-theme="light"] .nav-drop-btn.active { color: #b01f1f; }
html[data-theme="light"] .nav-drop-menu {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(176, 31, 31, 0.12);
  box-shadow: 0 18px 40px rgba(40, 20, 20, 0.12);
}
html[data-theme="light"] .nav-drop-menu a { color: #4a3538; }
html[data-theme="light"] .nav-drop-menu a:hover,
html[data-theme="light"] .nav-drop-menu a.active {
  background: rgba(176, 31, 31, 0.08);
  color: #b01f1f;
}
html[data-theme="light"] .nav-toggle { color: #1a1012; border-color: rgba(0,0,0,.12); }
html[data-theme="light"] .section.dark,
html[data-theme="light"] .hero,
html[data-theme="light"] .cta-band,
html[data-theme="light"] .trust,
html[data-theme="light"] .marquee,
html[data-theme="light"] .site-footer {
  /* keep dark bands for contrast */
}

html[data-theme="dark"] {
  --sand: #12090b;
  --sand-2: #1c1013;
  --text: #f7efe8;
  --text-soft: #c9b4ab;
  --surface: rgba(255,255,255,0.04);
  --bg: #0c0608;
  --glass: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] body { background: var(--bg); color: var(--text); }
html[data-theme="dark"] .section { background: transparent; }
html[data-theme="dark"] .section-head h2 { color: var(--text); }
html[data-theme="dark"] .service-item,
html[data-theme="dark"] .blog-card,
html[data-theme="dark"] .process-step,
html[data-theme="dark"] .form,
html[data-theme="dark"] .faq-item,
html[data-theme="dark"] .price-card {
  background: var(--glass);
  border-color: var(--glass-border);
  color: var(--text);
}
html[data-theme="dark"] .service-item h3,
html[data-theme="dark"] .blog-card h3,
html[data-theme="dark"] .process-step h3 { color: #fff; }
html[data-theme="dark"] .service-item p,
html[data-theme="dark"] .blog-card p,
html[data-theme="dark"] .process-step p,
html[data-theme="dark"] .lead { color: var(--text-soft); }

/* Scroll progress */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  z-index: 200;
  background: linear-gradient(90deg, #ff7a2f, #b01f1f, #d4a84b);
  box-shadow: 0 0 12px rgba(232, 93, 28, 0.55);
  transition: width 0.05s linear;
}

/* Logo loader */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: #0c0608;
  transition: opacity 0.55s ease, visibility 0.55s;
}
.page-loader.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.loader-inner { text-align: center; width: min(280px, 70vw); }
.loader-inner img {
  width: 96px;
  height: 96px;
  margin: 0 auto 1.25rem;
  animation: loaderPulse 1.4s ease-in-out infinite;
  filter: drop-shadow(0 0 24px rgba(232, 93, 28, 0.55));
}
.loader-bar {
  height: 3px;
  border-radius: 99px;
  background: rgba(255,255,255,0.1);
  overflow: hidden;
}
.loader-bar span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #ff7a2f, #d4a84b);
  animation: loadBar 1.6s var(--ease) forwards;
}
.loader-text {
  margin-top: 0.85rem;
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #c9b4ab;
}
@keyframes loaderPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}
@keyframes loadBar {
  to { width: 100%; }
}

/* Custom cursor */
@media (hover: hover) and (pointer: fine) {
  body.has-cursor { cursor: none; }
  body.has-cursor a,
  body.has-cursor button,
  body.has-cursor .chip,
  body.has-cursor .faq-q { cursor: none; }
  .cursor-dot,
  .cursor-ring {
    position: fixed;
    top: 0; left: 0;
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
  }
  .cursor-dot {
    width: 6px; height: 6px;
    background: #ff7a2f;
    box-shadow: 0 0 12px rgba(255, 122, 47, 0.8);
  }
  .cursor-ring {
    width: 36px; height: 36px;
    border: 1.5px solid rgba(255, 122, 47, 0.55);
    transition: width 0.25s, height 0.25s, background 0.25s, border-color 0.25s;
  }
  .cursor-ring.hover {
    width: 54px; height: 54px;
    background: rgba(255, 122, 47, 0.1);
    border-color: #ff7a2f;
  }
}

/* Theme toggle */
.theme-toggle {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(240, 217, 160, 0.25);
  background: rgba(255,255,255,0.06);
  color: #f0d9a0;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: 0.3s var(--ease);
  flex-shrink: 0;
  margin-left: 0.35rem;
}
@media (max-width: 919px) {
  .theme-toggle { order: 2; margin-left: auto; margin-right: 0.35rem; }
  .nav-toggle { order: 3; }
  .brand { order: 1; }
  .nav-inner { flex-wrap: wrap; }
}
html[data-theme="light"] .theme-toggle {
  border-color: rgba(176, 31, 31, 0.2);
  background: rgba(176, 31, 31, 0.06);
  color: #b01f1f;
}
.theme-toggle:hover { transform: scale(1.08); }
.theme-toggle svg { width: 18px; height: 18px; }

/* Glass cards */
.glass-card {
  background: var(--glass);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border: 1px solid var(--glass-border);
  border-radius: var(--card-radius);
  box-shadow: var(--glass-shadow);
  padding: 1.75rem 1.5rem;
  transition: transform 0.4s var(--ease), box-shadow 0.4s, border-color 0.3s;
  position: relative;
  overflow: hidden;
}
.glass-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255,122,47,0.45), transparent 40%, rgba(212,168,75,0.35));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.55;
  pointer-events: none;
}
.glass-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 28px 60px rgba(176, 31, 31, 0.16);
}
.glass-card .icon {
  transition: transform 0.45s var(--ease);
}
.glass-card:hover .icon { transform: scale(1.12) rotate(-6deg); }

/* Soft upgrade to existing service items */
.service-item,
.blog-card,
.process-step,
.quote,
.price-card,
.faq-item {
  border-radius: var(--card-radius) !important;
  transition: transform 0.4s var(--ease), box-shadow 0.4s, border-color 0.3s;
}
.service-item {
  background: var(--glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border) !important;
  border-bottom: 1px solid var(--glass-border) !important;
  padding: 1.75rem 1.5rem !important;
  box-shadow: var(--glass-shadow);
}
.service-item:hover {
  transform: translateY(-8px);
  border-color: rgba(232, 93, 28, 0.45) !important;
  box-shadow: 0 24px 50px rgba(176, 31, 31, 0.14);
}

/* Button ripple */
.btn {
  position: relative;
  overflow: hidden;
  border-radius: 999px !important;
}
.btn .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  transform: scale(0);
  animation: ripple 0.6s linear;
  pointer-events: none;
}
@keyframes ripple {
  to { transform: scale(4); opacity: 0; }
}
.btn-primary {
  background: linear-gradient(135deg, #ff8a3d, #c41e1e 70%) !important;
  box-shadow: 0 14px 34px rgba(176, 31, 31, 0.35), inset 0 1px 0 rgba(255,255,255,0.25) !important;
}
.btn-primary:hover {
  box-shadow: 0 18px 44px rgba(176, 31, 31, 0.5), 0 0 24px rgba(255, 122, 47, 0.35) !important;
}

/* Floating dock */
.float-dock {
  position: fixed;
  right: 1.1rem;
  bottom: 1.2rem;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  align-items: center;
}
.float-dock a,
.float-dock button {
  width: 50px; height: 50px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: none;
  color: #fff;
  box-shadow: 0 10px 28px rgba(0,0,0,0.25);
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.float-dock a:hover,
.float-dock button:hover { transform: translateY(-3px) scale(1.06); }
.float-dock .fd-wa { background: #1faa53; animation: pulseRing 2.4s infinite; }
.float-dock .fd-call { background: linear-gradient(135deg, #ff7a2f, #b01f1f); }
.float-dock .fd-mail { background: #2a1418; border: 1px solid rgba(240,217,160,0.25); }
.float-dock .fd-top {
  background: rgba(14,7,8,0.85);
  border: 1px solid rgba(240,217,160,0.25);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
}
.float-dock .fd-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}
.float-dock svg { width: 22px; height: 22px; fill: currentColor; }
.float-wa { display: none !important; }

/* Hero premium extras */
.hero-shapes {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero-shapes span {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  pointer-events: none;
  animation: blobFloat 12s ease-in-out infinite;
}
.hero-shapes .s1 {
  width: 300px; height: 300px;
  background: var(--blob-a);
  top: 8%; left: 4%;
  opacity: 0.9;
}
.hero-shapes .s2 {
  width: 240px; height: 240px;
  background: var(--blob-b);
  bottom: 10%; right: 6%;
  animation-delay: -4s;
}
.hero-shapes .s3 {
  width: 180px; height: 180px;
  background: rgba(212, 168, 75, 0.18);
  top: 38%; right: 28%;
  animation-delay: -7s;
}
@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(20px, -24px) scale(1.08); }
}
.hero-enter {
  opacity: 0;
  transform: translateY(22px);
}
.hero-title-anim .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(30px);
}
.hero-video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.22;
  pointer-events: none;
}

/* Pricing */
.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}
.price-card {
  background: var(--glass);
  backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border);
  padding: 2rem 1.6rem;
  position: relative;
}
.price-card.featured {
  background: linear-gradient(160deg, rgba(232,93,28,0.16), rgba(14,7,8,0.92));
  border-color: rgba(255,122,47,0.45);
  color: #f7efe8;
}
.price-card .badge {
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #ff7a2f, #b01f1f);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.35rem 0.9rem;
  border-radius: 99px;
}
.price-card h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  margin-bottom: 0.35rem;
}
.price-card .tag {
  color: var(--ember);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.price-card.featured .tag { color: #f0d9a0; }
.price-card ul { margin: 1rem 0 1.5rem; }
.price-card li {
  padding: 0.4rem 0 0.4rem 1.2rem;
  position: relative;
  font-size: 0.92rem;
  color: var(--text-soft);
}
.price-card.featured li { color: #c9b4ab; }
.price-card li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.75rem;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ember);
}

/* FAQ */
.faq-list { display: grid; gap: 0.75rem; max-width: 820px; margin: 0 auto; }
.faq-item {
  background: var(--glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  overflow: hidden;
}
.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  background: transparent;
  border: none;
  text-align: left;
  font-weight: 700;
  font-size: 1.02rem;
  color: inherit;
  cursor: pointer;
}
.faq-q span.plus {
  font-size: 1.4rem;
  color: var(--ember);
  line-height: 1;
  transition: transform 0.3s;
}
.faq-item.open .faq-q span.plus { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease), padding 0.3s;
  padding: 0 1.25rem;
  color: var(--text-soft);
  font-size: 0.95rem;
}
.faq-item.open .faq-a {
  max-height: 220px;
  padding-bottom: 1.15rem;
}

/* Testimonials slider */
.t-slider {
  position: relative;
  overflow: hidden;
}
.t-track {
  display: flex;
  transition: transform 0.6s var(--ease);
}
.t-slide {
  min-width: 100%;
  padding: 0.25rem;
}
.t-card {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  padding: 2.5rem 1.75rem;
  background: var(--glass);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--card-radius);
}
.t-stars { color: #f0d9a0; letter-spacing: 0.15em; margin-bottom: 1rem; }
.t-card p {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.5vw, 1.75rem);
  line-height: 1.4;
  margin-bottom: 1.5rem;
}
.t-avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  margin: 0 auto 0.65rem;
  background: linear-gradient(135deg, #ff7a2f, #b01f1f);
  display: grid;
  place-items: center;
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.3rem;
}
.t-dots {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 1.25rem;
}
.t-dots button {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(176, 31, 31, 0.25);
  cursor: pointer;
  padding: 0;
}
.t-dots button.active { background: #e85d1c; width: 22px; border-radius: 99px; }

/* Newsletter */
.newsletter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}
.newsletter input {
  flex: 1 1 180px;
  padding: 0.85rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: rgba(255,255,255,0.06);
  color: inherit;
  outline: none;
}
.newsletter input:focus { border-color: #e85d1c; }

/* Social icons animated */
.social-row { display: flex; gap: 0.65rem; margin-top: 1rem; }
.social-row a {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(240,217,160,0.25);
  transition: 0.35s var(--ease);
  color: #f0d9a0;
}
.social-row a:hover {
  background: linear-gradient(135deg, #ff7a2f, #b01f1f);
  border-color: transparent;
  color: #fff;
  transform: translateY(-4px);
}
.social-row svg { width: 18px; height: 18px; fill: currentColor; }

/* Skeleton */
.skeleton {
  background: linear-gradient(90deg, rgba(255,255,255,0.06), rgba(255,255,255,0.14), rgba(255,255,255,0.06));
  background-size: 200% 100%;
  animation: shimmer 1.2s infinite;
  border-radius: 12px;
}
@keyframes shimmer {
  to { background-position: -200% 0; }
}

/* Magnetic hint */
.magnetic { display: inline-flex; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .page-loader, .cursor-dot, .cursor-ring, .hero-shapes span, .hero-ring { animation: none !important; }
  .hero-enter { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
  body.has-cursor { cursor: auto; }
  .cursor-dot, .cursor-ring { display: none !important; }
}

/* Responsive polish */
@media (max-width: 700px) {
  .float-dock { right: 0.75rem; bottom: 0.85rem; }
  .float-dock a, .float-dock button { width: 46px; height: 46px; }
  .glass-card { border-radius: 20px; }
  .hero-logo-wrap { width: min(100%, 400px); }
}
@media (min-width: 1600px) {
  :root { --max: 1320px; }
  .hero-split h1 { font-size: 3.85rem; }
}
@media (min-width: 2200px) {
  :root { --max: 1480px; }
}