@font-face { font-family: "Fredoka"; font-weight: 600; font-display: swap; src: url("fonts/fredoka-600.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 400; font-display: swap; src: url("fonts/nunito-400.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 700; font-display: swap; src: url("fonts/nunito-700.woff2") format("woff2"); }

:root {
  --pink: #ee6fa6;        /* logo banner */
  --pink-dark: #d9558f;
  --cloud: #fbd5db;       /* logo cloud */
  --peach: #fdeee7;       /* logo lower panel */
  --bg: #fffaf7;
  --ink: #2b2825;
  --muted: #7a716b;
  --brown: #b8794f;       /* beagle */
  --line: rgba(43,40,37,.08);
  --r: 20px;
  --shadow: 0 2px 6px rgba(43,40,37,.06), 0 16px 40px -20px rgba(43,40,37,.25);
  --head: "Fredoka", "Nunito", system-ui, sans-serif;
  --body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.65 var(--body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--pink-dark); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--pink); }
h1, h2, h3 { font-family: var(--head); font-weight: 600; line-height: 1.12; margin: 0 0 .5em; letter-spacing: .005em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.center { text-align: center; }
.lead { font-size: 1.15rem; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* Buttons */
.btn {
  display: inline-block; padding: 13px 24px; border-radius: 999px; font-weight: 700; text-decoration: none;
  color: #fff; background: var(--pink); box-shadow: 0 6px 18px -8px var(--pink-dark);
  transition: transform .15s, background .15s;
}
.btn:hover { background: var(--pink-dark); color: #fff; transform: translateY(-1px); }
.btn-light { color: var(--pink-dark); background: #fff; box-shadow: inset 0 0 0 2px var(--pink); }
.btn-light:hover { background: var(--pink); color: #fff; }
.btns { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }

/* Header */
.site-head {
  position: sticky; top: 0; z-index: 40; background: rgba(255,250,247,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; gap: 16px; padding: 10px 24px;
}
.contact-logo { width: min(70vw, 340px); height: auto; margin: 0 auto 20px; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; align-items: center; }
.nav a, .sub-toggle {
  display: block; padding: 10px 13px; border-radius: 999px; text-decoration: none; color: var(--ink);
  font-weight: 700; font-size: .95rem; border: 0; background: none; font-family: inherit; cursor: pointer;
}
.nav a:hover, .sub-toggle:hover { background: var(--cloud); color: var(--ink); }
.nav a.on, .sub-toggle.on { background: var(--pink); color: #fff; }
.has-sub { position: relative; }
.has-sub::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 10px; }
.nav .sub { position: absolute; top: 100%; left: 0; min-width: 190px; margin: 6px 0 0; padding: 8px; list-style: none;
  background: #fff; border-radius: 16px; box-shadow: var(--shadow); border: 1px solid var(--line); display: none; }
.nav .has-sub.open .sub, .nav .has-sub:hover .sub { display: block; }
.nav .sub a { border-radius: 10px; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: none; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; height: 3px; margin: 6px 0; background: var(--ink); border-radius: 3px; }

/* Hero: content-width bound, height from content, image sized against the text block */
.hero {
  padding: 48px 6vw 56px; overflow: hidden;
  background:
    radial-gradient(60% 70% at 18% 30%, var(--cloud) 0 60%, transparent 61%),
    radial-gradient(45% 60% at 50% 85%, var(--cloud) 0 60%, transparent 61%),
    radial-gradient(35% 45% at 42% 10%, var(--cloud) 0 60%, transparent 61%),
    var(--peach);
}
.hero-inner { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: clamp(32px, 5vw, 72px); }
.hero-text { max-width: 560px; }
.hero-logo { display: none; }
.hero-img { position: relative; width: 100%; max-width: 440px; justify-self: end; }
.hero-img::before { content: ""; position: absolute; inset: 16px -16px -16px 16px; background: var(--pink); opacity: .35; border-radius: 42% 58% 52% 48% / 48% 42% 58% 52%; }
.hero-img img { position: relative; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 42% 58% 52% 48% / 48% 42% 58% 52%; box-shadow: var(--shadow); }
.hero-sm { padding: 40px 6vw 44px; }
.hero-sm .hero-img { max-width: 360px; }
.hero-sm .hero-img img { aspect-ratio: 5/4; }
/* one staggered reveal on load */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hero-text > * { animation: rise .55s cubic-bezier(.2,.7,.2,1) both; }
.hero-text > :nth-child(2) { animation-delay: .08s; }
.hero-text > :nth-child(3) { animation-delay: .16s; }
.hero-text > :nth-child(4) { animation-delay: .24s; }
.hero-img { animation: rise .7s cubic-bezier(.2,.7,.2,1) .12s both; }

/* Sections */
.section { padding: 64px 6vw; }
.section.peach { background: var(--peach); }
.section.dogs { padding-top: 40px; }
.wrap { max-width: 1120px; margin: 0 auto; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.rounded { border-radius: var(--r); box-shadow: var(--shadow); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.prose { max-width: 760px; }
.prose.narrow { margin: 32px auto 0; }
.prose.center { margin: 0 auto; }
.prose h2 { margin-top: .2em; }
.prose h3 { margin-top: 1.6em; }
ol.steps { counter-reset: s; list-style: none; padding: 0; margin: 0 0 1.2em; }
ol.steps li { position: relative; padding: 0 0 14px 52px; counter-increment: s; }
ol.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50%;
  background: var(--pink); color: #fff; font: 600 1.05rem var(--head); display: grid; place-items: center; }
ul.checks { list-style: none; padding: 0; margin: 0 0 1.2em; }
ul.checks li { position: relative; padding: 0 0 10px 34px; }
ul.checks li::before { content: "✓"; position: absolute; left: 4px; top: 0; color: var(--pink-dark); font-weight: 700; }

/* Team */
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.person { background: #fff; border-radius: var(--r); box-shadow: var(--shadow); padding: 20px; text-align: center; }
.person img { width: 160px; height: 160px; object-fit: cover; border-radius: 50%; margin: 0 auto 14px; border: 6px solid var(--cloud); }
.person p { margin: 0; color: var(--muted); font-size: .98rem; }

/* Help cards */
.helps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.help { display: grid; grid-template-columns: 150px 1fr; gap: 20px; background: #fff; border-radius: var(--r); box-shadow: var(--shadow); padding: 20px; align-items: start; }
.help img { width: 150px; height: 150px; object-fit: cover; border-radius: 16px; }
.help .icon { width: 150px; height: 150px; border-radius: 16px; background: var(--cloud); display: grid; place-items: center; font-size: 54px; color: var(--pink-dark); }
.help h3 { margin-top: 4px; }
.help p:last-child { margin-bottom: 0; }

/* Teasers + social tiles + homed */
.teasers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 28px; }
.teaser { position: relative; display: block; border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); text-decoration: none; aspect-ratio: 1; }
.teaser img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.teaser:hover img { transform: scale(1.04); }
.teaser span { position: absolute; left: 14px; bottom: 12px; background: rgba(255,255,255,.92); color: var(--ink); padding: 6px 14px; border-radius: 999px; font: 600 1.05rem var(--head); }
.social-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: 900px; margin: 0 auto; }
.tile { position: relative; display: block; border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4/3; text-decoration: none; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.tile:hover img { transform: scale(1.04); }
.tile span { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); background: var(--pink); color: #fff; padding: 8px 18px; border-radius: 999px; font: 600 1.05rem var(--head); }
.homed { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 18px; margin-top: 28px; }
.homed figure { margin: 0; background: #fff; border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); }
.homed img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.homed figcaption { padding: 10px; text-align: center; font: 600 1.1rem var(--head); }

/* Dog cards */
.dog { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px; background: #fff; border-radius: var(--r); box-shadow: var(--shadow); padding: 24px; margin-bottom: 28px; scroll-margin-top: 110px; }
.dog-media { position: relative; }
.dog-main { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 16px; overflow: hidden; }
.dog-main img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.thumbs { display: flex; gap: 8px; margin-top: 8px; }
.thumbs .thumb { flex: 1; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 10px; overflow: hidden; }
.thumbs img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.ribbon { position: absolute; z-index: 2; top: 12px; left: 12px; background: var(--brown); color: #fff; padding: 6px 14px; border-radius: 999px; font: 600 .95rem var(--head); box-shadow: var(--shadow); }
.dog h2 { margin-bottom: .2em; }
.dog-sub { color: var(--brown); font-weight: 700; margin-bottom: .6em; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; margin: 0 0 18px; padding: 0; }
.facts div { background: var(--peach); border-radius: 12px; padding: 8px 12px; }
.facts dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.facts dd { margin: 0; font-weight: 700; }
.dog p { font-size: 1rem; }

/* Lightbox */
.lb { position: fixed; inset: 0; z-index: 60; background: rgba(20,16,14,.94); display: flex; align-items: center; justify-content: center; }
.lb[hidden] { display: none; }
.lb img { max-width: 96vw; max-height: 92vh; object-fit: contain; border-radius: 8px; }
.lb button { position: absolute; border: 0; cursor: pointer; color: #fff; background: rgba(255,255,255,.12); border-radius: 50%; width: 48px; height: 48px; font-size: 26px; display: grid; place-items: center; }
.lb .x { top: 16px; right: 16px; }
.lb .p { left: 16px; top: 50%; transform: translateY(-50%); }
.lb .n { right: 16px; top: 50%; transform: translateY(-50%); }

/* Footer */
.site-foot { background: var(--peach); padding: 40px 6vw 24px; margin-top: 24px; border-top: 1px solid var(--line); }
.foot-inner { max-width: 1120px; margin: 0 auto; display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.copy { max-width: 1120px; margin: 24px auto 0; color: var(--muted); font-size: .9rem; }

@media (max-width: 900px) {
  /* no header bar on phones: floating hamburger + full-screen menu */
  .site-head { position: static; background: none; border: 0; padding: 0; height: 0; backdrop-filter: none; }
  .nav-toggle { display: flex; flex-direction: column; justify-content: center; align-items: center; position: fixed; top: 14px; right: 14px; z-index: 70; width: 52px; height: 52px; padding: 0;
    border-radius: 50%; background: #fff; box-shadow: var(--shadow); transition: transform .2s; }
  .nav-toggle span { width: 22px; height: 3px; margin: 2.5px 0; transform-origin: center; transition: transform .2s, opacity .2s; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .nav { display: none; position: fixed; inset: 0; z-index: 65; background: var(--peach); padding: 84px 22px 32px; overflow: auto; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 4px; }
  .nav a, .sub-toggle { width: 100%; text-align: left; border-radius: 14px; font-size: 1.25rem; padding: 14px 16px; }
  .nav .sub { position: static; box-shadow: none; border: 0; padding: 0 0 0 18px; margin: 0; background: none; }
  .nav .has-sub:hover .sub { display: none; }
  .nav .has-sub.open .sub { display: block; }
  .has-sub::after { display: none; }

  .hero { padding: 72px 5vw 36px; }
  .hero-inner, .two { grid-template-columns: 1fr; gap: 0; }
  .hero-img { display: none; }
  .hero-text { max-width: none; text-align: center; }
  .hero-logo { display: block; width: min(60vw, 230px); height: auto; margin: 0 auto 8px; }
  .btns { justify-content: center; }
  .dog-main img { aspect-ratio: 16/10; }
  .facts { grid-template-columns: 1fr 1fr; }
  .two { gap: 28px; }
  .team, .helps, .teasers, .social-tiles { grid-template-columns: 1fr 1fr; }
  .dog { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .team, .helps, .social-tiles { grid-template-columns: 1fr; }
  .teasers { grid-template-columns: 1fr 1fr; gap: 12px; }
  .help { grid-template-columns: 1fr; }
  .help img, .help .icon { width: 100%; height: 180px; }
  .section { padding: 36px 5vw; }
  h1 { font-size: 2rem; }
  .lead { font-size: 1.05rem; }
  .dog { padding: 16px; gap: 18px; }
}
