/* PHC – Primary Health Courses. BEM, Flexbox/Grid, mobile-first. No Tailwind. */

:root {
  --phc-font-sans: system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, sans-serif;
  --phc-color-bg: #fff;
  --phc-color-text: #1a1a1a;
  --phc-color-text-muted: #4a4a4a;
  --phc-color-primary: #052767;
  --phc-color-primary-hover: #0a3a8c;
  --phc-color-border: #e0e0e0;
  --phc-color-footer-bg: #2d3748;
  --phc-color-footer-text: #e2e8f0;
  --phc-spacing-xs: 0.25rem;
  --phc-spacing-sm: 0.5rem;
  --phc-spacing-md: 1rem;
  --phc-spacing-lg: 1.5rem;
  --phc-spacing-xl: 2rem;
  --phc-spacing-2xl: 3rem;
  --phc-max-width-content: 75rem;
  --phc-max-width-reading: 48rem;
  --phc-breakpoint-tablet: 48rem;
  --phc-breakpoint-desktop: 64rem;
  --phc-touch-min: 44px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--phc-font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--phc-color-text);
  background-color: var(--phc-color-bg);
}

/* --------------------------------------------------------------------------- Layout */
.main {
  min-height: 60vh;
  padding: var(--phc-spacing-lg);
}

@media (min-width: 48rem) {
  .main {
    padding: var(--phc-spacing-xl);
  }
}

/* --------------------------------------------------------------------------- Header */
.header {
  padding: var(--phc-spacing-md) var(--phc-spacing-lg);
  background-color: var(--phc-color-bg);
  border-bottom: 1px solid var(--phc-color-border);
}

.header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--phc-spacing-md);
  max-width: var(--phc-max-width-content);
  margin: 0 auto;
}

.header__logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--phc-spacing-md);
  color: var(--phc-color-text);
  text-decoration: none;
}

.header__logos:hover,
.header__logos:focus {
  color: var(--phc-color-text);
  text-decoration: none;
}

.header__logo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--phc-spacing-xs);
}

.header__logo-item img {
  display: block;
  max-height: 3rem;
  width: auto;
  object-fit: contain;
}

.header__logo-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--phc-color-text-muted);
  line-height: 1.2;
  text-align: center;
}

.header__nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: var(--phc-spacing-sm);
}

.header__nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--phc-spacing-sm);
  list-style: none;
  margin: 0;
  padding: 0;
}

.header__nav-link {
  display: inline-block;
  padding: var(--phc-spacing-sm) var(--phc-spacing-md);
  color: var(--phc-color-text);
  text-decoration: none;
  min-height: var(--phc-touch-min);
  line-height: 1.4;
  display: inline-flex;
  align-items: center;
}

.header__nav-link:hover,
.header__nav-link:focus {
  text-decoration: underline;
  color: var(--phc-color-primary);
}

.header__nav-link--signin {
  border: 2px solid var(--phc-color-primary);
  border-radius: 4px;
  color: var(--phc-color-primary);
}

.header__nav-link--signin:hover,
.header__nav-link--signin:focus {
  background-color: var(--phc-color-primary);
  color: var(--phc-color-bg);
  text-decoration: none;
}

.header__menu-toggle {
  display: none;
  min-width: var(--phc-touch-min);
  min-height: var(--phc-touch-min);
  padding: var(--phc-spacing-sm);
  border: 1px solid var(--phc-color-border);
  background: var(--phc-color-bg);
  cursor: pointer;
  font-size: 1.25rem;
}

@media (max-width: 47.99rem) {
  .header__menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .header__nav--collapse .header__nav-list {
    display: none;
  }

  .header__nav--open {
    order: 10;
    flex-basis: 100%;
  }

  .header__nav--open .header__nav-list {
    display: flex;
    flex-direction: column;
    width: 100%;
  }
}

/* --------------------------------------------------------------------------- Footer */
.footer {
  padding: var(--phc-spacing-xl) var(--phc-spacing-lg);
  background-color: var(--phc-color-footer-bg);
  color: var(--phc-color-footer-text);
}

.footer__inner {
  max-width: var(--phc-max-width-content);
  margin: 0 auto;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--phc-spacing-md);
  margin-bottom: var(--phc-spacing-md);
}

.footer__link {
  color: var(--phc-color-footer-text);
  text-decoration: none;
}

.footer__link:hover,
.footer__link:focus {
  text-decoration: underline;
}

.footer__copy {
  font-size: 0.875rem;
  color: rgba(226, 232, 240, 0.8);
}

/* --------------------------------------------------------------------------- Landing */
.landing__content {
  max-width: var(--phc-max-width-content);
  margin: 0 auto;
}

.landing__hero {
  margin-bottom: var(--phc-spacing-xl);
}

.landing__hero-title {
  margin: 0 0 var(--phc-spacing-md);
  font-size: 1.75rem;
  font-weight: 700;
}

@media (min-width: 48rem) {
  .landing__hero-title {
    font-size: 2.25rem;
  }
}

.landing__two-col {
  display: flex;
  flex-direction: column;
  gap: var(--phc-spacing-xl);
}

@media (min-width: 64rem) {
  .landing__two-col {
    flex-direction: row;
    align-items: flex-start;
  }

  .landing__two-col__left {
    flex: 1 1 60%;
  }

  .landing__two-col__right {
    flex: 0 0 36%;
  }
}

.landing__blocks {
  display: flex;
  flex-direction: column;
  gap: var(--phc-spacing-lg);
}

.landing__block {
  padding: var(--phc-spacing-md);
  border: 1px solid var(--phc-color-border);
  border-radius: 4px;
}

