/* CrianzaInformada - Medical Chic Design System */

:root {
  /* Primary: Deep Ocean Blue */
  --color-primary: 210, 60%, 45%;
  /* Secondary: Soft Sage Green */
  --color-secondary: 150, 45%, 55%;
  /* Accent: Warm Peach */
  --color-accent: 25, 85%, 65%;
  /* Background: Ice White */
  --color-background: 210, 20%, 98%;
  /* Text: Charcoal Grey */
  --color-text: 210, 30%, 15%;
  /* Text Light: Softer Grey */
  --color-text-light: 210, 20%, 40%;

  /* Spacing */
  --spacing-sm: 0.5rem;
  /* 8px */
  --spacing-md: 1rem;
  /* 16px */
  --spacing-lg: 2rem;
  /* 32px */
  --spacing-xl: 4rem;
  /* 64px */

  /* Border Radius */
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

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

body {
  font-family: 'Inter', sans-serif;
  background-color: hsl(var(--color-background));
  color: hsl(var(--color-text));
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Outfit', sans-serif;
  color: hsl(var(--color-primary));
  font-weight: 700;
  line-height: 1.2;
}

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

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

/* Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.glass-card {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-primary {
  background-color: hsl(var(--color-primary));
  color: white;
}

.btn-primary:hover {
  background-color: hsl(210, 60%, 40%);
  /* Darker shade */
  box-shadow: 0 4px 12px hsla(var(--color-primary), 0.3);
}

.btn-secondary {
  background-color: hsl(var(--color-secondary));
  color: white;
}

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

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

/* Layout - Header */
header {
  background: white;
  padding: var(--spacing-md) 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  color: hsl(var(--color-primary));
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo img {
  height: 60px;
}

/* Hero Section */
.hero {
  position: relative;
  padding: var(--spacing-xl) 0;
  background: linear-gradient(180deg, hsl(var(--color-background)) 0%, white 100%);
  overflow: hidden;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xl);
  align-items: center;
}

.hero-text h1 {
  font-size: 3.5rem;
  margin-bottom: var(--spacing-md);
}

.hero-text p {
  font-size: 1.25rem;
  color: hsl(var(--color-text-light));
  margin-bottom: var(--spacing-lg);
}

.hero-image {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

/* The Grid (Nav Tiles) */
.age-grid {
  padding: var(--spacing-xl) 0;
}

.grid-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-md);
}

.age-tile {
  padding: var(--spacing-lg);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  height: 100%;
}

.age-tile h3 {
  font-size: 1.5rem;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr;
  }

  .hero-text h1 {
    font-size: 2.5rem;
  }

  .hero-image {
    order: -1;
    /* Image on top mobile */
  }
}