:root {
  --bg: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --brand: #2563eb;
  --brand-contrast: #ffffff;
  --surface: #f8fafc;
  --border: #e5e7eb;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Header & Nav */
.mainHeader {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1rem;
}

.logo img {
  height: 56px;
  width: auto;
}

.mainNav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  justify-content: center;
  padding: 0.75rem 1rem;
  background: var(--surface);
}

.mainNav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}

.mainNav a:hover,
.mainNav a:focus {
  background: var(--border);
  outline: none;
}

.mainNav a.active {
  background: var(--brand);
  color: var(--brand-contrast);
}

/* Main content */
.mainContent {
  width: min(100%, 1000px);
  margin: 2rem auto;
  padding: 0 1rem 3rem;
}

#heroImage {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
  margin-bottom: 1.5rem;
}

/* Typography refinement */
h3 {
  font-size: clamp(1.4rem, 1.2rem + 1vw, 2rem);
  line-height: 1.2;
  margin: 0.25rem 0 0.5rem;
}

h4 {
  font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.25rem);
  margin: 1.25rem 0 0.5rem;
  color: var(--text);
}

/* Lists */
ul {
  margin: 0.25rem 0 1rem 1.25rem;
  padding: 0;
}

/* Form */
.baseForm {
  margin-top: 1.75rem;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg);
}

.baseForm label {
  display: block;
  margin-top: 0.75rem;
  font-weight: 600;
}

.baseForm input[type="text"],
.baseForm input[type="email"],
.baseForm input[type="tel"] {
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-size: 1rem;
}

.baseForm button {
  margin-top: 1rem;
  display: inline-block;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  border: none;
  background: var(--brand);
  color: var(--brand-contrast);
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.05s ease, opacity 0.2s ease;
}

.baseForm button:hover {
  opacity: 0.9;
}

.baseForm button:active {
  transform: translateY(1px);
}

/* Footer */
.mainFooter {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 1rem;
  text-align: center;
  color: var(--muted);
}

/* Simple responsiveness tweaks (small screens first) */
@media (min-width: 768px) {
  .mainNav {
    gap: 1rem 1.25rem;
  }
  .baseForm {
    padding: 1.5rem 1.25rem;
  }
}

.banner img {
  width: 100%;
  height: auto;
  display: block;
  border-bottom: 1px solid var(--border);
}

/* Bird for Sale grid */
.birdGrid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 1.5rem;
}

.birdCard {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1rem;
  text-align: center;
  box-shadow: 0 4px 14px rgba(0,0,0,0.05);
}

.birdCard img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 0.75rem;
}

.birdCard h3 {
  margin: 0.5rem 0 0.25rem;
  font-size: 1.2rem;
}

.birdCard p {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
}

/* ===== Modal (Image Viewer) ===== */
.imgModal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 1000;
}

.imgModal.is-open {
  display: block;
}

.imgModal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.7);
}

.imgModal__dialog {
  position: absolute;
  inset: 5% 2%;
  background: var(--bg);
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
}

.imgModal__close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: none;
  background: transparent;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  color: var(--text);
  opacity: 0.8;
}

.imgModal__stage {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.75rem;
  padding: 3rem 1rem 1rem;
  height: 100%;
  background: var(--surface);
}

#modalImg {
  max-width: 100%;
  max-height: 70vh;
  justify-self: center;
  border-radius: 12px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.2);
  background: #fff;
}

.imgModal__nav {
  border: 1px solid var(--border);
  background: var(--bg);
  border-radius: 999px;
  padding: 0.6rem 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.05s ease;
}

.imgModal__nav:hover { background: var(--border); }
.imgModal__nav:active { transform: translateY(1px); }

.imgModal__caption {
  padding: 0.75rem 1rem 1rem;
  text-align: center;
  font-weight: 600;
}

/* Wider screens: center dialog and enlarge stage */
@media (min-width: 768px) {
  .imgModal__dialog {
    inset: 10% 12%;
  }
  #modalImg {
    max-height: 72vh;
  }
}

/* Gallery grid */
.galleryGrid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 1rem;
}

.galleryGrid a {
  display: block;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 4px 14px rgba(0,0,0,0.05);
  transition: transform 0.08s ease, box-shadow 0.2s ease;
}

.galleryGrid a:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0,0,0,0.08);
}

.galleryGrid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}


#birdpriceTable {
    width: 100%;
    border-collapse: collapse;
}
#birdpriceTable th,
#birdpriceTable td {
    padding:15px;
    text-align: left; 
    border:1px solid black;
}
#birdpriceTable tr:nth-child(even) {
    background-color: rgb(230,230,230);
}
#birdpriceTable tr:nth-child(odd) {
    background-color: rgb(255,255,255);
}
#birdpriceTable th {
    background-color: blue;
    color: white;
}
#birdpriceTable tr:hover {
    background-color: lightskyblue;
}
