@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  /* Fonts */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Theme colors - Light Theme (default) */
  --bg-color: hsl(30, 15%, 96%);
  --surface-color: hsl(0, 0%, 100%);
  --surface-hover: hsl(30, 10%, 98%);
  --surface-border: hsl(24, 10%, 86%);
  
  --text-primary: hsl(24, 20%, 12%);
  --text-secondary: hsl(24, 10%, 38%);
  --text-inverse: hsl(30, 15%, 98%);
  
  --accent-color: hsl(26, 82%, 38%); /* Rust/Tan Rottweiler shade */
  --accent-hover: hsl(26, 90%, 42%);
  --accent-light: hsl(26, 80%, 93%);
  --accent-dark: hsl(26, 82%, 25%);
  
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.08), 0 2px 4px -2px rgb(0 0 0 / 0.08);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);

  --nav-bg: hsla(30, 15%, 96%, 0.85);
  --nav-border: hsla(24, 10%, 86%, 0.4);
  
  --scrollbar-thumb: hsl(24, 10%, 75%);
  --scrollbar-track: hsl(24, 10%, 90%);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-color: hsl(24, 10%, 8%);
    --surface-color: hsl(24, 10%, 12%);
    --surface-hover: hsl(24, 10%, 15%);
    --surface-border: hsl(24, 10%, 18%);
    
    --text-primary: hsl(30, 10%, 88%);
    --text-secondary: hsl(24, 8%, 62%);
    --text-inverse: hsl(24, 20%, 10%);
    
    --accent-color: hsl(26, 82%, 48%);
    --accent-hover: hsl(26, 90%, 53%);
    --accent-light: hsl(26, 80%, 16%);
    --accent-dark: hsl(26, 82%, 58%);

    --nav-bg: hsla(24, 10%, 8%, 0.85);
    --nav-border: hsla(24, 10%, 18%, 0.4);
    
    --scrollbar-thumb: hsl(24, 10%, 25%);
    --scrollbar-track: hsl(24, 10%, 12%);
  }
}

/* Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
  scrollbar-width: thin;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0.5em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2rem, 1.2rem + 3.2vw, 3.5rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.25rem);
  margin-top: 1.5em;
  border-bottom: 2px solid var(--surface-border);
  padding-bottom: 0.25em;
}

h3 {
  font-size: clamp(1.2rem, 1rem + 1vw, 1.5rem);
  margin-top: 1.25em;
}

p {
  margin-bottom: 1.25em;
  text-wrap: pretty;
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease;
  font-weight: 500;
  border-bottom: 1px dashed transparent;
}

a:hover {
  color: var(--accent-hover);
  border-bottom-color: var(--accent-hover);
}

a:focus-visible {
  outline: 2px solid var(--accent-color);
  outline-offset: 4px;
  border-radius: 4px;
}

ul, ol {
  margin-bottom: 1.25em;
  margin-left: 1.5em;
}

li {
  margin-bottom: 0.5em;
}

img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  box-shadow: var(--shadow-sm);
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.prose {
  max-width: 70ch;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.1rem;
}

/* Sticky Glassmorphism Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--nav-bg);
  border-bottom: 1px solid var(--nav-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--text-primary);
  border: none;
}

.logo:hover {
  color: var(--accent-color);
}

.logo-paw {
  width: 32px;
  height: 32px;
  fill: var(--accent-color);
}

/* Navbar Links */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
}

.nav-link {
  font-weight: 500;
  color: var(--text-secondary);
  padding: 0.5rem 0.25rem;
  border: none;
}

.nav-link:hover, .nav-link.active {
  color: var(--accent-color);
}

.nav-link.active {
  font-weight: 700;
  border-bottom: 2px solid var(--accent-color);
  border-radius: 0;
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-toggle svg {
  width: 24px;
  height: 24px;
  fill: var(--text-primary);
}

/* Main Layout Grid */
.layout-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-top: 3rem;
  padding-bottom: 4rem;
}

@media (min-width: 992px) {
  .layout-grid.with-sidebar {
    grid-template-columns: 3fr 1fr;
  }
}

