/* ====================================================
   TARA GRIFFIN — CLINICAL PSYCHOLOGIST
   Global Stylesheet for Ontraport
   ====================================================

   SETUP INSTRUCTIONS:
   1. Paste this CSS into Ontraport → Settings → Global CSS
   2. Copy HTML blocks from each page file into Ontraport page sections
   3. Replace image placeholders with Ontraport-hosted URLs:
      - {{LOGO_HORIZONTAL}} → Horizontal logo image URL
      - {{LOGO_STACKED}}    → Stacked logo image URL
      - {{PORTRAIT}}        → Tara's portrait photo URL

   ==================================================== */

/* ── Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Outfit:wght@300;400;500;600&display=swap');

/* ── Design Tokens ── */
:root {
  /* Palette — derived from logo */
  --navy: #0D3254;
  --deep-blue: #14406E;
  --mid-blue: #1E88C7;
  --brand-blue: #41B4E5;
  --light-blue: #7BC8ED;
  --pale-blue: #E5F2F9;
  --ice: #F4F9FC;
  --white: #FFFFFF;
  --text: #2D3B4E;
  --text-light: #5A6B7F;
  --border: #D0DDE8;

  /* Typography */
  --font-heading: 'Cormorant', Georgia, 'Times New Roman', serif;
  --font-body: 'Outfit', -apple-system, sans-serif;

  /* Layout */
  --container: 1120px;
  --section-py: 88px;
  --gap: 28px;

  /* Radius */
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }

body {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.75;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--navy);
  line-height: 1.2;
  font-weight: 600;
}
h1 { font-size: clamp(38px, 5vw, 56px); letter-spacing: -0.02em; }
h2 { font-size: clamp(30px, 4vw, 42px); letter-spacing: -0.01em; }
h3 { font-size: clamp(22px, 2.5vw, 28px); }
h4 { font-size: 20px; font-weight: 500; }
p { margin-bottom: 18px; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 600; }

/* ── Layout ── */
.tg-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

/* ── Sections ── */
.tg-section {
  padding: var(--section-py) 0;
  position: relative;
  overflow: hidden;
}
.tg-section--pale { background: var(--pale-blue); }
.tg-section--ice { background: var(--ice); }
.tg-section--navy {
  background: var(--navy);
  color: rgba(255,255,255,0.85);
}
.tg-section--navy h2,
.tg-section--navy h3 { color: var(--white); }

.tg-section__heading {
  margin-bottom: 20px;
}
.tg-section__subtext {
  color: var(--text-light);
  font-size: 18px;
  max-width: 680px;
  margin-bottom: 40px;
}

/* ── Header ── */
.tg-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}
.tg-header.scrolled {
  box-shadow: 0 2px 24px rgba(13,50,84,0.06);
}
.tg-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px 28px;
}
.tg-header__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.tg-header__logo img {
  height: 44px;
  width: auto;
}
.tg-header__right {
  display: flex;
  align-items: center;
  gap: 8px;
}
.tg-header__nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.tg-header__nav a {
  font-size: 15px;
  font-weight: 400;
  color: var(--text);
  padding: 8px 16px;
  border-radius: var(--r-sm);
  transition: color 0.2s, background 0.2s;
}
.tg-header__nav a:hover,
.tg-header__nav a.active {
  color: var(--mid-blue);
  background: var(--ice);
}
.tg-header__cta {
  margin-left: 16px;
}

/* Mobile menu toggle */
.tg-header__toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-sm);
}
.tg-header__toggle span,
.tg-header__toggle span::before,
.tg-header__toggle span::after {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: 0.3s;
  position: relative;
}
.tg-header__toggle span::before,
.tg-header__toggle span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 22px;
}
.tg-header__toggle span::before { top: -7px; }
.tg-header__toggle span::after { top: 7px; }

/* ── Trust Bar ── */
.tg-trust-bar {
  background: var(--navy);
  color: rgba(255,255,255,0.8);
  text-align: center;
  padding: 11px 28px;
  font-size: 13.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
}
.tg-trust-bar span {
  display: inline-block;
  padding: 0 16px;
  position: relative;
}
.tg-trust-bar span + span::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--brand-blue);
}

