/* ==================================================================
   Tare Consultancy Service — shared site header, mega-menu & footer
   Theme: "Vedic sunrise" — saffron, kesar gold and sindoor maroon.
   Injected into every tool page. Everything is scoped under
   #tcs-hdr / #tcs-ftr and hard-reset so page styles cannot leak in.
   ================================================================== */

#tcs-hdr, #tcs-ftr {
  all: initial;
  display: block;
  box-sizing: border-box;
  font-family: Mukta, 'Noto Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: #fff;
  text-align: left;
  -webkit-font-smoothing: antialiased;
}
#tcs-hdr *, #tcs-ftr * {
  all: unset;
  box-sizing: border-box;
}
#tcs-hdr img, #tcs-ftr img { display: block; }
#tcs-hdr a, #tcs-ftr a, #tcs-hdr button { cursor: pointer; }
#tcs-hdr a:focus-visible, #tcs-ftr a:focus-visible, #tcs-hdr button:focus-visible {
  outline: 2px solid #FFD27A; outline-offset: 2px; border-radius: 4px;
}

/* ---------------- Header bar ---------------- */
#tcs-hdr {
  position: relative;
  z-index: 2147483000;
  background:
    url('tcs-mandala.svg') no-repeat right -60px center / 300px 300px,
    linear-gradient(100deg, #6E230C 0%, #9A3412 38%, #C2410C 78%, #CF5410 100%);
  box-shadow: 0 4px 22px rgba(110, 35, 12, .28);
}
#tcs-hdr::after {
  content: ''; display: block; height: 3px;
  background: linear-gradient(90deg, #F5B53F, #FFE3A0 50%, #F5B53F);
}
#tcs-hdr .tcs-in {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  position: relative;
  max-width: 1220px; margin: 0 auto; padding: 0 22px; height: 68px;
}
#tcs-hdr .tcs-brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
#tcs-hdr .tcs-brand img { width: 42px; height: 42px; filter: drop-shadow(0 2px 6px rgba(0,0,0,.25)); }
#tcs-hdr .tcs-bn { display: flex; flex-direction: column; }
#tcs-hdr .tcs-bn b {
  display: block; font-family: Cinzel, Georgia, 'Times New Roman', serif;
  font-weight: 700; font-size: 15px; letter-spacing: 1.3px; color: #FFE7B3; line-height: 1.2;
  text-shadow: 0 1px 2px rgba(60, 15, 0, .35);
}
#tcs-hdr .tcs-bn small {
  display: block; font-family: 'Cormorant Garamond', Georgia, serif; font-style: italic;
  font-size: 13px; letter-spacing: .4px; color: rgba(255, 240, 215, .85); margin-top: 1px;
}

#tcs-hdr .tcs-nav { display: flex; align-items: center; gap: 2px; height: 68px; }
#tcs-hdr .tcs-nav > a, #tcs-hdr .tcs-ddb {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 13px; border-radius: 999px;
  font-size: 15px; font-weight: 500; color: #FFF4E2;
  transition: background .25s ease, color .25s ease;
  white-space: nowrap;
}
#tcs-hdr .tcs-nav > a:hover, #tcs-hdr .tcs-ddb:hover, #tcs-hdr .tcs-dd.tcs-open .tcs-ddb {
  background: rgba(255, 236, 200, .16); color: #fff;
}
#tcs-hdr .tcs-nav > a.tcs-on, #tcs-hdr .tcs-ddb.tcs-on { background: rgba(255, 236, 200, .2); color: #FFE7B3; }
#tcs-hdr .tcs-caret { display: inline-block; font-size: 9px; transition: transform .25s ease; }
#tcs-hdr .tcs-dd.tcs-open .tcs-caret { transform: rotate(180deg); }
#tcs-hdr .tcs-nav > a.tcs-cta {
  margin-left: 10px; padding: 9px 20px; border-radius: 999px;
  background: linear-gradient(180deg, #FFF3D6, #FFD98A);
  color: #6E230C; font-weight: 700;
  box-shadow: 0 4px 14px rgba(60, 15, 0, .25), inset 0 -2px 0 rgba(180, 100, 10, .25);
  transition: transform .2s ease, box-shadow .2s ease;
}
#tcs-hdr .tcs-nav > a.tcs-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(60, 15, 0, .3); color: #4A1606; }

