/*
 * FILE: public/assets/css/style.css
 * Content derived entirely from the <style> block of index.html.old
 * This file serves as the main frontend stylesheet for the dynamic CMS.
 */

/* ========== CSS VARIABLES ========== */
:root {
  /* Colors */
  --saffron: #FF8C00;
  --saffron-2: #FF9A1C;
  --gold: #FFD700;
  --gold-deep: #C99700;
  --white: #fff;
  --muted: #6B6B6B;
  --ink: #2B2B2B;
  --shadow: rgba(0,0,0,.08);
  
  /* Layout */
  --radius: 12px;
  --container: 1200px;
  
  /* Effects */
  --elev-1: 0 6px 18px rgba(0,0,0,.08);
  --elev-2: 0 10px 24px rgba(0,0,0,.12);
  --glow: 0 0 0 1px rgba(255,215,0,.42), 0 14px 28px rgba(255,140,0,.22);
}

/* ========== BASE & RESET ========== */
*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

html:focus-within {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  background: #fffdf7;
  color: #2B2B2B;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, textarea {
  font: inherit;
}

/* ========== UTILITY CLASSES ========== */
.container {
  width: 92%;
  max-width: var(--container);
  margin-inline: auto;
}

.visually-hidden {
  position: absolute !important;
  clip: rect(1px, 1px, 1px, 1px);
  padding: 0;
  border: 0;
  height: 1px;
  width: 1px;
  overflow: hidden;
  white-space: nowrap;
}

.text-center {
  text-align: center;
}

.muted {
  color: var(--muted);
}

/* ========== LAYOUT COMPONENTS ========== */

/* TOP BAR */
.top-bar {
  background: linear-gradient(90deg, var(--saffron), var(--gold));
  color: #fff;
  padding: .55rem 0;
  border-bottom: 1px solid var(--gold-deep);
  font-size: .95rem;
}

.top-bar .inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.top-bar a {
  color: #fff;
  text-decoration: underline;
}

.social a {
  margin-left: .75rem;
  font-weight: 600;
  text-decoration: none;
}

/* HEADER & NAVIGATION */
header.main-header {
  background: #fff;
  padding: .9rem 0;
  border-bottom: 3px solid var(--gold);
  box-shadow: 0 5px 18px var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo img {
  height: 64px;
  width: auto;
}

nav.main-nav ul {
  display: flex;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav.main-nav a {
  font-weight: 600;
  padding: .5rem .25rem;
  position: relative;
}

nav.main-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 0;
  background: var(--gold);
  transition: width .25s;
}

nav.main-nav a:hover::after,
nav.main-nav a:focus-visible::after {
  width: 100%;
}

.cta-wrap {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.whatsapp-btn {
  background: #ffffff;
  padding: .65rem 1rem;
  border-radius: 30px;
  color: #fff;
  font-weight: 700;
  border: 2px solid var(--gold);
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  box-shadow: 0 8px 20px var(--shadow);
}

.hamburger {
  display: none;
  border: 2px solid var(--gold);
  background: transparent;
  border-radius: 10px;
  padding: .45rem .6rem;
  font-size: 1.2rem;
}

/* DROPDOWN MENUS */
nav.main-nav li.has-children {
  position: relative;
  padding: 0;
}

nav.main-nav ul.submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  background: var(--white);
  list-style: none;
  padding: 0;
  margin: 0;
  border: 1px solid var(--gold-deep);
  box-shadow: 0 8px 16px rgba(0,0,0,.2);
  z-index: 1001;
}

nav.main-nav ul.submenu li {
  display: block;
  margin: 0;
  padding: 0;
  white-space: nowrap;
  border-bottom: 1px solid #eee;
}

nav.main-nav ul.submenu li:last-child {
  border-bottom: none;
}

nav.main-nav li.has-children:hover > ul.submenu,
nav.main-nav li.has-children:focus-within > ul.submenu {
  display: block;
}

nav.main-nav ul.submenu a {
  color: var(--ink);
  padding: 10px 15px;
  font-weight: 500;
  display: block;
  transition: background-color 0.2s;
}

nav.main-nav ul.submenu a::after {
  display: none;
}

nav.main-nav ul.submenu a:hover,
nav.main-nav ul.submenu a:focus-visible {
  background: #fff3cd;
}

/* ========== HERO SECTION ========== */
.hero-slider {
  height: 82vh;
  min-height: 520px;
  position: relative;
  overflow: hidden;
  border-bottom: 12px solid rgba(0,0,0,.03);
}

.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  opacity: 0;
  transition: opacity 1s ease;
}

