/* ============================================
   TWING CAFE — GLOBAL STYLES
   Shared design system: variables, resets,
   typography, buttons, cards, navbar, footer,
   floating elements, reveal animations.
   ============================================ */

:root {
  --green:        #183E2C;
  --green-dark:   #0a1e12;
  --green-deep:   #08190e;
  --gold:         #F6B309;
  --gold-dark:    #d9a008;
  --white:        #FFFFFF;
  --text-primary: rgba(255,255,255,0.88);
  --text-muted:   rgba(255,255,255,0.55);
  --text-hint:    rgba(255,255,255,0.28);
  --font-serif:   'Playfair Display', serif;
  --font-sans:    'Inter', sans-serif;
  --font-ui:      'Poppins', sans-serif;
  --radius-sm:    4px;
  --radius-md:    8px;
  --radius-lg:    16px;
  --radius-pill:  100px;
  --transition:   all 0.3s cubic-bezier(0.4,0,0.2,1);
  --shadow-gold:  0 8px 32px rgba(246,179,9,0.25);
  --max-w:        1320px;
  --container-px: 80px;
}

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--white);
  color: var(--green);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; }

/* Candy cursor replaces the native cursor on mouse devices only */
@media (pointer: fine) {
  * { cursor: none !important; }
}

/* Container */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--container-px);
}

/* Section spacing */
.section { padding: 100px 0; }
.section--dark { background: var(--green-dark); }
.section--deep { background: var(--green-deep); }
.section--green { background: var(--green); }
.section--light { background: #f8f7f4; }
.section--white { background: var(--white); }

/* Typography */
.section-label {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 20px;
}
.section-label--green {
  background: var(--green);
  color: var(--white);
}
.section-label--gold {
  background: rgba(246,179,9,0.12);
  border: 1px solid rgba(246,179,9,0.3);
  color: var(--gold);
}

.section-heading {
  font-family: var(--font-serif);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1px;
}
.section-heading--lg { font-size: 52px; }
.section-heading--md { font-size: 40px; }
.section-heading--dark { color: var(--green-deep); }
.section-heading--white { color: var(--white); }

.section-subtext {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.75;
  color: #5a6a60;
  max-width: 560px;
  margin-top: 16px;
}
.section-subtext--white {
  color: rgba(255,255,255,0.6);
}
.section-header--center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.section-header--center .section-subtext {
  margin-left: auto;
  margin-right: auto;
}

.hindi-tagline {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--gold);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.6px;
  padding: 15px 30px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  border: none;
  transition: var(--transition);
  white-space: nowrap;
}
.btn--gold {
  background: var(--gold);
  color: var(--green-deep);
  box-shadow: var(--shadow-gold);
}
.btn--gold:hover {
  background: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(246,179,9,0.38);
}
.btn--outline-white {
  background: transparent;
  color: rgba(255,255,255,0.8);
  border: 1px solid rgba(255,255,255,0.25);
}
.btn--outline-white:hover {
  color: white;
  border-color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.06);
}
.btn--outline-green {
  background: transparent;
  color: var(--green);
  border: 1.5px solid var(--green);
}
.btn--outline-green:hover {
  background: var(--green);
  color: white;
}
.btn--lg { padding: 18px 38px; font-size: 14px; }
.btn--full { width: 100%; justify-content: center; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none !important; }

