/* OTTER Online Safety Foundation — style.css v1.0.0 */

:root {
  --navy: #1e3a5f;
  --navy-dark: #152c4a;
  --teal: #0891b2;
  --teal-light: #22d3ee;
  --bg-light: #f8fafc;
  --bg-white: #ffffff;
  --text-dark: #1f2937;
  --text-muted: #6b7280;
  --text-light: #f1f5f9;
  --border: #e5e7eb;
  --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  --radius: 12px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Typography ── */

h1, h2, h3, h4 {
  line-height: 1.2;
  font-weight: 700;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.25rem; }

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
}

p { max-width: 65ch; }

a {
  color: var(--teal);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover { color: var(--teal-light); }

/* ── Layout ── */

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 5rem 0;
}

@media (max-width: 768px) {
  section { padding: 3rem 0; }
}

/* ── Navigation ── */

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(30, 58, 95, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
}

.nav-brand svg {
  width: 36px;
  height: 36px;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: white;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 0.5rem;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--navy);
    padding: 1rem 1.5rem;
    gap: 0;
  }

  .nav-links.open { display: flex; }

  .nav-links li { padding: 0.75rem 0; }

  .nav-toggle { display: block; }
}

/* ── Hero ── */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 50%, #0c2340 100%);
  color: white;
  overflow: hidden;
  padding-top: 64px;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 80%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(8,145,178,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero-layout {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.hero-otter {
  flex-shrink: 0;
}

.hero-otter img {
  width: 240px;
  height: auto;
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

@media (max-width: 768px) {
  .hero-layout {
    flex-direction: column;
    text-align: center;
  }

  .hero-otter img {
    width: 180px;
  }

  .hero-content .btn-group {
    justify-content: center;
  }
}

.hero-badge {
  display: inline-block;
  background: rgba(8,145,178,0.2);
  border: 1px solid rgba(8,145,178,0.4);
  color: var(--teal-light);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero h1 span {
  color: var(--teal-light);
}

.hero p {
  font-size: 1.25rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 2.5rem;
  max-width: 560px;
}

@media (max-width: 768px) {
  .hero { min-height: auto; padding-top: 120px; padding-bottom: 80px; }
  .hero h1 { font-size: 2.25rem; }
  .hero p { font-size: 1.05rem; }
}

/* ── Buttons ── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-primary {
  background: var(--teal);
  color: white;
}

.btn-primary:hover {
  background: #0e7490;
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(8,145,178,0.4);
}

.btn-outline {
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,0.3);
}

.btn-outline:hover {
  border-color: white;
  color: white;
  background: rgba(255,255,255,0.1);
}

.btn-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ── Section Headers ── */

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-header h2 {
  margin-bottom: 1rem;
  color: var(--navy);
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin: 0 auto;
}

/* ── Mission Section ── */

#mission {
  background: var(--bg-white);
}

.mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
  margin-top: 3rem;
}

.mission-stat {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--bg-light);
  border-radius: var(--radius);
}

.mission-stat .number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--teal);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.mission-stat .label {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 500;
}

@media (max-width: 768px) {
  .mission-grid { grid-template-columns: 1fr; }
}

/* ── What We Do ── */

#purpose {
  background: var(--bg-light);
}

.purpose-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.purpose-card {
  background: white;
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid var(--border);
}

.purpose-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.purpose-icon {
  width: 48px;
  height: 48px;
  background: rgba(8,145,178,0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--teal);
}

.purpose-icon svg {
  width: 24px;
  height: 24px;
}

.purpose-card h3 {
  margin-bottom: 0.75rem;
  color: var(--navy);
}

.purpose-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .purpose-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .purpose-grid { grid-template-columns: 1fr; }
}

/* ── Communiti Showcase ── */

#communiti {
  background: var(--bg-white);
}

.showcase-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.showcase-logo {
  height: 48px;
  width: auto;
  margin-bottom: 0.75rem;
}

.showcase-text h2 {
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.showcase-label {
  color: var(--teal);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.showcase-text p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

.showcase-features {
  list-style: none;
  margin-bottom: 2rem;
}

.showcase-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  color: var(--text-dark);
  font-size: 0.95rem;
}

.showcase-features li svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--teal);
  margin-top: 2px;
}

.showcase-video {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: #000;
}

.showcase-video video {
  width: 100%;
  display: block;
  border-radius: var(--radius);
}

@media (max-width: 768px) {
  .showcase-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .showcase-mockup { aspect-ratio: 16/9; }
}

/* ── Who We Serve ── */

#serve {
  background: var(--bg-light);
}

.serve-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.serve-card {
  text-align: center;
  background: white;
  border-radius: var(--radius);
  padding: 2.5rem 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform 0.2s;
}

.serve-card:hover { transform: translateY(-2px); }

.serve-icon {
  width: 64px;
  height: 64px;
  background: rgba(8,145,178,0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  color: var(--teal);
}

.serve-icon svg {
  width: 28px;
  height: 28px;
}

.serve-card h3 {
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.serve-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .serve-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .serve-grid { grid-template-columns: 1fr; }
}

/* ── Contact / CTA ── */

#contact {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: white;
  text-align: center;
}

#contact h2 {
  color: white;
  margin-bottom: 1rem;
}

#contact p {
  color: rgba(255,255,255,0.75);
  font-size: 1.1rem;
  margin: 0 auto 2rem;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  padding: 1rem 1.5rem;
  color: white;
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.contact-email svg {
  width: 20px;
  height: 20px;
  color: var(--teal-light);
}

.contact-email:hover {
  background: rgba(255,255,255,0.15);
  color: white;
}

/* ── Footer ── */

footer {
  background: #0c1e33;
  color: rgba(255,255,255,0.5);
  padding: 2rem 0;
  font-size: 0.85rem;
  text-align: center;
}

footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

footer a {
  color: rgba(255,255,255,0.6);
}

footer a:hover {
  color: white;
}

@media (max-width: 600px) {
  footer .container {
    flex-direction: column;
    text-align: center;
  }
}

/* ── Utility ── */

.text-center { text-align: center; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}
