/* ============================================
   BRIMSCHOOL UK - Main Stylesheet
   Modern, clean, mobile-first responsive design
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  --color-primary: #1a365d;
  --color-primary-light: #2a4a7f;
  --color-primary-dark: #0f2340;
  --color-accent: #3182ce;
  --color-accent-light: #63a4e8;
  --color-accent-hover: #2563a0;
  --color-text: #2d3748;
  --color-text-light: #718096;
  --color-text-inverse: #ffffff;
  --color-bg: #ffffff;
  --color-bg-light: #f7fafc;
  --color-bg-alt: #edf2f7;
  --color-border: #e2e8f0;
  --color-success: #38a169;
  --font-sans: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Courier New', monospace;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --transition: 0.25s ease;
  --max-width: 1140px;
}

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

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

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-accent-hover);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--color-accent-light);
  outline-offset: 2px;
}

ul {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--color-primary);
  line-height: 1.3;
  font-weight: 700;
}

/* --- Utility --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--color-text-light);
  max-width: 640px;
  margin: 0 auto 2.5rem;
}

/* Apps section subtitle — classy italic, two tight lines */
#app .section-subtitle {
  font-family: Georgia, 'Times New Roman', 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.35;
  max-width: 880px;
}

.text-center {
  text-align: center;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background-color: var(--color-accent);
  color: var(--color-text-inverse);
}

.btn-primary:hover {
  background-color: var(--color-accent-hover);
  color: var(--color-text-inverse);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-text-inverse);
  border-color: var(--color-text-inverse);
}

.btn-outline:hover {
  background-color: var(--color-text-inverse);
  color: var(--color-primary);
}

.btn-outline-dark {
  background-color: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-outline-dark:hover {
  background-color: var(--color-primary);
  color: var(--color-text-inverse);
}

/* ============================================
   HEADER / NAVIGATION
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow var(--transition);
}

.site-header.scrolled {
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: inline-block;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.header-tagline {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-accent);
  line-height: 1.2;
  padding-left: 0.85rem;
  border-left: 2px solid var(--color-border);
}

.logo-img {
  height: 46px;
  width: auto;
  display: block;
}

@media (max-width: 640px) {
  .header-tagline {
    display: none;
  }
}

.logo-text {
  display: inline-block;
}

.logo-text span {
  color: var(--color-accent);
}

.logo:hover {
  color: var(--color-primary);
}

/* Desktop nav */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text);
  position: relative;
  padding: 0.25rem 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-accent);
  transition: width var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a.active {
  color: var(--color-accent);
}

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.75rem;
  min-width: 44px;
  min-height: 44px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-primary);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  color: var(--color-text-inverse);
  padding: 5rem 0;
  text-align: center;
}

.hero h1 {
  font-size: 2.5rem;
  color: var(--color-text-inverse);
  margin-bottom: 1.25rem;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.hero p {
  font-size: 1.15rem;
  opacity: 0.9;
  max-width: 580px;
  margin: 0 auto 2rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Hero Banner --- */
.hero-banner {
  position: relative;
  overflow: hidden;
  padding: 4.5rem 0 5rem;
  color: var(--color-text-inverse);
  background:
    radial-gradient(1000px 500px at 80% -10%, rgba(49, 130, 206, 0.45), transparent 60%),
    radial-gradient(700px 500px at 10% 110%, rgba(99, 164, 232, 0.28), transparent 60%),
    linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 55%, var(--color-primary-light) 100%);
}

/* subtle dotted texture overlay */
.hero-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 22px 22px;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-content {
  max-width: 640px;
  min-width: 0;
}

.hero-topline {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.hero-badge {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent-light);
}

.hero-wordmark {
  height: 62px;
  width: auto;
  filter: drop-shadow(0 0 7px rgba(255, 255, 255, 0.85));
}

@media (max-width: 480px) {
  .hero-wordmark {
    height: 46px;
  }

  .hero-badge {
    font-size: 0.72rem;
  }
}

.hero-banner h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--color-text-inverse);
  margin-bottom: 1.25rem;
}

.hero-highlight {
  background: linear-gradient(90deg, var(--color-accent-light), #b9dcff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-tagline-main {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-accent-light);
  margin: 0.75rem 0 0.6rem;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.75rem;
  margin: 0 0 1.5rem;
}

.hero-points li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 1.02rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
}

