/* Tetsu No Hane — Akita inu Kennel (leśna zieleń + beż) */

:root {
  --forest: #2a4538;
  --forest-deep: #1c2f26;
  --forest-mid: #3d5c4d;
  --forest-soft: rgba(42, 69, 56, 0.14);
  --cream: #f7f3eb;
  --cream-deep: #ebe4d6;
  --cream-card: #fffcf7;
  --ink: #1e2a22;
  --ink-heading: #243529;
  --muted: #4a5a50;
  --accent: #356b4f;
  --accent-hover: #2a563e;
  --line: rgba(30, 42, 34, 0.14);
  --radius: 12px;
  --font-sans: "DM Sans", system-ui, sans-serif;
  --font-display: "Cormorant Garamond", Georgia, serif;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.wrap {
  width: min(1100px, 92vw);
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 243, 235, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: inherit;
}

.brand:hover {
  text-decoration: none;
}

.brand-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--cream-card);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink-heading);
}

.brand-sub {
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--cream-card);
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  color: var(--ink-heading);
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  color: var(--ink-heading);
  font-size: 0.9rem;
  font-weight: 500;
}

.nav-list a:hover {
  color: var(--accent);
  text-decoration: none;
}

/* Home banner (pełna szerokość pod menu)
   Stabilny układ: padding-bottom + absolute img (działa tam, gdzie aspect-ratio + height:100% się sypie) */
.home-banner {
  padding: 0;
}

.hero-cover {
  position: relative;
  width: 100%;
  max-height: min(58vh, 560px);
  overflow: hidden;
  background: var(--cream-deep);
}

.hero-cover::before {
  content: "";
  display: block;
  width: 100%;
  padding-bottom: 42.857142%; /* 9/21 */
}

@media (max-width: 640px) {
  .hero-cover {
    max-height: min(52vh, 420px);
  }

  .hero-cover::before {
    padding-bottom: 75%; /* 4/3 */
  }
}

.hero-cover-img {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Home wordmark */
.home-top {
  padding: 2.75rem 0 2rem;
  text-align: center;
  background:
    radial-gradient(ellipse 90% 80% at 50% 0%, var(--forest-soft), transparent 55%),
    var(--cream);
}

.wordmark {
  max-width: 36rem;
  margin-inline: auto;
}

.wordmark-title {
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 6vw, 3.15rem);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 0.35rem;
  letter-spacing: 0.03em;
  color: var(--forest-deep);
}

.wordmark-sub {
  margin: 0 0 0.85rem;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
}

.wordmark-tagline {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-style: italic;
  color: var(--forest-mid);
}

/* Story */
.home-story {
  padding: 2rem 0 2.5rem;
}

.story-lead {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  font-weight: 600;
  color: var(--forest-deep);
  margin: 0 0 1.25rem;
  line-height: 1.3;
}

.prose {
  max-width: 42rem;
  margin-inline: auto;
}

.prose p {
  margin: 0 0 1.1rem;
}

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

.prose strong {
  color: var(--ink-heading);
  font-weight: 600;
}

/* Quote */
.quote-block {
  max-width: 38rem;
  margin: 2.5rem auto 0;
  padding: 1.5rem 1.75rem;
  border-left: 4px solid var(--forest-mid);
  background: linear-gradient(135deg, rgba(255, 252, 247, 0.95), var(--cream-deep));
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: 0 8px 28px rgba(28, 47, 38, 0.08);
}

.quote-block p {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  line-height: 1.55;
  color: var(--forest-deep);
}

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

/* Home video (bez nagłówka) */
.home-video {
  padding: 2rem 0 1rem;
}

.video-thumb {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  max-width: 460px;
  margin-inline: auto;
  text-decoration: none;
  color: inherit;
}

.video-thumb:hover {
  text-decoration: none;
}

.video-thumb:hover .video-thumb-inner {
  box-shadow: 0 16px 44px rgba(28, 47, 38, 0.18);
}

.video-thumb:hover .video-thumb-inner img {
  transform: scale(1.03);
}

.video-thumb-inner {
  position: relative;
  display: block;
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 12px 36px rgba(28, 47, 38, 0.12);
  line-height: 0;
  transition: box-shadow 0.2s ease;
}

.video-thumb-inner img {
  width: 100%;
  height: auto;
  max-height: 240px;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.3s ease;
}

.video-thumb-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 252, 247, 0.95);
  color: var(--forest-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  padding-left: 5px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
  border: 2px solid rgba(30, 42, 34, 0.12);
  pointer-events: none;
}