.slide.active {
  opacity: 1;
}

.hero-content {
  background: linear-gradient(135deg, rgba(255,255,255,.14), rgba(255,255,255,.06));
  backdrop-filter: blur(10px);
  padding: 36px;
  border-radius: 14px;
  border: 2px solid rgba(255,215,0,.16);
  max-width: 820px;
  text-align: center;
  position: relative;
  z-index: 1;
  box-shadow: 0 8px 30px rgba(0,0,0,.14);
}

.hero-content h1 {
  font-size: clamp(1.6rem, 3vw, 3rem);
  margin-bottom: 12px;
  background: linear-gradient(90deg, var(--gold), var(--saffron));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1px 0 rgba(0,0,0,.15));
}

.hero-content p {
  color: #fff;
  margin-bottom: 18px;
  text-shadow: 0 1px 0 rgba(0,0,0,.35);
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Hero Ambience Layers */
.hero-slider::before {
  content: "";
  position: absolute;
  inset: -20% -10% -10% -10%;
  z-index: 0;
  background:
    radial-gradient(900px 480px at 20% 20%, rgba(255,215,0,.20), transparent 60%),
    radial-gradient(700px 380px at 80% 30%, rgba(255,140,0,.18), transparent 60%);
  pointer-events: none;
}

.hero-slider::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'>\
<filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='1' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/><feComponentTransfer><feFuncA type='table' tableValues='0 0 .06 .12'/></feComponentTransfer></filter>\
<rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: .35;
  mix-blend-mode: soft-light;
  pointer-events: none;
}

/* Hero Slider Controls */
.slider-controls {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 10px;
}

.slider-btn {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: white;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
  transition: background 0.3s, color 0.3s;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 6;
}

.slider-prev {
  left: 20px;
}

.slider-next {
  right: 20px;
}

.slider-btn:hover {
  background: rgba(255, 255, 255, 0.8);
  color: var(--saffron);
}

.slider-dots-container {
  display: flex;
  gap: 8px;
  position: relative;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(0, 0, 0, 0.2);
  transition: background 0.3s, transform 0.3s;
  cursor: pointer;
}

.slider-dot.active {
  background: var(--gold);
  transform: scale(1.2);
}

/* ========== BUTTONS ========== */
.btn-primary {
  background: linear-gradient(90deg, var(--gold), var(--saffron));
  color: #fff;
  padding: 12px 22px;
  border-radius: 30px;
  font-weight: 700;
  box-shadow: var(--elev-1);
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  isolation: isolate;
  transition: transform .2s ease, box-shadow .2s ease;
}

.btn-secondary {
  background: transparent;
  border: 2px solid rgba(255,255,255,.45);
  color: #fff;
  padding: 10px 18px;
  border-radius: 30px;
  transition: transform .2s ease, box-shadow .2s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--elev-2), 0 0 0 2px rgba(255,215,0,.35) inset;
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 2px rgba(255,255,255,.35) inset;
}

/* ========== SECTIONS ========== */
section {
  scroll-margin-top: 90px;
}

.section {
  padding: 72px 0;
  position: relative;
}

.section.alt {
  background: #f9f7f2;
}

.section-title {
  margin: 0 auto 28px;
  text-align: center;
  font-size: 1.95rem;
  font-weight: 700;
  letter-spacing: .2px;
  background: linear-gradient(90deg, var(--saffron), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.25;
  padding-bottom: 12px;
  position: relative;
  filter: drop-shadow(0 1px 0 rgba(0,0,0,.06));
  z-index: 2;
}

.section-title::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 92px;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--gold), var(--saffron));
  box-shadow: 0 1px 0 rgba(0,0,0,.06);
}

.with-divider::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 28px;
  background: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120' preserveAspectRatio='none'>\
<path fill='%23FFD700' fill-opacity='.16' d='M0,96L60,90.7C120,85,240,75,360,80C480,85,600,107,720,112C840,117,960,107,1080,106.7C1200,107,1320,117,1380,122.7L1440,128L1440,0L0,0Z'></path>\
</svg>") center/cover no-repeat;
  pointer-events: none;
}

/* ========== CARDS & GRIDS ========== */
.card {
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(255,215,0,.06), transparent 40%),
    #fff;
  padding: 22px;
  border-radius: var(--radius);
  border: 2px solid var(--gold);
  box-shadow: var(--elev-1);
  text-align: center;
}

