/* ============================================================
   LUGO — DESIGN SYSTEM
   ============================================================
   Paleta baseada na identidade do app Lugo.
   Lugo é a baleia — símbolo de comunicação, imaginação e leveza.
   Cores quentes e acolhedoras para conversar com os pais.
   ============================================================ */

/* ─── Google Fonts ─────────────────────────────────────────── */
@import url("https://fonts.googleapis.com/css2?family=Caveat+Brush&family=Nunito:ital,wght@0,400;0,600;0,700;0,800;0,900;1,600&family=Inter:wght@300;400;500;600&display=swap");

/* ─── Design Tokens ─────────────────────────────────────────── */
:root {
  /* Core Colors */
  --lugo-navy: #052b4d;
  --lugo-navy-mid: #203c55;
  --lugo-navy-dark: #081127;
  --lugo-orange: #e47740;
  --lugo-orange-light: #faa952;
  --lugo-orange-pale: #f9d4ac;
  --lugo-teal: #79c6c9;
  --lugo-teal-light: #c0dccf;
  --lugo-green: #7fb879;
  --lugo-cream: #faf6ec;
  --lugo-cream-mid: #f8cda5;
  --lugo-grey: #527983;
  --lugo-grey-light: #bbbbbb;
  --lugo-white: #ffffff;

  /* Semantic Color Aliases */
  --color-bg: var(--lugo-cream);
  --color-bg-dark: var(--lugo-navy-dark);
  --color-text: var(--lugo-navy);
  --color-text-muted: var(--lugo-grey);
  --color-text-light: var(--lugo-cream);
  --color-primary: var(--lugo-navy);
  --color-accent: var(--lugo-orange);
  --color-accent-light: var(--lugo-orange-light);
  --color-secondary: var(--lugo-teal);

  /* Typography */
  --font-display: "Caveat Brush", cursive;
  --font-body: "Nunito", sans-serif;
  --font-ui: "Inter", sans-serif;

  /* Font Sizes (fluid scale) */
  --text-xs: 0.75rem; /* 12px */
  --text-sm: 0.875rem; /* 14px */
  --text-base: 1rem; /* 16px */
  --text-lg: 1.125rem; /* 18px */
  --text-xl: 1.25rem; /* 20px */
  --text-2xl: 1.5rem; /* 24px */
  --text-3xl: 1.875rem; /* 30px */
  --text-4xl: 2.25rem; /* 36px */
  --text-5xl: 3rem; /* 48px */
  --text-6xl: 3.75rem; /* 60px */
  --text-7xl: 4.5rem; /* 72px */

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-7: 1.75rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-14: 3.5rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(5, 43, 77, 0.08), 0 1px 2px rgba(5, 43, 77, 0.06);
  --shadow-md: 0 4px 16px rgba(5, 43, 77, 0.1), 0 2px 6px rgba(5, 43, 77, 0.07);
  --shadow-lg:
    0 10px 40px rgba(5, 43, 77, 0.14), 0 4px 16px rgba(5, 43, 77, 0.08);
  --shadow-xl: 0 20px 60px rgba(5, 43, 77, 0.18);
  --shadow-glow: 0 0 30px rgba(121, 198, 201, 0.3);

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --duration-fast: 150ms;
  --duration-base: 250ms;
  --duration-slow: 400ms;

  /* Layout */
  --container-max: 1280px;
  --container-pad: clamp(1.25rem, 5vw, 3rem);
  --nav-height: 72px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

ul,
ol {
  list-style: none;
}

/* ─── Typography Utilities ──────────────────────────────────── */
.font-display {
  font-family: var(--font-display);
}
.font-body {
  font-family: var(--font-body);
}

.text-xs {
  font-size: var(--text-xs);
}
.text-sm {
  font-size: var(--text-sm);
}
.text-base {
  font-size: var(--text-base);
}
.text-lg {
  font-size: var(--text-lg);
}
.text-xl {
  font-size: var(--text-xl);
}
.text-2xl {
  font-size: var(--text-2xl);
}
.text-3xl {
  font-size: var(--text-3xl);
}
.text-4xl {
  font-size: var(--text-4xl);
}
.text-5xl {
  font-size: var(--text-5xl);
}

.font-regular {
  font-weight: 400;
}
.font-semibold {
  font-weight: 600;
}
.font-bold {
  font-weight: 700;
}
.font-extrabold {
  font-weight: 800;
}
.font-black {
  font-weight: 900;
}

.text-navy {
  color: var(--lugo-navy);
}
.text-orange {
  color: var(--lugo-orange);
}
.text-teal {
  color: var(--lugo-teal);
}
.text-cream {
  color: var(--lugo-cream);
}
.text-grey {
  color: var(--lugo-grey);
}
.text-white {
  color: var(--lugo-white);
}
.text-muted {
  color: var(--color-text-muted);
}

.text-center {
  text-align: center;
}
.text-left {
  text-align: left;
}
.text-right {
  text-align: right;
}
.leading-tight {
  line-height: 1.15;
}
.leading-snug {
  line-height: 1.35;
}
.leading-normal {
  line-height: 1.6;
}
.leading-relaxed {
  line-height: 1.75;
}

/* ─── Container ─────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

/* ─── Button System ─────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 700;
  line-height: 1;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--duration-base) var(--ease-out);
  text-decoration: none;
  white-space: nowrap;
  user-select: none;
  -webkit-user-select: none;
}

.btn:hover {
  transform: translateY(-2px);
}
.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--lugo-orange);
  color: var(--lugo-white);
  border-color: var(--lugo-orange);
  box-shadow: 0 4px 18px rgba(228, 119, 64, 0.4);
}
.btn-primary:hover {
  background: var(--lugo-orange-light);
  border-color: var(--lugo-orange-light);
  box-shadow: 0 8px 24px rgba(228, 119, 64, 0.5);
}

.btn-secondary {
  background: transparent;
  color: var(--lugo-navy);
  border-color: var(--lugo-navy);
}
.btn-secondary:hover {
  background: var(--lugo-navy);
  color: var(--lugo-cream);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: var(--lugo-cream);
  border-color: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(4px);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-teal {
  background: var(--lugo-teal);
  color: var(--lugo-navy);
  border-color: var(--lugo-teal);
  box-shadow: 0 4px 18px rgba(121, 198, 201, 0.4);
}
.btn-teal:hover {
  box-shadow: 0 8px 24px rgba(121, 198, 201, 0.55);
}

.btn-lg {
  font-size: var(--text-lg);
  padding: 1.1rem 2.25rem;
}

.btn-sm {
  font-size: var(--text-sm);
  padding: 0.6rem 1.25rem;
}

/* ─── Badges ────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.badge-orange {
  background: rgba(228, 119, 64, 0.14);
  color: var(--lugo-orange);
}

.badge-teal {
  background: rgba(121, 198, 201, 0.18);
  color: var(--lugo-teal);
}

.badge-navy {
  background: rgba(5, 43, 77, 0.1);
  color: var(--lugo-navy);
}

.badge-white {
  background: rgba(255, 255, 255, 0.18);
  color: var(--lugo-cream);
}

/* ─── Card System ───────────────────────────────────────────── */
.card {
  background: var(--lugo-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition:
    transform var(--duration-base) var(--ease-out),
    box-shadow var(--duration-base) var(--ease-out);
}

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

.card-cream {
  background: var(--lugo-cream);
}

.card-navy {
  background: var(--lugo-navy);
  color: var(--lugo-cream);
}

/* ─── Section Utilities ─────────────────────────────────────── */
.section {
  padding-top: clamp(3rem, 8vw, 6rem);
  padding-bottom: clamp(3rem, 8vw, 6rem);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl));
  line-height: 1.15;
  color: var(--lugo-navy);
}