/* ── Hero ── */
.tg-hero {
  padding: 72px 0 80px;
  position: relative;
}
.tg-hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.tg-hero__content { position: relative; z-index: 2; }
.tg-hero h1 { margin-bottom: 24px; }
.tg-hero__lead {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-light);
  margin-bottom: 0;
}
.tg-hero__actions {
  display: flex;
  gap: 14px;
  margin-top: 36px;
  flex-wrap: wrap;
}
.tg-hero__trust {
  margin-top: 28px;
  font-size: 14px;
  color: var(--text-light);
  padding-top: 24px;
  border-top: 1px solid var(--border);
  line-height: 1.6;
}
.tg-hero__portrait {
  position: relative;
}
.tg-hero__portrait img {
  width: 100%;
  max-width: 460px;
  border-radius: var(--r-lg);
  box-shadow: 0 24px 64px rgba(13,50,84,0.12);
}
/* Decorative ring behind portrait */
.tg-hero__portrait::before {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 2px solid var(--brand-blue);
  opacity: 0.15;
  pointer-events: none;
}
.tg-hero__portrait::after {
  content: '';
  position: absolute;
  bottom: -16px;
  left: -16px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--pale-blue);
  z-index: -1;
}

/* Page hero (inner pages) */
.tg-page-hero {
  padding: 64px 0 56px;
  background: linear-gradient(180deg, var(--ice) 0%, var(--white) 100%);
  position: relative;
}
.tg-page-hero h1 { margin-bottom: 20px; }
.tg-page-hero__lead {
  font-size: 19px;
  line-height: 1.7;
  color: var(--text-light);
  max-width: 720px;
}
.tg-page-hero__actions {
  display: flex;
  gap: 14px;
  margin-top: 32px;
  flex-wrap: wrap;
}

/* ── Buttons ── */
.tg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: var(--r-sm);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.25s ease;
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
}
.tg-btn--primary {
  background: var(--mid-blue);
  color: var(--white);
  border-color: var(--mid-blue);
}
.tg-btn--primary:hover {
  background: var(--navy);
  border-color: var(--navy);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(13,50,84,0.18);
}
.tg-btn--secondary {
  background: transparent;
  color: var(--mid-blue);
  border-color: var(--mid-blue);
}
.tg-btn--secondary:hover {
  background: var(--mid-blue);
  color: var(--white);
  transform: translateY(-1px);
}
.tg-btn--white {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}
.tg-btn--white:hover {
  background: var(--pale-blue);
  border-color: var(--pale-blue);
}
.tg-btn--sm {
  padding: 10px 22px;
  font-size: 14px;
}
/* Arrow icon for link-style buttons */
.tg-btn--link {
  background: none;
  border: none;
  color: var(--mid-blue);
  padding: 0;
  font-weight: 500;
}
.tg-btn--link::after {
  content: '\2192';
  transition: transform 0.2s;
}
.tg-btn--link:hover::after {
  transform: translateX(4px);
}

/* ── Cards ── */
.tg-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap);
}
.tg-cards--4 { grid-template-columns: repeat(4, 1fr); }
.tg-card {
  background: var(--white);
  border-radius: var(--r-md);
  padding: 36px 32px;
  border: 1px solid var(--border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.tg-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(13,50,84,0.08);
}
.tg-card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--r-sm);
  background: var(--pale-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.tg-card__icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--mid-blue);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tg-card h3 {
  font-size: 22px;
  margin-bottom: 12px;
}
.tg-card p {
  color: var(--text-light);
  font-size: 15.5px;
  line-height: 1.7;
}

