/* So Cal Corgis — Modern Site Design */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,600;9..144,700&family=DM+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  --color-primary: #3d2914;
  --color-primary-light: #5c3d24;
  --color-accent: #c4784a;
  --color-accent-hover: #a86338;
  --color-accent-soft: #e8a87c;
  --color-bg: #faf7f4;
  --color-bg-alt: #f0e8df;
  --color-bg-card: #ffffff;
  --color-text: #2c1810;
  --color-text-muted: #6b5344;
  --color-border: #e0d5ca;
  --color-white: #ffffff;
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --shadow-sm: 0 2px 8px rgba(61, 41, 20, 0.08);
  --shadow-md: 0 8px 30px rgba(61, 41, 20, 0.12);
  --shadow-lg: 0 16px 50px rgba(61, 41, 20, 0.15);
  --radius: 12px;
  --radius-lg: 20px;
  --max-width: 1140px;
  --header-height: 72px;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--color-accent-hover); }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  height: var(--header-height);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: -0.02em;
}

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

.nav-desktop { display: flex; align-items: center; gap: 0.25rem; list-style: none; }

.nav-desktop a {
  display: block;
  padding: 0.5rem 0.85rem;
  color: var(--color-text);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}

.nav-desktop a:hover,
.nav-desktop a.active {
  background: var(--color-bg-alt);
  color: var(--color-accent);
}

.nav-dropdown { position: relative; }

.nav-dropdown > a::after {
  content: ' ▾';
  font-size: 0.7em;
  opacity: 0.6;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  padding: 0.5rem;
  list-style: none;
}

.nav-dropdown:hover .dropdown-menu { display: block; }

.dropdown-menu a { padding: 0.6rem 1rem; font-size: 0.875rem; }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--color-primary);
}

.menu-toggle svg { width: 28px; height: 28px; }

.nav-mobile {
  display: none;
  position: fixed;
  inset: var(--header-height) 0 0 0;
  background: var(--color-white);
  padding: 1.5rem;
  overflow-y: auto;
  z-index: 999;
  border-top: 1px solid var(--color-border);
}

.nav-mobile.open { display: block; }

.nav-mobile ul { list-style: none; }

.nav-mobile a {
  display: block;
  padding: 0.85rem 0;
  color: var(--color-text);
  font-weight: 500;
  font-size: 1.05rem;
  border-bottom: 1px solid var(--color-border);
}

.nav-mobile .sub-menu a {
  padding-left: 1.25rem;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--color-primary);
}

.hero-slider { position: absolute; inset: 0; }

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}

.hero-slide.active { opacity: 1; }

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(61,41,20,0.35) 0%, rgba(61,41,20,0.65) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--color-white);
  padding: 2rem 1.5rem;
  max-width: 700px;
}

.hero-content h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 0.75rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero-content p {
  font-size: 1.15rem;
  opacity: 0.95;
  margin-bottom: 1.5rem;
}

.hero-badge {
  display: inline-block;
  background: var(--color-accent);
  color: var(--color-white);
  padding: 0.35rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.hero-page {
  min-height: 280px;
}

.hero-page .hero-content h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  text-decoration: none;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-white);
  box-shadow: 0 4px 15px rgba(196, 120, 74, 0.35);
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(196, 120, 74, 0.45);
}

.btn-outline {
  background: transparent;
  color: var(--color-white);
  border: 2px solid rgba(255,255,255,0.7);
}

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

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

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

/* ── Sections ── */
.section { padding: 4.5rem 0; }
.section-alt { background: var(--color-bg-alt); }

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}

.section-header p {
  color: var(--color-text-muted);
  font-size: 1.05rem;
}

/* ── Cards ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.75rem;
}

.card {
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: transform 0.3s, box-shadow 0.3s;
}

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

.card-image {
  aspect-ratio: 4/3;
  overflow: hidden;
}

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

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

.card-body { padding: 1.5rem; }

.card-body h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.card-body p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.card-body .reg-name {
  font-size: 0.85rem;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}

/* ── Content prose ── */
.prose { max-width: 760px; margin: 0 auto; }
.prose-wide { max-width: 900px; margin: 0 auto; }

.prose h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--color-primary);
  margin: 2.5rem 0 1rem;
}