/* Sidebar Styling */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sidebar-card {
  background-color: var(--surface-color);
  border: 1px solid var(--surface-border);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.sidebar-card h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--accent-color);
  font-size: 1.25rem;
}

.sidebar-card ul {
  list-style: none;
  margin: 0;
}

.sidebar-card li {
  margin-bottom: 0.75rem;
}

.sidebar-card li:last-child {
  margin-bottom: 0;
}

/* Cards & Containers */
.card {
  background-color: var(--surface-color);
  border: 1px solid var(--surface-border);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--accent-light) 0%, transparent 100%);
  border-radius: 24px;
  padding: 3rem 2rem;
  margin-bottom: 3rem;
  text-align: center;
  border: 1px solid var(--surface-border);
}

.hero h1 {
  margin-bottom: 0.75rem;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.35rem);
  color: var(--text-secondary);
  max-width: 800px;
  margin: 0 auto 1.5rem;
}

.hero-meta {
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Statistical Tables */
.table-container {
  overflow-x: auto;
  border: 1px solid var(--surface-border);
  border-radius: 12px;
  margin: 2rem 0;
  box-shadow: var(--shadow-sm);
}

.stats-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  background-color: var(--surface-color);
}

.stats-table th, .stats-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--surface-border);
}

.stats-table th, .stats-table tr:first-child td {
  background-color: var(--accent-light);
  color: var(--accent-dark);
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

.stats-table tr:first-child td a {
  color: var(--accent-dark);
}

.stats-table tr:last-child td {
  border-bottom: none;
}

.stats-table tr:hover td {
  background-color: var(--surface-hover);
}

.stats-table .highlight {
  font-weight: 700;
  color: var(--accent-color);
}

/* Pictures Grid */
.pictures-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.picture-card {
  cursor: pointer;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--surface-border);
  background-color: var(--surface-color);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.picture-card:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-md);
}

.picture-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 12px 12px 0 0;
  transition: transform 0.3s ease;
}

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

.picture-caption {
  padding: 1rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
  text-align: center;
}

/* Lightbox Modal */
.lightbox-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  align-items: center;
  justify-content: center;
  padding: 2rem;
  backdrop-filter: blur(8px);
}

.lightbox-content-wrapper {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.lightbox-caption {
  color: #fff;
  margin-top: 1rem;
  font-size: 1.1rem;
  font-weight: 500;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  color: #fff;
  font-size: 2.5rem;
  font-weight: bold;
  cursor: pointer;
  line-height: 1;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 3rem;
  font-weight: bold;
  cursor: pointer;
  user-select: none;
  padding: 1rem;
  transition: color 0.2s ease;
}

.lightbox-nav:hover {
  color: var(--accent-color);
}

.lightbox-prev {
  left: -80px;
}

.lightbox-next {
  right: -80px;
}

/* Footer */
.site-footer {
  background-color: var(--surface-color);
  border-top: 1px solid var(--surface-border);
  padding: 3rem 0;
  margin-top: 4rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.footer-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .footer-container {
    grid-template-columns: 2fr 1fr;
  }
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  list-style: none;
  margin: 0 0 1rem 0;
}

.footer-link {
  color: var(--text-secondary);
}

.footer-link:hover {
  color: var(--accent-color);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Responsive Overrides */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: var(--surface-color);
    border-bottom: 1px solid var(--surface-border);
    padding: 1.5rem;
    gap: 1.25rem;
    box-shadow: var(--shadow-lg);
  }

  .nav-menu.open {
    display: flex;
  }

  .mobile-toggle {
    display: block;
  }

  .lightbox-prev {
    left: -20px;
    font-size: 2rem;
  }
  
  .lightbox-next {
    right: -20px;
    font-size: 2rem;
  }
}

/* Alert Boxes / Callouts */
.callout {
  background-color: var(--accent-light);
  border-left: 4px solid var(--accent-color);
  border-radius: 0 8px 8px 0;
  padding: 1.25rem;
  margin: 1.5rem 0;
}

.callout p:last-child {
  margin-bottom: 0;
}

/* Video Layout */
.video-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin: 2rem 0;
}

@media (min-width: 768px) {
  .video-grid {
    grid-template-columns: 2fr 1fr;
  }
}

.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}
