/* ================================================================
   APPARENTLY ADHYASTHAA — GLOBAL DESIGN SYSTEM
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&display=swap');

/* ===== TOKENS ===== */
:root {
  --maroon:        #4A0E0E;
  --maroon-dark:   #2D0808;
  --maroon-mid:    #7A2020;
  --maroon-light:  #9B3535;
  --gold:          #C9A84C;
  --gold-bright:   #D4A017;
  --gold-pale:     #F0E6C8;
  --gold-light:    #FFF5D6;
  --silver:        #C8C8C8;
  --silver-dark:   #A8A8A8;
  --cream:         #FDF8F0;
  --cream-dark:    #F5EDD8;
  --warm-white:    #FAF5EC;
  --text-dark:     #2C1A0E;
  --text-mid:      #5A3820;
  --text-light:    #8B6040;
  --text-muted:    #A08060;
  --border-gold:   rgba(201,168,76,0.28);
  --font-heading:  'Cormorant Garamond', Georgia, serif;
  --font-body:     'Playfair Display', Georgia, serif;
  --lang-h:        30px;
  --notif-h:       44px;
  --header-h:      80px;
  --offset:        calc(var(--lang-h) + var(--notif-h) + var(--header-h));
  --shadow-sm:     0 2px 12px rgba(92,26,26,0.08);
  --shadow-md:     0 8px 32px rgba(92,26,26,0.14);
  --shadow-lg:     0 20px 60px rgba(92,26,26,0.20);
  --shadow-gold:   0 4px 24px rgba(201,168,76,0.30);
  --ease:          cubic-bezier(0.4,0,0.2,1);
}

/* ===== RESET ===== */
*,*::before,*::after { box-sizing:border-box; margin:0; padding:0; }
html { scroll-behavior:smooth; scroll-padding-top:var(--offset); }
body { font-family:var(--font-body); background:var(--cream); color:var(--text-dark); line-height:1.75; overflow-x:hidden; }
img { max-width:100%; height:auto; display:block; }
a { color:inherit; text-decoration:none; }
ul { list-style:none; }
button { font-family:inherit; cursor:pointer; border:none; background:none; }

/* ===== TYPOGRAPHY ===== */
h1,h2,h3,h4,h5,h6 { font-family:var(--font-heading); font-weight:500; line-height:1.15; color:var(--text-dark); }
h1 { font-size:clamp(2.6rem,5vw,4.8rem); }
h2 { font-size:clamp(2rem,3.5vw,3.4rem); }
h3 { font-size:clamp(1.5rem,2.5vw,2.2rem); }
h4 { font-size:clamp(1.2rem,2vw,1.65rem); }
h5 { font-size:1.2rem; }
p  { font-size:1.05rem; line-height:1.85; color:var(--text-mid); }

/* ===== LAYOUT ===== */
.container       { width:100%; max-width:1200px; margin:0 auto; padding:0 2rem; }
.container--wide { max-width:1440px; }
.container--narrow { max-width:820px; }
.section     { padding:5rem 0; }
.section--sm { padding:3rem 0; }
.section--lg { padding:7rem 0; }
.grid-2 { display:grid; grid-template-columns:repeat(2,1fr); gap:2rem; }
.grid-3 { display:grid; grid-template-columns:repeat(3,1fr); gap:2rem; }
.grid-4 { display:grid; grid-template-columns:repeat(4,1fr); gap:1.5rem; }
.flex-center { display:flex; align-items:center; justify-content:center; }
.text-center { text-align:center; }

/* ===== ORNAMENTAL DIVIDER ===== */
.ornament { display:flex; align-items:center; gap:1rem; margin:1rem 0; }
.ornament::before,.ornament::after { content:''; flex:1; height:1px; background:linear-gradient(90deg,transparent,var(--gold),transparent); }
.ornament span { color:var(--gold); font-family:var(--font-heading); font-size:1.4rem; white-space:nowrap; }