.card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 12px;
}

.card h3 {
  margin-bottom: 8px;
}

.card p {
  color: var(--muted);
}

.card.hoverable {
  transition: transform .35s, background .35s, color .35s, box-shadow .35s;
}

.card.hoverable:hover {
  transform: translateY(-10px);
  background: linear-gradient(135deg, var(--saffron), var(--gold));
  color: #fff;
  box-shadow: var(--elev-2), var(--glow);
}

.card.hoverable:hover p {
  color: #fff;
}

/* Service Grid */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 26px;
}

/* Advantages Section */
.advantages {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: stretch;
}

.adv-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.adv-cards .card {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cta-newsletter {
  background: linear-gradient(100deg, var(--saffron), var(--gold));
  padding: 28px;
  border-radius: var(--radius);
  color: #fff;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  box-shadow: var(--elev-1);
}

.newsletter-form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.newsletter-form input {
  flex: 1;
  min-width: 220px;
  padding: 10px;
  border-radius: 8px;
  border: none;
}

.newsletter-form button {
  padding: 10px 14px;
  border-radius: 8px;
  border: none;
  background: #fff;
  font-weight: 700;
  cursor: pointer;
}

.cta-newsletter .btn-primary,
.cta-newsletter .btn-secondary {
  width: 100%;
  justify-content: center;
}

/* Horoscope Section */
.horoscope-section {
  padding: 70px 0;
  background: linear-gradient(110deg, var(--saffron-2), var(--gold));
  color: #fff;
  position: relative;
}

.horoscope-section .container {
  max-width: 1100px;
  position: relative;
  z-index: 2;
}

.horoscope-section .section-title {
  -webkit-text-fill-color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,.18);
}

.horoscope-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
  margin-inline: auto;
}

.horoscope-item {
  background: #fff;
  border-radius: 14px;
  padding: 16px;
  border: 2px solid var(--gold);
  text-align: center;
  box-shadow: 0 8px 26px rgba(0,0,0,.10);
  transition: transform .25s, background .25s, color .25s;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.horoscope-item:hover {
  transform: translateY(-6px) scale(1.02);
  background: linear-gradient(135deg, var(--saffron), var(--gold));
  color: #fff;
}

.horoscope-item img {
  width: 68px;
  height: 68px;
  object-fit: contain;
}

/* Meet Section */
.meet {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 28px;
  align-items: center;
}

.meet img {
  width: 240px;
  height: 240px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 8px 30px var(--shadow);
}

/* Blog Section */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.blog-card {
  box-shadow: var(--elev-1);
}

.blog-card img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 12px;
}

/* ========== TESTIMONIALS ========== */
#testimonials {
  background: linear-gradient(180deg, rgba(255,215,0,.06), rgba(255,140,0,.03));
}

.testimonials-wrap {
  padding: 28px;
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 26px;
  align-items: start;
}

.t-slider {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto auto;
  align-content: start;
  row-gap: 10px;
}

.t-track {
  display: flex;
  transition: transform .5s ease;
  will-change: transform;
  align-self: start;
}

.t-card {
  min-width: 100%;
  padding: 0 6px;
  box-sizing: border-box;
}

.testimonial-card {
  background: #fff;
  padding: 22px;
  border-radius: 14px;
  border: 2px solid var(--gold);
  box-shadow: 0 8px 28px rgba(0,0,0,.08), 0 0 0 1px rgba(255,215,0,.22);
  height: 100%;
}

.testimonial-card p {
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 56ch;
  margin-inline: auto;
}

.t-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 6px 8px 0;
}

.t-btn {
  background: #fff;
  border: 2px solid var(--gold);
  border-radius: 999px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  box-shadow: var(--elev-1);
  transition: box-shadow .2s ease, transform .2s ease;
}

.t-btn:hover {
  box-shadow: var(--elev-2);
  transform: translateY(-1px);
}

.t-dots {
  display: flex;
  gap: 8px;
}

.t-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(0,0,0,.22);
  border: 1px solid rgba(0,0,0,.12);
  transition: transform .2s ease, background .2s ease;
  position: relative;
}

.t-dot[aria-current="true"] {
  background: linear-gradient(90deg, var(--gold), var(--saffron));
  border-color: transparent;
  transform: scale(1.14);
}

.t-dot::after {
  content: "";
  position: absolute;
  inset: -12px;
  border-radius: 50%;
}

