@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,600;0,9..144,700;1,9..144,400&family=Outfit:wght@300;400;500;600&display=swap');

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --sand:      #f5ede0;
  --sand-dark: #e8d9c5;
  --clay:      #b5541c;
  --clay-light:#d4713a;
  --green:     #2c4a35;
  --green-mid: #3d6348;
  --text:      #2d2218;
  --text-soft: #5c4a38;
  --white:     #fff;
  --radius:    14px;
  --shadow:    0 4px 20px rgba(0,0,0,.1);
  --shadow-lg: 0 8px 40px rgba(0,0,0,.18);
  --trans:     .35s ease;
}

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

body {
  font-family: 'Outfit', sans-serif;
  background: var(--sand);
  color: var(--text);
  line-height: 1.7;
}

h1, h2, h3, h4 {
  font-family: 'Fraunces', serif;
  line-height: 1.2;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

/* ── Nav ── */
#nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--green);
  box-shadow: 0 2px 16px rgba(0,0,0,.25);
  transition: background var(--trans);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
}

.nav-logo {
  font-family: 'Fraunces', serif;
  font-size: 1.25rem;
  color: var(--sand);
  font-weight: 600;
  letter-spacing: .02em;
}

.nav-links {
  display: flex;
  gap: 1.75rem;
  list-style: none;
}

.nav-links a {
  color: var(--sand-dark);
  font-size: .92rem;
  font-weight: 500;
  letter-spacing: .03em;
  transition: color var(--trans);
}

.nav-links a:hover { color: var(--white); }

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.nav-burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--sand);
  border-radius: 2px;
  transition: transform var(--trans), opacity var(--trans);
}

.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile nav ── */
@media (max-width: 720px) {
  .nav-burger { display: flex; }

  .nav-links {
    display: none;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 62px;
    left: 0; right: 0;
    background: var(--green);
    padding: .5rem 0 1rem;
    box-shadow: 0 8px 20px rgba(0,0,0,.2);
  }

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

  .nav-links li a {
    display: block;
    padding: .75rem 1.5rem;
    font-size: 1rem;
  }
}

/* ── Scroll-reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ── Section wrapper ── */
.section {
  padding: 5rem 1.5rem;
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-title {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  color: var(--clay);
  margin-bottom: 2.5rem;
  text-align: center;
}

/* ── Hero ── */
#hero {
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, var(--green) 0%, var(--green-mid) 60%, var(--clay) 100%);
  text-align: center;
  padding: 3rem 1.5rem;
  position: relative;
  overflow: hidden;
}

#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content { position: relative; z-index: 1; }

.hero-title {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  color: var(--white);
  margin-bottom: 1rem;
  font-style: italic;
  text-shadow: 0 2px 20px rgba(0,0,0,.3);
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  color: var(--sand-dark);
  margin-bottom: 2.5rem;
  font-weight: 300;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.btn {
  display: inline-block;
  padding: .85rem 2.2rem;
  background: var(--clay);
  color: var(--white);
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: .04em;
  transition: background var(--trans), transform var(--trans), box-shadow var(--trans);
  box-shadow: 0 4px 16px rgba(181,84,28,.4);
}

.btn:hover {
  background: var(--clay-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(181,84,28,.5);
}

/* ── About ── */
#about { background: var(--white); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

@media (max-width: 760px) {
  .about-grid { grid-template-columns: 1fr; }
}

.about-text h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  color: var(--clay);
  margin-bottom: 1.5rem;
}

.about-text p {
  color: var(--text-soft);
  margin-bottom: 1.1rem;
  font-size: 1.05rem;
}

.about-img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3;
  background: var(--sand-dark);
}

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

.about-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  background: linear-gradient(135deg, var(--sand-dark), var(--sand));
}

/* ── News ── */
#news { background: var(--green); }
#news .section-title { color: var(--sand); }

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

.news-card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  padding: 1.75rem;
  backdrop-filter: blur(4px);
  transition: transform var(--trans), background var(--trans);
}

.news-card:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,.13);
}

.news-date {
  font-size: .82rem;
  color: var(--clay-light);
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: .5rem;
}

.news-card h3 {
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: .75rem;
}

.news-card p {
  color: var(--sand-dark);
  font-size: .95rem;
}

/* ── Dogs ── */
#dogs { background: var(--sand); }

.dogs-group-title {
  font-size: 1.4rem;
  color: var(--text-soft);
  margin: 3rem 0 1.5rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--sand-dark);
  font-family: 'Fraunces', serif;
}

.dogs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.dog-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--trans), box-shadow var(--trans);
}

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

