/* ============================================================
   FOSTER DOG WEBSITE — style.css
   Cute, friendly, mobile-first design
   ============================================================ */

/* ---------- CSS Variables ---------- */
:root {
  --coral:    #ff6b6b;
  --coral-dk: #e85555;
  --yellow:   #ffd166;
  --mint:     #06d6a0;
  --sky:      #74c0fc;
  --lavender: #c9b8f7;
  --warm-bg:  #fff8f0;
  --light-bg: #ffffff;
  --accent-bg:#fff0f5;
  --text:     #2d2d2d;
  --text-mid: #555555;
  --text-lite:#888888;
  --radius:   16px;
  --shadow:   0 4px 20px rgba(0,0,0,.09);
  --font-body: 'Nunito', sans-serif;
  --font-title:'Pacifico', cursive;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  background: var(--light-bg);
  line-height: 1.65;
}

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

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

/* ---------- Utility ---------- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section { padding: 4rem 0; }
.section-light  { background: var(--light-bg); }
.section-accent { background: var(--accent-bg); }
.section-warm   { background: var(--warm-bg); }

.section-title {
  font-family: var(--font-title);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--coral);
  text-align: center;
  margin-bottom: 0.75rem;
}

.section-intro {
  text-align: center;
  color: var(--text-mid);
  max-width: 680px;
  margin: 0 auto 2.5rem;
  font-size: 1.05rem;
}

/* ---------- Buttons ---------- */
.btn-primary {
  display: inline-block;
  background: var(--coral);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1.05rem;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(255,107,107,.4);
  transition: background .2s, transform .15s, box-shadow .2s;
}
.btn-primary:hover {
  background: var(--coral-dk);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(255,107,107,.5);
  text-decoration: none;
}
.btn-full { width: 100%; text-align: center; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100dvh;
  background: linear-gradient(135deg, #fff0f5 0%, #ffe8cc 50%, #e8f8ff 100%);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 4rem 1.25rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Decorative paw prints background */
.hero::before {
  content: "🐾 🐾 🐾 🐾 🐾 🐾 🐾 🐾 🐾 🐾";
  position: absolute;
  top: 10px;
  left: 0; right: 0;
  font-size: 1.8rem;
  opacity: .08;
  letter-spacing: 2rem;
  white-space: nowrap;
  overflow: hidden;
}

.hero-content {
  flex: 1 1 300px;
  max-width: 520px;
  z-index: 1;
}

.paw-badge {
  display: inline-block;
  background: var(--yellow);
  color: #7a5500;
  font-weight: 700;
  font-size: .9rem;
  padding: .35rem 1.1rem;
  border-radius: 50px;
  margin-bottom: 1rem;
  letter-spacing: .02em;
}

.hero-title {
  font-family: var(--font-title);
  font-size: clamp(2.5rem, 8vw, 5rem);
  line-height: 1.1;
  color: var(--text);
  margin-bottom: .75rem;
}

.dog-name {
  color: var(--coral);
  display: inline-block;
}

.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--text-mid);
  margin-bottom: 1.75rem;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.hero-img-wrap {
  flex: 1 1 300px;
  max-width: 480px;
  z-index: 1;
}

.hero-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;
  border: 8px solid #fff;
  box-shadow: 0 12px 40px rgba(255,107,107,.25), 0 0 0 16px rgba(255,209,102,.2);
  margin: 0 auto;
}

/* ============================================================
   STATS GRID
   ============================================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin: 0 auto 2.5rem;
  max-width: 800px;
}

.stat-item {
  background: #fff;
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  text-align: center;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: .3rem;
}

.stat-label {
  font-size: .75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-lite);
}

.stat-value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

/* ============================================================
   DNA BREAKDOWN
   ============================================================ */
.dna-section {
  max-width: 800px;
  margin: 0 auto 2.5rem;
  background: #fff;
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
  box-shadow: var(--shadow);
}

.dna-title {
  font-family: var(--font-title);
  font-size: 1.4rem;
  color: var(--coral);
  margin-bottom: 1.25rem;
  text-align: center;
}

.dna-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  gap: 1.25rem;
}

.dna-group {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.dna-group-label {
  font-size: .75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--text-lite);
  margin-bottom: .15rem;
}

.dna-bar-row {
  display: flex;
  align-items: center;
  gap: .65rem;
}

.dna-breed {
  font-size: .85rem;
  color: var(--text-mid);
  width: 200px;
  min-width: 0;
  flex-shrink: 0;
}

@media (max-width: 480px) {
  .dna-breed {
    width: 150px;
    font-size: .78rem;
  }
}

.dna-bar {
  flex: 1;
  background: #f0f0f0;
  border-radius: 50px;
  height: 20px;
  overflow: hidden;
}

.dna-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--coral), var(--yellow));
  border-radius: 50px;
  font-size: .7rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  padding-left: .5rem;
  min-width: 2rem;
}

/* ============================================================
   PERSONALITY TRAITS
   ============================================================ */
.trait-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.trait-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
  border-top: 4px solid var(--coral);
}
.trait-card:nth-child(2) { border-top-color: var(--yellow); }
.trait-card:nth-child(3) { border-top-color: var(--mint); }
.trait-card:nth-child(4) { border-top-color: var(--sky); }
.trait-card:nth-child(5) { border-top-color: var(--lavender); }
.trait-card:nth-child(6) { border-top-color: var(--coral); }

