:root {
  --color-primary: #8B4513;
  --color-primary-dark: #6B3410;
  --color-primary-light: #A0522D;
  --color-accent: #D4A574;
  --color-gold: #C9A96E;
  --color-cream: #FFF8F0;
  --color-warm-white: #FEFCF9;
  --color-text: #3A2F2B;
  --color-text-light: #6B5B54;
  --color-green: #4A7C59;
  --color-green-light: #6B9E7A;
  --color-sky: #87CEEB;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Lato', -apple-system, BlinkMacSystemFont, sans-serif;
  --shadow: 0 2px 15px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 30px rgba(0,0,0,0.12);
  --radius: 12px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-warm-white);
  line-height: 1.7;
  overflow-x: hidden;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.section { padding: 100px 0; }

.section-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-primary);
  text-align: center;
  margin-bottom: 16px;
}

.section-intro {
  text-align: center;
  color: var(--color-text-light);
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto 50px;
}

.btn {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.btn-primary {
  background: var(--color-primary);
  color: white;
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn-large {
  padding: 16px 48px;
  font-size: 1.1rem;
}

/* ===== NAVIGATION ===== */
.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 248, 240, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(139, 69, 19, 0.1);
  transition: all 0.3s ease;
}

.main-nav.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 8px;
}

.nav-links a {
  display: block;
  padding: 8px 16px;
  color: var(--color-text);
  text-decoration: none;
  font-weight: 400;
  font-size: 0.95rem;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.nav-links a:hover {
  color: var(--color-primary);
  background: rgba(139, 69, 19, 0.06);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: all 0.3s ease;
}

/* ===== HERO WITH AI IMAGES ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: heroZoom 25s ease-in-out infinite alternate;
}

@keyframes heroZoom {
  0% { transform: scale(1); }
  100% { transform: scale(1.08); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.15) 0%,
    rgba(0, 0, 0, 0.05) 40%,
    rgba(0, 0, 0, 0.1) 70%,
    rgba(0, 0, 0, 0.35) 100%
  );
}

.hero-inner {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  padding: 100px 24px 40px;
  width: 100%;
  max-width: 900px;
}

.hero-content {
  text-align: center;
  padding: 48px 40px;
  background: rgba(255, 248, 240, 0.92);
  backdrop-filter: blur(12px);
  border-radius: var(--radius);
  max-width: 600px;
  width: 100%;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.hero-terriers {
  display: flex;
  justify-content: center;
  width: 100%;
}

.hero-terriers-img {
  max-width: 650px;
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
  animation: terrierFloat 4s ease-in-out infinite;
}

@keyframes terrierFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.hero-content h1 {
  font-family: var(--font-heading);
  font-size: 3.2rem;
  color: var(--color-primary);
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.hero-subtitle {
  font-size: 1.3rem;
  color: var(--color-primary-light);
  font-weight: 300;
  margin-bottom: 8px;
}

.hero-tagline {
  color: var(--color-text-light);
  font-style: italic;
  margin-bottom: 24px;
}

/* ===== ABOUT SECTION ===== */
.about-section {
  background: var(--color-cream);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
  margin-bottom: 40px;
}

.about-content-reverse {
  direction: ltr;
}

.about-content-reverse .about-image {
  order: -1;
}

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

.about-image img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.about-text-full {
  max-width: 900px;
  margin: 0 auto;
}

.about-text-full p {
  margin-bottom: 20px;
  font-size: 1.05rem;
  line-height: 1.8;
}

.about-author {
  font-style: italic;
  color: var(--color-primary);
  font-weight: 600;
  font-size: 1.1rem;
  margin-top: 30px;
}

/* ===== NEWS SECTION ===== */
.news-section {
  background: var(--color-warm-white);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.news-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.news-card-image {
  width: 100%;
  height: 300px;
  overflow: hidden;
}

.news-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.news-card:hover .news-card-image img {
  transform: scale(1.05);
}

.news-card-content {
  padding: 24px;
}

.news-badge {
  display: inline-block;
  padding: 4px 14px;
  background: var(--color-gold);
  color: white;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.news-card-content h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--color-primary);
  margin-bottom: 10px;
}

.news-card-content p {
  color: var(--color-text-light);
  line-height: 1.6;
}

/* ===== GALLERY SECTION ===== */
.gallery-section {
  background: var(--color-cream);
}

.breed-showcase {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin-bottom: 50px;
}

.breed-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: white;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.breed-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.breed-card img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.breed-card:hover img {
  transform: scale(1.03);
}

.breed-card-info {
  padding: 24px;
}

.breed-card-info h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--color-primary);
  margin-bottom: 10px;
}

