/* ==================================================
   IMAANI TRAVEL — TERMS & CONDITIONS PAGE STYLES
   Palette: website main (navbar.css jaisi) — navy + mint
   Layout: Hero -> sticky TOC + clause cards -> CTA
   ================================================== */

/* Fallback variables — navbar.css me already defined hain */
:root {
  --blue-950: #021D33;
  --blue-900: #062F4E;
  --blue-800: #004F86;
  --blue-700: #0B63A4;
  --blue-100: #D9E9F6;
  --blue-50:  #F1F7FB;
  --mint:      #51FFBF;
  --mint-deep: #17D695;
  --ink:   #0E2233;
  --muted: #5A6B7A;
  --line:  rgba(0, 79, 134, .12);
  --trans: .3s ease;
}

body.tc-page { background: #F6FAFD; }

/* ============================================
   1) SCROLL PROGRESS BAR (fixed top)
============================================ */
.tc-progress-wrap {
  position: fixed; top: 0; left: 0; z-index: 3000;
  width: 100%; height: 4px;
  background: transparent;
  pointer-events: none;
}
.tc-progress {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--mint-deep), var(--mint));
  box-shadow: 0 0 10px rgba(23, 214, 149, .55);
  transition: width .12s linear;
}

/* ============================================
   2) HERO — navy banner (header ke neeche)
============================================ */
.tc-hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding: calc(var(--header-h, 118px) + 4.2rem) 0 4.4rem;
  background:url('/images/website-header-shot-caucasian-middle-260nw-2637565657.webp') center/cover no-repeat;
  text-align: center;
}
.tc-hero-inner { display: flex; flex-direction: column; align-items: center; }
.tc-hero-eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .74rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--mint);
  padding: .55rem 1.2rem; border-radius: 999px;
  border: 1px solid rgba(81, 255, 191, .35);
  background: rgba(81, 255, 191, .08);
  margin-bottom: 1.4rem;
}
.tc-hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  font-weight: 700; line-height: 1.15;
  color: #fff;
  text-shadow: 0 14px 44px rgba(2, 29, 51, .55);
}
.tc-hl { position: relative; display: inline-block; }
.tc-hl svg {
  position: absolute; left: 2%; bottom: -.18em;
  width: 96%; height: .2em;
  color: var(--mint);
}
.tc-hero-sub {
  max-width: 780px;
  margin: 1.4rem auto 0;
  font-size: .97rem; line-height: 1.9;
  color: rgba(255, 255, 255, .88);
}
.tc-hero-sub strong { color: var(--mint); font-weight: 600; }
.tc-hero-chips {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: .7rem; margin-top: 1.9rem;
}
.tc-hero-chips span {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .78rem; font-weight: 600;
  letter-spacing: .04em;
  color: rgba(255, 255, 255, .92);
  padding: .55rem 1.05rem; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .07);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.tc-hero-chips i { color: var(--mint); font-size: .82rem; }

/* ============================================
   3) LAYOUT — sticky TOC + content
============================================ */
.tc-content { padding: 3.6rem 0 5rem; }
.tc-layout {
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr);
  gap: 2.2rem;
  align-items: start;
}

