/* Capybara Adventures — Global Styles */

:root {
  --cream: #FFF8F0;
  --soft-pink: #F9E4E4;
  --dusty-pink: #E8B4B4;
  --rose: #C0606A;
  --sky: #D6EEF8;
  --soft-blue: #A8D4E8;
  --sage: #C8DAC0;
  --warm-brown: #7A4A2C;
  --dark-brown: #3D2010;
  --text: #3D2010;
  --text-mid: #7A5A48;
  --text-light: #B09080;
  --white: #FFFFFF;
  --shadow: rgba(61,32,16,0.10);
  --radius: 20px;
  --radius-sm: 10px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', 'Segoe UI', Tahoma, sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
}

/* ── Typography ─────────────────────────────────────── */

h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; line-height: 1.15; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }
p  { color: var(--text-mid); max-width: 60ch; }

a { color: var(--rose); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Layout ──────────────────────────────────────────── */

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

section { padding: 80px 0; }

/* ── Navigation ──────────────────────────────────────── */

nav {
  background: var(--white);
  border-bottom: 2px solid var(--soft-pink);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 12px var(--shadow);
}

.nav-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}

.nav-logo {
  font-size: 1.3rem; font-weight: 800; color: var(--dark-brown);
  display: flex; align-items: center; gap: 10px;
}

.nav-logo .paw { font-size: 1.5rem; }

.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a { color: var(--text-mid); font-weight: 600; font-size: 0.95rem; transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--rose); text-decoration: none; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; font-size: 1.5rem; }

@media (max-width: 640px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0;
    background: var(--white); border-bottom: 2px solid var(--soft-pink); padding: 20px 24px; gap: 16px; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
}

/* ── Buttons ─────────────────────────────────────────── */

.btn {
  display: inline-block; padding: 14px 28px; border-radius: 50px;
  font-weight: 700; font-size: 0.95rem; cursor: pointer; transition: all .2s;
  border: none;
}

.btn-primary {
  background: var(--rose); color: var(--white);
  box-shadow: 0 4px 12px rgba(192,96,106,0.30);
}
.btn-primary:hover { background: #a84f58; transform: translateY(-2px); text-decoration: none; }

.btn-outline {
  background: transparent; color: var(--rose);
  border: 2px solid var(--rose);
}
.btn-outline:hover { background: var(--rose); color: var(--white); text-decoration: none; }

/* ── Hero ────────────────────────────────────────────── */

.hero {
  background: linear-gradient(135deg, var(--soft-pink) 0%, var(--cream) 60%, var(--sky) 100%);
  padding: 100px 0 80px;
  text-align: center;
  position: relative; overflow: hidden;
}

.hero-emoji { font-size: 5rem; margin-bottom: 20px; display: block; animation: float 3s ease-in-out infinite; }

@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

.hero h1 { color: var(--dark-brown); margin-bottom: 16px; }

.hero .tagline {
  font-size: 1.25rem; color: var(--text-mid); margin: 0 auto 36px; max-width: 50ch;
}

.hero-dots {
  display: flex; justify-content: center; gap: 12px; margin-top: 40px;
}
.hero-dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--dusty-pink); }
.hero-dots span:nth-child(2) { background: var(--soft-blue); }
.hero-dots span:nth-child(3) { background: var(--sage); }

/* ── Section headers ─────────────────────────────────── */

.section-header { text-align: center; margin-bottom: 52px; }
.section-header h2 { color: var(--dark-brown); margin-bottom: 10px; }
.section-header p { margin: 0 auto; }
.pill {
  display: inline-block; background: var(--soft-pink); color: var(--rose);
  padding: 4px 14px; border-radius: 50px; font-size: 0.8rem; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase; margin-bottom: 12px;
}

/* ── Book grid ───────────────────────────────────────── */

.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 28px;
}

.book-card {
  background: var(--white); border-radius: var(--radius);
  overflow: hidden; box-shadow: 0 4px 20px var(--shadow);
  transition: transform .2s, box-shadow .2s;
  display: flex; flex-direction: column;
}

.book-card:hover { transform: translateY(-6px); box-shadow: 0 10px 32px var(--shadow); }

.book-cover {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--cream);
  display: flex; align-items: center; justify-content: center;
  font-size: 4rem;
  overflow: hidden;
}

.book-cover img {
  width: 100%;
  height: 100%;
  object-fit: contain;   /* show full cover without cropping */
  background: var(--cream);
}

