/* ============================
   SEMPER FI LABRADORS - STYLE.CSS
   Modern Patriotic Theme 🇺🇸
   Part 1/2 - Base Styles
============================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

/* Root Variables */
:root {
  --color-navy: #0a1f44;
  --color-red: #b22234;
  --color-white: #f9f9fb;
  --color-muted: #7d8597;
  --color-accent: #1a73e8;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(0,0,0,.25);
  --transition: all 0.3s ease;
}

/* Global Reset */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', system-ui, sans-serif;
  line-height: 1.6;
  background: var(--color-white);
  color: var(--color-navy);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

/* Typography */
h1, h2, h3, h4, h5 {
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); }
h2 { font-size: clamp(2rem, 4vw, 2.8rem); }
h3 { font-size: 1.6rem; }
p { font-size: 1rem; margin-bottom: 1rem; color: var(--color-muted); }

.container {
  width: min(1100px, 92%);
  margin-inline: auto;
}

/* ============================
   NAVBAR
============================ */
.navbar {
  background: var(--color-navy);
  color: var(--color-white);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar .logo {
  display: flex;
  align-items: center;
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: .5px;
}

.navbar .logo img {
  width: 32px;
  margin-right: 10px;
}

.navbar nav {
  display: flex;
  gap: 1rem;
}

.navbar a {
  color: var(--color-white);
  padding: 0.6rem 1rem;
  border-radius: 999px;
  transition: var(--transition);
}

.navbar a:hover {
  background: rgba(255,255,255,0.1);
}

/* ============================
   HERO SECTION
============================ */
.hero {
  position: relative;
  background: linear-gradient(
      115deg,
      rgba(178, 34, 52, 0.8),
      rgba(10, 31, 68, 0.85)
    ),
    url('assets/flag-wave-bg.svg') center/cover no-repeat;
  color: var(--color-white);
  text-align: left;
  padding: 5rem 0;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 2rem;
}

.hero h1 {
  margin-bottom: 1rem;
}

.hero p {
  color: rgba(255,255,255,0.9);
  font-size: 1.1rem;
  max-width: 600px;
}

.hero .btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

/* ============================
   BUTTONS & PILLS
============================ */
.btn {
  display: inline-block;
  padding: 0.9rem 1.6rem;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  border: none;
  background: linear-gradient(135deg, var(--color-red), var(--color-accent));
  color: var(--color-white);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.3);
}

.btn.secondary {
  background: var(--color-navy);
  border: 2px solid var(--color-white);
}

.btn.secondary:hover {
  background: var(--color-white);
  color: var(--color-navy);
}

.pill {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--color-navy);
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  background: transparent;
  transition: var(--transition);
}

.pill:hover {
  background: var(--color-navy);
  color: var(--color-white);
}

/* ============================
   GRID & CARDS
============================ */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  background: #ffffff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 30px rgba(0,0,0,0.2);
}

.card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.card .body {
  padding: 1rem;
}

.card .body h3 {
  margin-bottom: 0.5rem;
}

/* Home puppy gallery styles */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card img {
  width: 100%;
  border-radius: 1rem;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}

.card img:hover {
  transform: scale(1.03);
}

.card .body {
  text-align: center;
  padding: 1rem;
}


.status {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 0.4rem 0.7rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
}

.status.available {
  background: rgba(27, 173, 72, 0.15);
  color: #27ae60;
}

.status.reserved {
  background: rgba(255, 193, 7, 0.15);
  color: #f1c40f;
}

.status.adopted {
  background: rgba(231, 76, 60, 0.15);
  color: #e74c3c;
}
/* ============================
   FORMS
============================ */
form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

form .full {
  grid-column: 1 / -1;
}

label {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-navy);
}

input,
textarea,
select {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid #cfd6e0;
  border-radius: var(--radius);
  margin-top: 0.4rem;
  background: #fdfdfd;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  transition: var(--transition);
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--color-accent);
  outline: none;
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.25);
}

textarea {
  min-height: 140px;
  resize: vertical;
}

input[type="checkbox"] {
  width: auto;
  margin-right: 0.5rem;
}

/* ============================
   MODALS
============================ */
dialog {
  border: none;
  border-radius: var(--radius);
  padding: 0;
  width: min(800px, 96%);
  background: #ffffff;
  color: var(--color-navy);
  box-shadow: var(--shadow);
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #e1e4eb;
}

.modal-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  padding: 1.5rem;
}

.modal-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.modal-gallery img {
  border-radius: 12px;
  object-fit: cover;
  aspect-ratio: 1 / 1;
}

/* ============================
   FOOTER
============================ */
footer {
  background: var(--color-navy);
  color: var(--color-white);
  padding: 3rem 0;
  text-align: center;
  font-size: 0.9rem;
  position: relative;
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--color-red), var(--color-white), var(--color-accent));
}

footer a {
  color: var(--color-accent);
  font-weight: 500;
}

footer a:hover {
  text-decoration: underline;
}

/* ============================
   TOAST / ALERTS
============================ */
.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  padding: 12px 14px;
  background: var(--color-navy);
  border: 1px solid var(--color-accent);
  border-radius: 12px;
  color: var(--color-white);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 999;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* ============================
   RESPONSIVE
============================ */
@media (max-width: 900px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero .btn-group {
    justify-content: center;
  }

  .modal-body {
    grid-template-columns: 1fr;
  }

  form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  h1 {
    font-size: 2rem;
  }
}

/* ============================
   DARK MODE SUPPORT
============================ */
@media (prefers-color-scheme: dark) {
  body {
    background: #0b0d12;
    color: #e7ecf3;
  }

  .navbar {
    background: #0a1f44;
  }

  .hero {
    background: linear-gradient(
      115deg,
      rgba(178, 34, 52, 0.7),
      rgba(10, 31, 68, 0.9)
    );
  }

  .card {
    background: #11141a;
    color: #e7ecf3;
  }

  input,
  textarea,
  select {
    background: #1b1f2a;
    color: #e7ecf3;
    border: 1px solid #2e3550;
  }

  dialog {
    background: #0f1420;
    color: #e7ecf3;
  }

  footer {
    background: #0a1f44;
  }

  .toast {
    background: #0e1812;
    color: #bfe9ce;
  }
}

/* Smooth entrance animation */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Apply to all gallery cards */
.gallery-animate .card {
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards;
}

/* Add a slight delay between each */
.gallery-animate .card:nth-child(1) {
  animation-delay: 0.2s;
}
.gallery-animate .card:nth-child(2) {
  animation-delay: 0.4s;
}
.gallery-animate .card:nth-child(3) {
  animation-delay: 0.6s;
}