/* ===== SECTION HEADER ===== */
.sec-header { text-align:center; margin-bottom:3.5rem; }
.sec-header__label {
  display:inline-block; font-family:var(--font-heading); font-size:0.82rem;
  font-weight:600; letter-spacing:0.35em; text-transform:uppercase;
  color:var(--gold); margin-bottom:0.75rem;
}
.sec-header__title { color:var(--gold-pale); margin-bottom:1rem; }
.sec-header__sub {
  font-family:var(--font-heading); font-size:1.15rem; font-style:italic;
  color:var(--text-light); max-width:560px; margin:0 auto;
}

/* ===== BUTTONS ===== */
.btn {
  display:inline-flex; align-items:center; gap:0.5rem;
  padding:0.85rem 2.2rem; font-family:var(--font-heading);
  font-size:1rem; font-weight:500; letter-spacing:0.08em;
  border:1px solid transparent; transition:all 0.35s var(--ease);
  position:relative; overflow:hidden;
}
.btn::after { content:''; position:absolute; inset:0; background:rgba(255,255,255,0.08); opacity:0; transition:opacity 0.3s; }
.btn:hover::after { opacity:1; }
.btn:hover { transform:translateY(-2px); }

.btn-gold   { background:linear-gradient(135deg,var(--gold),var(--gold-bright)); color:var(--maroon-dark); border-color:var(--gold); }
.btn-gold:hover { box-shadow:var(--shadow-gold); }
.btn-maroon { background:var(--maroon); color:var(--gold-pale); border-color:var(--maroon); }
.btn-maroon:hover { background:var(--maroon-dark); box-shadow:var(--shadow-md); }
.btn-silver { background:linear-gradient(135deg,var(--silver),var(--silver-dark)); color:var(--text-dark); border-color:var(--silver); }
.btn-outline-gold { background:transparent; color:var(--gold); border-color:var(--gold); }
.btn-outline-gold:hover { background:var(--gold); color:var(--maroon-dark); }

