/* ==========================================================================
   Self-hosted fonts (Google Montserrat + Lato, latin, woff2). No third-party requests.
   Montserrat ships as a single variable file (weight 100-900).
   ========================================================================== */
@font-face{font-family:'Montserrat';font-style:normal;font-weight:100 900;font-display:swap;src:url('/assets/fonts/montserrat-var.woff2') format('woff2');}
@font-face{font-family:'Lato';font-style:normal;font-weight:400;font-display:swap;src:url('/assets/fonts/lato-400.woff2') format('woff2');}
@font-face{font-family:'Lato';font-style:normal;font-weight:700;font-display:swap;src:url('/assets/fonts/lato-700.woff2') format('woff2');}
@font-face{font-family:'Lato';font-style:normal;font-weight:900;font-display:swap;src:url('/assets/fonts/lato-900.woff2') format('woff2');}
@font-face{font-family:'Lato';font-style:italic;font-weight:400;font-display:swap;src:url('/assets/fonts/lato-400-italic.woff2') format('woff2');}
@font-face{font-family:'Lato';font-style:italic;font-weight:700;font-display:swap;src:url('/assets/fonts/lato-700-italic.woff2') format('woff2');}

/* ==========================================================================
   Dr Mark Cheng — hand-coded static site
   Design tokens mirror the original Elementor kit (kit-7).
   ========================================================================== */

:root {
  --blue:        #018DD0;   /* primary   */
  --teal:        #00E3CF;   /* accent    */
  --black:       #000000;   /* secondary */
  --text:        #222222;   /* body text */
  --white:       #ffffff;
  --gray:        #606060;
  --gray-light:  #9c9c9c;
  --footer-bg:   #2a2a2a;
  --footer-bg-2: #1e1e1e;

  --font-head: "Montserrat", system-ui, sans-serif;
  --font-body: "Lato", system-ui, sans-serif;
  --font-ui:   "Roboto", system-ui, sans-serif;

  --maxw: 1140px;
  --gutter: clamp(1rem, 4vw, 3rem);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  padding-top: 30px; /* clears the fixed top bar */
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--gray-light); }
h1, h2, h3, h4 { font-family: var(--font-head); margin: 0 0 .4em; line-height: 1; }
p { margin: 0 0 1.15em; }
ul { margin: 0 0 1.15em; padding-left: 1.2em; }
li { margin: .3em 0; }

/* ---------- layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(3rem, 7vw, 6rem); }
.section--tight { padding-block: clamp(2rem, 4vw, 3.5rem); }
.bg-dark  { background: var(--black); color: var(--white); }
.bg-white { background: var(--white); color: var(--text); }
.bg-blue  { background: var(--blue);  color: var(--white); }
.eyebrow {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 700;
  font-size: .8rem;
  color: var(--teal);
  margin: 0 0 .6em;
}
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.text-center { text-align: center; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .5px;
  text-transform: uppercase;
  padding: .85em 2em;
  border-radius: 40px;
  border: 1px solid var(--blue);
  background: var(--white);
  color: var(--blue);
  cursor: pointer;
  transition: background .25s ease, color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.btn:hover, .btn:focus {
  background: var(--teal);
  color: var(--white);
  border-color: var(--blue);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,.18);
}
.btn--solid { background: var(--teal); color: var(--white); border-color: var(--teal); }
.btn--solid:hover { background: var(--blue); border-color: var(--blue); }

/* ==========================================================================
   Header  — fixed top bar; transparent nav that overlays the hero (matches original)
   ========================================================================== */
/* Only the thin top bar is static/fixed. */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: var(--black);
  min-height: 30px; display: flex; align-items: center;
}
.topbar__inner { width: 100%; display: flex; justify-content: flex-end; gap: 0; padding-block: .4rem; }
.topbar a {
  font-family: var(--font-head);
  font-size: 10px; font-weight: 500;
  letter-spacing: normal; text-transform: uppercase;
  color: var(--white);
  padding: 0 20px;
  transition: color .2s ease;
}
.topbar a:hover { color: var(--teal); }

