/* ============================================================
   TIGAS PHARMA — Production stylesheet v2
   Corporate palette (from existing brand):
   Orange  #EC7404 | Deep orange #DA4700 | Teal #009AA5
   Charcoal #1A1A1A | Slate #54595F | Mist #F7F6F2
   ============================================================ */

:root {
  --orange: #EC7404;
  --orange-deep: #DA4700;
  --teal: #009AA5;
  --teal-dark: #007A83;
  --ink: #1A1A1A;
  --slate: #54595F;
  --grey: #8A8A8A;
  --line: #E8E5DF;
  --mist: #F7F6F2;
  --white: #FFFFFF;
  --radius: 14px;
  --maxw: 1140px;
  --font-display: "Sora", -apple-system, sans-serif;
  --font-body: "Inter", -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.4rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p  { color: var(--slate); }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Header ---------- */
header.site {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s;
}
header.site.scrolled { box-shadow: 0 6px 24px rgba(26,26,26,0.06); }
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.logo {
  font-family: var(--font-display);
  font-weight: 700; font-size: 1.3rem; letter-spacing: -0.03em;
  color: var(--orange);
  display: flex; align-items: center; gap: 8px;
}
.logo .mark {
  width: 12px; height: 12px; border-radius: 3px;
  background: var(--orange);
  display: inline-block;
  transform: rotate(45deg);
}
.logo span.light { color: var(--grey); font-weight: 400; }
.logo img { display: block; height: 64px; width: auto; }
header .logo img { height: 56px; }
.nav-links { display: flex; gap: 34px; align-items: center; list-style: none; }
.nav-links a {
  font-size: 0.92rem; font-weight: 500; color: var(--slate);
  transition: color .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a.active { position: relative; }
.nav-links a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px;
  height: 2px; background: var(--orange); border-radius: 2px;
}
.btn {
  display: inline-block;
  background: var(--orange);
  color: #fff; font-weight: 600; font-size: 0.95rem;
  padding: 12px 26px; border-radius: 100px;
  transition: background .2s, transform .2s, box-shadow .2s;
}
/* Smaller button for header nav only */
header .nav > .btn {
  font-size: 0.82rem;
  padding: 8px 18px;
}
/* Remove white halo from logo on white header */
header .logo img {
  mix-blend-mode: multiply;
}
.btn:hover { background: var(--orange-deep); transform: translateY(-1px); box-shadow: 0 8px 22px rgba(236,116,4,0.28); }
.btn:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
.btn.ghost {
  background: transparent; color: var(--ink);
  border: 1.5px solid var(--line);
}
.btn.ghost:hover { border-color: var(--ink); background: transparent; box-shadow: none; }
.btn.on-dark { background: var(--orange); }
.menu-toggle { display: none; background: none; border: 0; font-size: 1.6rem; cursor: pointer; color: var(--ink); }

/* ---------- Hero (home, split with image) ---------- */
.hero { padding: 96px 0 90px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 64px; align-items: center; }
.eyebrow {
  display: inline-block;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--teal);
  margin-bottom: 20px;
}
.hero h1 { max-width: 16ch; margin-bottom: 24px; }
.hero h1 em { font-style: normal; color: var(--orange); }
.hero p.lede { font-size: 1.18rem; max-width: 50ch; margin-bottom: 38px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-figure { position: relative; }
.hero-figure::before {
  content: ""; position: absolute; inset: 22px -22px -22px 22px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(236,116,4,0.14), rgba(0,154,165,0.10));
  z-index: 0;
}
.hero-figure img {
  position: relative; z-index: 1;
  width: 100%; height: 460px; object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(26,26,26,0.14);
}
.hero-figure figcaption {
  position: absolute; z-index: 2; left: 22px; bottom: 22px;
  background: rgba(255,255,255,0.94); backdrop-filter: blur(8px);
  border-radius: 11px; padding: 13px 18px;
  font-size: 0.82rem; font-weight: 600; color: var(--ink);
  display: flex; align-items: center; gap: 9px;
  box-shadow: 0 8px 24px rgba(26,26,26,0.10);
}
.hero-figure figcaption .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }

/* ---------- Sections ---------- */
section { padding: 90px 0; }
section.tint { background: var(--mist); }
.section-head { max-width: 60ch; margin-bottom: 56px; }
.section-head p { font-size: 1.08rem; margin-top: 16px; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 24px; }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(26,26,26,0.07); border-color: transparent; }
.card h3 { margin: 18px 0 10px; }
.card p { font-size: 0.96rem; }
.card .icon {
  width: 44px; height: 44px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  background: rgba(236,116,4,0.10); color: var(--orange);
}
.card .icon.teal { background: rgba(0,154,165,0.10); color: var(--teal); }
.card a.more { font-size: 0.9rem; font-weight: 600; color: var(--orange); display: inline-block; margin-top: 14px; }
.card a.more:hover { color: var(--orange-deep); }