/* ===== IMAGE PLACEHOLDER ===== */
.img-ph {
  position:relative; background:linear-gradient(135deg,var(--maroon-dark),var(--maroon),#4a2020);
  display:flex; flex-direction:column; align-items:center; justify-content:center; overflow:hidden;
}
.img-ph::before {
  content:'☸'; position:absolute; font-size:10rem; color:rgba(201,168,76,0.10); line-height:1;
  animation:spin-slow 30s linear infinite;
}
@keyframes spin-slow { to { transform:rotate(360deg); } }
.img-ph span {
  font-family:var(--font-heading); font-size:0.85rem; font-style:italic;
  color:rgba(240,230,200,0.45); letter-spacing:0.18em; position:relative; z-index:1; margin-top:5rem;
}

/* ===== CARD ===== */
.card {
  background:var(--warm-white); border:1px solid var(--border-gold);
  overflow:hidden; transition:all 0.35s var(--ease);
}
.card:hover { transform:translateY(-5px); box-shadow:var(--shadow-md); border-color:var(--gold); }
.card__img  { width:100%; aspect-ratio:3/2; overflow:hidden; }
.card__body { padding:1.6rem; }
.card__tag  { font-family:var(--font-heading); font-size:0.78rem; letter-spacing:0.25em; text-transform:uppercase; color:var(--gold); margin-bottom:0.5rem; display:block; }
.card__title { font-size:1.4rem; color:var(--maroon); margin-bottom:0.75rem; line-height:1.25; }
.card__text  { font-size:0.95rem; color:var(--text-mid); line-height:1.75; margin-bottom:1.25rem; }
.card__link  { font-family:var(--font-heading); font-size:0.88rem; letter-spacing:0.12em; text-transform:uppercase; color:var(--gold); display:inline-flex; align-items:center; gap:0.4rem; transition:gap 0.3s; }
.card__link:hover { gap:0.8rem; }

/* ===== QUOTE BLOCK ===== */
.quote-block {
  background:var(--maroon); padding:4rem 3rem; text-align:center; position:relative; overflow:hidden;
}
.quote-block::before,.quote-block::after {
  content:''; position:absolute; width:200px; height:200px; border-radius:50%;
  background:rgba(201,168,76,0.06);
}
.quote-block::before { top:-60px; left:-60px; }
.quote-block::after  { bottom:-60px; right:-60px; }
.quote-block blockquote {
  font-family:var(--font-heading); font-size:clamp(1.4rem,2.5vw,2rem);
  font-style:italic; color:var(--gold-pale); line-height:1.5; position:relative; z-index:1;
}
.quote-block cite {
  display:block; margin-top:1.5rem; font-family:var(--font-heading); font-size:0.9rem;
  letter-spacing:0.2em; text-transform:uppercase; color:var(--gold); position:relative; z-index:1;
}

/* ===== BADGE STRIP ===== */
.badge-strip {
  background:linear-gradient(135deg,var(--maroon-dark),var(--maroon));
  padding:1.2rem 0; overflow:hidden;
}
.badge-strip__inner {
  display:flex; gap:3rem; animation:marquee 28s linear infinite; white-space:nowrap; width:max-content;
}
@keyframes marquee { from{transform:translateX(0)} to{transform:translateX(-50%)} }
.badge-strip__item {
  font-family:var(--font-heading); font-size:0.9rem; letter-spacing:0.2em;
  text-transform:uppercase; color:var(--gold-pale); display:flex; align-items:center; gap:1rem;
}
.badge-strip__dot { width:6px; height:6px; border-radius:50%; background:var(--gold); flex-shrink:0; }

/* ===== FORM ELEMENTS ===== */
.form-group { margin-bottom:1.75rem; }
.form-label {
  display:block; font-family:var(--font-heading); font-size:0.88rem;
  letter-spacing:0.15em; text-transform:uppercase; color:var(--text-mid); margin-bottom:0.6rem;
}
.form-control {
  width:100%; padding:1rem 1.25rem; font-family:var(--font-body); font-size:1rem;
  background:var(--warm-white); border:1px solid var(--border-gold); color:var(--text-dark);
  transition:border-color 0.3s, box-shadow 0.3s; outline:none;
}
.form-control:focus { border-color:var(--gold); box-shadow:0 0 0 3px rgba(201,168,76,0.15); }
textarea.form-control { resize:vertical; min-height:140px; }

/* ===== TABS ===== */
.tabs { display:flex; gap:0; border-bottom:2px solid var(--border-gold); margin-bottom:2.5rem; flex-wrap:wrap; }
.tab-btn {
  padding:0.85rem 2rem; font-family:var(--font-heading); font-size:1rem; font-weight:500;
  color:var(--text-light); border-bottom:2px solid transparent; margin-bottom:-2px;
  transition:all 0.3s; cursor:pointer; background:none; border-top:none; border-left:none; border-right:none;
}
.tab-btn.active,.tab-btn:hover { color:var(--maroon); border-bottom-color:var(--gold); }
.tab-panel { display:none; }
.tab-panel.active { display:block; }

/* ===== VIDEO EMBED ===== */
.video-wrap { position:relative; padding-top:56.25%; border:1px solid var(--border-gold); overflow:hidden; }
.video-wrap iframe { position:absolute; inset:0; width:100%; height:100%; }

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
  min-height:380px; display:flex; align-items:flex-end; padding-bottom:4rem;
  background:linear-gradient(170deg,var(--maroon-dark) 0%,var(--maroon) 60%,#6b2a2a 100%);
  position:relative; overflow:hidden; margin-top:var(--offset);
}
.page-hero::before {
  content:''; position:absolute; inset:0;
  background:radial-gradient(ellipse at 70% 50%,rgba(201,168,76,0.12) 0%,transparent 70%);
}
.page-hero__symbol {
  position:absolute; right:8%; top:50%; transform:translateY(-50%);
  font-size:14rem; color:rgba(201,168,76,0.08); line-height:1; pointer-events:none;
  font-family:var(--font-heading);
}
.page-hero__content { position:relative; z-index:1; text-align:center; max-width:820px; margin-left:auto; margin-right:auto; }
.page-hero__label {
  font-family:var(--font-heading); font-size:0.82rem; letter-spacing:0.35em;
  text-transform:uppercase; color:var(--gold); display:block; margin-bottom:0.75rem;
}
.page-hero h1 { color:var(--gold-pale); }
.page-hero__sub { font-family:var(--font-heading); font-size:1.2rem; font-style:italic; color:rgba(240,230,200,0.7); margin-top:0.75rem; }

/* ===== CONTENT PROSE ===== */
.prose { max-width:760px; }
.prose h2 { color:var(--maroon); margin:2rem 0 1rem; }
.prose h3 { color:var(--maroon-mid); margin:1.5rem 0 0.75rem; }
.prose p  { margin-bottom:1.25rem; }
.prose ul { list-style:disc; padding-left:1.5rem; margin-bottom:1.25rem; }
.prose ul li { margin-bottom:0.5rem; color:var(--text-mid); }

/* ===== RESPONSIVE ===== */
@media (max-width:1024px) {
  .grid-4 { grid-template-columns:repeat(2,1fr); }
}
@media (max-width:768px) {
  .grid-2,.grid-3,.grid-4 { grid-template-columns:1fr; }
  .section { padding:3.5rem 0; }
  .section--lg { padding:5rem 0; }
  .btn { padding:0.75rem 1.6rem; }
}
@media (max-width:480px) {
  .container { padding:0 1.25rem; }
}

/* ===== SCROLL ANIMATIONS ===== */
.fade-up { opacity:0; transform:translateY(30px); transition:opacity 0.7s var(--ease),transform 0.7s var(--ease); }
.fade-up.visible { opacity:1; transform:translateY(0); }
.fade-in { opacity:0; transition:opacity 0.7s var(--ease); }
.fade-in.visible { opacity:1; }

/* ===== HOMEPAGE SLIDER ===== */
.home-slider-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--maroon-dark);
  padding: 1.5rem 0;
}