/* ---------- TOC sidebar ---------- */
.tc-toc {
  position: sticky; top: calc(var(--header-h, 118px) + 18px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.25rem 1rem 1.1rem;
  box-shadow: 0 14px 34px rgba(2, 29, 51, .08);
  max-height: calc(100vh - var(--header-h, 118px) - 36px);
  overflow-y: auto;
  scrollbar-width: thin;
}
.tc-toc-title,
.tc-toc-toggle {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%;
  font-family: 'Jost', sans-serif;
  font-size: 1rem; font-weight: 700;
  color: var(--blue-950);
  margin: 0 0 .35rem;
  background: none; border: 0; cursor: default;
}
.tc-toc-toggle { display: none; }
.tc-toc-title i,
.tc-toc-toggle i { color: var(--mint-deep); }
.tc-toc-group {
  font-size: .68rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted);
  margin: 1.05rem .4rem .45rem;
  padding-top: .85rem;
  border-top: 1px dashed #E2EAF1;
}
.tc-toc-group:first-of-type { border-top: 0; padding-top: .2rem; }
.tc-toc-list { list-style: none; }
.tc-toc-list a {
  display: flex; align-items: flex-start; gap: .65rem;
  font-size: .855rem; font-weight: 500; line-height: 1.45;
  color: #46545F;
  text-decoration: none;
  padding: .5rem .7rem; border-radius: 10px;
  transition: var(--trans);
}
.tc-toc-list a i {
  width: 15px; flex: none; text-align: center;
  font-size: .8rem; color: var(--blue-800);
  margin-top: .16rem;
  transition: var(--trans);
}
.tc-toc-list a:hover { background: var(--blue-50); color: var(--blue-800); }
.tc-toc-list a.active {
  background: linear-gradient(135deg, rgba(23, 214, 149, .16), rgba(0, 79, 134, .08));
  color: var(--blue-800); font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(23, 214, 149, .3);
}
.tc-toc-list a.active i { color: var(--mint-deep); }
.tc-toc-list a:focus-visible {
  outline: 2px solid var(--mint-deep); outline-offset: 2px;
}

/* ---------- clause cards ---------- */
.tc-main { min-width: 0; }
.tc-divider {
  display: flex; align-items: center; gap: 1rem;
  font-size: .74rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--blue-800);
  margin: 2.3rem 0 1.3rem;
}
.tc-divider::after {
  content: ""; flex: 1; height: 1px;
  background: linear-gradient(90deg, rgba(23, 214, 149, .5), transparent);
}
.tc-divider:first-child { margin-top: 0; }

.tc-clause {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  margin-bottom: 1.35rem;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(2, 29, 51, .06);
  scroll-margin-top: calc(var(--header-h, 118px) + 22px);
  transition: box-shadow var(--trans), border-color var(--trans);
}
.tc-clause:target {
  border-color: rgba(23, 214, 149, .55);
  box-shadow: 0 16px 38px rgba(2, 29, 51, .12);
}
.tc-clause-head {
  display: flex; align-items: center; gap: .95rem;
  padding: 1.15rem 1.4rem;
  background: linear-gradient(180deg, #FBFDFF, #FFFFFF);
  border-bottom: 1px solid #EDF2F7;
}
.tc-num {
  width: 42px; height: 42px; flex: none;
  display: grid; place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--blue-800), var(--blue-950));
  color: #fff;
  font-family: 'Jost', sans-serif;
  font-size: .92rem; font-weight: 700;
  box-shadow: 0 8px 18px rgba(0, 79, 134, .3);
}
.tc-clause-head h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.12rem, 1.8vw, 1.32rem);
  font-weight: 600; line-height: 1.3;
  color: var(--blue-950);
}
.tc-clause-head h2 i {
  font-size: .95rem; color: var(--mint-deep);
  margin-right: .35rem;
}
.tc-clause-body { padding: 1.3rem 1.4rem 1.45rem; }
.tc-clause-body p {
  font-size: .93rem; line-height: 1.92;
  color: #46545F;
}
.tc-clause-body p + p,
.tc-clause-body p + ul,
.tc-clause-body ul + p,
.tc-clause-body ul + ul { margin-top: .9rem; }
.tc-clause-body strong { color: var(--blue-800); font-weight: 600; }
.tc-clause-body a {
  color: var(--blue-700); font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(23, 214, 149, .6);
}
.tc-clause-body a:hover { color: var(--mint-deep); }

/* bullet list (Conditions C waghera) */
.tc-list { list-style: none; }
.tc-list li {
  display: flex; align-items: flex-start; gap: .65rem;
  font-size: .9rem; line-height: 1.75;
  color: #46545F;
}
.tc-list li + li { margin-top: .55rem; }
.tc-list li i {
  width: 17px; flex: none; text-align: center;
  font-size: .82rem; color: var(--mint-deep);
  margin-top: .28rem;
}
.tc-list li span { min-width: 0; }

