/* Team 24-7 SA clinic homepage — design tokens */
:root {
  --primary: #0891b2;
  --primary-ink: #ffffff;
  --secondary: #22d3ee;
  --accent: #16a34a;
  --bg: #f0fdfa;
  --bg-dim: #e3f6f3;
  --fg: #134e4a;
  --fg-text: var(--fg);
  --fg-soft: #3f6b67;
  --card: #ffffff;
  --muted-bg: #e8f1f6;
  --muted-fg: #64748b;
  --border: #cdeee9;
}

/* Dark mode — only the light-surface tokens flip; --fg itself stays the same
   deep teal since .t247-hero/.t247-cta-band/.t247-page-header deliberately
   use it as their (already-dark) background in both modes. */
[data-theme="dark"] {
  --accent: #22c55e;
  --bg: #071a18;
  --bg-dim: #0c2320;
  --fg-text: #e7f5f2;
  --fg-soft: #a9c9c5;
  --card: #0f2b28;
  --muted-bg: #143430;
  --muted-fg: #9db8b3;
  --border: #1f4440;
}

.t247 * { box-sizing: border-box; }
.t247 { font-family: 'Source Sans 3', -apple-system, sans-serif; font-size: 17px; line-height: 1.55; color: var(--fg-text); background: var(--bg); }
.t247 .display { font-family: 'Lexend', -apple-system, sans-serif; font-weight: 700; letter-spacing: -0.015em; }
.t247 .mono { font-family: 'JetBrains Mono', ui-monospace, monospace; font-variant-numeric: tabular-nums; }
.t247 .eyebrow { font-family: 'Source Sans 3', sans-serif; font-size: 12.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--primary); }
.t247 a { color: inherit; }
.t247 img { max-width: 100%; display: block; }
.t247-wrap { max-width: 1180px; margin-inline: auto; padding-inline: 28px; }

