/* Phoenix Lofts Australia - Main Stylesheet */

/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Georgia', 'Times New Roman', serif;
  font-size: 16px;
  line-height: 1.7;
  color: #333;
  background: #fff;
}

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

a {
  color: #1a5276;
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: #c0392b;
}

h1, h2, h3, h4 {
  font-family: 'Georgia', serif;
  line-height: 1.3;
  color: #1a1a1a;
}

/* ===== HEADER ===== */
#site-header {
  background: #fff;
  border-bottom: 3px solid #1a5276;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  gap: 20px;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.header-brand img.flag {
  width: 50px;
  height: auto;
}

.header-brand img.logo {
  height: 80px;
  width: auto;
}

/* ===== NAVIGATION ===== */
nav#main-nav {
  flex: 1;
}

nav#main-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  justify-content: flex-end;
  align-items: center;
}

nav#main-nav > ul > li {
  position: relative;
}

nav#main-nav > ul > li > a {
  display: block;
  padding: 10px 14px;
  font-family: 'Arial', sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #1a5276;
  white-space: nowrap;
}

nav#main-nav > ul > li > a:hover,
nav#main-nav > ul > li.active > a {
  color: #c0392b;
  background: #f0f4f8;
}

/* Dropdown */
nav#main-nav ul ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #1a5276;
  min-width: 200px;
  list-style: none;
  z-index: 200;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

nav#main-nav ul li:hover > ul {
  display: block;
}

nav#main-nav ul ul li a {
  display: block;
  padding: 10px 16px;
  color: #fff;
  font-family: 'Arial', sans-serif;
  font-size: 13px;
  font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

nav#main-nav ul ul li a:hover {
  background: #c0392b;
  color: #fff;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: 2px solid #1a5276;
  color: #1a5276;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 20px;
  border-radius: 4px;
}

/* ===== HERO BANNER ===== */
.hero-banner {
  background: #1a5276;
  color: #fff;
  text-align: center;
  padding: 20px;
}

.hero-banner .hero-images {
  display: flex;
  gap: 4px;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-banner .hero-images img {
  flex: 1;
  max-height: 420px;
  object-fit: cover;
}

/* ===== CTA BUTTON ===== */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 4px;
  font-family: 'Arial', sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.btn-primary {
  background: #1a5276;
  color: #fff;
}

.btn-primary:hover {
  background: #154360;
  color: #fff;
}

.btn-green {
  background: #1e8449;
  color: #fff;
}

.btn-green:hover {
  background: #196f3d;
  color: #fff;
}

.btn-dark {
  background: #1a1a1a;
  color: #fff;
}

.btn-dark:hover {
  background: #c0392b;
  color: #fff;
}

/* ===== PAGE HEADER ===== */
.page-header {
  background: #1a5276;
  color: #fff;
  text-align: center;
  padding: 60px 20px 40px;
}

.page-header h1 {
  font-size: 2.4rem;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* ===== MAIN CONTENT ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 60px 20px;
}

.section-alt {
  background: #f5f7fa;
}

.section-dark {
  background: #1a5276;
  color: #fff;
}

.section-dark h2,
.section-dark h3,
.section-dark p {
  color: #fff;
}

.section-title {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 40px;
  text-transform: uppercase;
  letter-spacing: 2px;
  position: relative;
  padding-bottom: 16px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: #c0392b;
}

/* ===== HOME PAGE ===== */
.home-cta-bar {
  background: #1a5276;
  text-align: center;
  padding: 20px;
}

/* Latest News */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.news-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  transition: transform 0.2s, box-shadow 0.2s;
}

.news-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.news-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.news-card-body {
  padding: 20px;
}

.news-card-body h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #1a5276;
}

.news-card-body p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.6;
}

/* Pedigree section */
.pedigree-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.pedigree-item {
  background: #f5f7fa;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 16px;
  text-align: center;
}

.pedigree-item strong {
  display: block;
  font-size: 1rem;
  color: #1a5276;
  margin-bottom: 8px;
}