.section-title-light {
  color: var(--lugo-cream);
}

.section-subtitle {
  font-family: var(--font-body);
  font-size: clamp(var(--text-base), 2vw, var(--text-lg));
  color: var(--color-text-muted);
  line-height: 1.7;
  max-width: 640px;
}

.section-subtitle-light {
  color: rgba(250, 246, 236, 0.8);
}

/* ─── Grid & Flex Utilities ─────────────────────────────────── */
.flex {
  display: flex;
}
.flex-col {
  flex-direction: column;
}
.items-center {
  align-items: center;
}
.items-start {
  align-items: flex-start;
}
.justify-center {
  justify-content: center;
}
.justify-between {
  justify-content: space-between;
}
.flex-wrap {
  flex-wrap: wrap;
}
.gap-4 {
  gap: var(--space-4);
}
.gap-6 {
  gap: var(--space-6);
}
.gap-8 {
  gap: var(--space-8);
}
.gap-12 {
  gap: var(--space-12);
}

/* ─── Animations ────────────────────────────────────────────── */
@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-14px);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes wave {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

@keyframes pulse-soft {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.03);
  }
}

.animate-float {
  animation: float 4s ease-in-out infinite;
}
.animate-fade-up {
  animation: fadeUp 0.7s var(--ease-out) both;
}
.animate-fade-in {
  animation: fadeIn 0.7s ease both;
}

.delay-100 {
  animation-delay: 100ms;
}
.delay-200 {
  animation-delay: 200ms;
}
.delay-300 {
  animation-delay: 300ms;
}
.delay-400 {
  animation-delay: 400ms;
}
.delay-500 {
  animation-delay: 500ms;
}

/* ─── Gradient Backgrounds ──────────────────────────────────── */
.bg-gradient-hero {
  background: linear-gradient(
    150deg,
    var(--lugo-navy-dark) 0%,
    var(--lugo-navy) 45%,
    #0a3d5c 100%
  );
}

.bg-gradient-warm {
  background: linear-gradient(
    135deg,
    var(--lugo-orange-pale) 0%,
    var(--lugo-cream) 100%
  );
}

.bg-gradient-teal {
  background: linear-gradient(
    135deg,
    var(--lugo-teal) 0%,
    var(--lugo-teal-light) 100%
  );
}

.bg-gradient-cta {
  background: linear-gradient(
    140deg,
    var(--lugo-navy) 0%,
    var(--lugo-navy-mid) 50%,
    #0a4a6e 100%
  );
}

.bg-cream {
  background-color: var(--lugo-cream);
}
.bg-navy {
  background-color: var(--lugo-navy);
}
.bg-white {
  background-color: var(--lugo-white);
}

/* ─── Divider / Wave ────────────────────────────────────────── */
.wave-divider {
  position: relative;
  overflow: hidden;
}

.wave-divider::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 80px;
  background: var(--lugo-cream);
  clip-path: ellipse(55% 100% at 50% 100%);
}