.hero-points li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  top: -1px;
  color: var(--color-accent-light);
  font-weight: 700;
}

/* ---- Centered hero text (above the desk stage) ---- */
.hero-content--center {
  max-width: 760px;
  margin: 2.5rem auto 0;
  text-align: center;
}

.hero-content--center .hero-topline,
.hero-content--center .hero-points,
.hero-content--center .hero-actions {
  justify-content: center;
}

.hero-content--center .hero-subtitle,
.hero-content--center .hero-note {
  margin-left: auto;
  margin-right: auto;
}

/* ---- Interactive desk stage (two live phone screens) ---- */
.hero-banner {
  padding-top: 0;
  padding-bottom: 4rem;
}

.hero-stage {
  position: relative;
  width: 100%;
  margin-top: 0;
  overflow: hidden;
  background: #12233b;
}

.hero-stage-inner {
  position: relative;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  line-height: 0;
  container-type: inline-size;
}

.hero-stage-img {
  width: 100%;
  height: auto;
  display: block;
}

/* headline text overlaid on the desk scene (upper-centre, left of the logo) */
.stage-caption {
  position: absolute;
  top: 5%;
  left: 41%;
  transform: translateX(-50%);
  width: 44%;
  text-align: center;
  z-index: 2;
  line-height: 1.12;
  pointer-events: none;
  font-family: 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-shadow: 0 0 6px #fff, 0 0 12px #fff, 0 0 18px rgba(255, 255, 255, 0.9);
}

/* soft white blur cloud behind the text (feathered edges, not a box) */
.stage-caption::before {
  content: '';
  position: absolute;
  inset: -26% -8%;
  z-index: -1;
  background: radial-gradient(ellipse at 50% 46%,
    rgba(255, 255, 255, 0.92) 0%,
    rgba(255, 255, 255, 0.85) 32%,
    rgba(255, 255, 255, 0.4) 58%,
    rgba(255, 255, 255, 0) 74%);
  pointer-events: none;
}

.stage-caption span { display: block; position: relative; }

.stage-caption-1 {
  font-size: 3.6cqw;
  color: #e8632a;
  margin-bottom: 0.12em;
}

.stage-caption-2,
.stage-caption-3 {
  font-size: 2.45cqw;
  color: #3f7fd6;
  line-height: 1.22;
}

/* phone screens positioned as % of the desk image */
.phone-screen {
  position: absolute;
  padding: 0;
  border: 0;
  background: #000;
  border-radius: 0.6cqw;
  overflow: hidden;
  cursor: pointer;
}

/* box slightly overscans the blank screen so its black backing (not the
   base image's white) shows behind/around the screenshot at every edge */
.phone-screen--left { top: 27.9%; height: 44.6%; left: 37.65%; width: 13.1%; }
.phone-screen--right { top: 28.2%; height: 44.4%; left: 53.05%; width: 12.45%; }

.ps-img {
  position: absolute;
  inset: 0.16cqw;
  width: auto;
  height: auto;
  object-fit: cover;
  border-radius: 0.45cqw;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.ps-img.is-active { opacity: 1; }

/* "Tap me" hint on the right phone until first tap */
.phone-tap-hint {
  position: absolute;
  bottom: 7%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #fff;
  background: rgba(49, 130, 206, 0.94);
  padding: 0.25em 0.7em;
  border-radius: 999px;
  white-space: nowrap;
  pointer-events: none;
  animation: tapPulse 1.4s ease-in-out infinite;
}

/* the hint lives on whichever phone is NOT currently playing */
.phone-screen.is-playing .phone-tap-hint { display: none; }

@keyframes tapPulse {
  0%, 100% { transform: translateX(-50%) scale(1); opacity: 0.92; }
  50% { transform: translateX(-50%) scale(1.12); opacity: 1; }
}

/* animated steam over the tea cup */
.hero-steam {
  position: absolute;
  left: 71.2%;
  top: 56.5%;
  width: 6.5%;
  height: 16%;
  pointer-events: none;
  z-index: 2;
}

.hero-steam span {
  position: absolute;
  bottom: 0;
  width: 30%;
  height: 48%;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  filter: blur(6px);
  opacity: 0;
  animation: steamRise 4.4s ease-in infinite;
}

.hero-steam span:nth-child(1) { left: 20%; animation-delay: 0s; }
.hero-steam span:nth-child(2) { left: 42%; animation-delay: 1.5s; }
.hero-steam span:nth-child(3) { left: 62%; animation-delay: 3s; }

@keyframes steamRise {
  0% { transform: translateY(0) scale(0.5); opacity: 0; }
  30% { opacity: 0.38; }
  100% { transform: translateY(-120%) scale(1.35); opacity: 0; }
}

/* mobile: zoom the desk so the phone screens stay legible */
@media (max-width: 768px) {
  .hero-stage-inner {
    width: 185%;
    left: 50%;
    transform: translateX(-50%);
  }
}

.hero-subtitle {
  font-size: 1rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 1.25rem;
  max-width: 560px;
}

.hero-note {
  font-size: 1rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.8);
  margin: 0 0 2rem;
  max-width: 600px;
}