/* Race team offer */
.race-team-box {
  background: #1a5276;
  color: #fff;
  border-radius: 8px;
  padding: 40px;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.race-team-box h2 {
  color: #fff;
  font-size: 2rem;
  margin-bottom: 10px;
}

.race-team-box .price {
  font-size: 2.5rem;
  font-weight: bold;
  color: #f1c40f;
  margin: 10px 0;
}

.race-team-box p {
  font-size: 1rem;
  margin-bottom: 10px;
  color: #d6eaf8;
}

.race-team-box .phone-cta {
  font-size: 1.8rem;
  font-weight: bold;
  color: #f1c40f;
  margin: 16px 0;
}

/* Breeding families */
.families-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  margin: 20px 0;
}

.family-tag {
  background: #1a5276;
  color: #fff;
  padding: 12px 16px;
  border-radius: 4px;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Bloodlines preview */
.bloodlines-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.bloodline-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

.bloodline-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.bloodline-card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.bloodline-card-body h3 {
  color: #1a5276;
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.bloodline-card-body p {
  font-size: 0.9rem;
  color: #555;
  flex: 1;
  margin-bottom: 16px;
}

/* ===== FOR SALE PAGE ===== */
.breeders-notes {
  background: #fef9e7;
  border-left: 5px solid #f1c40f;
  padding: 30px 30px;
  margin-bottom: 40px;
  border-radius: 0 6px 6px 0;
}

.breeders-notes p {
  margin-bottom: 10px;
  font-size: 0.95rem;
}

.for-sale-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 30px;
}

.pigeon-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  overflow: hidden;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  transition: transform 0.2s;
}

.pigeon-card:hover {
  transform: translateY(-3px);
}

.pigeon-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.pigeon-card-body {
  padding: 16px;
}

.pigeon-card-body .ring-number {
  font-size: 0.85rem;
  color: #777;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pigeon-card-body .price {
  font-size: 1.3rem;
  font-weight: bold;
  color: #1e8449;
  margin: 8px 0;
}

/* ===== ABOUT PAGE ===== */
.about-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  align-items: start;
}