.t247-btn-primary {
  background: var(--primary); color: var(--primary-ink);
  font-family: 'Source Sans 3', sans-serif; font-weight: 600; font-size: 14.5px;
  padding: 10.5px 18px; border-radius: 100px;
  text-decoration: none; display: inline-flex; align-items: center; gap: 7px;
  transition: filter .15s ease, transform .15s ease; border: none; cursor: pointer;
}
.t247-btn-primary:hover { transform: translateY(-1px); filter: brightness(0.93); text-decoration: none; color: var(--primary-ink); }
.t247-btn-ghost {
  background: transparent; color: #f5fdfc;
  font-family: 'Source Sans 3', sans-serif; font-weight: 600; font-size: 14.5px;
  padding: 10px 16px; border-radius: 100px; border: 1px solid rgba(240,253,250,0.28);
  text-decoration: none; display: inline-flex; align-items: center; gap: 7px;
}
.t247-btn-ghost:hover { border-color: rgba(240,253,250,0.6); color: #fff; text-decoration: none; }
.t247-btn-primary svg, .t247-btn-ghost svg { width: 15px; height: 15px; }

.t247-hero { background: var(--fg); color: var(--bg); position: relative; overflow: hidden; }
.t247-hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(600px 380px at 82% 8%, rgba(34,211,238,0.16), transparent 60%),
    radial-gradient(500px 320px at 100% 90%, rgba(22,163,74,0.14), transparent 60%);
  pointer-events: none;
}
.t247-hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; padding-block: 68px 78px; }
@media (max-width: 900px) { .t247-hero-grid { grid-template-columns: 1fr; padding-block: 44px 52px; gap: 38px; } }
.t247-hero-eyebrow-row { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.t247-hero-eyebrow-row .eyebrow { color: var(--secondary); }
.t247-hero-eyebrow-row .dot { width: 4px; height: 4px; border-radius: 50%; background: rgba(240,253,250,0.4); }
.t247-hero h1 { margin: 0 0 20px; font-size: clamp(36px, 5.2vw, 56px); line-height: 1.05; color: #f5fdfc; }
.t247-hero h1 em { color: var(--secondary); font-style: normal; }
.t247-hero p.lead { font-size: 17.5px; line-height: 1.6; color: rgba(240,253,250,0.72); max-width: 46ch; margin: 0 0 30px; }
.t247-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 36px; }
.t247-hero-trust { display: flex; flex-wrap: wrap; gap: 20px 26px; }
.t247-hero-trust-item { display: flex; align-items: center; gap: 8px; font-size: 13px; color: rgba(240,253,250,0.62); }
.t247-hero-trust-item svg { width: 15px; height: 15px; color: var(--accent); flex-shrink: 0; }

.t247-doc-card { background: var(--card); border-radius: 20px; padding: 24px; box-shadow: 0 30px 60px -20px rgba(0,0,0,0.4); display: flex; flex-direction: column; gap: 16px; color: var(--fg-text); }
.t247-doc-card-top { display: flex; align-items: center; gap: 14px; }
.t247-doc-avatar { width: 58px; height: 58px; border-radius: 15px; display: grid; place-items: center; font-family: 'Lexend', sans-serif; font-weight: 700; font-size: 18px; flex-shrink: 0; color: #fff; background: linear-gradient(135deg,#0891b2,#134e4a); }
.t247-doc-name { font-family: 'Lexend', sans-serif; font-weight: 700; font-size: 16.5px; margin-bottom: 3px; }
.t247-doc-cred { font-size: 12.5px; color: var(--muted-fg); }
.t247-doc-status { margin-left: auto; display: flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; color: var(--accent); background: var(--muted-bg); padding: 5px 10px 5px 8px; border-radius: 100px; white-space: nowrap; }
.t247-pulse-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); position: relative; }
.t247-pulse-dot::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 1.5px solid var(--accent); animation: t247pulse 2.2s ease-out infinite; }
@keyframes t247pulse { 0% { transform: scale(0.6); opacity: 0.9; } 100% { transform: scale(1.9); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .t247-pulse-dot::after { animation: none; } }
.t247-doc-price-row { display: flex; align-items: baseline; justify-content: space-between; border-top: 1px dashed var(--border); padding-top: 15px; }
.t247-doc-price-label { font-size: 12px; color: var(--muted-fg); text-transform: uppercase; letter-spacing: 0.08em; }
.t247-doc-price { font-size: 24px; font-weight: 700; color: var(--primary); }
.t247-doc-book-btn { background: var(--primary); color: #fff; text-align: center; font-family: 'Source Sans 3', sans-serif; font-weight: 600; font-size: 14px; padding: 12px; border-radius: 12px; text-decoration: none; transition: filter .15s ease; }
.t247-doc-book-btn:hover { filter: brightness(0.93); text-decoration: none; color: #fff; }

.t247-section { padding-block: 70px; } @media (max-width: 700px) { .t247-section { padding-block: 46px; } }
.t247-section-head { max-width: 640px; margin-bottom: 42px; }
.t247-section-head .eyebrow { margin-bottom: 12px; display: block; }
.t247-section-head h2 { font-size: clamp(27px, 3.4vw, 36px); margin: 0 0 13px; line-height: 1.14; color: var(--fg-text); }
.t247-section-head p { color: var(--muted-fg); font-size: 16px; margin: 0; max-width: 56ch; }
.t247-section-head.centered { margin-inline: auto; text-align: center; }

.t247-trust-strip { background: var(--bg-dim); border-bottom: 1px solid var(--border); border-top: 1px solid var(--border); padding-block: 24px; }
.t247-trust-row { display: flex; flex-wrap: wrap; gap: 14px 32px; justify-content: center; font-size: 13.5px; color: var(--fg-soft); font-weight: 500; }
.t247-trust-row span { display: flex; align-items: center; gap: 8px; }
.t247-trust-row svg { width: 15px; height: 15px; color: var(--primary); }
.t247-trust-row img.mini-logo { height: 16px; width: auto; }

.t247-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
@media (max-width: 820px) { .t247-steps { grid-template-columns: 1fr; } }
.t247-step { background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 24px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.t247-step:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -18px rgba(19,78,74,0.18); border-color: var(--primary); }
.t247-step-num { font-family: 'Lexend', sans-serif; font-weight: 700; font-size: 38px; color: var(--border); line-height: 1; margin-bottom: 12px; }
.t247-step h3 { font-size: 18px; margin: 0 0 8px; color: var(--fg-text); } .t247-step p { color: var(--muted-fg); font-size: 14.5px; margin: 0; }

.t247-doc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 980px) { .t247-doc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .t247-doc-grid { grid-template-columns: 1fr; } }
.t247-doc-tile { background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 20px; display: flex; flex-direction: column; gap: 13px; transition: transform .18s ease, box-shadow .18s ease; }
.t247-doc-tile:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -18px rgba(19,78,74,0.18); }
.t247-doc-tile.lead { grid-column: span 2; grid-row: span 2; } @media (max-width: 980px) { .t247-doc-tile.lead { grid-column: span 2; } } @media (max-width: 560px) { .t247-doc-tile.lead { grid-column: span 1; } }
.t247-doc-tile.lead .t247-doc-photo { aspect-ratio: 1.4/1; }
.t247-doc-photo { aspect-ratio: 1/1; border-radius: 12px; overflow: hidden; display: grid; place-items: center; position: relative; }
.t247-doc-photo .initials { font-family: 'Lexend', sans-serif; font-weight: 700; color: #fff; }
.t247-doc-tile.lead .initials { font-size: 36px; } .t247-doc-tile:not(.lead) .initials { font-size: 24px; }
.t247-photo-badge { position: absolute; bottom: 8px; left: 8px; background: rgba(7,26,28,0.72); color: #fff; font-size: 10px; font-weight: 600; letter-spacing: 0.04em; padding: 4px 8px; border-radius: 100px; }
.t247-doc-tile .t247-doc-name { font-size: 15.5px; } .t247-doc-tile.lead .t247-doc-name { font-size: 19px; }
.t247-doc-cred-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.t247-doc-badge { font-size: 10.5px; font-weight: 600; color: var(--primary); background: var(--muted-bg); padding: 3px 8px; border-radius: 100px; white-space: nowrap; }
.t247-doc-tile-book { margin-top: auto; display: flex; align-items: center; justify-content: space-between; font-size: 13px; font-weight: 600; color: var(--primary); text-decoration: none; padding-top: 4px; }
.t247-doc-tile-book:hover { text-decoration: none; }
.t247-doc-tile-book svg { width: 14px; height: 14px; transition: transform .15s ease; }
.t247-doc-tile:hover .t247-doc-tile-book svg { transform: translateX(3px); }
.t247-doc-grid-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 28px; flex-wrap: wrap; gap: 16px; }
.t247-doc-grid-foot p { color: var(--muted-fg); font-size: 14px; margin: 0; }
.t247-link-arrow { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: 14.5px; color: var(--fg-text); text-decoration: none; }
.t247-link-arrow:hover { color: var(--primary); text-decoration: none; }
.t247-link-arrow svg { width: 15px; height: 15px; }

.t247-why-section { background: var(--bg-dim); }
.t247-why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .t247-why-grid { grid-template-columns: repeat(2, 1fr); } } @media (max-width: 620px) { .t247-why-grid { grid-template-columns: 1fr; } }
.t247-why-tile { background: var(--card); border-radius: 18px; padding: 24px; border: 1px solid var(--border); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.t247-why-tile:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -18px rgba(19,78,74,0.18); border-color: var(--primary); }
.t247-why-tile.wide { grid-column: span 2; } @media (max-width: 900px) { .t247-why-tile.wide { grid-column: span 2; } } @media (max-width: 620px) { .t247-why-tile.wide { grid-column: span 1; } }
.t247-why-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 15px; background: var(--muted-bg); color: var(--primary); }
.t247-why-ic svg { width: 20px; height: 20px; }
.t247-why-tile h3 { font-size: 16.5px; margin: 0 0 7px; color: var(--fg-text); } .t247-why-tile p { font-size: 14px; color: var(--muted-fg); margin: 0; }

