/*
Theme Name: PruittHealth Institute Theme
Author: Yalo
Author URI: https://www.digitalyalo.com/
Description: A simple theme that integrates with the block editor.
Version: 1.0.0
Requires at least: 5.0
Requires PHP: 7.1
*/

/* ============================================
   PRUHITHEALTH INSTITUTE - DESIGN TOKENS
   ============================================ */

/* ============================================
   FONT FACE DECLARATIONS
   ============================================ */
@font-face {
  font-family: "Brandon Grotesque";
  src: url("../assets/fonts/Brandon_light.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Brandon Grotesque";
  src: url("../assets/fonts/Brandon_light_it.otf") format("opentype");
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Brandon Grotesque";
  src: url("../assets/fonts/Brandon_reg.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Brandon Grotesque";
  src: url("../assets/fonts/Brandon_reg_it.otf") format("opentype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Brandon Grotesque";
  src: url("../assets/fonts/Brandon_med.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Brandon Grotesque";
  src: url("../assets/fonts/Brandon_med_it.otf") format("opentype");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Brandon Grotesque";
  src: url("../assets/fonts/Brandon_bld.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Brandon Grotesque";
  src: url("../assets/fonts/Brandon_bld_it.otf") format("opentype");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Brandon Grotesque";
  src: url("../assets/fonts/Brandon_blk.otf") format("opentype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Brandon Grotesque";
  src: url("../assets/fonts/Brandon_blk_it.otf") format("opentype");
  font-weight: 900;
  font-style: italic;
  font-display: swap;
}

/* ============================================
   TYPOGRAPHY SYSTEM - DESKTOP
   ============================================ */
:root {
  /* Display - Fluid Type Scale */
  --display-large: clamp(64px, 2.5vw + 56px, 104px);
  --display-large-lh: clamp(77px, 2.06vw + 64px, 110px);
  --display-medium: clamp(48px, 1.5vw + 43.2px, 72px);
  --display-medium-lh: clamp(54px, 1.625vw + 48px, 80px);
  --display-small: clamp(40px, 1.5vw + 35.2px, 64px);
  --display-small-lh: clamp(48px, 1.375vw + 42px, 70px);

  /* Header - Fluid Type Scale */
  --header-large: clamp(34px, 1.25vw + 30px, 54px);
  --header-large-lh: clamp(41px, 1.5vw + 36.2px, 65px);
  --header-medium: clamp(30px, 1.125vw + 26.4px, 48px);
  --header-medium-lh: clamp(36px, 1.375vw + 31.6px, 58px);
  --header-small: clamp(24px, 0.375vw + 22.8px, 30px);
  --header-small-lh: clamp(29px, 0.6875vw + 26.8px, 40px);
  --header-small-bold: clamp(24px, 0.375vw + 22.8px, 30px);
  --header-small-bold-lh: clamp(29px, 0.6875vw + 26.8px, 40px);
  --header-xs: clamp(18px, 0.375vw + 16.8px, 24px);
  --header-xs-lh: clamp(22px, 0.5625vw + 20.2px, 31px);
  --header-xs-bold: clamp(18px, 0.375vw + 16.8px, 24px);
  --header-xs-bold-lh: clamp(22px, 0.5625vw + 20.2px, 31px);

  /* Body */
  --body-xl: 24px;
  --body-xl-lh: 32px;
  --body-xl-bold: 24px;
  --body-xl-bold-lh: 32px;
  --body-large: clamp(18px, 0.125vw + 17.5px, 20px);
  --body-large-lh: clamp(24px, 0.1875vw + 22.5px, 27px);
  --body-large-bold: clamp(18px, 0.125vw + 17.5px, 20px);
  --body-large-bold-lh: clamp(24px, 0.1875vw + 22.5px, 27px);
  --body-medium: 16px;
  --body-medium-lh: 21px;
  --body-medium-bold: 16px;
  --body-medium-bold-lh: 21px;
  --body-medium-large: 18px;
  --body-medium-large-lh: 24px;
  --body-small: 12px;
  --body-small-lh: 16px;
  --body-xs: 10px;
  --body-xs-lh: 12px;

  /* Mobile body text sizes (kept for body text that doesn't need fluid scaling) */
  --mobile-body-xl: 20px;
  --mobile-body-xl-lh: 30px;
  --mobile-body-xl-bold: 20px;
  --mobile-body-xl-bold-lh: 30px;
  --mobile-body-large: 18px;
  --mobile-body-large-lh: 27px;
  --mobile-body-large-bold: 18px;
  --mobile-body-large-bold-lh: 27px;
  --mobile-body-medium: 16px;
  --mobile-body-medium-lh: 20px;
  --mobile-body-small: 14px;
  --mobile-body-small-lh: 17px;
  --mobile-body-xs: 12px;
  --mobile-body-xs-lh: 14px;

  /* ============================================
	 COLOR SYSTEM
	 ============================================ */
  /* Core Greens */
  --green-hero-bg: #0F3F3A;
  --green-primary: #004C46;
  --green-secondary: #1B7C67;

  /* Neutrals */
  --grey-900: #1E1E1E;
  --grey-700: #3F3F3F;
  --grey-500: #6F6F6F;
  --grey-300: #D9D9D9;
  --grey-100: #F4F4F4;
  --white: #FFFFFF;

  /* Accents */
  --accent-blue: #DBEEF7;
  --accent-green: #E3F6EB;

  /* ============================================
	 UI TOKENS
	 ============================================ */
  --radius-lg: 20px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow-card: 0 8px 24px rgba(0, 0, 0, 0.12);

  /* ============================================
	 SPACING SYSTEM - FLUID SCALE
	 ============================================ */
  --space-xxl: clamp(72px, 8vw, 120px);
  --space-xl: clamp(56px, 6vw, 80px);
  --space-lg: clamp(40px, 4vw, 64px);
  --space-md: clamp(28px, 3vw, 40px);
  --space-sm: clamp(16px, 2vw, 24px);
  --space-xs: clamp(8px, 1vw, 16px);

  /* Mobile Spacing (Reduced) - Keep for backward compatibility */
  --mobile-space-xxl: clamp(60px, 6vw, 72px);
  --mobile-space-xl: clamp(40px, 4vw, 56px);
  --mobile-space-lg: clamp(32px, 3vw, 40px);
  --mobile-space-md: clamp(24px, 2vw, 28px);
  --mobile-space-sm: clamp(16px, 1.5vw, 24px);
  --mobile-space-xs: clamp(12px, 1vw, 16px);

  /* ============================================
	 LAYOUT
	 ============================================ */
  --max-width: 1600px;
  --container-padding: 24px;
}




/* ============================================
   PRUHITHEALTH INSTITUTE - MAIN STYLES
   ============================================ */

/* ============================================
   RESET & BASE
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "brandon-grotesque", "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  color: var(--grey-900);
  background-color: var(--white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Global Typography Scaling */
h1 {
  font-size: clamp(2.2rem, 3.5vw + 1rem, 4rem);
  line-height: 1.1;
}

h2 {
  font-size: clamp(1.8rem, 2.8vw + 0.6rem, 2.8rem);
  line-height: 1.2;
}

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

/* ============================================
   CONSOLIDATED IMAGE RULES
   ============================================ */
img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  max-height: 80vh;
}

/* Large section images */
.hero-image img,
.hero-image-mobile img,
.journey-image img,

.hero-image img {
  max-height: 70vh;
}

/* Section-specific image overrides */
.journey-image img {
  border-radius: 16px;
}

.requirements-image img {
  border-radius: 16px;
}

/* ============================================
   TYPOGRAPHY UTILITIES
   ============================================ */
.display-large {
  font-size: var(--display-large);
  line-height: var(--display-large-lh);
  font-weight: 700;
}

.display-medium {
  font-size: var(--display-medium);
  line-height: var(--display-medium-lh);
  font-weight: 500;
}

.display-small {
  font-size: var(--display-small);
  line-height: var(--display-small-lh);
  font-weight: 700;
}

.header-large {
  font-size: var(--header-large);
  line-height: var(--header-large-lh);
  font-weight: 600;
}

.header-medium {
  font-size: var(--header-medium);
  line-height: var(--header-medium-lh);
  font-weight: 700;
}

.header-small {
  font-size: var(--header-small);
  line-height: var(--header-small-lh);
  font-weight: 400;
}

.header-small-bold {
  font-size: var(--header-small-bold);
  line-height: var(--header-small-bold-lh);
  font-weight: 700;
}

.header-xs {
  font-size: var(--header-xs);
  line-height: var(--header-xs-lh);
  font-weight: 400;
}

.header-xs-bold {
  font-size: var(--header-xs-bold);
  line-height: var(--header-xs-bold-lh);
  font-weight: 700;
}

.body-xl {
  font-size: var(--body-xl);
  line-height: var(--body-xl-lh);
  font-weight: 400;
}

.body-xl-bold {
  font-size: var(--body-xl-bold);
  line-height: var(--body-xl-bold-lh);
  font-weight: 700;
}

.body-large {
  font-size: var(--body-large);
  line-height: var(--body-large-lh);
  font-weight: 400;
}

.body-large-bold {
  font-size: var(--body-large-bold);
  line-height: var(--body-large-bold-lh);
  font-weight: 700;
}

.body-medium {
  font-size: var(--body-medium);
  line-height: var(--body-medium-lh);
  font-weight: 400;
}

.body-medium-bold {
  font-size: var(--body-medium-bold);
  line-height: var(--body-medium-bold-lh);
  font-weight: 700;
}

.body-small {
  font-size: var(--body-small);
  line-height: var(--body-small-lh);
  font-weight: 400;
}

.body-xs {
  font-size: var(--body-xs);
  line-height: var(--body-xs-lh);
  font-weight: 400;
}

/* ============================================
   LAYOUT
   ============================================ */
section {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.container {
  width: min(90%, var(--max-width));
  margin-inline: auto;
}

.full-bleed {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-sm);
  border-radius: 4px;
  font-family: "brandon-grotesque", "Helvetica Neue", Arial, sans-serif;
  font-size: var(--body-medium);
  font-weight: 500;
  line-height: var(--body-medium-lh);
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.btn-primary {
  background-color: var(--green-primary);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--green-secondary);
  transform: translateY(-2px);
}

.btn-primary-inverse {
  background-color: transparent;
  color: var(--white);
  border: 1px solid var(--white);
}

.btn-primary-inverse:hover {
  background-color: var(--white);
  border-color: var(--white);
  color: var(--green-primary);
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  color: var(--green-primary);
  border: 1px solid var(--green-primary);
}

.btn-outline:hover {
  background-color: var(--green-primary);
  color: var(--white);
  transform: translateY(-2px);
}

.header:not(.scrolled) .btn-outline {
  color: var(--white);
  border-color: var(--white);
}

.header:not(.scrolled) .btn-outline:hover {
  background-color: var(--white);
  color: var(--green-primary);
  transform: translateY(-2px);
}

.btn-white {
  background-color: var(--white);
  color: var(--green-primary);
}

.btn-white:hover {
  background-color: var(--grey-100);
  transform: translateY(-2px);
  
}

.btn-cta {
  background-color: var(--white);
  color: var(--green-primary);
}

.btn-cta:hover {
  background-color: var(--grey-100);
  transform: translateY(-2px);

}

/* ============================================
   HEADER
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  background-color: transparent;
  z-index: 1000;
  box-shadow: none;
  transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
  transform: translateY(0);
}

.header.scrolled {
  background-color: var(--white);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  padding: var(--space-xs) 0;
}

.header.nav-hidden {
  transform: translateY(-100%);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) 0;
  transition: padding 0.3s ease;
}

.header.scrolled .header-content {
  padding: var(--space-sm) 0;
}

.logo {
  display: flex;
  align-items: center;
  position: relative;
}

.logo img,
.logo-image {
  height: auto;
  max-height: 60px;
  width: auto;
  display: block;
  transition: opacity 0.3s ease;
}

.logo-white {
  display: block;
  opacity: 1;
}

.logo-green {
  display: none;
  opacity: 0;
}

body:not(.home) .header .logo-white {
  display: none;
  opacity: 0;
}

body:not(.home) .header .logo-green {
  display: block;
  opacity: 1;
}

.header.scrolled .logo-white {
  display: none;
  opacity: 0;
}

.header.scrolled .logo-green {
  display: block;
  opacity: 1;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.nav-link {
  font-size: var(--body-medium);
  line-height: var(--body-medium-lh);
  color: var(--white);
  font-weight: 500;
  transition: color 0.3s ease;
  display: none;
}

.nav-link:hover {
  color: var(--accent-green);
}

.header.scrolled .nav-link {
  color: var(--grey-700);
}

.header.scrolled .nav-link:hover {
  color: var(--green-primary);
}

body:not(.home) .header .nav-link {
  color: var(--grey-700);
}

.btn-header-explore {
  background-color: transparent;
  color: var(--white);
  border: 1px solid var(--white);
  padding: var(--space-xs) var(--space-sm);
  font-size: var(--body-medium);
  font-weight: 500;
}

body:not(.home) .btn-header-explore {
  color: var(--green-primary);
  border: 1px solid var(--green-primary);
}

.btn-header-explore:hover {
  background-color: var(--white);
  border-color: var(--white);
  transform: translateY(-2px);
  color: var(--green-primary);
}

.btn-header-apply {
  background-color: var(--green-primary);
  color: var(--white);
  border: none;
  padding: var(--space-xs) var(--space-sm);
  font-size: var(--body-medium);
  font-weight: 500;
}

.btn-header-apply:hover {
  background-color: var(--green-secondary);
  transform: translateY(-2px);
}

.header.scrolled .btn-header-explore {
  color: var(--grey-700);
  border-color: var(--grey-700);
}

.header.scrolled .btn-header-explore:hover {
  background-color: var(--grey-100);
  border-color: var(--grey-700);
}

.header.scrolled .btn-header-apply {
  background-color: var(--green-primary);
  color: var(--white);
}


/* ============================================
   COURSE INFO CTA BOX
   ============================================ */
.course-info-cta {
  position: fixed;
  bottom: var(--space-md);
  right: var(--space-md);
  z-index: 999;
  width: fit-content;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
  display: flex;
  gap: var(--space-sm);
}

.course-info-cta.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.course-info-cta.visible:hover .btn-outline {
  background-color: var(--white);
  color: var(--green-primary);
  border-color: var(--green-primary);
}

.course-info-cta.visible:hover .btn-primary {
  color: var(--white);
}

.course-info-cta .btn {
  white-space: nowrap;
}

.course-info-cta .btn-outline {
  background-color: var(--white);
}

.course-info-cta .btn-outline:hover {
  background-color: var(--white);
  color: var(--green-primary);
  border-color: var(--green-primary);
}

.course-info-cta .btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: var(--space-lg) 0;
  background-color: var(--white);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo {
  display: flex;
  align-items: center;
}

.footer-logo img {
  height: auto;
  max-height: 50px;
  width: auto;
  display: block;
}

.footer-copyright {
  font-size: var(--body-medium);
  line-height: var(--body-medium-lh);
  color: var(--grey-700);
}

.footer-copyright a {
  color: var(--green-primary);
  text-decoration: underline;
}

/* ============================================
   ANIMATIONS
   ============================================ */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */
/* 
 * Breakpoint System:
 * - Desktop: > 1024px (default styles)
 * - Tablet: 768px - 1024px
 * - Mobile: < 768px
 */

/* ============================================
   TABLET (max-width: 1024px)
   ============================================ */
   @media (max-width: 1024px) {
  
    /* Grid/Flex collapse */
    .dual-columns {
      grid-template-columns: 1fr;
      gap: var(--space-xl);
    }
  }
  
  /* ============================================
     MOBILE (max-width: 767px)
     ============================================ */
  @media (max-width: 767px) {
    /* Override spacing variables for mobile */
    :root {
      --space-xxl: var(--mobile-space-xxl);
      --space-xl: var(--mobile-space-xl);
      --space-lg: var(--mobile-space-lg);
      --space-md: var(--mobile-space-md);
      --space-sm: var(--mobile-space-sm);
      --space-xs: var(--mobile-space-xs);
    }
  
    /* Header */
    .header-content {
      padding: var(--space-sm) 0;
      position: relative;
    }
  
    .header-content .nav-link {
      display: block;
      position: absolute;
      top: 0;
      right: 0;
      font-size: var(--body-small);
      color: var(--white);
      font-weight: 500;
      padding: 0;
      margin: 0;
      text-decoration: none;
      z-index: 10;
    }
  
    .header.scrolled .header-content .nav-link {
      color: var(--grey-700);
    }
  
    .logo-image,
    .logo-link .logo,
    .logo-link img {
      max-height: 54px;
    }
  
    .header.scrolled .logo-link .logo,
    .header.scrolled .logo-link img {
      max-height: 54px;
    }
  
    .nav {
      position: fixed;
      top: 70px;
      left: 0;
      right: 0;
      background-color: var(--white);
      flex-direction: column;
      align-items: stretch;
      padding: var(--space-md);
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
      transform: translateY(-100%);
      opacity: 0;
      visibility: hidden;
      transition: all 0.3s ease;
      z-index: 999;
      gap: var(--space-sm);
    }
  
    .nav.active {
      transform: translateY(0);
      opacity: 1;
      visibility: visible;
    }
  
    .nav .nav-link {
      display: block;
      padding: var(--space-sm) 0;
      border-bottom: 1px solid var(--grey-300);
      color: var(--grey-700);
    }
  
    .header-content .nav-link {
      display: flex;
      align-items: center;
      position: absolute;
      top: 50%;
      right: 0;
      transform: translateY(-50%);
      font-size: var(--body-medium);
      color: var(--white);
      font-weight: 500;
      padding: 0;
      margin: 0;
      text-decoration: underline;
      text-underline-offset: 4px;
      text-decoration-thickness: 1px;
      z-index: 10;
      border-bottom: none;
    }
  
    .header.scrolled .header-content .nav-link {
      color: var(--white);
    }
  
    .nav-link:hover {
      color: var(--green-primary);
    }
  
    .nav .btn {
      width: 100%;
      margin-top: 0;
    }
  
    .btn-header-explore,
    .btn-header-apply {
      width: 100%;
    }


  /* Course Info CTA Box - Mobile */
  .course-info-cta {
    display: flex;
    width: 100%;
    padding: 24px 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(86.44999694824219px);
    bottom: 0;
    right: 0;
    left: 0;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    border-radius: 0;
    margin: 0;
  }

  .course-info-cta.visible {
    margin: 0;
    width: 100%;
  }

  .course-info-cta .btn {
    width: 100%;
  }

  .course-info-cta .btn-outline {
    display: none;
  }

  .cta-text {
    font-size: var(--mobile-body-xl);
    line-height: var(--mobile-body-xl-lh);
  }
  
    /* Footer */
.footer {
  margin-bottom:70px;
}

.footer-logo {
  margin: 0 auto;

}

    .footer-content {
      flex-direction: column;
      gap: var(--space-sm);
      text-align: center;
      font-size:.85em;
    }
  }