/* ═══════════════════════════════════
   MAIN.CSS — Global Design System
   Bhargavi & Team
   ═══════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,700;0,900;1,400&family=Caveat:wght@400;600;700&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500&display=swap');

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }

:root {
  --cream:       #F5F0E8;
  --ink:         #1A2E1A;
  --forest:      #2D5A27;
  --forest-mid:  #1A3A15;
  --terracotta:  #C4623A;
  --moss:        #4A8B7A;
  --sun:         #E8B84B;
  --paper:       #EDE8DC;
  --muted:       rgba(26,46,26,0.55);
  --glass-bg:    rgba(255,255,255,0.07);
  --glass-border:rgba(255,255,255,0.18);

  --prakriti:    #2D5A27;
  --nat-colors:  #B8860B;
  --artflow:     #E8724A;
  --earthing:    #2C3E50;
  --earthflow:   #4A90A4;
  --teen:        #7D5A8A;
  --triconi:    #C4623A;
  --chalk:       #2E86AB;
  --accessories: #7B4F2E;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width:100%; display:block; }
a { color:inherit; text-decoration:none; }
ul, ol { list-style:none; }

.font-playfair { font-family:'Playfair Display',serif; }
.font-caveat   { font-family:'Caveat',cursive; }
.font-sans     { font-family:'DM Sans',sans-serif; }

.container { max-width:1200px; margin:0 auto; padding:0 2rem; }
.section-padding { padding:6rem 2rem; }

.section-eyebrow {
  font-family:'Caveat',cursive; font-weight:600;
  font-size:1.1rem; color:var(--terracotta); margin-bottom:.5rem;
}
.section-title {
  font-family:'Playfair Display',serif; font-weight:900;
  font-size:clamp(2rem,4vw,3.2rem); line-height:1.1;
  color:var(--ink); margin-bottom:1rem;
}
.section-subtitle {
  font-family:'DM Sans',sans-serif; font-weight:400;
  font-size:1rem; color:var(--muted); max-width:600px;
}

/* ═══════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════ */

.main-nav {
  position:fixed; top:0; left:0; right:0; z-index:1000;
  display:flex; align-items:center; justify-content:space-between;
  padding:1rem 2.5rem;
  transition: background .4s, box-shadow .4s, padding .4s;
}
.main-nav.scrolled {
  background:rgba(245,240,232,0.88);
  backdrop-filter:blur(20px); -webkit-backdrop-filter:blur(20px);
  box-shadow:0 2px 20px rgba(0,0,0,0.06);
  padding:.7rem 2.5rem;
}

.nav-logo {
  font-family:'Playfair Display',serif; font-style:italic;
  font-weight:400; font-size:1.5rem; color:white;
  display:flex; align-items:center; gap:.3rem;
  transition:color .4s; z-index:1001;
}
.main-nav.scrolled .nav-logo { color:var(--ink); }
.nav-logo svg { width:22px; height:22px; fill:var(--moss); }

.nav-links { display:flex; align-items:center; gap:.3rem; }

.nav-item a {
  font-family:'DM Sans',sans-serif; font-weight:500; font-size:.88rem;
  color:rgba(255,255,255,0.85); padding:.5rem .8rem; border-radius:8px;
  transition:color .3s, background .3s; position:relative; white-space:nowrap;
}
.main-nav.scrolled .nav-item a { color:var(--ink); }
.nav-item a:hover { color:white; background:rgba(255,255,255,0.1); }
.main-nav.scrolled .nav-item a:hover { color:var(--forest); background:rgba(45,90,39,0.08); }

.nav-item.active a::after {
  content:''; position:absolute; bottom:-2px; left:50%;
  transform:translateX(-50%); width:6px; height:6px;
  background:var(--terracotta); border-radius:50%;
}