/* Cards */
.card {
  background: var(--white);
  border: 0.5px solid rgba(24,62,44,0.1);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: var(--transition);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(24,62,44,0.1);
  border-color: rgba(246,179,9,0.4);
}
.card--dark {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
}
.card--dark:hover {
  border-color: var(--gold);
  background: rgba(255,255,255,0.08);
}
.card--featured {
  border: 1.5px solid var(--gold);
  position: relative;
}
.card__badge {
  position: absolute;
  top: -14px;
  left: 28px;
  background: var(--gold);
  color: var(--green-deep);
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal[data-delay="100"] { transition-delay: 0.1s; }
.reveal[data-delay="200"] { transition-delay: 0.2s; }
.reveal[data-delay="300"] { transition-delay: 0.3s; }
.reveal[data-delay="400"] { transition-delay: 0.4s; }
.reveal[data-delay="500"] { transition-delay: 0.5s; }

/* Divider gold line */
.gold-line {
  width: 56px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  margin: 20px 0;
}
.gold-line--center { margin-left: auto; margin-right: auto; }

/* Floating WhatsApp */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9000;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  text-decoration: none;
  transition: var(--transition);
  animation: waPulse 3s ease-in-out infinite;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 32px rgba(37,211,102,0.5);
}
.whatsapp-float svg { width: 28px; height: 28px; }
@keyframes waPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.4); }
  50% { box-shadow: 0 4px 32px rgba(37,211,102,0.7),
        0 0 0 8px rgba(37,211,102,0.1); }
}

/* Back to top */
.back-top {
  position: fixed;
  bottom: 28px;
  left: 28px;
  z-index: 9000;
  width: 48px;
  height: 48px;
  background: var(--gold);
  border: none;
  border-radius: 4px;
  display: none;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  box-shadow: 0 4px 16px rgba(246,179,9,0.3);
}
.back-top.is-visible { display: flex; }
.back-top:hover {
  background: var(--gold-dark);
  transform: translateY(-2px);
}
.back-top svg { width: 18px; height: 18px; }

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: all 0.4s ease;
  background: transparent;
}
.navbar__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 18px var(--container-px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.navbar.scrolled {
  background: rgba(8,25,15,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(246,179,9,0.08);
  box-shadow: 0 2px 24px rgba(0,0,0,0.2);
}
.navbar__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.navbar__logo img { height: 46px; width: auto; object-fit: contain; }
.navbar__logo-fallback {
  font-family: var(--font-ui);
  font-size: 18px;
  font-weight: 800;
  color: white;
  letter-spacing: -0.5px;
}
.navbar__logo-fallback em {
  color: var(--gold);
  font-style: normal;
}
.navbar__links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-link {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.72);
  text-decoration: none;
  position: relative;
  transition: color 0.3s;
  padding-bottom: 4px;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.nav-link:hover,
.nav-link.active {
  color: var(--gold);
}
.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}
.navbar__cta {
  padding: 10px 22px !important;
  font-size: 12px !important;
}
.navbar__hamburger {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  padding: 4px;
}
.navbar__hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: white;
  border-radius: 2px;
  transition: var(--transition);
}
.navbar__hamburger.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar__hamburger.is-active span:nth-child(2) { opacity: 0; }
.navbar__hamburger.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .navbar__hamburger { display: flex; }
  .navbar__links {
    position: fixed;
    top: 0; right: -100%;
    width: 75%;
    max-width: 340px;
    height: 100vh;
    background: var(--green-deep);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 28px;
    transition: right 0.4s ease;
    border-left: 1px solid rgba(246,179,9,0.1);
  }
  .navbar__links.is-open { right: 0; }
  .nav-link { font-size: 15px; }
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--green-deep);
  padding: 72px 0 32px;
  border-top: 1px solid rgba(246,179,9,0.08);
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.footer__logo { height: 56px; width: auto; object-fit: contain; }
.footer__tagline {
  font-family: var(--font-ui);
  color: var(--gold);
  font-size: 13px;
  letter-spacing: 1px;
  margin: 12px 0 10px;
}
.footer__desc {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255,255,255,0.38);
  max-width: 240px;
}
.footer__social {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
}
.footer__social-link {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  transition: all 0.3s ease;
  flex-shrink: 0;
}
.footer__social-link:hover {
  color: var(--gold);
  border-color: var(--gold);
  background: rgba(246,179,9,0.08);
  transform: translateY(-2px);
}
/* Instagram hover — brand gradient */
.footer__social-link:nth-child(1):hover {
  color: #E1306C;
  border-color: #E1306C;
  background: rgba(225,48,108,0.08);
}
/* Facebook hover — brand blue */
.footer__social-link:nth-child(2):hover {
  color: #1877F2;
  border-color: #1877F2;
  background: rgba(24,119,242,0.08);
}
/* WhatsApp hover — brand green */
.footer__social-link:nth-child(3):hover {
  color: #25D366;
  border-color: #25D366;
  background: rgba(37,211,102,0.08);
}
.footer__heading {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-bottom: 20px;
}
.footer__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer__list a {
  font-family: var(--font-sans);
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color 0.3s;
}
.footer__list a:hover { color: var(--gold); }
.footer__contact-item {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
}
.footer__contact-item a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
}
.footer__contact-item a:hover { color: var(--gold); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  font-family: var(--font-ui);
  font-size: 12px;
  color: rgba(255,255,255,0.22);
  flex-wrap: wrap;
  gap: 8px;
}