/* dual-track panels */
.track {
  border-radius: var(--radius);
  padding: 48px 42px;
  display: flex; flex-direction: column; gap: 14px;
}
.track .tag {
  align-self: flex-start;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 100px;
}
.track.new { background: var(--ink); color: #fff; }
.track.new h2 { color: #fff; }
.track.new p { color: rgba(255,255,255,0.72); }
.track.new .tag { background: rgba(236,116,4,0.18); color: #FFB066; }
.track.established { background: var(--mist); border: 1px solid var(--line); }
.track.established .tag { background: rgba(0,154,165,0.10); color: var(--teal-dark); }
.track ul { list-style: none; margin-top: 6px; }
.track ul li { padding: 9px 0 9px 28px; position: relative; font-size: 0.97rem; }
.track.new ul li { color: rgba(255,255,255,0.82); border-top: 1px solid rgba(255,255,255,0.09); }
.track.established ul li { color: var(--slate); border-top: 1px solid var(--line); }
.track ul li::before {
  content: "→"; position: absolute; left: 0; color: var(--orange); font-weight: 700;
}
.track .btn { align-self: flex-start; margin-top: 18px; }

/* ---------- Loop / steps ---------- */
.loop { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; counter-reset: step; }
.loop .step {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px; position: relative;
  transition: transform .25s, box-shadow .25s;
}
.loop .step:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(26,26,26,0.06); }
.loop .step::before {
  counter-increment: step; content: "0" counter(step);
  font-family: var(--font-display); font-weight: 700; font-size: 0.85rem;
  color: var(--orange);
  display: block; margin-bottom: 12px;
}
.loop .step h4 { font-size: 1rem; margin-bottom: 6px; }
.loop .step p { font-size: 0.86rem; }

/* ---------- Credibility strip ---------- */
.cred { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cred .item { border-top: 2px solid var(--orange); padding-top: 22px; }
.cred .item h3 { font-size: 1.05rem; margin-bottom: 8px; }
.cred .item p { font-size: 0.94rem; }

/* ---------- Dark CTA band ---------- */
.cta-band { background: var(--ink); border-radius: 22px; padding: 72px 56px; text-align: center; position: relative; overflow: hidden; }
.cta-band::before {
  content: ""; position: absolute; right: -120px; top: -120px;
  width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(236,116,4,0.22), transparent 70%);
}
.cta-band h2 { color: #fff; margin-bottom: 16px; position: relative; }
.cta-band p { color: rgba(255,255,255,0.7); max-width: 54ch; margin: 0 auto 34px; position: relative; }
.cta-band .btn { position: relative; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: 90px 0 70px; border-bottom: 1px solid var(--line); }
.page-hero h1 { max-width: 20ch; margin-bottom: 20px; font-size: clamp(2.1rem, 4.4vw, 3rem); }
.page-hero p.lede { font-size: 1.15rem; max-width: 56ch; }

/* ---------- Split rows ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split .visual {
  background: var(--mist); border: 1px solid var(--line); border-radius: var(--radius);
  min-height: 320px; display: flex; align-items: center; justify-content: center;
  padding: 36px;
}
.photo { border-radius: var(--radius); overflow: hidden; position: relative; }
.photo img { width: 100%; height: 420px; object-fit: cover; transition: transform .6s ease; }
.photo:hover img { transform: scale(1.025); }
.photo .credit {
  position: absolute; right: 12px; bottom: 10px;
  font-size: 0.68rem; color: rgba(255,255,255,0.75);
  background: rgba(26,26,26,0.45); padding: 3px 9px; border-radius: 100px;
}

/* image band */
.img-band { border-radius: var(--radius); overflow: hidden; position: relative; }
.img-band img { width: 100%; height: 380px; object-fit: cover; }
.img-band .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(26,26,26,0.72) 0%, rgba(26,26,26,0.28) 60%, transparent 100%);
  display: flex; align-items: center;
}
.img-band .overlay .inner { padding: 0 56px; max-width: 56ch; }
.img-band .overlay h2 { color: #fff; margin-bottom: 12px; }
.img-band .overlay p { color: rgba(255,255,255,0.82); }

/* abstract loop graphic */
.ring {
  width: 230px; height: 230px; border-radius: 50%;
  border: 2px dashed var(--teal); position: relative;
  display: flex; align-items: center; justify-content: center;
  animation: ringspin 60s linear infinite;
}
.ring .core {
  width: 96px; height: 96px; border-radius: 50%;
  background: var(--orange);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 0.78rem;
  text-align: center; line-height: 1.25;
  box-shadow: 0 14px 34px rgba(236,116,4,0.35);
  animation: ringspin 60s linear infinite reverse;
}
.ring .node {
  position: absolute; width: 14px; height: 14px; border-radius: 50%;
  background: var(--teal); border: 3px solid var(--white);
}
.ring .node:nth-child(2) { top: -8px; left: 50%; transform: translateX(-50%); }
.ring .node:nth-child(3) { right: -8px; top: 50%; transform: translateY(-50%); }
.ring .node:nth-child(4) { bottom: -8px; left: 50%; transform: translateX(-50%); }
.ring .node:nth-child(5) { left: -8px; top: 50%; transform: translateY(-50%); }
@keyframes ringspin { to { transform: rotate(360deg); } }

/* ---------- Roadmap ---------- */
.roadmap { border-left: 2px solid var(--line); margin-left: 8px; }
.roadmap .phase { position: relative; padding: 0 0 44px 38px; }
.roadmap .phase:last-child { padding-bottom: 0; }
.roadmap .phase::before {
  content: ""; position: absolute; left: -8px; top: 6px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--orange); border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--orange);
}
.roadmap .phase .label {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 6px;
}
.roadmap .phase h3 { margin-bottom: 8px; }
.roadmap .phase p { max-width: 60ch; }