.book-info { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.book-info h3 { color: var(--dark-brown); margin-bottom: 6px; }
.book-info p { font-size: 0.9rem; margin-bottom: 16px; flex: 1; }

.book-badge {
  display: inline-block; background: var(--sage); color: var(--warm-brown);
  padding: 3px 10px; border-radius: 50px; font-size: 0.75rem; font-weight: 700;
  margin-bottom: 12px;
}

.amazon-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: #FF9900; color: var(--dark-brown); padding: 10px 20px;
  border-radius: 50px; font-weight: 700; font-size: 0.9rem;
  transition: background .2s; text-decoration: none;
}
.amazon-btn:hover { background: #e68900; text-decoration: none; }

/* ── Feature strip ───────────────────────────────────── */

.features {
  background: var(--white);
  padding: 60px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px; text-align: center;
}

.feature-item { padding: 20px; }
.feature-icon { font-size: 2.5rem; margin-bottom: 12px; display: block; }
.feature-item h3 { color: var(--dark-brown); margin-bottom: 8px; }
.feature-item p { font-size: 0.9rem; margin: 0 auto; }

/* ── About ───────────────────────────────────────────── */

.about-layout {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}

@media (max-width: 768px) { .about-layout { grid-template-columns: 1fr; } }

.about-visual {
  background: linear-gradient(135deg, var(--soft-pink), var(--sky));
  border-radius: var(--radius); aspect-ratio: 1/1;
  display: flex; align-items: center; justify-content: center;
  font-size: 8rem;
}

.about-text h2 { color: var(--dark-brown); margin-bottom: 16px; }
.about-text p { margin-bottom: 16px; }

/* ── Newsletter / CTA ────────────────────────────────── */

.cta-section {
  background: linear-gradient(135deg, var(--dusty-pink), var(--soft-blue));
  text-align: center; padding: 80px 0;
}

.cta-section h2 { color: var(--dark-brown); margin-bottom: 12px; }
.cta-section p { margin: 0 auto 28px; }

/* ── Contact form ────────────────────────────────────── */

.contact-layout {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
}
@media (max-width: 768px) { .contact-layout { grid-template-columns: 1fr; } }

.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.9rem; color: var(--text-mid); }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 12px 16px; border: 2px solid var(--soft-pink);
  border-radius: var(--radius-sm); font-size: 0.95rem; font-family: inherit;
  background: var(--white); color: var(--text); transition: border-color .2s;
  outline: none;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--rose); }
.form-group textarea { min-height: 140px; resize: vertical; }

.social-links { display: flex; flex-direction: column; gap: 14px; margin-top: 24px; }
.social-link {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 20px; background: var(--white); border-radius: var(--radius-sm);
  border: 2px solid var(--soft-pink); font-weight: 600; color: var(--text-mid);
  transition: border-color .2s, color .2s;
}
.social-link:hover { border-color: var(--rose); color: var(--rose); text-decoration: none; }
.social-link .icon { font-size: 1.4rem; }

/* ── Hero page-specific ──────────────────────────────── */

.page-hero {
  background: linear-gradient(135deg, var(--soft-pink) 0%, var(--cream) 100%);
  padding: 64px 0; text-align: center;
}
.page-hero h1 { color: var(--dark-brown); margin-bottom: 12px; }
.page-hero p { margin: 0 auto; }

/* ── About page capybara intro ───────────────────────── */

.capy-intro {
  background: var(--white); border-radius: var(--radius);
  padding: 40px; box-shadow: 0 4px 20px var(--shadow);
  display: flex; gap: 32px; align-items: flex-start;
}
@media (max-width: 600px) { .capy-intro { flex-direction: column; } }

.capy-avatar { font-size: 5rem; flex-shrink: 0; }

.values-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px; margin-top: 40px;
}

.value-card {
  background: var(--white); border-radius: var(--radius-sm);
  padding: 24px 20px; text-align: center;
  box-shadow: 0 2px 12px var(--shadow);
}
.value-card .icon { font-size: 2rem; margin-bottom: 10px; display: block; }
.value-card h3 { font-size: 1rem; color: var(--dark-brown); }

/* ── Footer ──────────────────────────────────────────── */

footer {
  background: var(--dark-brown); color: rgba(255,248,240,0.7);
  padding: 40px 0; text-align: center; font-size: 0.9rem;
}
footer a { color: var(--dusty-pink); }
footer .footer-logo { font-size: 1.2rem; font-weight: 800; color: var(--cream); margin-bottom: 8px; }