/* The nav row is 100% transparent and overlaps the hero; it scrolls away with the page. */
.site-header { position: relative; z-index: 100; background: transparent; margin-bottom: -91px; }
.navbar { display: flex; align-items: center; justify-content: space-between; min-height: 91px; gap: 1rem; }
.navbar__logo img { width: 190px; height: auto; }
.nav-links { display: flex; align-items: center; gap: 35px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  position: relative;
  font-family: var(--font-head);
  font-size: .9rem; font-weight: 700;
  color: var(--white);
  transition: color .2s ease;
}
/* sliding underline (matches the original e--pointer-underline / e--animation-slide) */
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  height: 2px; width: 100%; background: var(--teal);
  transform: scaleX(0); transform-origin: left center;
  transition: transform .3s cubic-bezier(.58,.3,.005,1);
}
.nav-links a:hover::after, .nav-links a:focus-visible::after { transform: scaleX(1); }
.nav-links a:hover, .nav-links a:focus-visible { color: var(--teal); }          /* hover = green */
.nav-links a[aria-current="page"] { color: var(--blue); }                         /* active = blue */

/* Animated hamburger — bars morph into an X on open, teal on hover */
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: .4rem; line-height: 0; }
.nav-toggle .bar {
  display: block; width: 26px; height: 2px; border-radius: 2px;
  background: #fff;
  transition: transform .3s ease, opacity .2s ease, background-color .2s ease;
}
.nav-toggle .bar + .bar { margin-top: 6px; }
.nav-toggle:hover .bar, .nav-toggle:focus-visible .bar { background: var(--teal); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  background-color: var(--black);
  background-repeat: no-repeat;
  background-position: top right;
  background-size: cover;
  min-height: 560px;
  display: flex;
  align-items: center;
  padding-top: 91px; /* clear the transparent nav that overlaps the hero */
}
.hero__inner { max-width: 62%; padding-block: clamp(2rem, 5vw, 4rem); position: relative; z-index: 1; }
/* per-page hero background treatments — matched to the originals */
.hero--contain  { background-size: contain;    background-position: top right;  min-height: 560px; }
.hero--contain .hero__inner { max-width: 48%; }
.hero--cover-tc { background-size: cover;       background-position: center top; min-height: 460px; }
/* consulting hero sits over a busy image, so it carries a legibility overlay on desktop too */
.hero--cover-tc::after {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,.45) 45%, rgba(0,0,0,.2) 100%);
}
.hero--pct      { background-size: 40% auto;    background-position: top right;  min-height: 620px; }
/* plain dark band for pages with no image hero (legal, 404) */
.hero--page     { min-height: 300px; background-image: none !important; }
.hero h1 {
  font-family: var(--font-head);
  color: var(--white);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1;
  margin-bottom: .5em;
}
.hero p { color: var(--white); font-weight: 800; line-height: 1.5; letter-spacing: -.1px; }
.hero .sig { font-style: italic; font-weight: 800; }

/* ==========================================================================
   Feature row (image + text)
   ========================================================================== */
.feature h2 { color: var(--text); font-weight: 800; font-size: clamp(1.9rem, 4vw, 2.9rem); }
.feature .lead { font-weight: 600; }

/* ==========================================================================
   Quote band
   ========================================================================== */
.quote { text-align: left; }
.quote__inner { max-width: 720px; margin-inline: auto; }
.quote p { font-weight: 700; }
.quote cite { display: block; text-align: right; font-style: normal; font-weight: 700; margin-top: 1em; }

/* ==========================================================================
   Video
   ========================================================================== */