.t247-cta-band { background: var(--fg); color: var(--bg); text-align: center; }
.t247-cta-band .t247-wrap { max-width: 620px; } .t247-cta-band .eyebrow { color: var(--secondary); }
.t247-cta-price { display: flex; align-items: baseline; justify-content: center; gap: 6px; margin: 18px 0 6px; }
.t247-cta-price .num { font-family: 'Lexend', sans-serif; font-weight: 700; font-size: 58px; color: #f5fdfc; }
.t247-cta-price .unit { font-size: 14px; color: rgba(240,253,250,0.55); }
.t247-cta-band h2 { font-size: clamp(25px, 3.2vw, 32px); margin: 0 0 12px; color: #f5fdfc; }
.t247-cta-band p.sub { color: rgba(240,253,250,0.62); font-size: 15px; margin: 0 0 28px; }

/* Interior page header (About / Service / FAQ / Our Team / Contact) */
.t247-page-header { background: var(--fg); color: var(--bg); position: relative; overflow: hidden; padding-block: 54px 62px; }
.t247-page-header::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(560px 340px at 88% 0%, rgba(34,211,238,0.14), transparent 60%);
  pointer-events: none;
}
.t247-page-header .t247-wrap { position: relative; }
.t247-page-header .eyebrow { color: var(--secondary); margin-bottom: 14px; display: block; }
.t247-page-header h1 { margin: 0 0 14px; font-size: clamp(30px, 4.2vw, 44px); line-height: 1.08; color: #f5fdfc; }
.t247-page-header p.lead { font-size: 16.5px; line-height: 1.6; color: rgba(240,253,250,0.72); max-width: 62ch; margin: 0; }

/* FAQ */
.t247-faq-item { border-bottom: 1px solid var(--border); padding-block: 22px; }
.t247-faq-item:first-child { padding-top: 0; }
.t247-faq-item:last-child { border-bottom: none; }
.t247-faq-q { font-family: 'Lexend', sans-serif; font-weight: 700; font-size: 17px; margin: 0 0 9px; color: var(--fg-text); }
.t247-faq-a { color: var(--muted-fg); font-size: 15px; line-height: 1.6; margin: 0; max-width: 68ch; }

/* Two-column content (About Us) */
.t247-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: start; }
@media (max-width: 820px) { .t247-two-col { grid-template-columns: 1fr; gap: 30px; } }
.t247-two-col h2 { font-size: clamp(24px, 3vw, 30px); margin: 0 0 16px; color: var(--fg-text); }
.t247-two-col p { color: var(--muted-fg); font-size: 15.5px; line-height: 1.65; margin: 0 0 16px; }
.t247-two-col p:last-child { margin-bottom: 0; }

/* Simple stat row */
.t247-stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 30px; }
@media (max-width: 620px) { .t247-stat-row { grid-template-columns: 1fr; } }
.t247-stat-tile { background: var(--bg-dim); border: 1px solid var(--border); border-radius: 16px; padding: 20px; transition: transform .2s ease, box-shadow .2s ease; }
.t247-stat-tile:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -18px rgba(19,78,74,0.18); }
.t247-stat-tile .num { font-family: 'Lexend', sans-serif; font-weight: 700; font-size: 30px; color: var(--primary); display: block; margin-bottom: 4px; }
.t247-stat-tile .label { font-size: 13px; color: var(--muted-fg); }