/* ── Feature (2-col split) ── */
.tg-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.tg-feature--reverse { direction: rtl; }
.tg-feature--reverse > * { direction: ltr; }
.tg-feature__visual {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
}
.tg-feature__visual img {
  width: 100%;
  border-radius: var(--r-lg);
}
/* Gradient overlay for feature visual placeholders */
.tg-feature__visual--placeholder {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--pale-blue) 0%, var(--light-blue) 50%, var(--pale-blue) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tg-feature__content h2 { margin-bottom: 20px; }
.tg-feature__content p {
  color: var(--text-light);
  font-size: 17px;
}
.tg-feature__cta { margin-top: 28px; }

/* ── Lists ── */
.tg-list {
  padding: 0;
}
.tg-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 14px;
  line-height: 1.65;
}
.tg-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 10px;
  height: 10px;
  background: var(--brand-blue);
  border-radius: 2px;
  transform: rotate(45deg);
  opacity: 0.5;
}
.tg-list--check li::before {
  content: '\2713';
  background: none;
  transform: none;
  color: var(--brand-blue);
  font-size: 16px;
  font-weight: 700;
  top: 1px;
  opacity: 1;
}

/* Sub-points inline list */
.tg-subpoints {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: 24px;
  padding: 0;
}
.tg-subpoints li {
  font-size: 15px;
  color: var(--text-light);
  position: relative;
  padding-left: 20px;
}
.tg-subpoints li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-blue);
  opacity: 0.4;
}

/* ── CTA Section ── */
.tg-cta-section {
  text-align: center;
  padding: var(--section-py) 0;
}
.tg-cta-section h2 {
  margin-bottom: 16px;
}
.tg-cta-section > .tg-container > p {
  max-width: 640px;
  margin: 0 auto 36px;
  color: var(--text-light);
  font-size: 18px;
}
.tg-cta-section__buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Referrer Block ── */
.tg-referrer {
  background: var(--navy);
  color: rgba(255,255,255,0.85);
  border-radius: var(--r-lg);
  padding: 56px;
  margin: 0;
}
.tg-referrer h2 {
  color: var(--white);
  margin-bottom: 16px;
}
.tg-referrer p {
  max-width: 680px;
  font-size: 17px;
  line-height: 1.75;
}
.tg-referrer .tg-btn { margin-top: 28px; }

/* ── Telehealth Block ── */
.tg-telehealth {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.tg-telehealth__icon {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--pale-blue), var(--ice));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.tg-telehealth__icon svg {
  width: 120px;
  height: 120px;
  stroke: var(--brand-blue);
  fill: none;
  stroke-width: 1;
  opacity: 0.6;
}

/* ── Footer ── */
.tg-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.65);
  padding: 64px 0 36px;
  font-size: 15px;
  line-height: 1.7;
}
.tg-footer a {
  color: var(--light-blue);
  transition: color 0.2s;
}
.tg-footer a:hover { color: var(--white); }
.tg-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.tg-footer__brand-name {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 4px;
}
.tg-footer__creds {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 16px;
}
.tg-footer__heading {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.4);
  margin-bottom: 16px;
}
.tg-footer__links {
  padding: 0;
}
.tg-footer__links li { margin-bottom: 10px; }
.tg-footer__links a {
  color: rgba(255,255,255,0.65);
  font-size: 15px;
}
.tg-footer__links a:hover { color: var(--white); }
.tg-footer__crisis {
  margin-top: 0;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  line-height: 1.7;
}
.tg-footer__crisis strong {
  color: rgba(255,255,255,0.6);
}

/* ── Decorative: Honeycomb Pattern ── */
.tg-hex-deco {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  opacity: 0.04;
}
.tg-hex-deco svg {
  width: 100%;
  height: 100%;
}

/* Subtle honeycomb BG for sections */
.tg-hex-bg {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100'%3E%3Cpath d='M28 66L0 50L0 16L28 0L56 16L56 50L28 66Z' fill='none' stroke='%2341B4E5' stroke-width='0.5'/%3E%3Cpath d='M28 100L0 84L0 50L28 34L56 50L56 84L28 100Z' fill='none' stroke='%2341B4E5' stroke-width='0.5'/%3E%3C/svg%3E");
  background-size: 56px 100px;
}