.video-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
  cursor: pointer;
}
.video-embed img { width: 100%; height: 100%; object-fit: cover; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-embed__play {
  position: absolute; inset: 0; margin: auto;
  width: 68px; height: 48px;
  background: rgba(0,0,0,.55);
  border-radius: 12px;
  display: grid; place-items: center;
  transition: background .2s;
}
.video-embed:hover .video-embed__play { background: #e12b27; }
.video-embed__play::after {
  content: ""; width: 0; height: 0;
  border-style: solid; border-width: 11px 0 11px 19px;
  border-color: transparent transparent transparent #fff;
  margin-left: 3px;
}

/* ==========================================================================
   CTA band with background image
   ========================================================================== */
.cta-band {
  position: relative;
  background-color: var(--black);
  background-repeat: no-repeat;
  background-position: center right;
  background-size: cover;
}
.cta-band__inner { max-width: 60%; }
.cta-band h2 { color: var(--white); font-weight: 800; font-size: clamp(2rem, 5vw, 3rem); text-transform: uppercase; }
.cta-band p { color: var(--white); }

/* ==========================================================================
   Footer  (logo + phrase / Explore / Connect, IDDO-style)
   ========================================================================== */
.site-footer { background: #141414; color: #b9b9b9; }
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  padding-block: clamp(3rem, 6vw, 4.5rem) clamp(2rem, 4vw, 3rem);
}
.footer-brand__logo img { width: 220px; height: auto; }
.footer-brand p { margin: 1.2rem 0 0; max-width: 42ch; font-size: .95rem; line-height: 1.7; color: #9d9d9d; }
.footer-social-icons { display: flex; gap: 1rem; margin-top: 1.4rem; }
.footer-social-icons a { color: #cfcfcf; display: inline-flex; transition: color .2s, transform .2s; }
.footer-social-icons a:hover { color: var(--teal); transform: translateY(-2px); }
.footer-social-icons svg { width: 20px; height: 20px; }

.footer-col h3 {
  font-family: var(--font-head);
  text-transform: uppercase; letter-spacing: 2px;
  font-size: .75rem; font-weight: 700; color: #fff;
  margin: 0 0 1.2rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin: 0; }
.footer-col a { display: inline-block; padding: .38rem 0; font-size: .95rem; color: #cfcfcf; }
.footer-col a:hover { color: var(--teal); }

.site-footer__legal { border-top: 1px solid rgba(255,255,255,.08); }
.disclaimer { padding-top: 1.6rem; font-size: .72rem; line-height: 1.7; color: #7c7c7c; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  padding-block: 1.4rem 2.2rem;
}
.footer-copy { font-size: .8rem; color: #8a8a8a; margin: 0; }
.legal-links { display: flex; flex-wrap: wrap; gap: 1.1rem; margin: 0; }
.legal-links a { color: #9d9d9d; font-size: .8rem; }
.legal-links a:hover { color: var(--teal); }

/* ==========================================================================
   Three-up "how I can help" cards
   ========================================================================== */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.2rem, 3vw, 2rem); }
.card {
  background: #f5f6f7; border: 1px solid #e7e9eb; border-radius: 0;
  padding: 2rem 1.8rem; display: flex; flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(0,0,0,.08); border-color: #d5d8db; }
.card__icon {
  width: 52px; height: 52px; border-radius: 12px;
  display: grid; place-items: center; margin-bottom: 1.1rem;
  background: rgba(1,141,208,.10); color: var(--blue);
}
.card__icon svg { width: 26px; height: 26px; }
.card h3 { font-family: var(--font-head); font-weight: 800; font-size: 1.35rem; color: var(--text); margin: 0 0 .5rem; }
.card p { color: var(--gray); font-size: .98rem; margin: 0 0 1.2rem; }
.card__link {
  margin-top: auto; font-family: var(--font-head); font-weight: 700;
  font-size: .8rem; letter-spacing: .5px; text-transform: uppercase; color: var(--blue);
}
.card__link:hover { color: var(--teal); }
.card__link::after { content: " \2192"; }

/* skip link */
.skip-link { position: absolute; left: -999px; top: 0; background: var(--teal); color: #fff; padding: .6rem 1rem; z-index: 200; }
.skip-link:focus { left: 0; }

/* ==========================================================================
   Motion — scroll reveal (progressive enhancement)
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .grid-2 { grid-template-columns: 1fr; }
  .hero__inner, .cta-band__inner { max-width: 100%; }
  .cta-band { background-position: center; }
  .cta-band__inner { background: rgba(0,0,0,.45); padding: 1.5rem; border-radius: 10px; }
  .cards-3 { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; }
}
@media (max-width: 720px) {
  body { font-size: 17px; }
  .topbar__inner { justify-content: center; gap: 1.2rem; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start;
    gap: 0; background: var(--black);
    padding: .5rem var(--gutter) 1.2rem;
    border-top: 1px solid rgba(255,255,255,.08);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: .7rem 0; width: 100%; }
  .navbar { position: relative; }
  .nav-toggle { display: block; }
}

/* ==========================================================================
   Interior pages
   ========================================================================== */
/* interior hero reuses .hero; subtitle helper */
.hero .subtitle { font-weight: 800; line-height: 1.5; color: var(--white); }
.hero--tall { min-height: 66vh; }

/* Section title with faint watermark behind */
.section-title { position: relative; text-align: center; margin-bottom: 3rem; }
.section-title h2 {
  position: relative; z-index: 1;
  font-weight: 800; font-size: clamp(2rem, 5vw, 3.2rem);
  color: var(--text); letter-spacing: .5px;
}
.section-title .watermark {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  font-family: var(--font-head); font-weight: 800;
  font-size: clamp(3.5rem, 12vw, 8rem); line-height: 1;
  color: rgba(0,0,0,.05); white-space: nowrap; z-index: 0; pointer-events: none;
  text-transform: uppercase;
}
.bg-dark .section-title h2 { color: #fff; }
.bg-dark .section-title .watermark { color: rgba(255,255,255,.06); }

/* Checklist with teal checks */
.checklist { list-style: none; padding: 0; margin: 1.2rem 0; }
.checklist li { position: relative; padding-left: 2rem; margin: .55rem 0; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .15em;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--blue);
  -webkit-mask: no-repeat center / 12px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
          mask: no-repeat center / 12px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}
.price { font-weight: 700; }

/* Program blocks (image + dark panel) */
.program-row { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
.program-row img { width: 100%; height: 100%; object-fit: cover; }
.program-row .panel { background: var(--black); color: #fff; padding: clamp(2rem, 4vw, 3.5rem); display: flex; flex-direction: column; justify-content: center; }
.program-row .panel h2, .program-row .panel h3 { color: #fff; font-weight: 800; text-transform: uppercase; }
.program-row .panel p { color: #d8d8d8; }
.program-row--rev .media { order: 2; }

/* Motivational gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gallery a { display: block; overflow: hidden; }
.gallery img { width: 100%; height: 220px; object-fit: cover; transition: transform .4s ease; }
.gallery a:hover img { transform: scale(1.06); }

/* About bio */
.bio-img { position: relative; }

/* Products */
.product-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; padding-block: clamp(2.5rem, 5vw, 4rem); }
.product-row + .product-row { border-top: 1px solid #eee; }
.product-row--rev .product-media { order: 2; }
.product-media img { margin-inline: auto; max-height: 420px; width: auto; }
.product-eyebrow { font-family: var(--font-head); text-transform: uppercase; letter-spacing: 1.5px; font-weight: 700; font-size: .72rem; color: var(--teal); margin: 0 0 .6rem; padding-top: .4rem; border-top: 2px solid #e5e5e5; display: inline-block; }
.product-row h2 { font-weight: 800; font-size: clamp(1.5rem, 3vw, 2.1rem); color: var(--text); }
.product-row details { margin: .2rem 0 1rem; }
.product-row details summary { color: var(--blue); font-family: var(--font-head); font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .5px; cursor: pointer; list-style: none; }
.product-row details summary::-webkit-details-marker { display: none; }
.product-row details[open] summary { color: var(--gray-light); }
.product-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1rem; }
.unavailable { display: inline-block; font-family: var(--font-head); font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .5px; color: var(--gray-light); border: 1px solid #ddd; border-radius: 40px; padding: .85em 2em; }

/* Legal pages */
.legal { max-width: 820px; margin-inline: auto; }
.legal .legal-meta { color: var(--gray-light); font-size: .9rem; margin-bottom: 2rem; }
.legal h2 { font-family: var(--font-head); font-weight: 700; font-size: 1.35rem; color: var(--text); margin: 2rem 0 .6rem; }
.legal p, .legal li { color: #3a3a3a; }
.legal a { color: var(--blue); }
.legal a:hover { color: var(--teal); }

/* 404 */
.err { text-align: center; padding-block: clamp(4rem, 10vw, 8rem); }
.err h1 { font-size: clamp(3rem, 12vw, 7rem); font-weight: 800; color: var(--blue); line-height: 1; }
.err p { max-width: 460px; margin-inline: auto; }

@media (max-width: 760px) {
  .program-row { grid-template-columns: 1fr; }
  .program-row--rev .media { order: 0; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .product-row { grid-template-columns: 1fr; }
  .product-row--rev .product-media { order: 0; }
}

.hero > .container { position: relative; z-index: 1; }

/* Mobile heroes: cover + light scrim for legibility (desktop match is unaffected) */
@media (max-width: 760px) {
  .hero, .hero--contain, .hero--cover-tc, .hero--pct {
    background-size: cover; background-position: center; min-height: 440px; padding-top: 80px;
  }
  .hero--page { min-height: 230px; background-size: cover; }
  .hero::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.5); z-index: 0; }
  .hero--page::after { display: none; }
  .hero > .container, .hero__inner { position: relative; z-index: 1; }
}