.hero-note strong {
  color: var(--color-text-inverse);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-banner .btn-primary {
  box-shadow: 0 10px 25px rgba(49, 130, 206, 0.4);
}

/* Hero visual (two phone mockups) */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
  min-height: 340px;
}

.hero-phone {
  position: relative;
  width: 178px;
  flex-shrink: 0;
  padding: 7px;
  background: #0b1a30;
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45), 0 0 0 5px rgba(255, 255, 255, 0.04);
  transition: transform var(--transition);
}

/* phone notch */
.hero-phone::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 58px;
  height: 14px;
  background: #0b1a30;
  border-radius: 0 0 12px 12px;
  z-index: 2;
}

/* back phone (BRIM SSC) — tucked lower-left, tilted */
.hero-phone--back {
  transform: rotate(-6deg) translateY(18px);
  margin-right: -34px;
  z-index: 1;
}

/* front phone (Loveland Kids) — raised, overlapping */
.hero-phone--front {
  transform: rotate(5deg) translateY(-14px);
  margin-left: -34px;
  z-index: 2;
}

.hero-phone--back:hover,
.hero-phone--front:hover {
  transform: translateY(-8px) rotate(0deg);
  z-index: 3;
}

.hero-phone-shot {
  display: block;
  width: 100%;
  aspect-ratio: 720 / 1600;
  object-fit: cover;
  object-position: top center;
  border-radius: 26px;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2.5rem;
  }

  .hero-phone {
    width: 200px;
  }
}

@media (max-width: 899px) {
  .hero-visual {
    order: -1;
    min-height: 0;
    margin-bottom: 0.5rem;
  }
}

@media (max-width: 400px) {
  .hero-phone {
    width: 152px;
  }
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
  padding: 4.5rem 0;
}

.section-alt {
  background-color: var(--color-bg-light);
}

#app.section-alt {
  background-color: #FEFFEF;
}

#about.section {
  background-color: #F3FFE8;
}

/* --- About Snippet (homepage) --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

.about-text p {
  margin-bottom: 1rem;
  color: var(--color-text-light);
}

/* --- Products / Apps --- */
.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.product-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 2rem;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.product-icon {
  width: 64px;
  height: 64px;
  background: var(--color-bg-alt);
  border-radius: var(--radius-md);
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
}

.product-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.product-card p {
  font-size: 0.95rem;
  color: var(--color-text-light);
  margin-bottom: 1rem;
}

.badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background-color: var(--color-bg-alt);
  color: var(--color-accent);
}

/* --- CTA Banner --- */
.cta-banner {
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-primary-light) 100%);
  color: var(--color-text-inverse);
  text-align: center;
  padding: 3.5rem 0;
}

.cta-banner h2 {
  color: var(--color-text-inverse);
  font-size: 1.8rem;
  margin-bottom: 0.75rem;
}

.cta-banner p {
  opacity: 0.9;
  margin-bottom: 1.5rem;
}

/* ============================================
   ABOUT PAGE
   ============================================ */
.page-header {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  text-align: center;
  padding: 3rem 0;
}

.page-header h1 {
  color: var(--color-text-inverse);
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

.page-header p {
  opacity: 0.85;
  max-width: 540px;
  margin: 0 auto;
}

/* Mission / Vision cards */
.values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.value-card {
  background: var(--color-bg);
  border-radius: var(--radius-md);
  padding: 2rem;
  border-left: 4px solid var(--color-accent);
  box-shadow: var(--shadow-sm);
}

.value-card h3 {
  margin-bottom: 0.5rem;
}

.value-card p {
  color: var(--color-text-light);
  font-size: 0.95rem;
}

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.team-card {
  text-align: center;
  padding: 2rem 1.5rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: box-shadow var(--transition);
}

.team-card:hover {
  box-shadow: var(--shadow-md);
}

.team-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: var(--color-bg-alt);
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--color-accent);
  font-weight: 700;
}

