/* TinyTouch — Calming Infant Massage
   Shared styles for landing page + routine page */

/* ── Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600&family=Nunito:wght@300;400;500;600&display=swap');

/* ── Design Tokens ── */
:root {
  /* Palette — soft, infant, calming */
  --cloud:       #F0F4F8;
  --cloud-light: #F7F9FC;
  --blush:       #F2D7D5;
  --blush-deep:  #E5B8B4;
  --lavender:    #D5D0E6;
  --lavender-soft:#EBE8F4;
  --sky:         #B8D4E3;
  --sky-light:   #D6E8F0;
  --sky-deep:    #7BA7C2;
  --dusk:        #8E99A4;
  --night:       #3B4856;
  --night-soft:  #5A6978;
  --cream:       #FFFCFA;
  --warm-white:  #FEFDFB;
  --rose:        #D4A0A0;
  --rose-soft:   #EACECE;

  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Nunito', -apple-system, sans-serif;

  /* Spacing */
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  1.5rem;
  --space-lg:  2.5rem;
  --space-xl:  4rem;
  --space-2xl: 6rem;

  /* Radius */
  --radius-sm:  8px;
  --radius-md:  16px;
  --radius-lg:  24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-soft:   0 2px 20px rgba(59, 72, 86, 0.06);
  --shadow-medium: 0 4px 30px rgba(59, 72, 86, 0.10);
  --shadow-glow:   0 0 40px rgba(184, 212, 227, 0.2);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--night);
  background: var(--cloud-light);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.25;
  color: var(--night);
}

h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.2rem, 3vw, 1.6rem);
}

p {
  font-size: clamp(1rem, 2.5vw, 1.125rem);
  color: var(--night-soft);
  max-width: 600px;
}

.text-sm {
  font-size: 0.875rem;
}

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

/* ── Layout ── */
.container {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.container--narrow {
  max-width: 540px;
}

section {
  padding: var(--space-xl) 0;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2.25rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: all 0.3s ease;
  letter-spacing: 0.01em;
}

.btn--primary {
  background: var(--sky-deep);
  color: white;
  box-shadow: var(--shadow-soft);
}

.btn--primary:hover {
  background: var(--night-soft);
  transform: translateY(-1px);
  box-shadow: var(--shadow-medium);
}

.btn--secondary {
  background: transparent;
  color: var(--night-soft);
  border: 1.5px solid var(--blush);
}

.btn--secondary:hover {
  border-color: var(--blush-deep);
  color: var(--night);
}

.btn--large {
  padding: 1.15rem 2.75rem;
  font-size: 1.0625rem;
}

.btn--full {
  width: 100%;
}

/* ── Cards ── */
.card {
  background: var(--cream);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  box-shadow: var(--shadow-soft);
}

/* ── Form Elements ── */
.input-field {
  width: 100%;
  padding: 1rem 1.25rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--night);
  background: var(--cream);
  border: 1.5px solid var(--blush);
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.input-field::placeholder {
  color: var(--dusk);
  font-weight: 300;
}

.input-field:focus {
  border-color: var(--sky);
  box-shadow: 0 0 0 3px rgba(184, 212, 227, 0.25);
}

/* ── Divider ── */
.divider {
  width: 48px;
  height: 2px;
  background: var(--blush);
  border-radius: 1px;
  margin: var(--space-md) 0;
}

.divider--center {
  margin-left: auto;
  margin-right: auto;
}

/* ── Badges ── */
.badge {
  display: inline-block;
  padding: 0.35rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  background: var(--sky-light);
  color: var(--sky-deep);
}

/* ── Animations ── */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

@keyframes gentlePulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.7; }
}

.animate-in {
  animation: fadeInUp 0.8s ease forwards;
  opacity: 0;
}

.animate-in--delay-1 { animation-delay: 0.15s; }
.animate-in--delay-2 { animation-delay: 0.3s; }
.animate-in--delay-3 { animation-delay: 0.45s; }
.animate-in--delay-4 { animation-delay: 0.6s; }

/* ── Utilities ── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .animate-in {
    opacity: 1;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ── Responsive ── */
@media (max-width: 480px) {
  :root {
    --space-xl: 3rem;
    --space-2xl: 4rem;
  }

  .btn--large {
    padding: 1rem 2rem;
    font-size: 1rem;
  }

  .card {
    padding: var(--space-md);
  }
}