.video-thumb-caption {
  font-size: 0.9rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.4;
}

.video-box {
  background: #0d0b0a;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  max-width: 800px;
  margin-inline: auto;
}

.video-box video {
  width: 100%;
  vertical-align: middle;
  display: block;
}

.video-hint {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
  max-width: 40rem;
  margin-inline: auto;
}

/* film.html — odtwarzacz skalowany do okna (bez przewijania w górę/dół) */
body.film-page .film-page-hero {
  padding: 0.85rem 0 0.65rem;
}

body.film-page .film-page-hero h1 {
  margin-bottom: 0.35rem;
}

body.film-page .film-video-section {
  padding: 0 0 1rem;
}

body.film-page .video-box--film {
  max-width: min(1100px, 100%);
  width: 100%;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
}

body.film-page .video-box--film video {
  width: 100%;
  max-width: 100%;
  height: auto;
  /* mieści się w widoku: nagłówek + tytuł + stopka + podpowiedź */
  max-height: min(80vh, calc(100vh - 11rem));
  object-fit: contain;
  background: #000;
}

@supports (height: 100dvh) {
  body.film-page .video-box--film video {
    max-height: min(80vh, calc(100dvh - 11rem));
  }
}

/* Home 3 photos */
.home-snaps {
  padding: 2rem 0 1rem;
}

.home-snaps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  max-width: 900px;
  margin-inline: auto;
  width: 100%;
}

/* Na telefonie też trzy kolumny obok siebie (węższy odstęp na małym ekranie) */
@media (max-width: 700px) {
  .home-snaps-grid {
    gap: 0.45rem;
    max-width: 100%;
  }
}

.home-snaps-grid figure {
  margin: 0;
  min-width: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 10px 32px rgba(28, 47, 38, 0.1);
  background: var(--cream-card);
}

.home-snaps-grid img {
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Social + contact block */
.home-bottom {
  padding: 2.5rem 0 3rem;
  background: var(--cream-deep);
  border-top: 1px solid var(--line);
}

.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.75rem;
  justify-content: center;
  align-items: center;
  margin-bottom: 2rem;
}

.social-row a {
  font-weight: 600;
  color: var(--forest-deep);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: var(--cream-card);
  border: 1px solid var(--line);
}

.social-row a:hover {
  background: var(--forest-soft);
  text-decoration: none;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  max-width: 640px;
  margin-inline: auto;
}

.contact-card {
  background: var(--cream-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.5rem;
  text-align: center;
}

.contact-card h3 {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.contact-card p {
  margin: 0;
  font-size: 1.05rem;
}

.placeholder {
  color: var(--muted);
  font-style: italic;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 16px rgba(53, 107, 79, 0.35);
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-ghost {
  background: var(--cream-card);
  color: var(--ink-heading);
  border: 1px solid var(--line);
}

/* Page sections (subpages) */
.page-hero {
  padding: 2rem 0 1.5rem;
  text-align: center;
  background: var(--cream);
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.5rem);
  margin: 0 0 0.5rem;
  color: var(--forest-deep);
}

.page-intro {
  color: var(--muted);
  margin: 0;
  max-width: 50ch;
  margin-inline: auto;
}

section {
  padding: 2.75rem 0;
}

.section-muted {
  background: var(--cream-deep);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3.2vw, 2.1rem);
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--forest-deep);
}

.section-intro {
  color: var(--muted);
  max-width: 60ch;
  margin: 0 0 1.5rem;
}

/* Strona szczeniąt — zdjęcie + tekst */
.puppy-announce {
  max-width: 52rem;
  margin-inline: auto;
}

.puppy-announce__figure {
  margin: 0 0 1.75rem;
  text-align: center;
}

.puppy-announce__figure img {
  display: inline-block;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0 8px 28px rgba(26, 46, 32, 0.12);
}

.puppy-announce ul {
  margin: 0.5rem 0 1.25rem;
  padding-left: 1.35rem;
}

.puppy-announce li {
  margin-bottom: 0.35rem;
}

.puppy-announce .pedigree-link {
  display: inline;
  margin-bottom: 0;
  font-weight: 600;
}

.puppy-litter-section {
  margin-top: 2.75rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  max-width: 52rem;
  margin-inline: auto;
}

.puppy-litter-section .section-title {
  text-align: center;
  margin-bottom: 0.35rem;
}

.puppy-litter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 1.35rem;
}