.team-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
}

.team-card .role {
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin-bottom: 0.75rem;
}

.team-card p {
  font-size: 0.9rem;
  color: var(--color-text-light);
}

/* Contact info */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--color-bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

.contact-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: var(--color-bg-alt);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--color-accent);
}

.contact-item h3 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.contact-item p {
  font-size: 0.95rem;
  color: var(--color-text-light);
}

.contact-item a {
  font-size: 0.95rem;
  color: var(--color-accent);
}

.contact-item a:hover {
  color: var(--color-accent-hover);
}

/* ============================================
   PRIVACY POLICY PAGE
   ============================================ */
.policy-content {
  max-width: 780px;
  margin: 0 auto;
  padding: 3rem 1.25rem;
}

.policy-content .last-updated {
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-border);
}

.policy-content h2 {
  font-size: 1.4rem;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  padding-top: 1rem;
}

.policy-content h3 {
  font-size: 1.15rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.policy-content p {
  margin-bottom: 1rem;
  color: var(--color-text-light);
}

.policy-content ul,
.policy-content ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.policy-content li {
  list-style: disc;
  margin-bottom: 0.4rem;
  color: var(--color-text-light);
  font-size: 0.95rem;
}

.policy-content ol li {
  list-style: decimal;
}

.policy-content a {
  overflow-wrap: break-word;
}

.app-screenshot-placeholder {
  width: 100%;
  min-height: 200px;
  background: var(--color-bg-alt);
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-light);
  font-size: 0.9rem;
  margin: 1.5rem 0;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background-color: var(--color-primary-dark);
  color: rgba(255, 255, 255, 0.75);
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-col h4 {
  color: var(--color-text-inverse);
  font-size: 1rem;
  margin-bottom: 1rem;
}

.footer-col p {
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer-col ul li {
  margin-bottom: 0.5rem;
}

.footer-col ul a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition);
  display: inline-block;
  padding: 0.35rem 0;
}

.footer-col ul a:hover {
  color: var(--color-text-inverse);
}

.footer-social {
  margin-top: 1.5rem;
}

.footer-social-title {
  display: block;
  color: var(--color-text-inverse);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.85rem;
}

.footer-social-icons {
  display: flex;
  gap: 0.75rem;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background-color: #ffffff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.social-icon:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.social-icon svg {
  width: 22px;
  height: 22px;
}

.social-icon--facebook svg {
  fill: #1877f2;
}

.social-icon--youtube svg {
  fill: #ff0000;
}

.social-icon--whatsapp svg {
  fill: #25d366;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
}

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */

/* Tablet (640px+) */
@media (min-width: 640px) {
  .hero h1 {
    font-size: 3rem;
  }

  .section-title {
    font-size: 2.25rem;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Desktop (900px+) */
@media (min-width: 900px) {
  .hero {
    padding: 6rem 0;
  }

  .hero h1 {
    font-size: 3.25rem;
  }

  .section {
    padding: 5.5rem 0;
  }

  .about-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }

  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

/* Mobile nav */
@media (max-width: 767px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--color-bg);
    flex-direction: column;
    padding: 1.5rem;
    gap: 0;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 0.75rem 0;
    width: 100%;
    border-bottom: 1px solid var(--color-border);
  }

  .nav-links li:last-child a {
    border-bottom: none;
  }

  .nav-links a::after {
    display: none;
  }
}

/* --- App Showcase --- */
.apps-grid {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.app-card {
  background: #CAF6F6;
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  text-align: center;
  max-width: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform var(--transition), box-shadow var(--transition);
}

.app-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.app-card h3 {
  font-size: 1.1rem;
  line-height: 1.3;
  min-height: 2.86rem;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.app-card p {
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin-bottom: 1.25rem;
}

.app-card .app-audience {
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text);
  min-height: 4.1rem;
  margin-bottom: 0.9rem;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.app-card .app-tagline {
  font-family: Georgia, 'Times New Roman', 'Playfair Display', serif;
  font-size: 1.05rem;
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--color-primary);
  margin-bottom: 1.25rem;
}

.app-card .btn-store {
  margin-top: auto;
}

/* ============================================
   APPS LIST PAGE (apps.html)
   ============================================ */
.apps-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 960px;
  margin: 0 auto;
}