.dog-photo {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--sand-dark);
}

.dog-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

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

.dog-photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  background: linear-gradient(135deg, var(--sand-dark), var(--sand));
}

.dog-body { padding: 1.5rem; }

.dog-name {
  font-size: 1.25rem;
  color: var(--green);
  margin-bottom: .15rem;
}

.dog-callname {
  font-size: .9rem;
  color: var(--clay);
  font-weight: 600;
  margin-bottom: .4rem;
}

.dog-meta {
  font-size: .82rem;
  color: var(--text-soft);
  font-weight: 500;
  letter-spacing: .02em;
  margin-bottom: 1rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--sand-dark);
}

.dog-body p {
  font-size: .95rem;
  color: var(--text-soft);
}

/* ── Puppies ── */
#puppies { background: var(--clay); }

.puppies-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

#puppies .section-title { color: var(--white); }

.puppies-desc {
  color: rgba(255,255,255,.88);
  font-size: 1.08rem;
  margin-bottom: 2rem;
}

.puppies-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255,255,255,.15);
  border: 2px solid rgba(255,255,255,.3);
  border-radius: var(--radius);
  padding: 1.5rem 2.5rem;
  margin-bottom: 2rem;
}

.puppies-count {
  font-family: 'Fraunces', serif;
  font-size: 4rem;
  color: var(--white);
  line-height: 1;
}

.puppies-count-label {
  color: var(--sand-dark);
  font-size: .95rem;
  margin-top: .25rem;
}

.puppies-note {
  color: rgba(255,255,255,.75);
  font-size: .92rem;
  max-width: 560px;
  margin: 0 auto;
}

/* ── Gallery ── */
#gallery { background: var(--green-mid); }
#gallery .section-title { color: var(--sand); }

.albums-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}

.album-card {
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform var(--trans), box-shadow var(--trans);
  position: relative;
}

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

.album-cover {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--green);
}

.album-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.album-card:hover .album-cover img { transform: scale(1.07); }

.album-cover-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  background: linear-gradient(135deg, var(--green), var(--green-mid));
}

.album-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(0,0,0,.72) 0%, transparent 100%);
  color: var(--white);
  padding: 1.5rem .9rem .75rem;
  font-size: .95rem;
  font-weight: 500;
}

.album-empty { opacity: .65; cursor: default; }
.album-empty:hover { transform: none; }
.album-soon { font-size: .78rem; opacity: .75; font-weight: 400; }

.news-empty {
  color: rgba(255,255,255,.55);
  font-style: italic;
  text-align: center;
  padding: 2rem 0;
}

/* ── Lightbox ── */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(0,0,0,.92);
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#lightbox.open { display: flex; }

.lightbox-close {
  position: absolute;
  top: 1rem; right: 1.25rem;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
  opacity: .75;
  transition: opacity var(--trans);
}

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

.lightbox-img-wrap {
  max-width: min(90vw, 900px);
  max-height: 80vh;
}

.lightbox-img-wrap img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 8px;
  object-fit: contain;
}

.lightbox-img-placeholder {
  width: 600px;
  max-width: 90vw;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  background: rgba(255,255,255,.05);
  border-radius: 8px;
}

.lightbox-nav {
  display: flex;
  gap: 1rem;
  margin-top: 1.25rem;
}

.lightbox-nav button {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  color: var(--white);
  padding: .5rem 1.5rem;
  border-radius: 50px;
  cursor: pointer;
  font-size: .95rem;
  transition: background var(--trans);
}

.lightbox-nav button:hover { background: rgba(255,255,255,.22); }

.lightbox-counter {
  color: rgba(255,255,255,.5);
  font-size: .85rem;
  margin-top: .5rem;
}

.lightbox-album-title {
  color: var(--sand-dark);
  font-family: 'Fraunces', serif;
  font-size: 1.1rem;
  margin-bottom: .75rem;
}

/* ── Contact ── */
#contact { background: var(--white); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 760px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-info h2 {
  font-size: 1.8rem;
  color: var(--clay);
  margin-bottom: 1.75rem;
}

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

.contact-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
  margin-top: .1em;
}

.contact-item-label {
  font-size: .78rem;
  font-weight: 600;
  color: var(--clay);
  letter-spacing: .06em;
  text-transform: uppercase;
}

.contact-item-value {
  font-size: 1rem;
  color: var(--text-soft);
}

.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  height: 340px;
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ── Footer ── */
footer {
  background: var(--green);
  color: rgba(255,255,255,.55);
  text-align: center;
  padding: 1.5rem 1rem;
  font-size: .85rem;
}

footer strong { color: var(--sand-dark); }
