/* ============================================
   FONTS
   ============================================ */

@font-face {
    font-family: GothamLight;
    src: url('fonts/gothamlight.woff') format(woff);
    font-weight: normal;
    font-stretch: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: BradleyHand;
	src: url('fonts/bradleyhand.woff') format(woff);
    font-weight: normal;
    font-stretch: normal;
    font-style: normal;
    font-display: swap;
}

/* ============================================
   MODERN RESET & BASE STYLES
   ============================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  width: 100%;
  height: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  width: 100%;
  height: 100%;
  background-color: #FFFFFF;
  font-family: GothamLight, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.2;
  font-size: clamp(9.71px, 1.70vw, 38.9px); 
  color: #424242;
}

/* Prevent body scroll when modal is open */
body.modal-open {
  overflow: hidden;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1 {
  font-size: 1.6em;
  font-weight: 300;
  line-height: 1.2;
  margin-bottom: 0.5em;
}

h2 {
  font-size: 1.0em;
  font-weight: 600;
  line-height: 1.4;
  border-bottom: 0.5px solid #424242;
  margin-bottom: 1.4em;
}

h3 {
  font-size: 1.0em;
  font-weight: 600;
  font-style: normal; /* Remove italic for better hierarchy */
  line-height: 1.4;
  margin-bottom: 0.5em;
  color: #5F5E62; /* #505457; */
}

h4 {
  font-size: 0.95em;
  font-weight: 600;
  font-style: italic;
  line-height: 1.4;
  margin-top: 1.2em;
  margin-bottom: 0.6em;
  color: #5F5E62;
}

p {
  font-size: 1.0em;
  font-weight: 300;
  line-height: 1.2;
  margin-bottom: 1em;
}

ul {
  margin-left: 1.5em;
  margin-bottom: 1.0em; /* was 1.0em */
  list-style-type: disc;
}

li {
  margin-bottom: 0.5em;
  line-height: 1.3;
  padding-left: 0.3em;
}

strong {
  font-weight: 600;
  color: #6c6320;
}

b {
  font-weight: 600;
  color: #5F5E62;
}

em {
  font-style: italic;
}

/* ============================================
   GENERAL LINK STYLING
   ============================================ */

a {
  color: #BE005E;
  background-color: #FFF2F8;
  text-decoration: none;
  transition: all 0.3s ease;
}

a:visited {
  color: #BE005E;
  background-color: #FFF2F8;
  text-decoration: none;
}

a:hover {
  color: #BE005E;
  background-color: #FFFAFD;
  text-decoration: none;
  border-bottom: 1px solid #BE005E;
}

a:focus {
  color: #FFFFFF;
  background-color: #BE005E;
  text-decoration: none;
  outline: 2px solid #BE005E;
  outline-offset: 2px;
}

/* ============================================
   HEADER - MAIN
   ============================================ */

.home {
  position: fixed;
  top: 1.75vw;
  left: 1.75vw;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #FFFFFF;
}

.home:visited {
  background-color: #FFFFFF;
}

.home:hover {
  background-color: #FFFFFF;
  opacity: 0.7;
}

.home:focus {
  color: #BE005E;
  background-color: #FFFFFF;
  opacity: 0.7;
  outline: 2px solid #BE005E;
  outline-offset: 2px;
}

.logo {
  display: block;
  background-color: transparent;
  width: clamp(45px, 7.875vw, 180px);
  height: auto;
}

.tagline {
  display: block;
  background-color: transparent;
  width: clamp(45px, 7.875vw, 180px);
  margin-top: clamp(3px, 0.525vw, 12px);
  text-align: center;
  font-size: 0.70em;
  font-weight: 200;
  line-height: 1.2;
}

.menu {
  display: none;
}

/* ============================================
   HEADER - MOBILE
   ============================================ */

.page {
  position: relative;
  width: 92%;
  margin: 0 auto;
  padding: 2em 0;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.title {
  color: #424242;
  font-weight: 600;
  font-size: 100%;
  margin: 0;
}

.icon {
  color: #BE005E;
  background-color: transparent;
  text-decoration: none;
  font-weight: 600;
  font-size: 200%;
  line-height: 1;
  transition: all 0.3s ease;
}

.icon:visited {
  color: #BE005E;
  background-color: transparent;
}

.icon:hover {
  color: #BE005E;
  background-color: transparent;
  opacity: 0.7;
}

.icon:focus {
  color: #BE005E;
  background-color: transparent;
  opacity: 0.7;
  outline: 2px solid #BE005E;
  outline-offset: 2px;
}

.clearfix::after {
  content: "";
  display: table;
  clear: both;
}

/* ============================================
   SLIDER STRUCTURE
   ============================================ */

.wrapper {
  position: relative;
  width: clamp(400px, 70vw, 1600px);
  margin: 0 auto;
}

.container {
  background: #FFFFFF;
  padding: clamp(20px, 3.5vw, 80px);
  position: relative;
  min-height: clamp(80vh, calc(80vh + ((100vw - 1280px) / 128)), 90vh);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.slider {
  overflow: hidden;
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
}

.slides {
  display: flex;
  transition: transform 0.5s ease-in-out;
  height: 100%;
  width: 100%;
}

.slide {
  min-width: 100%;
  max-width: 100%;
  flex-shrink: 0;
  flex-basis: 100%;
  display: flex;
  flex-direction: column;
  padding: 0 clamp(10px, 1.75vw, 40px);
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
}

.slide h1 {
  margin-bottom: 1.0em;
  width: 100%;
  max-width: 100%;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.slide > * {
  max-width: 100%;
}

/* ============================================
   NAVIGATION - MODAL TRIGGERS
   ============================================ */

.trigger-link {
  border-radius: clamp(1.7px, 0.3vw, 6.9px);
  padding: 0 clamp(1.7px, 0.3vw, 6.9px);
  font-weight: 500;
}

/* ============================================
   NAVIGATION - QUESTIONS
   ============================================ */

.question-link {
  display: inline-block;
  margin-top: clamp(12px, 2.1vw, 48px);
  border-left: clamp(2px, 0.35vw, 8px) solid #BE005E;
  border-bottom: none;
  border-radius: clamp(3px, 0.525vw, 12px);
  padding: clamp(6px, 1.05vw, 24px) clamp(8px, 1.4vw, 32px);
  font-style: italic;
}

.question-link:hover {
  background-color: #BE005E;
  color: #FFFFFF;
  transform: translateX(5px);
}

.question-link:focus {
  transform: translateX(5px);
}

/* ============================================
   NAVIGATION - CALL TO ACTION
   ============================================ */

.cta-link {
  display: inline-block;
  background: linear-gradient(135deg, #BE005E 0%, #8B0045 100%);
  margin-top: clamp(12px, 2.1vw, 48px);
  border-bottom: none;
  border-radius: clamp(3px, 0.525vw, 12px);
  padding: clamp(8px, 1.4vw, 32px) clamp(14px, 2.45vw, 56px);
  color: #FFFFFF;
  font-weight: 400;
  text-align: center;
  box-shadow: 0 4px 15px rgba(190, 0, 94, 0.3);
}

.cta-link:visited {
  color: #FFFFFF;
  background: linear-gradient(135deg, #BE005E 0%, #8B0045 100%);
}

.cta-link:hover {
  background: linear-gradient(135deg, #8B0045 0%, #BE005E 100%);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(190, 0, 94, 0.4);
}

.cta-link:focus {
  background: linear-gradient(135deg, #8B0045 0%, #BE005E 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(190, 0, 94, 0.4);
}

/* ============================================
   NAVIGATION - ARROWS
   ============================================ */

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

button:focus {
  outline: 2px solid #BE005E;
  outline-offset: 2px;
}

.arrow-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(18px, 3.15vw, 72px);
  height: clamp(18px, 3.15vw, 72px);
  background-color: rgba(190, 0, 94, 0.95);
  color: #FFFFFF;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9em;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(190, 0, 94, 0.3);
}

.arrow-nav:hover {
  background-color: rgba(139, 0, 69, 0.95);
  color: #FFFFFF;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 4px 12px rgba(190, 0, 94, 0.4);
}

.arrow-nav:focus {
  background-color: rgba(139, 0, 69, 0.95);
  color: #FFFFFF;
  outline: 2px solid #BE005E;
  outline-offset: 2px;
}

.arrow-nav:disabled {
  opacity: 0;
  cursor: default;
  pointer-events: none;
}

.arrow-left {
  left: clamp(-160px, -7vw, -40px);
}

.arrow-right {
  right: clamp(-160px, -7vw, -40px);
}

/* ============================================
   NAVIGATION - PROGRESS DOTS 
   ============================================ */

.navigation {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(6px, 1.05vw, 24px);
  position: fixed;
  bottom: clamp(15px, 4.5vh, 60px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
}

.indicator {
  width: clamp(12px, 2.1vw, 48px);
  height: clamp(12px, 2.1vw, 48px);
  border-radius: 50%;
  background-color: #E9E9E9;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

.indicator:hover {
  background-color: #C2C2C2;
  border-color: transparent;
  transform: scale(1.2);
}

.indicator:focus {
  background-color: #C2C2C2;
  border-color: transparent;
  outline: 2px solid #BE005E;
  outline-offset: 2px;
}

.indicator.active {
  background-color: #BE005E;
  border-color: #8B0045;
  transform: scale(1.3);
}

/* ============================================
   MODALS
   ============================================ */

.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  overflow-y: auto;
  padding: clamp(12px, 2.1vw, 48px);
}

.modal-overlay.show {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.modal-content {
  background-color: #FFFFFF;
  border-radius: clamp(6px, 1.05vw, 12px);
  padding: clamp(20px, 3.5vw, 40px);
  max-width: min(600px, 90vw);
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: modalSlideIn 0.3s ease-out;
  cursor: default;
  font-size: clamp(14px, 2.5vw, 16px);
  line-height: 1.6;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-close {
  position: absolute;
  top: clamp(8px, 1.4vw, 16px);
  right: clamp(8px, 1.4vw, 16px);
  background-color: rgba(190, 0, 94, 0.95);
  color: #FFFFFF;
  border: none;
  width: clamp(18px, 3.15vw, 36px);
  height: clamp(18px, 3.15vw, 36px);
  border-radius: 50%;
  font-size: clamp(12px, 2.1vw, 24px);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.modal-close:hover {
  background-color: rgba(139, 0, 69, 0.95);
  color: #FFFFFF;
  transform: rotate(90deg) scale(1.1);
}

.modal-close:focus {
  background-color: rgba(139, 0, 69, 0.95);
  color: #FFFFFF;
  outline: 2px solid #BE005E;
  outline-offset: 2px;
}

.modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  cursor: pointer;
}
.modal-print {
  position: absolute;
  top: clamp(8px, 1.4vw, 16px);
  right: clamp(44px, 7.7vw, 60px); /* Positioned left of close button */
  background-color: rgba(190, 0, 94, 0.95);
  color: #FFFFFF;
  border: none;
  width: clamp(18px, 3.15vw, 36px);
  height: clamp(18px, 3.15vw, 36px);
  border-radius: 50%;
  font-size: clamp(10px, 1.75vw, 20px);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.modal-print:hover {
  background-color: rgba(139, 0, 69, 0.95);
  color: #FFFFFF;
  transform: scale(1.1);
}

.modal-print:focus {
  background-color: rgba(139, 0, 69, 0.95);
  color: #FFFFFF;
  outline: 2px solid #BE005E;
  outline-offset: 2px;
}

/* Hide print button when actually printing */
@media print {
  .modal-print {
    display: none;
  }
}

.example {
  display: inline-block;
  border-left: 2px solid #123499;
  border-right: 2px solid #123499;
  border-radius: 4px;
  padding: 0.3em 0.6em;
  margin: 0.2em 0 1.0em;
  background: #F8F9FA;
  font-family: Georgia, 'Palatino Linotype', serif;
  font-size: 0.9em;
  font-weight: 400;
  color: #123499;
  line-height: 1.5;
  max-width: 100%; /* Prevent overflow */
}

.photo {
  width: auto;
  height: auto;
  max-width: 100%;
  margin: 0 auto 1.6em;
  display: block;
  background: #ffffff;
  /* margin-bottom: 2em; */
  border-bottom: none;
}

.hand {
  font-family: BradleyHand, GothamLight, serif;
  color: #4169E1;
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================
   MOBILE DESIGN
   ============================================ */

@media screen and (max-width: 640px) {
  body {
    padding-top: clamp(32px, 5vw, 50px);
    font-size: clamp(14px, 2.1875vw, 18px);
  }
  
  .menu {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 99;
    display: block; 
    width: 100%; 
    padding: clamp(8px, 1.25vw, 14px) 0;
    font-size: clamp(12px, 1.875vw, 16px);
    border-bottom: 1px solid #DADADA;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); 
    background-color: #F8F8F8;
  }
  
  h1 {
    font-size: clamp(22.4px, 3.5vw, 28.8px);
  }  
  
  h2 {
    font-size: clamp(18.2px, 2.84375vw, 23.4px);
  }
  
  .wrapper {
    width: clamp(380px, 95vw, 608px);
  }
  
  .container {
    padding: clamp(48px, 7.5vw, 80px) clamp(12px, 1.875vw, 24px) clamp(24px, 3.75vw, 48px);
  }
  
  .arrow-nav {
    display: none;
  }
  
  .question-link {
    padding: clamp(6px, 0.9375vw, 8px) clamp(10px, 1.5625vw, 12px);
    font-size: clamp(12.6px, 1.96875vw, 16.2px);
  }
  
  .cta-link {
    padding: clamp(10px, 1.5625vw, 14px) clamp(16px, 2.5vw, 20px);
    font-size: clamp(13.3px, 2.078125vw, 17.1px);
  }
  
  .indicator {
    width: clamp(24px, 3.75vw, 32px);
    height: clamp(24px, 3.75vw, 32px);
    min-width: clamp(24px, 3.75vw, 32px);
    min-height: clamp(24px, 3.75vw, 32px);
  }
  
  .home {
    display: none;
  }
}

@media screen and (max-width: 400px) {
  body {
    font-size: clamp(13px, 3.25vw, 16px);
  }  
  
  .container {
    padding: clamp(48px, 12vw, 60px) clamp(10px, 2.5vw, 12px) clamp(24px, 6vw, 32px);
  }
  
  h1 {
    font-size: clamp(19.6px, 4.9vw, 22.4px);
  }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
  /* Hide everything except modal content */
  body * {
    visibility: hidden;
  }
  
  .modal-content,
  .modal-content * {
    visibility: visible;
  }
  
  /* Position modal content at top of page */
  .modal-content {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    max-width: 100%;
    padding: 0 10px; /* ************** currently 20 px; try 10px; */
    box-shadow: none;
    border-radius: 0;
    max-height: none;
  }
  
  /* Hide modal overlay/backdrop */
  .modal-overlay {
    position: static;
    background: none;
    padding: 0;
  }
  
  /* Hide close button when printing */
  .modal-close {
    display: none;
  }
  
  /* Optimize typography for print */
  .modal-content {
    font-size: 11pt; /* ************** curretntly 12pt; try 11pt; */
    line-height: 1.5;
    color: #424242; /* ************** currently #000000; try original #424242; */
  }
  
  .modal-content h2 {
    font-size: 16pt; /* ************** currently 18pt; try 16 pt */
    page-break-after: avoid;
  }
  
  .modal-content h3 {
    font-size: 12pt; /* ************** currently 14pt; try 12pt or 11pt */
    page-break-after: avoid;
  }
  
  .modal-content h4 {
    font-size: 11pt; /* ************** currently 12pt; try 11pt */
    page-break-after: avoid;
  }
  
  /* Avoid breaking lists/examples across pages */
  .modal-content ul,
  .modal-content .example {
    page-break-inside: avoid;
  }
  
  /* Clean up example boxes for print */
  .example {
    border: 1px solid #123499;
    padding: 8px 12px; /* ************** currently 8px 12px; maybe reduce */
  }
}