.nav-cta {
  font-family:'DM Sans',sans-serif; font-weight:500; font-size:.88rem;
  background:var(--terracotta); color:white;
  padding:.6rem 1.4rem; border-radius:100px;
  transition:transform .25s, opacity .25s; white-space:nowrap; z-index:1001;
}
.nav-cta:hover { transform:translateY(-2px); opacity:.9; }

/* Mega Dropdown */
.nav-dropdown-trigger { position:relative; }

.nav-mega-dropdown {
  position:absolute; top:calc(100% + 12px); left:50%;
  transform:translateX(-50%) translateY(8px);
  width:900px; background:white; border-radius:16px;
  box-shadow:0 20px 60px rgba(0,0,0,0.15); padding:2rem;
  display:grid; grid-template-columns:repeat(3,1fr); gap:.4rem;
  opacity:0; visibility:hidden; pointer-events:none;
  transition:opacity .3s, visibility .3s, transform .3s;
  z-index:1002;
}
.nav-mega-dropdown.active {
  opacity:1; visibility:visible; pointer-events:auto;
  transform:translateX(-50%) translateY(0);
}

.dropdown-link {
  display:flex; align-items:center; gap:.75rem;
  padding:.75rem 1rem; border-radius:10px; transition:background .2s;
}
.dropdown-link:hover { background:rgba(0,0,0,0.03); }

.dropdown-dot { width:10px; height:10px; border-radius:50%; flex-shrink:0; }
.dropdown-text h4 {
  font-family:'Playfair Display',serif; font-weight:700;
  font-size:.92rem; color:var(--ink); line-height:1.2;
}
.dropdown-text span {
  font-family:'Caveat',cursive; font-weight:600;
  font-size:.8rem; color:var(--muted);
}

/* Mobile Toggle */
.mobile-toggle {
  display:none; flex-direction:column; gap:5px;
  cursor:pointer; z-index:1001; padding:5px;
}
.mobile-toggle span {
  display:block; width:24px; height:2px; background:white;
  border-radius:2px; transition:transform .3s, opacity .3s, background .4s;
}
.main-nav.scrolled .mobile-toggle span { background:var(--ink); }
.mobile-toggle.active span:nth-child(1) { transform:rotate(45deg) translate(5px,5px); background:white; }
.mobile-toggle.active span:nth-child(2) { opacity:0; }
.mobile-toggle.active span:nth-child(3) { transform:rotate(-45deg) translate(5px,-5px); background:white; }

/* Mobile Menu */
.mobile-menu {
  position:fixed; top:0; right:0; width:100%; height:100vh; height:100dvh;
  background:var(--ink); z-index:999;
  display:flex; flex-direction:column; justify-content:flex-start; align-items:center; gap:.5rem;
  padding:5rem 1rem 3rem; /* Leave room for nav and bottom scroll */
  transform:translateX(100%);
  transition:transform .4s cubic-bezier(.65,0,.35,1);
  overflow-y:auto;
}
.mobile-menu.active { transform:translateX(0); }
.mobile-menu a {
  font-family:'Playfair Display',serif; font-weight:700;
  font-size:1.4rem; color:white; padding:.4rem 1rem;
  opacity:0; transform:translateX(40px);
}
.mobile-menu .mobile-cta {
  margin-top:1.5rem; margin-bottom:2rem; font-family:'DM Sans',sans-serif;
  font-weight:500; font-size:1rem; background:var(--terracotta);
  color:white; padding:.8rem 2rem; border-radius:100px;
  opacity:0; transform:translateY(20px);
}

/* ═══════════════════════════════════
   FOOTER
   ═══════════════════════════════════ */

