/* Reset and Base Styles */
*,
::before,
::after {
  box-sizing: border-box;
  border-width: 0;
  border-style: solid;
  border-color: #e2e8f0;
}
html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  -moz-tab-size: 4;
  tab-size: 4;
  font-family:
    ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}
body {
  margin: 0;
  line-height: inherit;
}

/* Custom Properties & Fonts */
:root {
  --font-display: 'Roboto', sans-serif;
  --font-body: 'Roboto', sans-serif;
}
body {
  font-family: var(--font-body);
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
}

/* Layout */
.container {
  width: 100%;
  margin-right: auto;
  margin-left: auto;
  padding-right: 1rem;
  padding-left: 1rem;
}
@media (min-width: 640px) {
  .container {
    max-width: 640px;
  }
}
@media (min-width: 768px) {
  .container {
    max-width: 768px;
  }
}
@media (min-width: 1024px) {
  .container {
    max-width: 1024px;
  }
}
@media (min-width: 1280px) {
  .container {
    max-width: 1280px;
  }
}

/* Grid */
.grid {
  display: grid;
}
.grid-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}
.grid-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 640px) {
  .sm\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 768px) {
  .md\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 768px) {
  .md\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (min-width: 1024px) {
  .lg\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Spacing & Sizing */
.gap-8 {
  gap: 2rem;
}
.gap-12 {
  gap: 3rem;
}
.gap-16 {
  gap: 4rem;
}
@media (min-width: 768px) {
  .md\:gap-8 {
    gap: 2rem;
  }
  .md\:gap-12 {
    gap: 3rem;
  }
  .md\:gap-16 {
    gap: 4rem;
  }
}
.space-y-3 > :not([hidden]) ~ :not([hidden]) {
  margin-top: 0.75rem;
}
.space-y-4 > :not([hidden]) ~ :not([hidden]) {
  margin-top: 1rem;
}
.space-y-6 > :not([hidden]) ~ :not([hidden]) {
  margin-top: 1.5rem;
}
.space-x-6 > :not([hidden]) ~ :not([hidden]) {
  margin-left: 1.5rem;
}
.p-8 {
  padding: 2rem;
}
.p-12 {
  padding: 3rem;
}
.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}
.py-12 {
  padding-top: 3rem;
  padding-bottom: 3rem;
}
.py-24 {
  padding-top: 6rem;
  padding-bottom: 6rem;
}
.pt-2 {
  padding-top: 0.5rem;
}
.pt-4 {
  padding-top: 1rem;
}
.mb-4 {
  margin-bottom: 1rem;
}
.mb-6 {
  margin-bottom: 1.5rem;
}
.mb-8 {
  margin-bottom: 2rem;
}
.mb-16 {
  margin-bottom: 4rem;
}
.mt-4 {
  margin-top: 1rem;
}
.mx-auto {
  margin-left: auto;
  margin-right: auto;
}
.w-6 {
  width: 1.5rem;
}
.h-6 {
  height: 1.5rem;
}
.w-12 {
  width: 3rem;
}
.h-12 {
  height: 3rem;
}
.w-32 {
  width: 8rem;
}
.h-32 {
  height: 8rem;
}
.w-40 {
  width: 10rem;
}
.h-40 {
  height: 10rem;
}
.w-48 {
  width: 12rem;
}
.h-48 {
  height: 12rem;
}
.w-64 {
  width: 16rem;
}
.h-64 {
  height: 16rem;
}
.w-full {
  width: 100%;
}
.h-full {
  height: 100%;
}
.h-80 {
  height: 20rem;
}
.max-w-lg {
  max-width: 32rem;
}
.max-w-2xl {
  max-width: 42rem;
}
.max-w-3xl {
  max-width: 48rem;
}
@media (min-width: 768px) {
  .md\:h-auto {
    height: auto;
  }
  .md\:aspect-square {
    aspect-ratio: 1 / 1;
  }
  .md\:py-32 {
    padding-top: 8rem;
    padding-bottom: 8rem;
  }
  .md\:text-5xl {
    font-size: 3rem;
    line-height: 1;
  }
  .md\:text-6xl {
    font-size: 3.75rem;
    line-height: 1;
  }
  .md\:block {
    display: block;
  }
  .md\:hidden {
    display: none;
  }
  .md\:text-left {
    text-align: left;
  }
}

/* Display */
.flex {
  display: flex;
}
.items-center {
  align-items: center;
}
.justify-center {
  justify-content: center;
}
.hidden {
  display: none;
}

/* Typography */
.text-sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
}
.text-lg {
  font-size: 1.125rem;
  line-height: 1.75rem;
}
.text-2xl {
  font-size: 1.5rem;
  line-height: 2rem;
}
.text-4xl {
  font-size: 2.25rem;
  line-height: 2.5rem;
}
.text-5xl {
  font-size: 3rem;
  line-height: 1;
}
.text-6xl {
  font-size: 3.75rem;
  line-height: 1;
}
.font-display {
  font-family: var(--font-display);
}
.font-semibold {
  font-weight: 600;
}
.font-bold {
  font-weight: 700;
}
.uppercase {
  text-transform: uppercase;
}
.tracking-wider {
  letter-spacing: 0.05em;
}
.leading-tight {
  line-height: 1.25;
}