.home-slider {
  display: flex;
  width: max-content;
  gap: 1.5rem;
  animation: marquee-scroll 30s linear infinite;
}

.home-slider:hover {
  animation-play-state: paused;
}

.home-slide {
  height: 45vh;
  min-height: 300px;
  max-height: 500px;
  width: auto;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--border-gold);
  box-shadow: var(--shadow-md);
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-50% - 0.75rem)); }
}

@media (max-width: 768px) {
  .home-slide {
    height: 35vh;
    min-height: 250px;
  }
}

/* ===== WHATSAPP FLOATING BUTTON ===== */
#wa-float {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 9999;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  box-shadow: 0 6px 24px rgba(37,211,102,0.45), 0 2px 8px rgba(0,0,0,0.18);
  text-decoration: none;
  transition: transform 0.35s cubic-bezier(0.25,1,0.5,1),
              box-shadow 0.35s var(--ease);
  animation: wa-pulse 2.8s ease-in-out infinite;
}
#wa-float:hover {
  transform: scale(1.12) translateY(-3px);
  box-shadow: 0 12px 36px rgba(37,211,102,0.55), 0 4px 12px rgba(0,0,0,0.2);
  animation: none;
}

/* Tooltip */
.wa-float__tooltip {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  background: #1a1a1a;
  color: #fff;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  white-space: nowrap;
  padding: 0.4rem 0.9rem;
  border-radius: 6px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
.wa-float__tooltip::after {
  content: '';
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-left-color: #1a1a1a;
}
#wa-float:hover .wa-float__tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

@keyframes wa-pulse {
  0%, 100% { box-shadow: 0 6px 24px rgba(37,211,102,0.45), 0 0 0 0 rgba(37,211,102,0.4); }
  50%       { box-shadow: 0 6px 24px rgba(37,211,102,0.45), 0 0 0 10px rgba(37,211,102,0); }
}

@media (max-width: 480px) {
  #wa-float { bottom: 1.25rem; right: 1.25rem; width: 50px; height: 50px; font-size: 1.5rem; }
}