.about-images {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about-images img {
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.about-images .caption {
  font-size: 0.85rem;
  color: #777;
  text-align: center;
  font-style: italic;
  margin-top: -8px;
}

.about-text h2 {
  font-size: 1.8rem;
  color: #1a5276;
  margin-bottom: 20px;
}

.about-text p {
  margin-bottom: 16px;
  font-size: 0.97rem;
  line-height: 1.8;
}

.about-text h3 {
  font-size: 1.4rem;
  color: #1a5276;
  margin: 30px 0 16px;
  border-bottom: 2px solid #e0e0e0;
  padding-bottom: 8px;
}

/* ===== WINNERS PAGE ===== */
.winners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
  margin-top: 30px;
}

.winner-entry {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

.winner-entry img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.winner-entry-body {
  padding: 24px;
}

.winner-entry-body h3 {
  font-size: 1.3rem;
  color: #1a5276;
  margin-bottom: 8px;
}

.winner-entry-body .breeding {
  font-size: 0.9rem;
  color: #777;
  font-style: italic;
  margin-bottom: 12px;
}

/* ===== BLOODLINES PAGE ===== */
.bloodline-entry {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 30px;
  align-items: start;
  margin-bottom: 50px;
  padding-bottom: 50px;
  border-bottom: 1px solid #e0e0e0;
}

.bloodline-entry:last-child {
  border-bottom: none;
}

.bloodline-entry img {
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.bloodline-entry h3 {
  font-size: 1.5rem;
  color: #1a5276;
  margin-bottom: 12px;
}

.bloodline-entry p {
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 12px;
}

/* ===== MEDIA PAGE ===== */
.media-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.media-gallery a {
  display: block;
  overflow: hidden;
  border-radius: 6px;
  border: 2px solid #e0e0e0;
  transition: border-color 0.2s, transform 0.2s;
}

.media-gallery a:hover {
  border-color: #1a5276;
  transform: scale(1.02);
}

.media-gallery img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.2s;
}

/* ===== CONTACT PAGE ===== */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}

.contact-info h2 {
  font-size: 1.8rem;
  color: #1a5276;
  margin-bottom: 20px;
}

.contact-info p {
  font-size: 1rem;
  margin-bottom: 12px;
  line-height: 1.7;
}

.contact-info .phone-big {
  font-size: 1.6rem;
  font-weight: bold;
  color: #1a5276;
  margin: 16px 0;
}

.contact-info .email-link {
  font-size: 1rem;
  color: #1a5276;
}

.contact-form {
  background: #f5f7fa;
  border-radius: 8px;
  padding: 30px;
}

.contact-form h3 {
  font-size: 1.4rem;
  color: #1a5276;
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: #444;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s;
  background: #fff;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #1a5276;
  box-shadow: 0 0 0 3px rgba(26,82,118,0.1);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

/* ===== RACE TEAM PAGE ===== */
.race-team-content {
  max-width: 800px;
  margin: 0 auto;
}

.race-team-content h2 {
  font-size: 2rem;
  color: #1a5276;
  margin-bottom: 10px;
}

.race-team-content .highlight-box {
  background: #1a5276;
  color: #fff;
  border-radius: 8px;
  padding: 30px;
  margin: 30px 0;
  text-align: center;
}

.race-team-content .highlight-box h3 {
  color: #f1c40f;
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.race-team-content .highlight-box p {
  color: #d6eaf8;
  font-size: 1rem;
  margin-bottom: 6px;
}

.race-team-content .highlight-box .phone {
  font-size: 2rem;
  font-weight: bold;
  color: #f1c40f;
  margin-top: 12px;
}

.results-list {
  background: #f5f7fa;
  border-radius: 6px;
  padding: 24px;
  margin: 20px 0;
}

.results-list h3 {
  color: #1a5276;
  margin-bottom: 12px;
}

.results-list ul {
  list-style: none;
  padding: 0;
}

.results-list ul li {
  padding: 8px 0;
  border-bottom: 1px solid #e0e0e0;
  font-size: 0.95rem;
}

.results-list ul li:last-child {
  border-bottom: none;
}

.results-list ul li::before {
  content: '🏆 ';
}

/* ===== FOOTER ===== */
#site-footer {
  background: #1a1a1a;
  color: #ccc;
  padding: 40px 20px 20px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 40px;
  padding-bottom: 30px;
  border-bottom: 1px solid #333;
}

.footer-brand img {
  height: 80px;
  width: auto;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 0.85rem;
  color: #aaa;
  line-height: 1.6;
}

.footer-links h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-links ul {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 20px;
}

.footer-links ul li a {
  color: #aaa;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-links ul li a:hover {
  color: #fff;
}

.footer-contact h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-contact p {
  font-size: 0.9rem;
  color: #aaa;
  margin-bottom: 8px;
  line-height: 1.6;
}

.footer-contact a {
  color: #aaa;
}

.footer-contact a:hover {
  color: #fff;
}

.footer-bottom {
  max-width: 1200px;
  margin: 20px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #666;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: #333;
  color: #aaa;
  border-radius: 50%;
  font-size: 16px;
  transition: background 0.2s, color 0.2s;
  margin-left: 8px;
}

.footer-social a:hover {
  background: #1877f2;
  color: #fff;
}

/* ===== LIGHTBOX ===== */
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.lightbox-overlay.active {
  display: flex;
}

.lightbox-overlay img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 40px;
  cursor: pointer;
  line-height: 1;
}

/* ===== UTILITIES ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mt-40 { margin-top: 40px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }

.highlight {
  color: #c0392b;
  font-weight: bold;
}

.gold {
  color: #f1c40f;
}

.divider {
  border: none;
  border-top: 2px solid #e0e0e0;
  margin: 40px 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .header-inner {
    flex-wrap: wrap;
  }

  nav#main-nav > ul {
    display: none;
    flex-direction: column;
    width: 100%;
    background: #fff;
    border-top: 1px solid #e0e0e0;
  }

  nav#main-nav > ul.open {
    display: flex;
  }

  nav#main-nav > ul > li > a {
    padding: 12px 20px;
    border-bottom: 1px solid #f0f0f0;
  }

  nav#main-nav ul ul {
    position: static;
    display: block;
    background: #f0f4f8;
    box-shadow: none;
  }

  nav#main-nav ul ul li a {
    color: #1a5276;
    padding-left: 32px;
  }

  .menu-toggle {
    display: block;
  }

  .about-content {
    grid-template-columns: 1fr;
  }

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

  .bloodline-entry {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .hero-banner .hero-images {
    flex-direction: column;
  }

  .page-header h1 {
    font-size: 1.8rem;
  }
}

@media (max-width: 600px) {
  .section {
    padding: 40px 16px;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .race-team-box {
    padding: 24px 16px;
  }

  .for-sale-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }
}