.t-dot:focus-visible {
  outline: 3px solid rgba(255,215,0,.8);
  outline-offset: 3px;
}

.t-aside {
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  z-index: 1;
}

.t-aside .testimonial-card {
  flex: 0 0 auto;
  margin-bottom: 14px;
}

/* ========== CONTACT & FORMS ========== */
.form {
  max-width: 820px;
  margin: 22px auto 0;
  text-align: center;
  display: grid;
  gap: 14px;
}

.input, .textarea {
  padding: 12px;
  border-radius: 10px;
  border: 2px solid var(--gold);
  width: 100%;
  box-shadow: 0 6px 20px rgba(0,0,0,.06);
}

.form .btn-primary {
  width: 100%;
  border-radius: 50px;
  box-shadow: 0 10px 26px rgba(255,140,0,.25);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 26px;
  align-items: start;
  margin-top: 18px;
}

.contact-form {
  text-align: left;
}

.contact-form .input, 
.contact-form .textarea {
  margin-top: 6px;
}

.contact-form label {
  font-weight: 600;
}

.quick-contact {
  padding: 22px;
  position: sticky;
  top: 92px;
}

.quick-contact .btn-primary, 
.quick-contact .btn-secondary {
  width: 100%;
  justify-content: center;
}

.quick-contact .qk-meta p {
  margin: 6px 0 0;
}

/* ========== FOOTER ========== */
.site-footer {
  background: linear-gradient(90deg, var(--saffron), var(--gold));
  padding: 46px 0 18px;
  color: #fff;
}

.footer-flex {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 26px;
}

.footer-links a {
  display: block;
  color: #fff;
  margin-bottom: 8px;
}

.footer-bottom {
  text-align: center;
  margin-top: 18px;
  border-top: 1px solid rgba(255,255,255,.18);
  padding-top: 12px;
  font-size: .9rem;
}

/* ========== ACCESSIBILITY ========== */
a:focus-visible, 
button:focus-visible, 
input:focus-visible, 
textarea:focus-visible {
  outline: 3px solid rgba(255,215,0,.8);
  outline-offset: 2px;
  border-radius: 8px;
}

@media (prefers-reduced-motion: reduce) {
  .slide {
    transition: none;
  }
  
  html {
    scroll-behavior: auto;
  }
  
  .t-track {
    transition: none;
  }
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 1100px) {
  .horoscope-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 900px) {
  .meet {
    grid-template-columns: 1fr;
  }
  
  nav.main-nav {
    display: none;
  }
  
  .hamburger {
    display: inline-flex;
  }
  
  .hero-slider {
    height: 70vh;
  }
  
  .advantages {
    grid-template-columns: 1fr;
  }
  
  .testimonials-wrap {
    grid-template-columns: 1fr;
  }
  
  .form {
    max-width: 92%;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .quick-contact {
    position: static;
  }
}

@media (max-width: 700px) {
  .adv-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  
  .horoscope-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 560px) {
  .hero-content {
    padding: 20px;
  }
  
  .hero-content h1 {
    font-size: 1.4rem;
  }
  
  .meet img {
    width: 100%;
    height: auto;
  }
  
  .horoscope-item img {
    width: 56px;
    height: 56px;
  }
}

@media (max-width: 480px) {
  .adv-cards {
    grid-template-columns: 1fr;
  }
  
  .horoscope-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --- CSS for Read More/Less Functionality (Add to style.css) --- */

.truncated-text {
    /* Initial fixed height to show 3-4 lines of content */
    max-height: 120px; 
    overflow: hidden;
    position: relative;
    transition: max-height 0.4s ease-out;
    padding-bottom: 20px; /* Space for the fade effect */
}

/* Add a fade-out effect at the bottom of the truncated text */
.truncated-text::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30px; /* Height of the fade */
    background: linear-gradient(to top, #fffdf7, rgba(255, 253, 247, 0)); /* Fade to body background color */
    pointer-events: none; /* Allows clicks to go through to links */
}

/* Class to expand the div completely */
.expanded-text {
    max-height: 2000px; /* Large enough to fit all content */
    padding-bottom: 0;
}

/* Remove the fade effect when expanded */
.expanded-text::after {
    display: none;
}

.footer-links a,
.site-footer {
  color: #330300 !important;
  text-decoration: underline;
}

element.style {
    color: #330300;
    text-decoration: underline;
}

.fab.fa-facebook,
.fab.fa-instagram,
.fab.fa-whatsapp {
  color: #330300;
}