.breed-card-info p {
  color: var(--color-text-light);
  line-height: 1.7;
}

.breed-card-cta {
  display: inline-block;
  margin-top: 16px;
  padding: 8px 18px;
  background: var(--color-primary);
  color: white;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: background 0.2s ease, transform 0.2s ease;
}

.breed-card:hover .breed-card-cta {
  background: var(--color-accent);
  transform: translateX(3px);
}

.gallery-hero {
  margin-bottom: 40px;
  text-align: center;
}

.dralion-logo-divider {
  text-align: center;
  padding: 48px 24px 16px;
  background: var(--color-bg);
}

.dralion-logo-divider img {
  max-width: 320px;
  width: 100%;
  opacity: 0.85;
  filter: contrast(1.1);
}

.gallery-celeb-heading {
  text-align: center;
  margin: 60px 0 32px;
  padding-top: 40px;
  border-top: 2px solid rgba(139, 69, 19, 0.15);
}

.gallery-celeb-heading h3 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--color-primary);
  margin-bottom: 10px;
}

.gallery-celeb-heading p {
  color: var(--color-text-light);
  font-size: 1rem;
  max-width: 560px;
  margin: 0 auto;
}

.gallery-hero img {
  width: 100%;
  max-width: 600px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.gallery-hero-caption {
  margin-top: 12px;
  font-style: italic;
  color: var(--text-light);
  font-size: 0.95rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.gallery-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: white;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.gallery-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-card:hover img {
  transform: scale(1.05);
}

.gallery-caption {
  padding: 16px;
}

.gallery-caption h4 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  margin-bottom: 4px;
}

.gallery-caption p {
  color: var(--color-text-light);
  font-size: 0.9rem;
}

/* ===== INQUIRY FORM ===== */
.inquiry-section {
  background: var(--color-warm-white);
}

.inquiry-form {
  max-width: 800px;
  margin: 0 auto;
  background: white;
  padding: 48px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

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

.form-group-full {
  grid-column: 1 / -1;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-text);
}

.required { color: #c0392b; }

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e8e0d8;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
  transition: border-color 0.3s ease;
  background: var(--color-warm-white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  background: white;
}

.form-group textarea {
  resize: vertical;
}

.form-submit {
  text-align: center;
  margin-top: 32px;
}

.form-note {
  margin-top: 12px;
  color: var(--color-text-light);
  font-size: 0.9rem;
}

.form-response {
  max-width: 800px;
  margin: 30px auto 0;
  padding: 24px;
  border-radius: var(--radius);
  text-align: center;
  font-size: 1.1rem;
}

.form-response.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.form-response.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* ===== CONTACT SECTION ===== */
.contact-section {
  background: var(--color-cream);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  max-width: 900px;
  margin: 0 auto;
}

.contact-info h3,
.contact-breeds h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--color-primary);
  margin-bottom: 24px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
  color: var(--color-text);
}

.contact-item svg { color: var(--color-primary); flex-shrink: 0; margin-top: 3px; }

.contact-item a {
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.2s;
}

.contact-item a:hover { color: var(--color-primary); }

.breed-info {
  margin-bottom: 24px;
}