footer {
  background:var(--forest-mid); color:white; padding:4rem 2rem 2rem;
}
.footer-grid {
  max-width:1200px; margin:0 auto;
  display:grid; grid-template-columns:1.5fr 1fr 1fr 1fr; gap:3rem;
}
.footer-brand h3 {
  font-family:'Playfair Display',serif; font-style:italic;
  font-weight:400; font-size:1.5rem;
  display:flex; align-items:center; gap:.3rem; margin-bottom:.5rem;
}
.footer-brand h3 svg { width:20px; height:20px; fill:var(--moss); }
.footer-tagline {
  font-family:'DM Sans',sans-serif; font-size:.85rem;
  color:rgba(255,255,255,0.6); margin-bottom:.8rem;
}
.footer-philosophy {
  font-family:'Caveat',cursive; font-weight:600; font-size:1.2rem;
  color:var(--sun); margin-bottom:1rem;
}
.footer-desc {
  font-family:'DM Sans',sans-serif; font-size:.85rem;
  color:rgba(255,255,255,0.5); line-height:1.6; max-width:280px;
}
.footer-col h4 {
  font-family:'Playfair Display',serif; font-weight:700;
  font-size:1rem; margin-bottom:1.2rem; color:white;
}
.footer-links {
  display:flex; flex-direction:column; gap:.6rem;
}
.footer-links a {
  font-family:'DM Sans',sans-serif; font-size:.88rem;
  color:rgba(255,255,255,0.6); transition:color .2s, transform .2s;
  display:flex; align-items:center; gap:.5rem;
}
.footer-links a:hover { color:white; transform:translateX(4px); }
.footer-dot { width:8px; height:8px; border-radius:50%; flex-shrink:0; }

.footer-whatsapp {
  display:inline-block; font-family:'DM Sans',sans-serif; font-size:.88rem;
  color:white; background:rgba(37,211,102,0.2);
  padding:.6rem 1.2rem; border-radius:100px; margin-bottom:1.2rem;
  transition:background .2s;
}
.footer-whatsapp:hover { background:rgba(37,211,102,0.35); }
.footer-instagram-label {
  font-family:'DM Sans',sans-serif; font-size:.82rem;
  color:rgba(255,255,255,0.4); display:block; margin-bottom:.6rem;
}
.footer-instagrams { display:flex; flex-direction:column; gap:.4rem; }
.footer-instagrams a {
  font-family:'DM Sans',sans-serif; font-size:.82rem;
  color:rgba(255,255,255,0.5); transition:color .2s;
}
.footer-instagrams a:hover { color:var(--sun); }

.footer-bottom {
  max-width:1200px; margin:3rem auto 0; padding-top:1.5rem;
  border-top:1px solid rgba(255,255,255,0.1);
  display:flex; justify-content:space-between; align-items:center;
  font-family:'DM Sans',sans-serif; font-size:.82rem;
  color:rgba(255,255,255,0.45);
}

/* ═══════════════════════════════════
   PAGE TRANSITION OVERLAY
   ═══════════════════════════════════ */

#page-transition {
  position:fixed; inset:0; background:var(--ink);
  z-index:9999; opacity:0; pointer-events:none;
  transition:opacity .3s ease;
}
#page-transition.active { opacity:1; pointer-events:auto; }

/* ═══════════════════════════════════
   FLOATING WHATSAPP BUTTON
   ═══════════════════════════════════ */

.whatsapp-fab {
  position:fixed; bottom:2rem; right:2rem; z-index:999;
  width:56px; height:56px; border-radius:50%;
  background:#25D366; display:flex; align-items:center; justify-content:center;
  box-shadow:0 4px 14px rgba(37,211,102,0.4);
  transition:transform .25s; cursor:pointer;
  animation:waPulse 2s infinite;
}
.whatsapp-fab:hover { transform:scale(1.1); }
.whatsapp-fab svg { width:28px; height:28px; fill:white; }
.whatsapp-fab .wa-tooltip {
  position:absolute; right:calc(100% + 12px); top:50%;
  transform:translateY(-50%); background:var(--ink);
  color:white; font-family:'DM Sans',sans-serif; font-size:.82rem;
  padding:.4rem .8rem; border-radius:8px; white-space:nowrap;
  opacity:0; pointer-events:none; transition:opacity .2s;
}
.whatsapp-fab:hover .wa-tooltip { opacity:1; }

