/*
Theme Name: Epilepsy
Theme URI:
Author: LoneStar Epilepsy
Description: Custom block theme for LoneStar Epilepsy — advanced neurology and epilepsy care.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: epilepsy
*/

/* ── Design tokens ────────────────────────────────────── */
:root {
  --color-navy: #1b3459;
  --color-navy-dark: #102f5d;
  --color-navy-mid: #2c4168;
  --color-teal: #76a3a7;
  --color-teal-dark: #5b8a8e;
  --color-teal-light: #7ba8ac;
  --color-white: #ffffff;
  --color-white-90: rgba(255, 255, 255, 0.9);
  --color-white-80: rgba(255, 255, 255, 0.8);
  --color-white-70: rgba(255, 255, 255, 0.7);
  --color-white-60: rgba(255, 255, 255, 0.6);
  --color-white-20: rgba(255, 255, 255, 0.2);
  --color-white-15: rgba(255, 255, 255, 0.15);
  --color-white-10: rgba(255, 255, 255, 0.1);
  --color-text-muted: #6a7282;
  --color-navy-deep: #122a51;
  --color-surface: #fbfbfd;
  --color-border: #eaeaed;
  --color-icon-bg: #f5f3f0;
  --color-text-body: #4a5565;
  --color-badge-bg: #e6e8e6;
  --color-icon-box: rgba(91, 138, 142, 0.13);
  --shadow-card-subtle: 0 4px 24px rgba(10, 22, 40, 0.06);
  --font-base: "Inter", sans-serif;
  --radius-btn: 14px;
  --radius-card: 16px;
  --radius-card-lg: 24px;
  --shadow-card: 0 25px 25px rgba(0, 0, 0, 0.25);
  --header-height: 0px;
}

/* ── Reset ────────────────────────────────────────────── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font: 400 1rem/1.5 var(--font-base);
  background: var(--color-white);
  color: var(--color-navy);
}

main {
  max-width: 100%;
  flex: 1;
}

img,
video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  background: none;
  border: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.wp-block-post-content {
  display: contents;
}

:root :where(.is-layout-flow) > * {
  margin-block-start: 0;
  margin-block-end: 0;
}

.wp-site-blocks {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

/* ── Sticky header template-part ──────────────────────── */
header.wp-block-template-part {
  position: sticky;
  top: 0;
  z-index: 100;
}

/* ── Layout utilities ─────────────────────────────────── */
.l-container {
  width: min(100%, 1344px);
  max-width: 100%;
  margin: 0 auto;
  padding-inline: 32px;
}

@media (max-width: 767px) {
  .l-container {
    padding-inline: 16px;
  }
}

/* ── Section spacing ──────────────────────────────────── */
.l-section {
  padding-block: 60px;
  scroll-margin-top: var(--header-height);
}

@media (max-width: 1023px) {
  .l-section {
    padding-block: 40px;
  }
}

/* ── Section header (centered badge + heading + desc) ─── */
/* ── Section inner wrapper (vertical column inside l-container) */
.l-section-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

/* ── Section header (centered badge + heading + desc) ─── */
.l-section-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  max-width: 845px;
  width: 100%;
  text-align: center;
}

.l-section-titles {
  display: flex;
  flex-direction: column;
  align-items: inherit;
  gap: 16px;
  max-width: 660px;
  width: 100%;
}

/* ── Section heading (two-line h2 inside l-section-titles) */
.l-section-heading {
  margin: 0;
  display: flex;
  flex-direction: column;
}

.l-section-heading__line1 {
  color: var(--color-navy);
  display: block;
}

.l-section-heading__line2 {
  color: var(--color-teal-dark);
  display: block;
}

.l-section-desc {
  color: var(--color-text-body);
  margin: 0;
  font-size: 20px;
  line-height: 1.6;
}

/* ── Typography scale ────────────────────────────────── */

/* Titles (size + line-height + default weight; colour stays contextual) */
.u-title {
  font-size: 64px;
  line-height: 1.24;
  font-weight: 300;
}