/* ---------- Forms ---------- */
form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
label { font-size: 0.85rem; font-weight: 600; display: block; margin: 18px 0 7px; }
input, textarea, select {
  width: 100%; padding: 13px 16px;
  border: 1.5px solid var(--line); border-radius: 10px;
  font-family: var(--font-body); font-size: 0.95rem;
  background: var(--white);
  transition: border-color .2s;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--orange); }
.form-note { font-size: 0.85rem; color: var(--grey); margin-top: 14px; }
.form-success {
  background: rgba(0,154,165,0.08); border: 1px solid var(--teal);
  border-radius: 10px; padding: 16px 20px; margin-top: 20px;
  color: var(--teal-dark); font-weight: 500; display: none;
}

/* ---------- Footer ---------- */
footer { background: var(--mist); border-top: 1px solid var(--line); padding: 64px 0 40px; margin-top: 90px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.foot-grid p { font-size: 0.92rem; max-width: 36ch; }
.foot-grid h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 16px; color: var(--ink); }
.foot-grid ul { list-style: none; }
.foot-grid ul li { margin-bottom: 10px; }
.foot-grid ul a { font-size: 0.92rem; color: var(--slate); }
.foot-grid ul a:hover { color: var(--ink); }
.legal { border-top: 1px solid var(--line); padding-top: 26px; font-size: 0.82rem; color: var(--grey); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .ring, .ring .core { animation: none; }
  .photo img, .card, .btn, .loop .step { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .loop { grid-template-columns: repeat(2, 1fr); }
  .split, .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-figure img { height: 340px; }
  .foot-grid { grid-template-columns: 1fr; gap: 32px; }
  .cred { grid-template-columns: 1fr; }
  .img-band .overlay .inner { padding: 0 28px; }
  .nav-links {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    background: var(--white); flex-direction: column; gap: 0;
    border-bottom: 1px solid var(--line); padding: 12px 28px 20px;
    align-items: flex-start;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 12px 0; }
  .menu-toggle { display: block; }
  .nav > .btn { display: none; }
}
@media (max-width: 600px) {
  .grid.cols-2, .grid.cols-3 { grid-template-columns: 1fr; }
  .loop { grid-template-columns: 1fr; }
  .hero { padding: 60px 0 56px; }
  section { padding: 64px 0; }
  .cta-band { padding: 52px 28px; }
  .track { padding: 36px 26px; }
  form .row { grid-template-columns: 1fr; }
  .img-band img { height: 460px; }
  .img-band .overlay { background: linear-gradient(0deg, rgba(26,26,26,0.78) 0%, rgba(26,26,26,0.30) 100%); align-items: flex-end; padding-bottom: 32px; }
}
/* ============================================================
   Legal / Privacy Policy page  (added for PDPA Privacy Policy)
   ============================================================ */
.legal-head {
  padding: 64px 0 32px;
  border-bottom: 1px solid var(--line);
  background: var(--mist);
}
.legal-head h1 { margin: 14px 0 16px; }
.legal-head .lede { color: var(--slate); max-width: 720px; font-size: 1.05rem; }
.legal-doc { max-width: 768px; margin: 0 auto; padding: 56px 28px 72px; }
.legal-doc h2 {
  font-size: 1.25rem; color: var(--ink); margin: 40px 0 12px;
  padding-top: 8px;
}
.legal-doc h2:first-of-type { margin-top: 8px; }
.legal-doc p { color: var(--slate); margin: 0 0 14px; line-height: 1.7; }
.legal-doc strong { color: var(--ink); }
.legal-meta {
  font-size: 0.82rem; color: var(--grey); letter-spacing: 0.01em;
  padding-bottom: 8px; border-bottom: 1px solid var(--line); margin-bottom: 8px;
}
.legal-list {
  list-style: disc; padding-left: 1.3em; margin: 0 0 16px;
}
.legal-list li { color: var(--slate); margin: 0 0 9px; line-height: 1.65; }
.legal-list li strong { color: var(--ink); }
.legal-contact {
  background: var(--mist); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px; line-height: 1.8;
}
.legal-contact a { color: var(--teal); }
.legal-doc a { color: var(--teal); text-decoration: underline; text-underline-offset: 2px; }
/* Draft placeholders — must be removed before publishing */
.confirm {
  display: inline-block; background: #FFF1E0; color: var(--orange-deep, #DA4700);
  border: 1px dashed var(--orange, #EC7404); border-radius: 6px;
  font-size: 0.72rem; font-weight: 600; padding: 1px 7px; margin-left: 4px;
}