@keyframes waPulse {
  0%   { box-shadow:0 0 0 0 rgba(37,211,102,0.5); }
  70%  { box-shadow:0 0 0 14px rgba(37,211,102,0); }
  100% { box-shadow:0 0 0 0 rgba(37,211,102,0); }
}

/* ═══════════════════════════════════
   SHARED HOVER RULES
   ═══════════════════════════════════ */

@media(hover:none) {
  .nav-item a:hover { background:transparent; }
  .nav-cta:hover { transform:none; }
  .footer-links a:hover { transform:none; }
  .whatsapp-fab:hover { transform:none; }
}

/* ═══════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════ */

@media(max-width:768px) {
  .nav-links { display:none; }
  .nav-cta.desktop-only { display:none; }
  .mobile-toggle { display:flex; }

  .nav-mega-dropdown {
    position:static; transform:none; width:100%;
    grid-template-columns:1fr; padding:1rem;
    box-shadow:none; border-radius:0;
  }

  .footer-grid { grid-template-columns:1fr 1fr; }
  .footer-bottom { flex-direction:column; gap:.5rem; text-align:center; }
  .section-padding { padding:4rem 1.5rem; }
}

@media(max-width:480px) {
  .footer-grid { grid-template-columns:1fr; }
  .main-nav { padding:.8rem 1.2rem; }
  .main-nav.scrolled { padding:.6rem 1.2rem; }
}

/* ═══════════════════════════════════
   SHARED TEAM CARDS
   ═══════════════════════════════════ */
.team-category-title {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.8rem;
  color: white;
  margin: 3rem 0 1.5rem;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 0.8rem;
}
.team-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:1.5rem; margin-bottom:4rem; }
.team-card { background:rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.1); border-radius:20px; overflow:hidden; text-align:center; transition:background .3s,transform .3s; opacity:0; transform:translateY(30px); display:flex; flex-direction:column; }
.team-card:hover { background:rgba(255,255,255,.1); transform:translateY(-6px); }
.team-card .tc-photo { width:100%; aspect-ratio:1/1; object-fit:cover; display:block; }
.team-card .tc-initials { width:100%; aspect-ratio:1/1; display:flex; align-items:center; justify-content:center; font-family:'Playfair Display',serif; font-weight:700; font-size:3.5rem; color:white; }
.team-card .tc-content { padding:1.8rem; display:flex; flex-direction:column; flex:1; }
.team-card .tc-name { font-family:'Playfair Display',serif; font-weight:700; font-size:1.3rem; color:white; }
.team-card .tc-role { font-family:'Caveat',cursive; font-size:.9rem; color:var(--sun); margin-top:.2rem; }
.team-card .tc-bio { font-family:'DM Sans',sans-serif; font-size:.85rem; color:rgba(255,255,255,.7); margin-top:1rem; line-height:1.6; text-align:left; }
.team-card .tc-tags { display:flex; flex-wrap:wrap; justify-content:center; gap:.4rem; margin-top:1.2rem; }
.team-card .tc-tags span { font-family:'DM Sans',sans-serif; font-size:.72rem; background:rgba(255,255,255,.1); padding:.2rem .6rem; border-radius:100px; color:rgba(255,255,255,.7); }
.team-card .tc-links { display:flex; justify-content:center; gap:.8rem; margin-top:1.2rem; }
.team-card .tc-links a { height:36px; padding:0 1rem; border-radius:100px; background:rgba(255,255,255,.1); display:inline-flex; align-items:center; justify-content:center; gap:0.5rem; transition:background .2s; color:white; text-decoration:none; font-family:'DM Sans', sans-serif; font-size:0.85rem; }
.team-card .tc-links a:hover { background:rgba(255,255,255,.2); }
.team-card .tc-links a svg { width:16px; height:16px; fill:white; flex-shrink:0; }
@media(max-width:768px){
  .team-grid{grid-template-columns:repeat(2,1fr);}
}
@media(max-width:480px){
  .team-grid{grid-template-columns:1fr;}
}