/* Contact form wrapper */
.t247-contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 46px; align-items: start; }
@media (max-width: 860px) { .t247-contact-grid { grid-template-columns: 1fr; gap: 32px; } }
.t247-contact-card { background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 26px; }
.t247-contact-card h3 { font-size: 17px; margin: 0 0 10px; color: var(--fg-text); }
.t247-contact-card p { color: var(--muted-fg); font-size: 14.5px; margin: 0 0 16px; }
.t247-form-wrap .wpcf7-form-control { width: 100%; padding: 11px 13px; border: 1px solid var(--border); border-radius: 9px; font-size: 15px; font-family: inherit; margin-bottom: 4px; }
.t247-form-wrap .wpcf7-form-control:focus { outline: 2px solid var(--primary); border-color: var(--primary); }
.t247-form-wrap p { margin-bottom: 14px; }
.t247-form-wrap label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 5px; color: var(--fg-text); }
.t247-form-wrap .wpcf7-submit { background: var(--primary); color: #fff; border: none; border-radius: 100px; padding: 11px 24px; font-weight: 600; font-size: 14.5px; cursor: pointer; }
.t247-form-wrap .wpcf7-submit:hover { filter: brightness(0.93); }
.t247-form-wrap .wpcf7-spinner { display: none; }

/* Kirospharma affiliation banner */
.t247-kp-banner { background: var(--bg-dim); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding-block: 22px; }
.t247-kp-banner-row { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.t247-kp-logo { height: 34px; width: 34px; border-radius: 9px; flex-shrink: 0; object-fit: contain; background: #fff; padding: 3px; border: 1px solid var(--border); }
.t247-kp-text { flex: 1; min-width: 240px; font-size: 14.5px; color: var(--fg-soft); }
.t247-kp-text strong { color: var(--fg-text); }
.t247-kp-cta { flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; color: var(--primary); text-decoration: none; white-space: nowrap; }
.t247-kp-cta:hover { text-decoration: none; color: var(--primary); }
.t247-kp-cta svg { width: 14px; height: 14px; transition: transform .15s ease; }
.t247-kp-cta:hover svg { transform: translateX(3px); }
@media (max-width: 620px) { .t247-kp-banner-row { flex-direction: column; align-items: flex-start; } }

@media (prefers-reduced-motion: reduce) {
  .t247-reveal, .t247-reveal-child { opacity: 1 !important; transform: none !important; transition: none !important; }
}
.t247-reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s cubic-bezier(.22,.61,.36,1), transform .6s cubic-bezier(.22,.61,.36,1); }
.t247-reveal.t247-in-view { opacity: 1; transform: translateY(0); }
.t247-reveal-stagger.t247-in-view .t247-reveal-child { opacity: 1; transform: translateY(0); }
.t247-reveal-child { opacity: 0; transform: translateY(20px); transition: opacity .5s ease, transform .5s ease; }