/* reveal on scroll */
.tc-clause.reveal, .tc-cta.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.tc-clause.reveal.tc-visible, .tc-cta.reveal.tc-visible {
  opacity: 1; transform: none;
}

/* ============================================
   4) HELP CTA — navy banner
============================================ */
.tc-cta {
  position: relative; overflow: hidden;
  margin-top: 2.4rem;
  border-radius: 22px;
  padding: 2.6rem 2.2rem;
  text-align: center;
  background: linear-gradient(135deg, var(--blue-800), var(--blue-950));
  box-shadow: 0 24px 54px rgba(2, 29, 51, .26);
}
.tc-cta::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 85% 12%, rgba(81, 255, 191, .18), transparent 42%);
}
.tc-cta h3 {
  position: relative;
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  font-weight: 600; color: #fff;
  margin-bottom: .65rem;
}
.tc-cta p {
  position: relative;
  max-width: 560px; margin: 0 auto 1.6rem;
  font-size: .93rem; line-height: 1.8;
  color: rgba(255, 255, 255, .85);
}
.tc-cta-btns {
  position: relative;
  display: flex; flex-wrap: wrap; justify-content: center; gap: .9rem;
}
.tc-btn-mint {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .82rem 1.6rem; border-radius: 12px;
  background: linear-gradient(135deg, var(--mint), var(--mint-deep));
  color: var(--blue-950); font-size: .93rem; font-weight: 700;
  box-shadow: 0 10px 22px rgba(23, 214, 149, .38);
  transition: var(--trans);
}
.tc-btn-mint:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(23, 214, 149, .5); }
.tc-btn-ghost {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .82rem 1.35rem; border-radius: 12px;
  border: 1.5px solid rgba(255, 255, 255, .35);
  color: #fff; font-size: .9rem; font-weight: 600;
  transition: var(--trans);
}
.tc-btn-ghost:hover { border-color: var(--mint); color: var(--mint); transform: translateY(-2px); }

/* ============================================
   RESPONSIVE
============================================ */
@media (max-width: 1100px) {
  .tc-layout { grid-template-columns: 258px minmax(0, 1fr); gap: 1.6rem; }
  .tc-toc-list a { font-size: .8rem; }
}

@media (max-width: 900px) {
  .tc-layout { grid-template-columns: 1fr; gap: 1.4rem; }
  .tc-toc {
    position: relative; top: 0;
    max-height: none; overflow: visible;
    padding: .4rem 1rem;
  }
  .tc-toc-toggle {
    display: flex; cursor: pointer;
    padding: .9rem 0;
  }
  .tc-toc-title { display: none; }
  .tc-toc-body { display: none; }
  .tc-toc.open .tc-toc-body { display: block; padding-bottom: .9rem; }
  .tc-toc-chev { transition: transform var(--trans); }
  .tc-toc-toggle[aria-expanded="true"] .tc-toc-chev { transform: rotate(180deg); }
}

@media (max-width: 640px) {
  .tc-hero { padding: calc(var(--header-h, 118px) + 2.8rem) 0 3.2rem; }
  .tc-hero-title { font-size: clamp(1.8rem, 8vw, 2.4rem); }
  .tc-hero-chips span { font-size: .72rem; padding: .48rem .85rem; }
  .tc-content { padding: 2.4rem 0 3.6rem; }
  .tc-clause-head { padding: 1rem 1.15rem; gap: .75rem; }
  .tc-num { width: 36px; height: 36px; font-size: .84rem; border-radius: 10px; }
  .tc-clause-body { padding: 1.1rem 1.15rem 1.25rem; }
  .tc-clause-body p { font-size: .9rem; }
  .tc-list li { font-size: .87rem; }
  .tc-cta { padding: 2.1rem 1.3rem; }
  .tc-cta-btns .tc-btn-mint,
  .tc-cta-btns .tc-btn-ghost { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .tc-clause.reveal, .tc-cta.reveal { opacity: 1; transform: none; transition: none; }
  .tc-progress { transition: none; }
}