/* Reset & base */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; font-family: "Helvetica Neue", Arial, sans-serif; color:#222; }
.container { width: 92%; max-width: 1200px; margin: 0 auto; }

/* Topbar */
.topbar { background:#3b7aa3; color:#fff; font-size: 14px; }
.topbar .container { display:flex; justify-content:space-between; align-items:center; padding:6px 0; flex-wrap:wrap; }

/* Header */
.site-header { background: #fff; border-bottom: 1px solid #e6e6e6; position: sticky; top: 0; z-index: 40; }
.nav-wrap { display:flex; align-items:center; justify-content:space-between; padding:12px 0; flex-wrap:wrap; }
.logo img { height:44px; }
.main-nav ul { list-style:none; display:flex; gap:18px; align-items:center; }
.main-nav a { text-decoration:none; color:#0b3b5a; font-weight:600; padding:8px 6px; }
.main-nav a:hover { color:#2b7fb1; }
.nav-toggle { display:none; background:transparent; border:0; font-size:26px; cursor:pointer; }

/* Hero Section */
.hero {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  background: #f2f2f2;
}

.hero-gif {
  width: auto;
  max-width: 100%;
  height: 320px; /* desktop height */
  object-fit: cover;
}

/* Tablet */
@media (max-width: 900px) {
  .hero-gif {
    height: 200px;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .hero-gif {
    height: 180px;
  }
}


/* Welcome Section */
.welcome { display:flex; gap:30px; align-items:flex-start; padding:48px 0; flex-wrap:wrap; }
.welcome-text { flex:1 1 60%; }
.welcome-text h1 { font-size:26px; margin-bottom:6px; color:#111; }
.welcome-text h3 { font-size:18px; margin-bottom:14px; color:#666; font-weight:600; }
.welcome-text p { color:#444; line-height:1.6; margin-bottom:14px; font-size:14px; }
.btn { display:inline-block; padding:10px 16px; background:#0b78b6; color:#fff; text-decoration:none; border-radius:6px; font-weight:600; cursor:pointer; }

.adopt-btn {
  display: inline-block;
  width: 100%;
  padding: 10px 0;
  margin-top: 10px;
  background: #0b78b6;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  text-align: center;
  box-sizing: border-box;
}

/* Welcome image */
.welcome-image { flex:0 0 320px; }
.welcome-image img { width:100%; border-radius:6px; display:block; }

@media (max-width: 900px) {
  .pets-section {
    margin-top: -40px; /* move up closer to hero */
    padding-top: 20px;
  }
}
@media (max-width: 480px) {
  .pets-section {
    margin-top: -30px;
    padding-top: 15px;
  }
}


/* Pets Section */
.pets-section { padding:50px 0; }
.section-title { font-size:26px; margin-bottom:26px; color:#0b3b5a; text-align:center; }
.pets-grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap:22px; }
.pet-card { background:#fff; border:1px solid #ddd; border-radius:12px; padding:18px; text-align:center; box-shadow:0 4px 12px rgba(0,0,0,0.06); transition:transform 0.2s ease; }
.pet-card:hover { transform:translateY(-4px); }
.pet-card img { width:100%; height:200px; object-fit:cover; border-radius:10px; margin-bottom:12px; }
.pet-card h3 { margin-bottom:8px; font-size:20px; color:#222; }
.pet-card p { font-size:14px; color:#555; margin-bottom:6px; }

/* Footer */
.site-footer { background:#0b3b5a; color:#fff; padding:28px 0; margin-top:40px; }
.site-footer .container { display:flex; gap:20px; justify-content:space-between; align-items:flex-start; flex-wrap:wrap; }
.footer-logo { height:36px; margin-bottom:8px; }
.footer-col h4 { margin-bottom:8px; font-size:16px; }
.footer-col p { font-size:14px; color:#e6f2fb; }

/* Popup */
.popup {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(2px);
  justify-content: center;
  align-items: center;
  padding: 10px;
}
.popup-content {
  background: #fff;
  padding: 28px;
  border-radius: 12px;
  width: 90%;
  max-width: 420px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
  position: relative;
  text-align: center;
  animation: popupFade 0.3s ease;
  box-sizing: border-box;
}
@keyframes popupFade { from { transform: translateY(-20px); opacity:0; } to { transform: translateY(0); opacity:1; } }
.popup-close { position: absolute; top: 10px; right: 14px; font-size: 22px; font-weight: bold; cursor: pointer; color: #555; }
.popup-close:hover { color:#000; }
.popup-mail a { font-size: 20px; font-weight: bold; color: #0b78b6; text-decoration: none; }
.popup-mail a:hover { text-decoration: underline; }
#copyEmailBtn { margin-top:10px; }

/* Responsive */
@media (max-width: 900px) {
  .welcome { flex-direction:column; }
  .welcome-image { width:100%; order:2; }
  .welcome-text { order:1; }
  .main-nav { position: absolute; right:12px; top:70px; background:#fff; box-shadow:0 6px 18px rgba(0,0,0,0.08); padding:12px; border-radius:6px; display:none; }
  .main-nav ul { flex-direction:column; gap:8px; }
  .nav-toggle { display:block; }
}
@media (max-width: 480px) {
  .topbar .container { font-size: 13px; padding:8px 0; flex-direction:column; gap:6px; align-items:flex-start; }
  .nav-wrap { padding:8px 0; }
  .popup-content { padding: 20px; width: 95%; font-size: 14px; }
  .popup-close { top: 8px; right: 10px; font-size: 20px; }
  #copyEmailBtn { padding: 8px 12px; font-size: 14px; }
}