/* ── Scroll Animations ── */
.tg-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.tg-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.tg-reveal-delay-1 { transition-delay: 0.1s; }
.tg-reveal-delay-2 { transition-delay: 0.2s; }
.tg-reveal-delay-3 { transition-delay: 0.3s; }
.tg-reveal-delay-4 { transition-delay: 0.4s; }

/* ── Divider ── */
.tg-divider {
  height: 1px;
  background: var(--border);
  border: none;
  margin: 0;
}

/* ── Credentials badge ── */
.tg-credentials {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--ice);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 12px 20px;
  font-size: 14px;
  color: var(--text-light);
  margin-top: 20px;
}
.tg-credentials strong {
  color: var(--navy);
}

/* ── Contact details ── */
.tg-contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}
.tg-contact-detail__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--r-sm);
  background: var(--pale-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.tg-contact-detail__icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--mid-blue);
  fill: none;
  stroke-width: 1.5;
}
.tg-contact-detail__label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-light);
  margin-bottom: 2px;
  font-weight: 500;
}
.tg-contact-detail__value {
  font-size: 17px;
  color: var(--navy);
}
.tg-contact-detail__value a {
  color: var(--mid-blue);
}

/* ── Policy / Info blocks ── */
.tg-info-block {
  background: var(--ice);
  border-left: 3px solid var(--brand-blue);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  padding: 28px 32px;
  margin-bottom: 24px;
}
.tg-info-block h3 {
  font-size: 20px;
  margin-bottom: 12px;
}
.tg-info-block p {
  font-size: 15.5px;
  color: var(--text-light);
}

/* ── Crisis disclaimer ── */
.tg-crisis {
  background: #FFF8F0;
  border: 1px solid #F0D9B5;
  border-radius: var(--r-md);
  padding: 28px 32px;
}
.tg-crisis h3 {
  color: #8B6914;
  font-size: 18px;
  margin-bottom: 10px;
}
.tg-crisis p {
  color: #6B5A3E;
  font-size: 15px;
}

/* ══════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════ */

@media (max-width: 1024px) {
  .tg-cards--4 { grid-template-columns: repeat(2, 1fr); }
  .tg-feature { gap: 48px; }
  .tg-telehealth { gap: 40px; }
  .tg-referrer { padding: 40px; }
}

@media (max-width: 768px) {
  :root {
    --section-py: 64px;
    --gap: 20px;
  }

  .tg-hero { padding: 40px 0 56px; }
  .tg-hero__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .tg-hero__portrait { order: -1; text-align: center; }
  .tg-hero__portrait img { max-width: 320px; margin: 0 auto; }
  .tg-hero__portrait::before,
  .tg-hero__portrait::after { display: none; }

  .tg-page-hero { padding: 40px 0; }

  .tg-feature {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .tg-feature--reverse { direction: ltr; }

  .tg-cards { grid-template-columns: 1fr; }
  .tg-cards--4 { grid-template-columns: 1fr; }

  .tg-telehealth {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .tg-telehealth__icon {
    max-width: 240px;
    margin: 0 auto;
  }

  .tg-referrer { padding: 32px 24px; }

  .tg-footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  /* Show hamburger, hide nav */
  .tg-header__toggle { display: flex; }
  .tg-header__nav { display: none; }
  .tg-header__cta { display: none; }
  .tg-header__nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 16px 28px;
    box-shadow: 0 12px 32px rgba(13,50,84,0.08);
  }
  .tg-header__nav.open a {
    padding: 12px 0;
    width: 100%;
  }

  .tg-trust-bar span {
    display: block;
    padding: 2px 0;
  }
  .tg-trust-bar span + span::before { display: none; }
}

@media (max-width: 480px) {
  .tg-hero__actions { flex-direction: column; }
  .tg-page-hero__actions { flex-direction: column; }
  .tg-cta-section__buttons { flex-direction: column; align-items: center; }
  .tg-btn { width: 100%; justify-content: center; }
  .tg-container { padding: 0 20px; }
}