/* ============================================
   PAGE HERO (mini hero used on inner pages)
   ============================================ */
.page-hero {
  min-height: 56vh;
  display: flex;
  align-items: center;
  background: linear-gradient(160deg, var(--green) 0%, var(--green-dark) 100%);
  position: relative;
  overflow: hidden;
  padding-top: 100px;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(246,179,9,0.35) 1.5px, transparent 1.5px);
  background-size: 28px 28px;
  opacity: 0.15;
}
.page-hero__inner { position: relative; z-index: 1; }
.breadcrumb {
  font-family: var(--font-ui);
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 18px;
}
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { color: var(--gold); }
.page-hero__sub {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 560px;
  margin-top: 16px;
}
.badge-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.goal-label {
  text-align: center;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
}
.badge--light {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16);
  color: var(--text-primary);
}
.badge--gold {
  background: rgba(246,179,9,0.14);
  border: 1px solid rgba(246,179,9,0.4);
  color: var(--gold);
}

/* ============================================
   FAQ ACCORDION (shared: Franchise + Apply pages)
   ============================================ */
.faq-accordion {
  max-width: 800px;
  margin: 56px auto 0;
}
.faq-item {
  border-bottom: 1px solid rgba(24,62,44,0.1);
}
.faq-item__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: none;
  border: none;
  padding: 22px 4px;
  text-align: left;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 15px;
  color: var(--green-deep);
}
.faq-item__icon {
  flex-shrink: 0;
  font-size: 20px;
  color: var(--gold);
  transition: transform 0.3s ease;
}
.faq-item.is-open .faq-item__icon { transform: rotate(45deg); }
.faq-item__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.faq-item__a p {
  padding: 0 4px 22px;
  font-size: 14px;
  line-height: 1.75;
  color: #5a6a60;
}
.faq-item__a p a { color: var(--gold-dark); font-weight: 600; }

/* ============================================
   FORMS (shared across contact / apply forms)
   ============================================ */
.form-group { margin-bottom: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-label {
  display: block;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--green);
  margin-bottom: 6px;
}
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  border: 1.5px solid #e8e8e8;
  border-radius: 6px;
  padding: 14px 16px;
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--green);
  background: var(--white);
  transition: border-color 0.3s;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--green);
  outline: none;
}
.form-textarea { resize: vertical; min-height: 100px; }
.form-success {
  display: none;
  margin-top: 20px;
  padding: 18px 20px;
  background: rgba(246,179,9,0.12);
  border: 1px solid rgba(246,179,9,0.4);
  border-radius: var(--radius-md);
  color: var(--green-deep);
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
}
.form-success.is-visible { display: block; }

/* Mobile */
@media (max-width: 768px) {
  :root { --container-px: 24px; }
  .section { padding: 64px 0; }
  .section-heading--lg { font-size: 32px; }
  .section-heading--md { font-size: 26px; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer__brand { grid-column: 1 / -1; }
  .footer__bottom { flex-direction: column; text-align: center; }
  .page-hero { min-height: 46vh; padding-top: 110px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
}