.landing__block-title {
  margin: 0 0 var(--phc-spacing-sm);
  font-size: 1.125rem;
  font-weight: 600;
}

.landing__block-text {
  margin: 0;
  font-size: 1rem;
  color: var(--phc-color-text-muted);
}

.landing__aside {
  padding: var(--phc-spacing-lg);
  background: #f8f9fa;
  border-radius: 4px;
}

.landing__audience {
  margin: 0 0 var(--phc-spacing-sm);
  font-weight: 600;
  font-size: 1rem;
}

.landing__value {
  margin: 0 0 var(--phc-spacing-lg);
  font-size: 0.9375rem;
  font-style: italic;
}

.landing__meeting-figure {
  margin: 0;
}

.landing__meeting-placeholder {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  display: block;
}

.landing__cta {
  margin-top: var(--phc-spacing-2xl);
  padding: var(--phc-spacing-xl);
  text-align: center;
  background: #f0f4f8;
  border-radius: 4px;
}

.landing__cta-text {
  margin: 0 0 var(--phc-spacing-md);
  font-size: 1.125rem;
  font-weight: 500;
}

.landing__cta .btn {
  display: inline-block;
  padding: var(--phc-spacing-md) var(--phc-spacing-xl);
  background: var(--phc-color-primary);
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  min-height: var(--phc-touch-min);
  line-height: 1.4;
  border: none;
  cursor: pointer;
}

.landing__cta .btn:hover,
.landing__cta .btn:focus {
  background: var(--phc-color-primary-hover);
  color: #fff;
}

/* --------------------------------------------------------------------------- About */
.about__content {
  max-width: var(--phc-max-width-reading);
  margin: 0 auto;
}

.about__title {
  margin: 0 0 var(--phc-spacing-xl);
  font-size: 1.75rem;
  font-weight: 700;
}

.about__sections {
  display: flex;
  flex-direction: column;
  gap: var(--phc-spacing-2xl);
}

.about__section {
  padding: var(--phc-spacing-lg);
  border: 1px solid var(--phc-color-border);
  border-radius: 4px;
}

.about__section-title {
  margin: 0 0 var(--phc-spacing-md);
  font-size: 1.25rem;
  font-weight: 600;
}

.about__section-text {
  margin: 0 0 var(--phc-spacing-md);
  font-size: 1rem;
  color: var(--phc-color-text-muted);
}

.about__section-text:last-child {
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------- Catalogue */
.catalogue__content {
  max-width: var(--phc-max-width-content);
  margin: 0 auto;
}

.catalogue__title {
  margin: 0 0 var(--phc-spacing-lg);
  font-size: 1.5rem;
  font-weight: 700;
}

.catalogue__hero {
  margin-bottom: var(--phc-spacing-xl);
}

.catalogue__value-prop {
  margin: 0 0 var(--phc-spacing-md);
  font-size: 1.0625rem;
  font-weight: 500;
}

.catalogue__overview {
  margin: 0 0 var(--phc-spacing-md);
}

.catalogue__policy-box {
  margin: var(--phc-spacing-lg) 0;
  padding: var(--phc-spacing-lg);
  background: #e8f0fe;
  border-left: 4px solid var(--phc-color-primary);
  border-radius: 4px;
}

.catalogue__policy {
  margin: 0;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--phc-color-text);
}

.catalogue__certification {
  margin: 0 0 var(--phc-spacing-xl);
}

.catalogue__category-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--phc-spacing-md);
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 48rem) {
  .catalogue__category-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 64rem) {
  .catalogue__category-list {
    grid-template-columns: repeat(4, 1fr);
  }
}

.catalogue__category-card {
  padding: var(--phc-spacing-lg);
  border: 1px solid var(--phc-color-border);
  border-radius: 4px;
  min-height: var(--phc-touch-min);
}

.catalogue__category-card a {
  font-weight: 600;
  color: var(--phc-color-primary);
  text-decoration: none;
}

.catalogue__category-card a:hover,
.catalogue__category-card a:focus {
  text-decoration: underline;
}

.catalogue__category-card--disabled {
  opacity: 0.7;
}

.catalogue__category-card--disabled a {
  color: var(--phc-color-text-muted);
  cursor: not-allowed;
  pointer-events: none;
}

.catalogue__category-coming {
  font-size: 0.875rem;
  color: var(--phc-color-text-muted);
  margin-top: var(--phc-spacing-xs);
}

/* --------------------------------------------------------------------------- Category (e.g. Case Management) */
.category__content {
  max-width: var(--phc-max-width-reading);
  margin: 0 auto;
}

.category__breadcrumb {
  margin-bottom: var(--phc-spacing-lg);
  font-size: 0.875rem;
}

.category__breadcrumb a {
  color: var(--phc-color-primary);
  text-decoration: none;
}

.category__breadcrumb a:hover,
.category__breadcrumb a:focus {
  text-decoration: underline;
}

.category__title {
  margin: 0 0 var(--phc-spacing-lg);
  font-size: 1.5rem;
  font-weight: 700;
}

.category__intro {
  margin: 0 0 var(--phc-spacing-xl);
  font-size: 1rem;
}

.category__modules {
  display: flex;
  flex-direction: column;
  gap: var(--phc-spacing-xl);
}

.category__module {
  padding: var(--phc-spacing-lg);
  border: 1px solid var(--phc-color-border);
  border-radius: 4px;
}

.category__module-title {
  margin: 0 0 var(--phc-spacing-md);
  font-size: 1.125rem;
  font-weight: 600;
}

.category__module-body {
  margin: 0;
  font-size: 1rem;
  color: var(--phc-color-text-muted);
}