/* Mega menu */
#tcs-hdr .tcs-dd { display: flex; align-items: center; height: 68px; }
#tcs-hdr .tcs-mega {
  display: none;
  position: absolute; top: 68px; left: 50%; transform: translateX(-50%);
  width: calc(100vw - 32px); max-width: 1180px;
  grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px 26px;
  padding: 26px 28px 18px;
  background:
    url('tcs-pattern.svg') repeat,
    linear-gradient(180deg, #FFFBF4, #FFF4E4);
  color: #2B1A10;
  border-top: 3px solid #F5B53F; border-radius: 0 0 16px 16px;
  box-shadow: 0 30px 60px rgba(90, 30, 5, .28);
  animation: tcsDrop .22s ease;
}
@keyframes tcsDrop { from { opacity: 0; transform: translate(-50%, -6px); } to { opacity: 1; transform: translate(-50%, 0); } }
#tcs-hdr .tcs-dd:hover .tcs-mega,
#tcs-hdr .tcs-dd:focus-within .tcs-mega,
#tcs-hdr .tcs-dd.tcs-open .tcs-mega { display: grid; }
#tcs-hdr .tcs-col { display: block; min-width: 0; }
#tcs-hdr .tcs-col h4 {
  display: flex; align-items: center; gap: 6px;
  font-family: Cinzel, Georgia, serif; font-size: 12px; font-weight: 700;
  letter-spacing: 1.1px; text-transform: uppercase; color: #9A3412;
  padding-bottom: 9px; margin-bottom: 6px; border-bottom: 1px solid #F3D9B5;
}
#tcs-hdr .tcs-col a {
  display: block; padding: 6px 10px; margin: 0 -10px; border-radius: 8px;
  font-size: 14.5px; line-height: 1.35; color: #3D2414;
  transition: background .18s ease, color .18s ease, padding .18s ease;
}
#tcs-hdr .tcs-col a:hover { background: #FFE9CC; color: #B4430F; padding-left: 14px; }
#tcs-hdr .tcs-col a.tcs-on { background: linear-gradient(90deg, #FFE0B5, #FFF0DA); color: #9A3412; font-weight: 600; }
#tcs-hdr .tcs-mega-foot {
  grid-column: 1 / -1;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px;
  margin-top: 12px; padding-top: 14px; border-top: 1px solid #F3D9B5;
  font-family: 'Cormorant Garamond', Georgia, serif; font-style: italic; font-size: 16px; color: #7A4A2A;
}
#tcs-hdr .tcs-mega-foot a {
  display: inline-block; font-family: Mukta, system-ui, sans-serif; font-style: normal; font-size: 14px;
  color: #fff; font-weight: 600; padding: 7px 16px; border-radius: 999px;
  background: linear-gradient(135deg, #EA7A1A, #C2410C);
}
#tcs-hdr .tcs-mega-foot a:hover { background: linear-gradient(135deg, #F08A2A, #D24E10); }

/* Hamburger */
#tcs-hdr .tcs-ham {
  display: none; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  width: 44px; height: 44px; border-radius: 10px; background: rgba(255, 236, 200, .14);
}
#tcs-hdr .tcs-ham span { display: block; width: 22px; height: 2px; background: #FFF4E2; border-radius: 2px; transition: transform .25s ease, opacity .25s ease; transform-origin: center; }
#tcs-hdr.tcs-mob-open .tcs-ham span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
#tcs-hdr.tcs-mob-open .tcs-ham span:nth-child(2) { opacity: 0; }
#tcs-hdr.tcs-mob-open .tcs-ham span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Breadcrumb */
#tcs-hdr .tcs-crumb { display: block; background: #FFF3E3; border-bottom: 1px solid #F3D9B5; }
#tcs-hdr .tcs-crumb .tcs-cin {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  max-width: 1220px; margin: 0 auto; padding: 8px 22px;
  font-size: 14px; color: #7A4A2A;
}
#tcs-hdr .tcs-crumb a { display: inline; color: #B4430F; font-weight: 500; }
#tcs-hdr .tcs-crumb a:hover { color: #7C2D12; text-decoration: underline; }
#tcs-hdr .tcs-crumb .tcs-sep { display: inline; color: #E0A86A; }
#tcs-hdr .tcs-crumb .tcs-here { display: inline; color: #2B1A10; font-weight: 600; }

