/* --- Variables: pink & lavender, cozy & warm --- */
:root {
  --pink-soft: #f5dce8;
  --pink-mid: #e8b8e4;
  --pink-strong: #d8a5d9;
  --lavender-soft: #e8ddf2;
  --lavender-mid: #d4c4e8;
  --lavender-strong: #b68dc8;
  --bg-warm: #faf6f9;
  --bg-section: #f5eff5;
  --text: #4a3f52;
  --text-soft: #6b5d72;
  --white: #fff;
  --shadow: rgba(180, 140, 200, 0.15);
  --radius: 12px;
  --radius-lg: 20px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Outfit", sans-serif;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-warm);
  -webkit-font-smoothing: antialiased;
}

/* --- Header --- */
.site-header {
  padding: clamp(2rem, 5vw, 3.5rem) 1.5rem;
  text-align: center;
  background: linear-gradient(160deg, var(--lavender-soft) 0%, var(--pink-soft) 100%);
  border-bottom: 1px solid var(--lavender-mid);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 1.5rem;
  margin-bottom: 1.5rem;
}

.nav a {
  color: var(--text-soft);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.35em 0.6em;
  border-radius: var(--radius);
  transition: color 0.2s, background 0.2s;
}

.nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.6);
}

.site-title {
  font-family: "DM Serif Display", serif;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 400;
  color: var(--text);
  margin: 0 0 0.25em;
  letter-spacing: 0.02em;
}

.site-subtitle {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-soft);
  font-weight: 300;
}

/* --- Sections --- */
.section {
  max-width: 960px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3rem) 1.5rem;
}

.section h2 {
  font-family: "DM Serif Display", serif;
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  font-weight: 400;
  color: var(--text);
  margin: 0 0 1rem;
}

/* --- About --- */
.about {
  background: var(--bg-section);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.about-content p {
  margin: 0 0 1rem;
  color: var(--text-soft);
}

.about-content p:last-child {
  margin-bottom: 0;
}

/* --- Photos / Gallery --- */
.photos {
  background: var(--bg-warm);
}

.gallery-intro {
  color: var(--text-soft);
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
}

.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.filter-btn {
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5em 1em;
  border: 1px solid var(--lavender-mid);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--text-soft);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.filter-btn:hover {
  background: var(--lavender-soft);
  color: var(--text);
}

.filter-btn.active {
  background: var(--pink-mid);
  color: var(--white);
  border-color: var(--pink-strong);
}

.gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 560px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 880px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

.gallery-item {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 20px var(--shadow);
  transition: opacity 0.25s, transform 0.25s;
}

.gallery-item.hidden {
  display: none;
}

.gallery-item:not(.hidden) {
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.before-after {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  aspect-ratio: 2 / 1;
}

.before-after .before,
.before-after .after {
  overflow: hidden;
  background: var(--lavender-soft);
}

.before-after img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: pointer;
}

.gallery-item .caption {
  margin: 0;
  padding: 0.85rem 1rem;
  font-size: 0.9rem;
  color: var(--text-soft);
  background: var(--white);
  border-top: 1px solid var(--lavender-soft);
}

/* --- Gallery (general dog photos) --- */
.gallery-section {
  background: var(--bg-section);
  border-radius: var(--radius-lg);
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1rem;
}

@media (min-width: 560px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}

@media (min-width: 880px) {
  .gallery-grid {
    gap: 1.5rem;
  }
}

.gallery-photo {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--lavender-soft);
  aspect-ratio: 1;
  box-shadow: 0 2px 12px var(--shadow);
}

.gallery-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: pointer;
}

.gallery-note {
  font-size: 0.85rem;
  color: var(--text-soft);
  margin: 0;
}

.gallery-note code {
  background: var(--lavender-soft);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  font-size: 0.9em;
}

/* --- Contact --- */
.contact {
  background: var(--bg-section);
  border-radius: var(--radius-lg);
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.contact-content p {
  margin: 0 0 1.25rem;
  color: var(--text-soft);
}

.contact-content p:last-child {
  margin-bottom: 0;
}

.contact-content a {
  color: var(--pink-strong);
  text-decoration: none;
  font-weight: 500;
}

.contact-content a:hover {
  text-decoration: underline;
}

/* --- Footer --- */
.site-footer {
  padding: 1.25rem 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-soft);
  background: linear-gradient(160deg, var(--pink-soft) 0%, var(--lavender-soft) 100%);
  border-top: 1px solid var(--lavender-mid);
}

.site-footer p {
  margin: 0;
}

/* --- Lightbox --- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(74, 63, 82, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  border-radius: 50%;
  background: var(--white);
  color: var(--text);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  z-index: 1001;
  transition: background 0.2s, color 0.2s;
}

.lightbox-close:hover {
  background: var(--pink-soft);
  color: var(--text);
}

.lightbox-img {
  max-width: 95vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
}