#apps-list-section {
  background-color: #FEFFEF;
  padding-top: 2.5rem;
}

.vision-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  max-width: 1040px;
  margin: 0 auto 2.5rem;
}

/* crop the wordmark off, keep just the arch */
.vision-banner-logo-wrap {
  display: block;
  width: 62px;
  height: 47px;
  overflow: hidden;
  flex-shrink: 0;
}

.vision-banner-logo {
  display: block;
  width: 62px;
  height: auto;
}

.vision-banner-text {
  font-family: 'Segoe Print', 'Bradley Hand', 'Comic Sans MS', 'Marker Felt', cursive;
  font-size: 1.55rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--color-primary);
  margin: 0;
  text-align: left;
}

@media (max-width: 700px) {
  .vision-banner {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .vision-banner-text {
    text-align: center;
    font-size: 1.25rem;
  }
}

.app-list-row {
  display: grid;
  grid-template-columns: 96px 1.1fr 1.7fr auto;
  gap: 1.5rem 2rem;
  align-items: center;
  background: #CAF6F6;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 1.5rem 1.75rem;
  text-align: left;
  transition: transform var(--transition), box-shadow var(--transition);
}

.app-list-row:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.app-list-icon {
  width: 96px;
  height: 96px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: 0 10px 22px rgba(15, 35, 64, 0.18);
}

.app-list-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.3;
  margin: 0;
}

.app-list-detail {
  font-size: 0.92rem;
  color: var(--color-text-light);
  line-height: 1.55;
  margin: 0;
}

.app-list-actions {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.btn-store2 {
  font-size: 0.85rem;
  padding: 0.55rem 1.15rem;
  white-space: nowrap;
  text-align: center;
}

.btn-ios-disabled {
  background: var(--color-bg-alt);
  color: var(--color-text-light);
  border-color: var(--color-border);
  cursor: not-allowed;
  opacity: 0.75;
  pointer-events: none;
}

@media (max-width: 720px) {
  .app-list-row {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 1rem;
    padding: 1.75rem 1.25rem;
  }

  .app-list-actions {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
  }
}

.app-showcase {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.app-showcase-icon {
  width: 120px;
  height: 120px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: 0 14px 30px rgba(15, 35, 64, 0.22);
}

.app-screenshots {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.app-screenshot {
  width: 280px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
}

@media (max-width: 639px) {
  .app-screenshot {
    width: 100%;
    max-width: 320px;
  }
}

/* Large screens (1200px+) */
@media (min-width: 1200px) {
  :root {
    --max-width: 1200px;
  }

  .hero h1 {
    font-size: 3.5rem;
  }
}

/* --- Skip link (accessibility) --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  z-index: 200;
  background: var(--color-primary);
  color: var(--color-text-inverse);
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 var(--radius-sm) 0;
}

.skip-link:focus {
  top: 0;
  outline: 3px solid var(--color-accent-light);
  outline-offset: 2px;
}

/* --- Body scroll lock when mobile nav is open --- */
body.nav-open {
  overflow: hidden;
}

/* --- Google Play button class (replaces inline styles) --- */
.btn-store {
  margin-top: 1rem;
  font-size: 0.85rem;
  padding: 0.5rem 1.2rem;
}

/* --- Mobile overrides --- */
@media (max-width: 639px) {
  /* Issue #8: Scale down app icons on small screens */
  .app-showcase-icon {
    width: 80px;
    height: 80px;
  }

  /* Issue #9: App cards fill mobile width */
  .app-card {
    width: 100%;
    max-width: 100%;
  }

  /* Issue #10: Responsive store buttons */
  .btn-store {
    width: 100%;
    text-align: center;
  }
}

/* Issue #13: Reduce heading sizes below 480px */
@media (max-width: 480px) {
  .section-title {
    font-size: 1.5rem;
  }

  .page-header h1 {
    font-size: 1.6rem;
  }

  .cta-banner h2 {
    font-size: 1.35rem;
  }
}

/* Issue #15: Intermediate 3-column footer step */
@media (min-width: 640px) and (max-width: 899px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Issue #5: Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