.breed-info h4 {
  font-family: var(--font-heading);
  color: var(--color-primary-light);
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.breed-info p {
  color: var(--color-text-light);
  line-height: 1.7;
}

/* ===== FOOTER ===== */
.main-footer {
  background: var(--color-primary-dark);
  color: rgba(255,255,255,0.85);
  padding: 50px 0 30px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

.footer-logo h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: white;
  margin-bottom: 8px;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover { color: white; }

.footer-bottom {
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.7;
}

.footer-bottom p { margin-bottom: 4px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  
  .nav-links {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--color-cream);
    flex-direction: column;
    padding: 20px;
    gap: 4px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    display: none;
  }

  .nav-links.active { display: flex; }

  .hero-content h1 { font-size: 2.2rem; }
  .hero-subtitle { font-size: 1.1rem; }
  .section-title { font-size: 2rem; }
  .section { padding: 70px 0; }

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

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

  .breed-showcase { grid-template-columns: 1fr; gap: 24px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }

  .inquiry-form { padding: 30px 20px; }
  .form-row { grid-template-columns: 1fr; }

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

  .footer-content { flex-direction: column; gap: 20px; }
  .footer-links { flex-wrap: wrap; gap: 16px; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .hero-content { padding: 30px 20px; }
  .hero-content h1 { font-size: 1.8rem; }
}

/* ===== Archie news card - no photo yet ===== */
.news-card-placeholder {
  width: 100%;
  height: 300px;
  background: linear-gradient(135deg, var(--color-cream) 0%, var(--color-accent) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.news-card-placeholder svg {
  width: 80px;
  height: 80px;
  opacity: 0.4;
  color: var(--color-primary);
}

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

.lightbox.active {
  display: flex;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.5);
  animation: lightboxFadeIn 0.25s ease;
}

@keyframes lightboxFadeIn {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 28px;
  font-size: 2.5rem;
  color: white;
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
  z-index: 10000;
  transition: opacity 0.2s;
}

.lightbox-close:hover {
  opacity: 0.7;
}

.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3.5rem;
  color: white;
  background: rgba(0, 0, 0, 0.3);
  border: none;
  cursor: pointer;
  z-index: 10000;
  padding: 12px 18px;
  border-radius: 8px;
  line-height: 1;
  transition: background 0.2s, opacity 0.2s;
  user-select: none;
}

.lightbox-arrow:hover {
  background: rgba(0, 0, 0, 0.6);
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  font-family: var(--font-body);
  z-index: 10000;
}

@media (max-width: 768px) {
  .lightbox-arrow { font-size: 2.5rem; padding: 8px 14px; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
}

.news-card-image img,
.gallery-card img,
.breed-card img,
.hero-terriers-img,
.about-image img,
.photo-gallery-item img {
  cursor: pointer;
}

/* ===== PHOTO GALLERY MASONRY ===== */
.photo-gallery-section {
  background: var(--color-warm-white);
}

.photo-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.photo-gallery-item {
  margin-bottom: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: white;
}

.photo-caption {
  padding: 8px 12px 10px;
  font-size: 0.8rem;
  color: var(--text-light);
  font-style: italic;
  text-align: center;
  line-height: 1.4;
}

.photo-gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.photo-gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
  border-radius: var(--radius);
}

.photo-gallery-item:hover img {
  transform: scale(1.03);
}

@media (max-width: 768px) {
  .photo-gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

@media (max-width: 480px) {
  .photo-gallery-grid { grid-template-columns: 1fr; }
}

/* Smooth scroll offset for fixed nav — applies to all sections */
section[id], div[id] { scroll-margin-top: 90px; }
:target { scroll-margin-top: 90px; }

@media (max-width: 768px) {
  section[id], div[id] { scroll-margin-top: 70px; }
  :target { scroll-margin-top: 70px; }
}

/* Animate sections on scroll */
.section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.section.visible {
  opacity: 1;
  transform: translateY(0);
}

.photo-gallery-section {
  opacity: 1;
  transform: none;
}

/* Form loading state */
.btn.loading {
  opacity: 0.7;
  pointer-events: none;
}

.btn.loading::after {
  content: ' ...';
}
