/* ==========================================================================
   Dr Kiran Morjaria — presenter site
   Design ref: dohealth.co — white, whitespace, big confident type, full-bleed
   ========================================================================== */

:root {
  --black: #111111;
  --white: #ffffff;
  --grey-50: #fafaf9;
  --grey-100: #f2f1ee;
  --grey-300: #d8d5cf;
  --grey-500: #767370;
  --grey-700: #4a4844;

  --clay: #bf6a45;
  --clay-dark: #9c5236;
  --clay-light: #f0c9a0;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --max-w: 1240px;
  --gutter: 24px;

  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 40px;
  --space-5: 64px;
  --space-6: 96px;
  --space-7: 140px;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--black);
  color: var(--white);
  padding: 12px 20px;
  z-index: 1000;
}
.skip-link:focus { left: 0; }

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--grey-700);
  margin-bottom: var(--space-2);
}
.eyebrow.center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 16px 32px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
  border: 2px solid transparent;
}
.btn:hover { transform: translateY(-2px); }
.btn-light { background: var(--white); color: var(--black); }
.btn-light:hover { background: var(--grey-100); }
.btn-dark { background: var(--black); color: var(--white); }
.btn-dark:hover { background: var(--grey-700); }
.btn-outline { background: transparent; color: var(--black); border-color: var(--black); }
.btn-outline:hover { background: var(--black); color: var(--white); }
.btn-hero { box-shadow: 0 6px 28px rgba(0,0,0,0.45); }

/* ---------- Shared section titles ---------- */
.section-title {
  font-size: clamp(28px, 4.5vw, 44px);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin-bottom: var(--space-2);
}
.section-title.center { text-align: center; }

/* ---------- Fade-in on scroll ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .fade-in { opacity: 1; transform: none; transition: none; }
}

/* ==========================================================================
   NAV
   ========================================================================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--grey-100);
  transition: transform 0.35s var(--ease);
}
.nav.nav-hidden { transform: translateY(-100%); }

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 18px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-weight: 800;
  letter-spacing: 0.04em;
  font-size: 14px;
}
.nav-links {
  display: none;
  align-items: center;
  gap: var(--space-4);
  font-size: 14px;
  font-weight: 600;
}
.nav-links a:hover { opacity: 0.6; }
.nav-cta {
  background: var(--black);
  color: var(--white);
  padding: 10px 20px;
  border-radius: 999px;
}
.nav-cta:hover { opacity: 1 !important; background: var(--grey-700); }

.nav-toggle {
  background: none;
  border: none;
  width: 32px; height: 24px;
  position: relative;
  padding: 0;
}
.nav-toggle span {
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: var(--black);
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 2px; }
.nav-toggle span:nth-child(2) { top: 11px; }
.nav-toggle span:nth-child(3) { top: 20px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

.nav-mobile {
  display: flex;
  flex-direction: column;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s var(--ease);
  border-top: 1px solid var(--grey-100);
}
.nav-mobile.is-open { max-height: 240px; }
.nav-mobile a {
  padding: 16px var(--gutter);
  font-weight: 600;
  border-bottom: 1px solid var(--grey-100);
}

@media (min-width: 860px) {
  .nav-links { display: flex; }
  .nav-toggle { display: none; }
  .nav-mobile { display: none; }
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0) 35%, rgba(0,0,0,0.55) 100%);
}
.hero-content {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  padding: 0 var(--gutter) var(--space-6);
  color: var(--white);
  max-width: var(--max-w);
  margin: 0 auto;
}
.hero-headline {
  font-size: clamp(40px, 8vw, 96px);
  line-height: 0.98;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-3);
}
.hero-sub {
  font-size: clamp(15px, 2vw, 19px);
  opacity: 0.9;
  margin-bottom: var(--space-4);
}

/* ==========================================================================
   TICKER
   ========================================================================== */
.ticker {
  background: var(--black);
  color: var(--white);
  overflow: hidden;
  padding: var(--space-3) 0;
  white-space: nowrap;
  margin-top: 61px;
}
@media (min-width: 860px) {
  .ticker { margin-top: 74px; }
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker-scroll 32s linear infinite;
  will-change: transform;
}
.ticker-set {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-right: 14px;
  font-size: clamp(16px, 2.4vw, 22px);
  font-weight: 700;
  letter-spacing: 0.01em;
}
.ticker-set .dot { color: var(--grey-500); }
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
}

/* ==========================================================================
   FEATURED ON
   ========================================================================== */
.featured-on {
  padding: var(--space-7) var(--gutter);
  max-width: var(--max-w);
  margin: 0 auto;
}
.featured-on-grid {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: 1fr;
  align-items: center;
}
.featured-on-media img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  object-fit: cover;
  aspect-ratio: 1 / 1;
}
.logo-wall {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-5);
  margin-top: var(--space-4);
}
.logo-item {
  height: 64px;
  width: auto;
  object-fit: contain;
}
.logo-combo {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 64px;
}
.logo-combo img { height: 100%; width: auto; }
.logo-combo span {
  font-weight: 800;
  font-size: 26px;
  letter-spacing: -0.01em;
  color: var(--grey-700);
}
.logo-tedx {
  font-weight: 800;
  font-size: 40px;
  letter-spacing: -0.01em;
  color: var(--black);
  display: inline-flex;
  height: auto;
}
.logo-tedx .x { color: var(--clay); }
@media (min-width: 860px) {
  .featured-on-grid { grid-template-columns: 1.1fr 0.9fr; }
  .featured-on-media { order: 2; }
  .featured-on-media img { max-width: 420px; margin-left: auto; }
}

/* ==========================================================================
   ABOUT
   ========================================================================== */
