/* Ostraryka Kennel — site styles
   Edit the colours below to re-theme the whole site. */
:root {
  --bg: #fbf7f0;
  --bg-alt: #f3ebdd;
  --ink: #2b241c;
  --ink-soft: #6b5f50;
  --brand: #b5552b;      /* warm terracotta */
  --brand-dark: #8d3f1d;
  --accent: #4f7d5b;     /* meadow green */
  --card: #ffffff;
  --line: #e6dccb;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(43, 36, 28, 0.08);
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--brand-dark); }
h1, h2, h3, h4 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section.alt { background: var(--bg-alt); }
.eyebrow {
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 60ch; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn.primary { background: var(--brand); color: #fff; }
.btn.primary:hover { background: var(--brand-dark); }
.btn.ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn.ghost:hover { background: var(--ink); color: #fff; }
.btn.light { background: #fff; color: var(--ink); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 247, 240, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 700; font-size: 1.35rem;
  color: var(--ink); text-decoration: none;
}
.logo svg { width: 34px; height: 34px; }
.nav { display: flex; gap: 28px; align-items: center; }
.nav a {
  color: var(--ink); text-decoration: none; font-weight: 500;
  padding: 6px 0; border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a.active { border-bottom-color: var(--brand); }
.nav .btn { padding: 10px 20px; }
.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: 8px;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0;
}

/* Hero */
.hero {
  position: relative;
  min-height: 78vh;
  display: grid; align-items: center;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, #5a3a2a 0%, #b5552b 55%, #d98a4a 100%);
}
.hero-media {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(30, 20, 12, 0.72) 0%, rgba(30, 20, 12, 0.25) 70%);
}
.hero .wrap { position: relative; padding-top: 80px; padding-bottom: 80px; }
.hero h1 { color: #fff; max-width: 14ch; }
.hero .lead { color: rgba(255,255,255,0.88); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 24px; }
.hero-badges {
  display: flex; gap: 22px; flex-wrap: wrap; margin-top: 40px;
  font-size: 0.95rem; color: rgba(255,255,255,0.9);
}
.hero-badges span { display: flex; align-items: center; gap: 8px; }

/* Cards */
.grid { display: grid; gap: 24px; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.card .icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center;
  background: var(--bg-alt); color: var(--brand);
  margin-bottom: 18px;
}
.card .icon svg { width: 28px; height: 28px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--ink-soft); margin-bottom: 0; }
.card .price { font-family: "Fraunces", serif; font-size: 1.6rem; color: var(--brand); margin: 10px 0 4px; }
.card .price small { font-family: "Inter", sans-serif; font-size: 0.85rem; color: var(--ink-soft); }
.card ul { padding-left: 18px; color: var(--ink-soft); margin: 12px 0 0; }
.card ul li { margin-bottom: 6px; }
.card.featured { border: 2px solid var(--brand); position: relative; }
.card.featured::before {
  content: "Most popular"; position: absolute; top: -13px; left: 24px;
  background: var(--brand); color: #fff; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; padding: 4px 12px; border-radius: 999px;
}

/* About split */
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.photo {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--bg-alt), #e3d2b8);
  display: grid; place-items: center;
  color: var(--ink-soft);
  position: relative;
  box-shadow: var(--shadow);
}
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo .placeholder {
  position: absolute; inset: 0; display: grid; place-items: center;
  text-align: center; padding: 20px; font-size: 0.9rem;
}
.photo .placeholder svg { width: 56px; height: 56px; margin: 0 auto 10px; opacity: 0.6; }
.photo.has-img .placeholder { display: none; }
.stats { display: flex; gap: 32px; margin-top: 28px; flex-wrap: wrap; }
.stats div strong {
  display: block; font-family: "Fraunces", serif; font-size: 2rem; color: var(--brand);
}
.stats div span { color: var(--ink-soft); font-size: 0.9rem; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery .photo { aspect-ratio: 1; cursor: zoom-in; }
.gallery .photo:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.lightbox {
  position: fixed; inset: 0; background: rgba(20, 14, 8, 0.92);
  display: none; place-items: center; z-index: 100; padding: 24px;
}
.lightbox.open { display: grid; }
.lightbox img { max-width: 100%; max-height: 90vh; border-radius: 12px; }
.lightbox button {
  position: absolute; top: 18px; right: 18px; background: #fff; border: 0;
  width: 44px; height: 44px; border-radius: 50%; font-size: 1.4rem; cursor: pointer;
}

/* Testimonials */
.quote {
  background: var(--card); border-radius: var(--radius); padding: 28px;
  border: 1px solid var(--line);
}
.quote p { font-style: italic; color: var(--ink); }
.quote footer { color: var(--ink-soft); font-size: 0.9rem; }
.stars { color: #e3a32a; letter-spacing: 2px; margin-bottom: 10px; }

/* Steps */
.steps { counter-reset: step; }
.step { display: flex; gap: 18px; align-items: flex-start; }
.step::before {
  counter-increment: step; content: counter(step);
  flex: 0 0 44px; height: 44px; border-radius: 50%;
  background: var(--accent); color: #fff; display: grid; place-items: center;
  font-family: "Fraunces", serif; font-weight: 700; font-size: 1.2rem;
}
.step h3 { margin-bottom: 4px; }
.step p { color: var(--ink-soft); }

/* CTA band */
.cta {
  background: var(--accent); color: #fff; text-align: center;
  padding: 64px 0;
}
.cta h2 { color: #fff; }
.cta p { color: rgba(255,255,255,0.9); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; }
.info-list { list-style: none; padding: 0; margin: 0 0 24px; }
.info-list li { display: flex; gap: 14px; margin-bottom: 18px; align-items: flex-start; }
.info-list svg { width: 22px; height: 22px; flex: 0 0 22px; color: var(--brand); margin-top: 3px; }
.info-list strong { display: block; }
.info-list span { color: var(--ink-soft); }
form .field { margin-bottom: 18px; }
form label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.95rem; }
form input, form select, form textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  font: inherit; background: #fff; color: var(--ink);
}
form input:focus, form select:focus, form textarea:focus {
  outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand);
}
form textarea { min-height: 130px; resize: vertical; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-note { font-size: 0.85rem; color: var(--ink-soft); }
.map {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  margin-top: 24px; aspect-ratio: 16 / 9; background: var(--bg-alt);
}
.map iframe { width: 100%; height: 100%; border: 0; }

/* FAQ */
details {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 16px 20px; margin-bottom: 12px;
}
details summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; }
details summary::after { content: "+"; color: var(--brand); font-size: 1.3rem; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { margin: 12px 0 0; color: var(--ink-soft); }

/* Page header (inner pages) */
.page-head {
  background: var(--bg-alt); padding: 64px 0 48px; border-bottom: 1px solid var(--line);
}
.page-head h1 { font-size: clamp(2rem, 4vw, 3rem); }

/* Footer */
.site-footer {
  background: var(--ink); color: rgba(255,255,255,0.8); padding: 56px 0 28px;
}
.site-footer .grid { gap: 40px; }
.site-footer h4 { color: #fff; font-family: "Inter", sans-serif; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.1em; }
.site-footer a { color: rgba(255,255,255,0.85); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer .logo { color: #fff; }
.site-footer .bottom {
  border-top: 1px solid rgba(255,255,255,0.15); margin-top: 40px; padding-top: 20px;
  font-size: 0.85rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
}

/* Responsive */
@media (max-width: 900px) {
  .grid.cols-3, .grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .split, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery .photo:nth-child(1) { grid-column: span 2; grid-row: span 1; aspect-ratio: 16 / 9; }
}
@media (max-width: 640px) {
  .section { padding: 52px 0; }
  .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; }
  .row-2 { grid-template-columns: 1fr; }
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 72px; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0; padding: 10px 20px 20px;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 12px; text-align: center; border: 0; }
  .hero { min-height: 70vh; }
}

/* Facebook icon in nav */
.nav .fb { display: inline-flex; padding: 6px; border: 0; color: var(--ink-soft); }
.nav .fb svg { width: 22px; height: 22px; }
.nav .fb:hover { color: var(--brand); }

/* Dog profile cards */
.card.dog { padding: 0; overflow: hidden; }
.card.dog .photo { border-radius: 0; box-shadow: none; aspect-ratio: 3 / 2; }
.card.dog h3, .card.dog .meta, .card.dog ul { margin-left: 28px; margin-right: 28px; }
.card.dog h3 { margin-top: 22px; }
.card.dog h3 small { font-family: "Inter", sans-serif; font-weight: 500; color: var(--ink-soft); font-size: 0.8rem; margin-left: 6px; }
.card.dog .meta { color: var(--ink-soft); font-size: 0.9rem; margin-bottom: 8px; }
.card.dog ul { list-style: none; padding: 0; margin-bottom: 28px; }
.card.dog ul li { margin-bottom: 6px; }
.card.dog ul strong { color: var(--ink); }

/* Hide <img> (and its alt text) until the file actually loads */
.photo img { opacity: 0; transition: opacity 0.3s; }
.photo.has-img img { opacity: 1; }

/* YouTube icon */
.nav .yt svg { width: 24px; height: 24px; }

/* Video grid */
.videos .video .frame { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #000; box-shadow: var(--shadow); }
.videos .video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.videos .video p { margin: 10px 4px 0; font-size: 0.92rem; color: var(--ink-soft); }

/* Litter history rows */
.litters .litter { display: grid; grid-template-columns: 120px 1fr 90px; gap: 16px; align-items: center; padding: 14px 18px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; }
.litters .date { font-weight: 600; color: var(--brand); }
.litters .pair { color: var(--ink-soft); }
.litters .count { text-align: right; font-weight: 600; white-space: nowrap; }
@media (max-width: 640px) {
  .litters .litter { grid-template-columns: 1fr; gap: 4px; }
  .litters .count { text-align: left; }
}

/* Gallery: every 7th tile big, so a second gallery also gets a big tile */
.gallery .photo:nth-child(1) { grid-column: span 2; grid-row: span 2; }

/* Collapse the nav into the hamburger menu earlier: 7 items + a button do not fit below ~960px */
@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 72px; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0; padding: 10px 20px 20px;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav .fb { padding: 12px 0; }
  .nav .btn { margin-top: 12px; text-align: center; border: 0; }
}