/* ---------------- Responsive header ---------------- */
@media (max-width: 1100px) {
  #tcs-hdr .tcs-ham { display: flex; }
  #tcs-hdr .tcs-nav {
    display: none;
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px; height: auto;
    max-height: calc(100vh - 68px); overflow-y: auto;
    padding: 12px 16px 20px;
    background: linear-gradient(180deg, #8A2E0F, #6E230C);
    border-top: 1px solid rgba(255, 220, 160, .3);
    box-shadow: 0 18px 30px rgba(60, 15, 0, .35);
  }
  #tcs-hdr.tcs-mob-open .tcs-nav { display: flex; }
  #tcs-hdr .tcs-nav > a, #tcs-hdr .tcs-ddb { display: flex; justify-content: space-between; padding: 12px 14px; border-radius: 10px; font-size: 16px; }
  #tcs-hdr .tcs-nav > a.tcs-cta { margin: 10px 0 0; justify-content: center; }
  #tcs-hdr .tcs-dd { display: block; height: auto; }
  #tcs-hdr .tcs-dd:hover .tcs-mega, #tcs-hdr .tcs-dd:focus-within .tcs-mega { display: none; }
  #tcs-hdr .tcs-mega,
  #tcs-hdr .tcs-dd.tcs-open .tcs-mega {
    position: static; transform: none; width: auto; max-width: none; animation: none;
    grid-template-columns: 1fr 1fr; gap: 4px 18px;
    padding: 14px 16px; margin: 4px 0 8px;
    border-radius: 12px; border-top-width: 2px; box-shadow: none;
  }
  #tcs-hdr .tcs-dd.tcs-open .tcs-mega { display: grid; }
}
@media (max-width: 560px) {
  #tcs-hdr { background: linear-gradient(100deg, #6E230C 0%, #9A3412 45%, #C2410C 100%); }
  #tcs-hdr .tcs-in { padding: 0 14px; }
  #tcs-hdr .tcs-bn small { display: none; }
  #tcs-hdr .tcs-bn b { font-size: 13px; letter-spacing: .8px; }
  #tcs-hdr .tcs-mega, #tcs-hdr .tcs-dd.tcs-open .tcs-mega { grid-template-columns: 1fr; }
  #tcs-hdr .tcs-crumb .tcs-cin { padding: 7px 14px; font-size: 13px; }
}