.u-title--section {
  font-size: 60px;
  line-height: 1;
  font-weight: 300;
}

.u-title--02 {
  font-size: 48px;
  line-height: 1.25;
  font-weight: 300;
}

.u-title--03 {
  font-size: 38px;
  line-height: 1.05;
  font-weight: 300;
}

.u-title--04 {
  font-size: 24px;
  line-height: 1.33;
  font-weight: 300;
}

/* Body text */
.u-text-xl {
  font-size: 20px;
  line-height: 1.6;
  font-weight: 400;
}
.u-text-lg {
  font-size: 18px;
  line-height: 1.56;
  font-weight: 400;
}
.u-text-md {
  font-size: 16px;
  line-height: 1.5;
  font-weight: 400;
}
.u-text-sm {
  font-size: 14px;
  line-height: 1.43;
  font-weight: 400;
}
.u-text-xs {
  font-size: 13px;
  line-height: 1.54;
  font-weight: 400;
}
.u-text-xxs {
  font-size: 12px;
  line-height: 1.67;
  font-weight: 400;
}
.u-text-tiny {
  font-size: 10px;
  line-height: 1.4;
  font-weight: 400;
}

/* Weight modifiers — combine with any text class */
.u-weight-light {
  font-weight: 300;
}
.u-weight-medium {
  font-weight: 500;
}
.u-weight-semi {
  font-weight: 600;
}

/* ── Button base ──────────────────────────────────────── */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 15px;
  border-radius: var(--radius-btn);
  border: 1px solid transparent;
  font-size: 14px;
  line-height: 1.72;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  border: none;
  transition: background 0.2s;
  /* typography: add u-text-sm u-weight-medium to element */
}

/* Teal filled — primary action */
.button--primary {
  background: var(--color-teal);
  color: var(--color-white);
}

.button--primary:hover {
  background: var(--color-teal-dark);
  color: var(--color-white);
  text-decoration: none;
}

/* Ghost — white border on dark background */
.button--outlined {
  background: var(--color-white-10);
  color: var(--color-white);
  border: 1px solid var(--color-white-20);
}

.button--outlined:hover {
  background: var(--color-white-15);
  color: var(--color-white);
  text-decoration: none;
}

/* ── Badge / pill ─────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 7px 15px;
  background: var(--color-white-10);
  border: 1px solid var(--color-white-20);
  border-radius: 999px;
  color: var(--color-teal-light);
  white-space: nowrap;
  width: fit-content;
  font-size: 14px;
  line-height: 1.43;
}

/* Light-background variant */
.badge--light {
  background: var(--color-badge-bg);
  border-color: transparent;
  color: var(--color-navy-mid);
  padding-inline: 11px;
}

/* ── Glass card ───────────────────────────────────────── */
.glass-card {
  background: rgba(255, 255, 255, 0.8);
  border: 1.224px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-card);
  box-shadow: 0px 4px 24px 0px rgba(10, 22, 40, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* ── Info item (icon + label + value) ─────────────────── */
.info-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.info-item__icon {
  width: 36px;
  height: 36px;
  background: var(--color-icon-bg);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-item__text {
  display: flex;
  flex-direction: column;
}

.info-item__label {
  color: var(--color-text-muted);
  /* typography: add u-text-tiny to element */
}

.info-item__value {
  color: var(--color-navy-mid);
  white-space: nowrap;
  /* typography: add u-text-xxs u-weight-medium to element */
}

@media (max-width: 767px) {
  .u-title {
    font-size: 40px;
    line-height: 1.2;
  }

  .u-title--section {
    font-size: 30px;
    line-height: 1.33;
  }

  .u-title--03 {
    font-size: 24px;
    line-height: 1.1;
  }

  .u-title--04 {
    font-size: 20px;
    line-height: 1.6;
  }

  .u-text-xl,
  .l-section-desc {
    font-size: 14px;
    line-height: 1.4;
  }

  .l-section-header {
    gap: 16px;
  }

  .u-text-md {
    font-size: 14px;
    line-height: 1.5;
  }
}