.trait-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0,0,0,.13);
}

.trait-icon {
  font-size: 2.2rem;
  display: block;
  margin-bottom: .5rem;
}

.trait-card h3 {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: .4rem;
  color: var(--text);
}

.trait-card p {
  font-size: .9rem;
  color: var(--text-mid);
}

/* ============================================================
   WHY ADOPTING
   ============================================================ */
.why-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  align-items: center;
  margin-top: 1rem;
}

.why-text {
  flex: 1 1 300px;
}
.why-text p { margin-bottom: 1rem; color: var(--text-mid); }
.why-text strong { color: var(--text); }

.why-img-wrap {
  flex: 1 1 280px;
  max-width: 420px;
}
.why-img-wrap img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

/* ============================================================
   SKILLS / TRAINING
   ============================================================ */
.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.skill-pill {
  background: #fff;
  border: 2px solid var(--mint);
  color: #138a6b;
  font-weight: 700;
  font-size: .95rem;
  padding: .45rem 1.1rem;
  border-radius: 50px;
  box-shadow: 0 2px 8px rgba(6,214,160,.15);
  transition: background .15s, color .15s;
}
.skill-pill:hover {
  background: var(--mint);
  color: #fff;
}

.training-notes {
  background: #f0fdf9;
  border-left: 4px solid var(--mint);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.25rem 1.5rem;
  max-width: 720px;
  margin: 0 auto;
}
.training-notes h3 {
  font-weight: 800;
  margin-bottom: .5rem;
  color: #138a6b;
}
.training-notes p { color: var(--text-mid); font-size: .95rem; }

/* ============================================================
   PHOTO GALLERY
   ============================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  grid-auto-rows: 220px;
  gap: .75rem;
}

.gallery-item {
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  cursor: pointer;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s;
}
.gallery-item:hover img { transform: scale(1.05); }

.gallery-item--wide  { grid-column: span 2; }
.gallery-item--tall  { grid-row:    span 2; }

/* ============================================================
   VIDEOS
   ============================================================ */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.video-wrap {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.video-label {
  padding: .75rem 1rem;
  font-weight: 800;
  color: var(--coral);
  font-size: .95rem;
  background: var(--accent-bg);
  border-bottom: 1px solid #ffd6e0;
}

.video-wrap video {
  width: 100%;
  display: block;
  background: #000;
}

/* YouTube Shorts — vertical 9:16 */
.video-shorts {
  position: relative;
  padding-bottom: 177.78%;
  height: 0;
  overflow: hidden;
}
.video-shorts iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-container { max-width: 960px; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2.5rem;
  align-items: start;
  margin-top: 1rem;
}

.contact-info h3 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--coral);
}

.contact-list {
  list-style: none;
  margin-bottom: 1.5rem;
}
.contact-list li {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin-bottom: .85rem;
  font-size: .95rem;
  color: var(--text-mid);
}
.contact-icon { font-size: 1.2rem; flex-shrink: 0; }

.contact-social {
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.social-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: #fff;
  border: 2px solid #eee;
  border-radius: 50px;
  padding: .45rem 1.1rem;
  font-size: .9rem;
  font-weight: 700;
  color: var(--text);
  transition: border-color .2s, box-shadow .2s;
}
.social-btn:hover {
  border-color: var(--coral);
  box-shadow: 0 2px 8px rgba(255,107,107,.2);
  text-decoration: none;
}

/* Contact Form */
.contact-form {
  background: #fff;
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: .85rem;
}

.contact-form label {
  font-weight: 700;
  font-size: .9rem;
  color: var(--text);
  margin-bottom: -.5rem;
}

.contact-form input,
.contact-form textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  border: 2px solid #eee;
  border-radius: 10px;
  padding: .65rem .9rem;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  width: 100%;
  color: var(--text);
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--coral);
  box-shadow: 0 0 0 3px rgba(255,107,107,.12);
}
.contact-form textarea { resize: vertical; min-height: 110px; }

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.88);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.lightbox.open { display: flex; }

.lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: var(--radius);
  box-shadow: 0 12px 48px rgba(0,0,0,.5);
  object-fit: contain;
}

.lightbox-close {
  position: fixed;
  top: 1rem;
  right: 1.25rem;
  font-size: 2.5rem;
  line-height: 1;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  opacity: .8;
  transition: opacity .2s;
}
.lightbox-close:hover { opacity: 1; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: #2d2d2d;
  color: #bbb;
  text-align: center;
  padding: 2rem 1.25rem;
  font-size: .9rem;
}
.footer-note { margin-top: .4rem; font-size: .8rem; opacity: .6; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet */
@media (max-width: 768px) {
  .hero {
    flex-direction: column-reverse;
    padding-top: 3rem;
    text-align: center;
  }
  .hero-img { max-width: 280px; }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .why-wrap { flex-direction: column-reverse; }
  .why-img-wrap { max-width: 100%; }
}

/* Mobile */
@media (max-width: 480px) {
  .section { padding: 3rem 0; }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 160px;
  }
  .gallery-item--wide,
  .gallery-item--tall { grid-column: span 1; grid-row: span 1; }

  .video-grid { grid-template-columns: 1fr; }

  .trait-grid { grid-template-columns: repeat(2, 1fr); }
}