/* ---------------- Footer ---------------- */
#tcs-ftr {
  margin-top: 56px;
  position: relative; overflow: hidden;
  background:
    url('tcs-mandala.svg') no-repeat right -140px top -120px / 520px 520px,
    radial-gradient(ellipse at 15% 0%, rgba(245, 181, 63, .22), transparent 55%),
    linear-gradient(160deg, #5A1C08 0%, #7C2D12 45%, #3E1205 100%);
  color: rgba(255, 240, 220, .8);
  font-size: 15px; line-height: 1.65;
}
#tcs-ftr::before {
  content: ''; display: block; height: 4px;
  background: linear-gradient(90deg, #C2410C, #F5B53F 30%, #FFE3A0 50%, #F5B53F 70%, #C2410C);
}
#tcs-ftr .tcs-fgrid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 38px;
  max-width: 1220px; margin: 0 auto; padding: 52px 22px 34px;
}
#tcs-ftr .tcs-fcol { display: block; min-width: 0; }
#tcs-ftr .tcs-fbrand { display: flex; align-items: center; gap: 11px; margin-bottom: 14px; }
#tcs-ftr .tcs-fbrand img { width: 46px; height: 46px; }
#tcs-ftr .tcs-fbrand b { display: block; font-family: Cinzel, Georgia, serif; font-size: 16px; font-weight: 700; color: #FFD98A; letter-spacing: 1px; }
#tcs-ftr p { display: block; margin-bottom: 14px; color: rgba(255, 236, 210, .75); }
#tcs-ftr .tcs-quote {
  display: block; font-family: 'Cormorant Garamond', Georgia, serif; font-style: italic;
  font-size: 18px; line-height: 1.4; color: #FFE3A8; margin-bottom: 14px;
  padding-left: 12px; border-left: 2px solid #F5B53F;
}
#tcs-ftr h5 {
  display: block; font-family: Cinzel, Georgia, serif; font-size: 13px; font-weight: 700;
  letter-spacing: 1.6px; text-transform: uppercase; color: #FFD98A; margin-bottom: 14px;
}
#tcs-ftr .tcs-fcol > a { display: block; padding: 3px 0; color: rgba(255, 240, 220, .82); transition: color .2s ease, transform .2s ease; }
#tcs-ftr .tcs-fcol > a:hover { color: #FFD98A; transform: translateX(3px); }
#tcs-ftr .tcs-contact { display: block; }
#tcs-ftr .tcs-contact a { display: block; padding: 2px 0; color: #FFF0DA; }
#tcs-ftr .tcs-contact a:hover { color: #FFD98A; }
#tcs-ftr .tcs-wa {
  display: inline-flex !important; align-items: center; gap: 8px; margin-top: 14px;
  padding: 9px 18px; border-radius: 999px; background: #1E8E4E; color: #fff !important; font-weight: 600; font-size: 14px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .2);
}
#tcs-ftr .tcs-wa:hover { background: #22A35A; transform: none !important; }
#tcs-ftr .tcs-fbot { display: block; border-top: 1px solid rgba(255, 220, 170, .18); background: rgba(40, 10, 2, .25); }
#tcs-ftr .tcs-fbot-in {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px;
  max-width: 1220px; margin: 0 auto; padding: 16px 22px 8px;
  font-size: 13.5px; color: rgba(255, 236, 210, .6);
}
#tcs-ftr .tcs-fbot-in span { display: block; }
#tcs-ftr .tcs-fbot-in nav { display: flex; gap: 18px; flex-wrap: wrap; }
#tcs-ftr .tcs-fbot-in a { display: inline; color: rgba(255, 236, 210, .75); }
#tcs-ftr .tcs-fbot-in a:hover { color: #FFD98A; }
#tcs-ftr .tcs-disc { display: block; max-width: 1220px; margin: 0 auto; padding: 0 22px 18px; font-size: 12.5px; color: rgba(255, 236, 210, .45); }

@media (max-width: 900px) {
  #tcs-ftr .tcs-fgrid { grid-template-columns: 1fr 1fr; gap: 30px; }
}
@media (max-width: 520px) {
  #tcs-ftr .tcs-fgrid { grid-template-columns: 1fr; padding: 40px 16px 24px; }
}

/* Never print site chrome on generated reports */
@media print {
  #tcs-hdr, #tcs-ftr, .tcs-backpill { display: none !important; }
}

/* ---------------- Shop "back to collections" pill ---------------- */
.tcs-backpill {
  all: initial;
  position: fixed; left: 16px; bottom: 16px; z-index: 2147483000;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 18px; border-radius: 999px;
  background: linear-gradient(135deg, #C2410C, #7C2D12); color: #FFF3E2;
  font: 600 14px/1.2 Mukta, 'Noto Sans', system-ui, 'Segoe UI', Arial, sans-serif;
  box-shadow: 0 8px 22px rgba(90, 30, 5, .3); cursor: pointer;
}
.tcs-backpill:hover { background: linear-gradient(135deg, #D24E10, #8A3412); }