/* Custom line height for hero title */
.hero-title-tight {
  line-height: 1.1;
}
.leading-relaxed {
  line-height: 1.625;
}
.text-center {
  text-align: center;
}
.text-white {
  color: rgb(255 255 255);
}
.text-gray-300 {
  color: rgb(209 213 219);
}
.text-blue-600 {
  color: rgb(37 99 235);
}
.text-blue-700\/50 {
  color: rgb(29 78 216 / 0.5);
}
.text-pink-500 {
  color: rgb(236 72 153);
}
.text-navy-700 {
  color: rgb(55 65 81);
}
.text-navy-900 {
  color: rgb(17 24 39);
}
.hover\:underline:hover {
  text-decoration-line: underline;
}
.hover\:text-pink-500:hover {
  color: rgb(236 72 153);
}

/* Backgrounds */
.bg-white {
  background-color: rgb(255 255 255);
}
.bg-gray-50 {
  background-color: rgb(249 250 251);
}
.bg-blue-100 {
  background-color: rgb(219 234 254);
}
.bg-blue-700\/50 {
  background-color: rgba(29, 78, 216, 0.5);
}
.bg-blue-600 {
  background-color: rgb(37 99 235);
}
.bg-blue-700\/50 {
  background-color: rgb(29 78 216 / 0.5);
}
.bg-pink-100 {
  background-color: rgb(252 231 243);
}
.bg-pink-500\/30 {
  background-color: rgb(236 72 153 / 0.3);
}
.bg-navy-900 {
  background-color: rgb(17 24 39);
}
.hover\:bg-blue-700:hover {
  background-color: rgb(29 78 216);
}

/* Border Radius */
.rounded-xl {
  border-radius: 0.75rem;
}
.rounded-2xl {
  border-radius: 1rem;
}
.rounded-3xl {
  border-radius: 1.5rem;
}
.rounded-full {
  border-radius: 9999px;
}