.about {
  padding: var(--space-7) var(--gutter);
  max-width: var(--max-w);
  margin: 0 auto;
}
.about-grid {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: 1fr;
}
.about-media img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  aspect-ratio: 4 / 5;
}
.about-copy h2 {
  font-size: clamp(28px, 4.5vw, 44px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-3);
}
.about-copy p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--grey-700);
  margin-bottom: var(--space-2);
  max-width: 54ch;
}
@media (min-width: 860px) {
  .about-grid { grid-template-columns: 0.9fr 1.1fr; align-items: center; }
}

/* ==========================================================================
   SHOWREEL
   ========================================================================== */
.showreel {
  padding: 0 var(--gutter) var(--space-7);
  max-width: var(--max-w);
  margin: 0 auto;
}
.showreel-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: var(--black);
}
.showreel-play {
  position: relative;
  width: 100%;
  height: 100%;
  border: none;
  padding: 0;
  background: none;
  display: block;
}
.showreel-play[hidden] { display: none; }
.showreel-play img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  transition: opacity 0.3s var(--ease);
}
.showreel-play:hover img { opacity: 0.65; }
.play-badge {
  position: absolute;
  left: var(--space-3);
  bottom: var(--space-3);
  background: var(--white);
  color: var(--black);
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
}
.duration {
  position: absolute;
  right: var(--space-3);
  bottom: var(--space-3);
  background: rgba(0,0,0,0.6);
  color: var(--white);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}
.showreel-embed, .showreel-embed iframe {
  width: 100%;
  height: 100%;
  border: none;
}
.showreel-caption {
  margin-top: var(--space-2);
  color: var(--grey-500);
  font-size: 14px;
}

/* ==========================================================================
   GALLERY
   ========================================================================== */
.gallery {
  padding: var(--space-7) var(--gutter);
  max-width: var(--max-w);
  margin: 0 auto;
}
.gallery-compact {
  padding: var(--space-5) var(--gutter);
}
.gallery-compact .gallery-wrap { margin-top: 0; }
.gallery-compact .gallery-track img { width: min(55vw, 260px); }
.gallery-compact .gallery-arrow { width: 36px; height: 36px; font-size: 18px; }
.gallery-wrap {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-5);
}
.gallery-track {
  flex: 1;
  min-width: 0;
  display: flex;
  gap: var(--space-3);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
}
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track {
  scrollbar-width: none;
}
.gallery-track img {
  flex: 0 0 auto;
  width: min(70vw, 320px);
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
  scroll-snap-align: center;
}
.gallery-arrow {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--grey-300);
  background: var(--white);
  font-size: 22px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.gallery-arrow:hover { background: var(--black); color: var(--white); }

/* ==========================================================================
   SERVICES
   ========================================================================== */
.services {
  padding: var(--space-7) 0;
  background: #ece7e0;
}
.services-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.services-grid {
  display: grid;
  gap: var(--space-5);
  margin-top: var(--space-5);
  grid-template-columns: 1fr;
}
.service {
  background: var(--clay-light);
  border-radius: 16px;
  padding: var(--space-4);
}
.service h3 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: var(--space-2);
}
.service p {
  color: var(--grey-700);
  line-height: 1.6;
  font-size: 16px;
}
@media (min-width: 860px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq {
  padding: var(--space-7) var(--gutter);
  max-width: 820px;
  margin: 0 auto;
}
.faq-list { margin-top: var(--space-4); }
.faq-item {
  border-bottom: 1px solid var(--grey-300);
  padding: var(--space-3) 0;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 18px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 22px;
  font-weight: 400;
  margin-left: var(--space-2);
  transition: transform 0.25s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
  margin-top: var(--space-2);
  color: var(--grey-700);
  line-height: 1.6;
  font-size: 16px;
  max-width: 65ch;
}

/* ==========================================================================
   CTA BANNER
   ========================================================================== */
.cta-banner {
  background: var(--black);
  color: var(--white);
  text-align: center;
  padding: var(--space-7) var(--gutter);
}
.cta-banner h2 {
  font-size: clamp(30px, 5vw, 52px);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-4);
  max-width: 16ch;
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact {
  padding: var(--space-7) var(--gutter);
  max-width: 720px;
  margin: 0 auto;
}
.contact-email {
  display: block;
  font-size: clamp(26px, 5vw, 42px);
  font-weight: 800;
  margin: var(--space-2) 0 var(--space-5);
  word-break: break-word;
}
.contact-email:hover { text-decoration: underline; }

.contact-form { display: flex; flex-direction: column; gap: var(--space-3); }
.form-row { display: flex; flex-direction: column; gap: 6px; }
.form-row label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--grey-700);
}
.form-row input,
.form-row select,
.form-row textarea {
  font-family: inherit;
  font-size: 16px;
  padding: 14px 16px;
  border: 1px solid var(--grey-300);
  border-radius: 8px;
  background: var(--white);
  color: var(--black);
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: 2px solid var(--black);
  outline-offset: 1px;
}
.contact-form .btn { align-self: flex-start; margin-top: var(--space-2); }
.form-note { color: var(--grey-500); font-size: 14px; }
.form-status { font-size: 14px; font-weight: 600; }
.form-status.success { color: #1a7a3c; }
.form-status.error { color: #b3261e; }

.press-kit { margin-top: var(--space-5); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  border-top: 1px solid var(--grey-100);
  padding: var(--space-5) var(--gutter);
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.footer-social {
  display: flex;
  gap: var(--space-4);
  font-size: 14px;
  font-weight: 600;
}
.footer-social a:hover { opacity: 0.6; }
.footer-copy {
  color: var(--grey-500);
  font-size: 13px;
}
@media (min-width: 860px) {
  .footer-inner { flex-direction: row; justify-content: space-between; align-items: center; }
}