.prose h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--color-primary-light);
  margin: 2rem 0 0.75rem;
}

.prose p { margin-bottom: 1.25rem; }

.prose ul, .prose ol {
  margin: 0 0 1.25rem 1.5rem;
}

.prose li { margin-bottom: 0.5rem; }

.prose a { font-weight: 500; }

.prose .lead {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  line-height: 1.8;
}

/* ── Feature boxes ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.feature-box {
  background: var(--color-bg-card);
  padding: 2rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  text-align: center;
}

.feature-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  background: var(--color-bg-alt);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.feature-box h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.feature-box p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* ── News / Blog ── */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.news-card {
  background: var(--color-bg-card);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid var(--color-border);
  transition: box-shadow 0.2s;
}

.news-card:hover { box-shadow: var(--shadow-sm); }

.news-date {
  font-size: 0.8rem;
  color: var(--color-accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.news-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.news-card h3 a { color: inherit; }
.news-card h3 a:hover { color: var(--color-accent); }

/* ── Gallery ── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
}

.gallery-item {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

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

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.75rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: white;
  font-size: 0.8rem;
  opacity: 0;
  transition: opacity 0.3s;
}

.gallery-item:hover .gallery-caption { opacity: 1; }

/* ── Video embed ── */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.video-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: #000;
}

.video-card iframe {
  width: 100%;
  aspect-ratio: 16/9;
  border: none;
}

/* ── Contact form ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-info { }

.contact-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  align-items: flex-start;
}

.contact-icon {
  width: 44px;
  height: 44px;
  background: var(--color-bg-alt);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-accent);
}

.contact-form {
  background: var(--color-bg-card);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
}

.form-group { margin-bottom: 1.25rem; }

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--color-primary);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--color-bg);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(196, 120, 74, 0.15);
}

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

/* ── Social ── */
.social-links {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
}

.social-links a {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-alt);
  border-radius: 50%;
  color: var(--color-primary);
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.social-links a:hover {
  background: var(--color-accent);
  color: var(--color-white);
  transform: translateY(-2px);
}

.social-links svg { width: 20px; height: 20px; fill: currentColor; }

/* ── CTA banner ── */
.cta-banner {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  color: var(--color-white);
  padding: 3.5rem 2rem;
  border-radius: var(--radius-lg);
  text-align: center;
  margin: 0 auto;
  max-width: var(--max-width);
}

.cta-banner h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.cta-banner p {
  opacity: 0.9;
  margin-bottom: 1.5rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Footer ── */
.site-footer {
  background: var(--color-primary);
  color: rgba(255,255,255,0.85);
  padding: 3.5rem 0 2rem;
  margin-top: 4rem;
}

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

.footer-brand .logo {
  color: var(--color-white);
  margin-bottom: 0.75rem;
  display: block;
}

.footer-brand p {
  font-size: 0.9rem;
  opacity: 0.8;
  line-height: 1.6;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--color-white);
  margin-bottom: 1rem;
}

.footer-col ul { list-style: none; }

.footer-col li { margin-bottom: 0.5rem; }

.footer-col a {
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
}

.footer-col a:hover { color: var(--color-accent-soft); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  opacity: 0.7;
}

/* ── Two column layout ── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.two-col img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

/* ── Health list ── */
.health-list {
  list-style: none;
  margin: 0;
}

.health-list li {
  padding: 1rem 1.25rem;
  background: var(--color-bg-card);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  border-left: 4px solid var(--color-accent);
  box-shadow: var(--shadow-sm);
}

.health-list strong {
  color: var(--color-primary);
  display: block;
  margin-bottom: 0.25rem;
}

/* ── Table ── */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

.data-table th,
.data-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.data-table th {
  background: var(--color-bg-alt);
  font-weight: 600;
  color: var(--color-primary);
}

/* ── Lightbox ── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox.open { display: flex; }

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius);
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .nav-desktop { display: none; }
  .menu-toggle { display: block; }
  .contact-grid,
  .two-col,
  .footer-grid { grid-template-columns: 1fr; }
  .hero { min-height: 340px; }
  .section { padding: 3rem 0; }
}

@media (max-width: 600px) {
  .card-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
