/* ===================================================
   BABY SECTION STYLESHEET — Jerry & Michelle Gartner
   Warm, personal, pastel — separate aesthetic from
   the main business site, matching original character
   =================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;1,400&family=Lato:wght@300;400;700&display=swap');

:root {
  --lavender:    #cc99cc;
  --lavender-lt: #e8cce8;
  --lavender-dk: #9966aa;
  --cream:       #faf7f5;
  --white:       #ffffff;
  --ink:         #3a3030;
  --muted:       #7a6a7a;
  --rule:        #d9c4d9;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Lato', sans-serif;
}

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

body {
  font-family: var(--font-body);
  background: var(--lavender-lt);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.75;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--lavender-dk); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: #663366; }

/* ——— HEADER ——— */
.baby-header {
  background: var(--lavender);
  padding: 1.5rem 2rem;
  text-align: center;
  border-bottom: 4px solid var(--lavender-dk);
}

.baby-header h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--white);
  letter-spacing: -0.01em;
  text-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.baby-header h1 em {
  font-style: italic;
  color: #fff8e6;
}

/* ——— NAV ——— */
.baby-nav {
  background: var(--lavender-dk);
  padding: 0.6rem 2rem;
  display: flex;
  justify-content: center;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.baby-nav a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: 2px;
  transition: background 0.2s, color 0.2s;
}

.baby-nav a:hover,
.baby-nav a.active {
  background: rgba(255,255,255,0.2);
  color: #fff;
}

/* ——— MAIN WRAPPER ——— */
.baby-main {
  flex: 1;
  max-width: 900px;
  margin: 2.5rem auto;
  width: 100%;
  padding: 0 1.5rem 3rem;
}

.baby-card {
  background: var(--white);
  border: 1px solid var(--rule);
  padding: 2rem 2.5rem;
  margin-bottom: 2rem;
}

/* ——— TYPOGRAPHY ——— */
.baby-card h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--lavender-dk);
  margin-bottom: 0.75rem;
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
}

.baby-card h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.baby-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--lavender-dk);
  margin: 1.25rem 0 0.5rem;
}

.baby-card p { margin-bottom: 1rem; }

.baby-card hr {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 1.5rem 0;
}

/* ——— PHOTO GRID ——— */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0;
}

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

.photo-item a {
  display: block;
  border: 3px solid var(--lavender);
  overflow: hidden;
  transition: border-color 0.2s;
}

.photo-item a:hover { border-color: var(--lavender-dk); }

.photo-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}

.photo-item a:hover img { transform: scale(1.04); }

.photo-caption {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.4rem;
  font-style: italic;
}

/* ——— GUESTBOOK ——— */
.guestbook-form label {
  display: block;
  font-size: 0.87rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--lavender-dk);
}

.guestbook-form input[type="text"],
.guestbook-form input[type="email"],
.guestbook-form textarea {
  width: 100%;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--rule);
  font-family: var(--font-body);
  font-size: 0.9rem;
  background: var(--cream);
  margin-bottom: 1rem;
}

.guestbook-form textarea { resize: vertical; }

.btn-baby {
  background: var(--lavender-dk);
  color: white;
  border: none;
  padding: 0.7rem 2rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
  display: inline-block;
}

.btn-baby:hover { background: #553366; color: white; }

/* ——— FOOTER ——— */
.baby-footer {
  background: var(--lavender-dk);
  padding: 1.5rem 2rem;
  text-align: center;
  color: rgba(255,255,255,0.7);
  font-size: 0.82rem;
  margin-top: auto;
}

.baby-footer a { color: rgba(255,255,255,0.85); }

/* ——— BACK LINK ——— */
.back-to-main {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-family: var(--font-body);
  letter-spacing: 0.08em;
}

.back-to-main:hover { color: white; }

/* ——— RESPONSIVE ——— */
@media (max-width: 600px) {
  .baby-card { padding: 1.25rem; }
  .photo-grid { grid-template-columns: 1fr; }
}