/* Shadows */
.shadow-sm {
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}
.shadow-xl {
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

/* Why It Works styles (shared with homepage) */
.why-it-works h2 { font-size: 60px; font-weight: 600; line-height: 1.05; letter-spacing: -0.4px; margin-bottom: 12px; text-align: left; }
.why-it-works .why-subtitle { font-size: 24px; font-weight: 400; color: #6b7280; margin-bottom: 18px !important; text-align: left; }
.why-it-works ul { margin-top: 14px; }
.why-it-works li { list-style: none; padding-left: 0; margin-bottom: 14px; }
.why-it-works .feature-item { display: flex; align-items: flex-start; gap: 12px; }
.why-it-works .check-badge { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 9999px; background: #D1FAE5; }
.why-it-works .check-badge i { color: #065F46; font-size: 1.7rem; line-height: 1; }
.why-it-works .bullet-title { font-size: 26px; font-weight: 600; margin: 0; text-align: left; }
.why-it-works .bullet-text { font-size: 20px; font-weight: 400; color: #4b5563; margin: 2px 0 0 0; text-align: left; }
/* Match homepage bullet behavior exactly */
@media (max-width: 576px) {
  .why-it-works h2 { font-size: 60px; }
  .why-it-works .why-subtitle { font-size: 24px; }
  .why-it-works h2, .why-it-works .why-subtitle { margin-left: 30px; margin-right: 20px; }
  .why-it-works li { margin-right: 20px; }
}

/* Unified section typography (adopts Why It Works sizing without forcing alignment/colors) */
.section-title { font-size: 60px; font-weight: 600; line-height: 1.05; letter-spacing: -0.4px; margin-bottom: 12px; }
.section-subtitle { font-size: 24px; font-weight: 400; margin-bottom: 18px; }
.section-body { font-size: 20px; font-weight: 400; }
@media (max-width: 576px) {
  .section-title { font-size: 60px; }
  .section-subtitle { font-size: 24px; }
}

/* About Us label color */
.text-aboutus { color: rgb(142, 0, 152); }

/* Our Story specific spacing */
.our-story-section .section-title { margin-top: 20px; }

/* Hero actions mobile layout */
@media (max-width: 576px) {
  .hero-actions { display: flex; flex-direction: column; gap: 10px; margin-left: 30px; margin-right: 30px; }
  .hero-actions .enhanced-button { width: 100%; font-weight: 400; }
  .hero-actions .enhanced-button-lg { padding-top: 10px; padding-bottom: 10px; }
}

/* Our Story image mobile offset */
@media (max-width: 767px) {
  .our-story-image { margin-top: -40px !important; }
}

/* Final CTA actions mobile layout */
@media (max-width: 576px) {
  .cta-actions { display: flex; flex-direction: column; gap: 10px; margin-left: 0; margin-right: 0; }
  .cta-actions .enhanced-button { width: 100%; font-weight: 400; }
  .cta-actions .enhanced-button-lg { padding-top: 10px; padding-bottom: 10px; }
}

/* Values mobile layout: center icon + headline */
@media (max-width: 576px) {
  .values-item { text-align: center; }
  .values-item .values-header { display: flex; flex-direction: column; align-items: center; gap: 8px; }
  .values-item .values-header .icon { margin: 0 auto; }
  .values-item .values-header h3 { padding-top: 2px; text-align: center; }
}

/* Values desktop: ensure icons are centered */
.values-item .values-header .icon { margin-left: auto; margin-right: auto; }
.values-item .values-header h3 { text-align: center; }
.hover\:shadow-xl:hover {
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

/* Transitions */
.transition-shadow {
  transition-property: box-shadow;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
.transition-colors {
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
.duration-300 {
  transition-duration: 300ms;
}

/* Transforms */
.transform {
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
.-rotate-3 {
  --tw-rotate: -3deg;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

.scale-90 {
  --tw-scale-x: .9;
  --tw-scale-y: .9;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

.-translate-x-4 {
  --tw-translate-x: -1rem;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

.-translate-y-4 {
  --tw-translate-y: -1rem;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

/* Positioning */
.absolute {
  position: absolute;
}
.relative {
  position: relative;
}
.inset-0 {
  inset: 0px;
}
.-top-10 {
  top: -2.5rem;
}
.-left-10 {
  left: -2.5rem;
}
.-bottom-16 {
  bottom: -4rem;
}
.-right-10 {
  right: -2.5rem;
}
.z-10 {
  z-index: 10;
}

/* Object Fit */
.object-contain {
  object-fit: contain;
}
.object-cover {
  object-fit: cover;
}
.overflow-hidden {
  overflow: hidden;
}

/* Buttons */
.enhanced-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border-radius: 25px;
  font-weight: 400;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.enhanced-button-lg {
  padding: 10px 32px;
  font-size: 1.125rem;
}

.enhanced-button-secondary {
  background-color: #ec4899;
  color: white;
}

.enhanced-button-secondary:hover {
  background-color: #db2777;
  transform: translateY(-2px);
}

/* Outline variant for For Schools & Libraries buttons */
.enhanced-button-outline-primary {
  background-color: #ffffff;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.enhanced-button-outline-primary:hover {
  background-color: #fff;
  color: var(--primary-light);
  border-color: var(--primary-light);
  transform: translateY(-2px);
}

/* Email link styling */
.email-link { color: var(--primary); text-decoration: none; }
.email-link:hover { color: var(--primary-light); text-decoration: none; }

.w-32 {
  width: 8rem;
}
.h-32 {
  height: 8rem;
}

/* Animations */
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

.bounce-animation {
  animation: bounce 6s infinite;
}

.gradient-button {
  background: #ec4899;
}

.gradient-button:hover {
  background: #db2777;
  transform: translateY(-2px);
}

/* Mobile-specific adjustments */
@media (max-width: 767px) {
  /* Reduce section padding on mobile */
  .py-24.bg-gray-50 {
    padding-top: 3rem !important; /* Reduced from 8rem to 3rem */
  }
  
  /* Add top padding specifically to Our Story text on mobile */
  .text-4xl.md\:text-5xl.font-display.text-navy-900 {
    padding-top: 2rem !important;
  }
  
  /* Remove the negative margin since we're moving the section down instead */
  .our-story-image {
    margin-top: 0;
  }
  
  /* Ensure team headshots are perfectly circular on mobile */
  .team-headshot {
    border-radius: 50% !important;
    aspect-ratio: 1 / 1;
    object-fit: cover;
  }
}

/* Desktop-specific adjustments - ensure kawaii image shows on desktop */
@media (min-width: 768px) {
  .hidden.md\:block {
    display: block !important;
  }
  
  /* Force button to be left-aligned on desktop */
  .pt-4.text-center.md\:text-left {
    text-align: left !important;
  }
}

/* Cursor pointer and hover effects */
.cursor-pointer {
  cursor: pointer;
}

.hover\:opacity-80:hover {
  opacity: 0.8;
}

.transition-opacity {
  transition-property: opacity;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

/* Team headshot grayscale effect */
.team-headshot {
  filter: grayscale(100%) contrast(1.1);
  transition: filter 0.3s ease;
}

.team-headshot:hover {
  filter: grayscale(0%) contrast(1);
} 