.puppy-card {
  margin: 0;
  background: var(--cream-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 6px 22px rgba(26, 46, 32, 0.1);
  border: 1px solid var(--line);
}

.puppy-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.puppy-card figcaption {
  padding: 0.85rem 1rem 1.1rem;
}

.puppy-card__label {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--forest-deep);
  line-height: 1.35;
}

.puppy-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.28rem 0.55rem;
  border-radius: 6px;
}

.puppy-badge--available {
  background: rgba(53, 107, 79, 0.16);
  color: var(--accent-hover);
}

.puppy-badge--reserved {
  background: rgba(74, 90, 80, 0.14);
  color: var(--muted);
}

.puppy-badge--sold {
  background: rgba(120, 80, 60, 0.12);
  color: var(--muted);
}

.puppy-grow-section {
  padding: 2.75rem 0 3.25rem;
  border-top: 1px solid var(--line);
}

.puppy-grow-section .section-title {
  text-align: center;
  margin-bottom: 0.35rem;
}

.puppy-grow-section .section-intro {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto 1.5rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.puppy-grow-section .gallery-grid {
  margin-top: 0.5rem;
}

/* Dog profile — całe zdjęcie widoczne (bez cropu); cover obcinał głowy przy różnych kadrach */
.dog-hero-wrap {
  width: 100%;
  background: var(--cream-deep);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.75rem 0;
}

.dog-hero-img {
  display: block;
  max-width: 100%;
  max-height: min(78vh, 680px);
  width: auto;
  height: auto;
  object-fit: contain;
}

.dog-page .wrap {
  padding-top: 1.5rem;
}

.dog-head {
  text-align: center;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 2rem;
}

.dog-head h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  margin: 0 0 0.75rem;
  color: var(--forest-deep);
}

.pedigree-link {
  display: inline-block;
  font-weight: 600;
  margin-bottom: 1rem;
}

.dog-section {
  margin-bottom: 2.5rem;
}

.dog-section:last-child {
  margin-bottom: 0;
}

.dog-section h2 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  margin: 0 0 0.75rem;
  color: var(--forest-mid);
}

.dog-section h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 1.35rem 0 0.5rem;
  color: var(--ink-heading);
}

.dog-section h3:first-child {
  margin-top: 0;
}

.dog-detail h4 {
  font-size: 1rem;
  font-weight: 600;
  margin: 1.15rem 0 0.45rem;
  color: var(--forest-mid);
}

.dog-detail h4:first-of-type {
  margin-top: 0.5rem;
}

.dog-detail {
  max-width: 48rem;
}

.dog-detail ul {
  margin: 0 0 1rem;
  padding-left: 1.35rem;
}

.dog-detail li {
  margin-bottom: 0.4rem;
}

.dog-detail p {
  margin: 0 0 0.85rem;
  line-height: 1.65;
}

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

.placeholder-box {
  padding: 1.25rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  font-style: italic;
  background: rgba(255, 252, 247, 0.6);
}

/* Psy listing */
.psy-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.psy-card {
  background: var(--cream-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(28, 47, 38, 0.08);
  transition: transform 0.2s ease;
}

.psy-card:hover {
  transform: translateY(-3px);
}

.psy-card a {
  display: block;
  color: inherit;
  text-decoration: none;
}

.psy-card a:hover {
  text-decoration: none;
}

.psy-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center top;
}

.psy-card-body {
  padding: 1.25rem 1.35rem 1.5rem;
}

.psy-card-body h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0 0 0.35rem;
  color: var(--forest-deep);
}

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

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

.gallery-grid button {
  padding: 0;
  border: none;
  background: none;
  cursor: zoom-in;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 1;
  position: relative;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.gallery-grid button:hover img {
  transform: scale(1.04);
}

.gallery-grid button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(13, 20, 16, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.lightbox.is-open {
  display: flex;
}

.lightbox img {
  max-width: min(95vw, 1200px);
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--cream-card);
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: var(--ink-heading);
}

/* Footer */
.site-footer {
  padding: 2rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--muted);
  text-align: center;
  background: var(--cream);
}

.site-footer p {
  margin: 0.35rem 0;
}

/* Mobile nav */
@media (max-width: 720px) {
  .nav-toggle {
    display: block;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(247, 243, 235, 0.98);
    border-bottom: 1px solid var(--line);
    padding: 1rem;
    display: none;
  }

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

  .nav-list {
    flex-direction: column;
    gap: 0.5rem;
  }

  .site-header {
    position: relative;
  }
}
