/* ------------------------------------------------------------------
   Karma Portuguese Water Dogs
   Palette taken from the logo: deep navy through to bright blue, set
   on a warm sand ground that echoes the beach photography.
   ------------------------------------------------------------------ */

:root {
  --navy-900: #06223d;
  --navy-800: #0b2f52;
  --blue-600: #1b7bc4;
  --blue-500: #2f93dd;
  --blue-050: #eaf3fb;

  --ink: #16202b;
  --muted: #5c6b7a;
  --rule: #e4ded4;
  --sand: #faf7f2;
  --paper: #fff;

  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --wrap: 1140px;
  --gap: clamp(1.5rem, 4vw, 3rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-600); }
a:hover { color: var(--navy-800); }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1.1em; }

.wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.skip {
  position: absolute; left: -9999px; z-index: 100;
  background: var(--navy-900); color: #fff; padding: 0.75rem 1rem;
}
.skip:focus { left: 1rem; top: 1rem; }
:focus-visible { outline: 3px solid var(--blue-500); outline-offset: 2px; }

/* ---------- header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--rule);
}
.header-inner { display: flex; align-items: center; gap: 1rem; min-height: 76px; }

.brand {
  display: flex; align-items: center; gap: 0.7rem;
  text-decoration: none; color: inherit; margin-right: auto;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.45rem; font-weight: 700;
  letter-spacing: 0.02em; color: var(--navy-900);
}
.brand-sub {
  font-size: 0.66rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--muted);
}

.nav ul { display: flex; gap: 0.35rem; list-style: none; margin: 0; padding: 0; }
.nav a {
  display: block; padding: 0.5rem 0.7rem; border-radius: 6px;
  font-size: 0.9rem; font-weight: 500; text-decoration: none; color: var(--ink);
}
.nav a:hover { background: var(--blue-050); color: var(--navy-800); }
.nav a[aria-current="page"] { color: var(--blue-600); background: var(--blue-050); }

.nav-toggle {
  display: none; cursor: pointer; padding: 0.6rem;
  background: none; border: 1px solid var(--rule); border-radius: 8px;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block; width: 20px; height: 2px; background: var(--ink); content: "";
}
.nav-toggle-bars::before { transform: translateY(-6px); }
.nav-toggle-bars::after { transform: translateY(4px); }

/* ---------- hero ---------- */

.hero {
  position: relative; overflow: hidden;
  min-height: clamp(430px, 68vh, 640px);
  display: flex; align-items: flex-end;
}
.hero img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 62%;
}
/* Two scrims: one up from the base, one in from the left. The hero photo is
   bright sea and sand, so text needs the horizontal one to stay legible. */
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(
      to top,
      rgba(4, 20, 36, 0.90) 0%,
      rgba(4, 20, 36, 0.58) 45%,
      rgba(4, 20, 36, 0.18) 80%
    ),
    linear-gradient(
      to right,
      rgba(4, 20, 36, 0.55) 0%,
      rgba(4, 20, 36, 0.10) 55%,
      rgba(4, 20, 36, 0) 100%
    );
}
.hero-body {
  position: relative; z-index: 2; color: #fff; max-width: 44rem;
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
}
.hero h1 { color: #fff; text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35); }
.hero-tagline {
  margin: 0 0 1rem; font-weight: 600; font-size: 0.82rem;
  letter-spacing: 0.22em; text-transform: uppercase;
  /* Brand blue is unreadable against the sea; lift it well clear of the photo. */
  color: #a9d6f7;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.65);
}
.hero-lede {
  font-size: 1.15rem; max-width: 34rem;
  color: rgba(255, 255, 255, 0.92); margin-bottom: 1.75rem;
}

.btn {
  display: inline-block; padding: 0.8rem 1.5rem; border-radius: 8px;
  font-weight: 600; font-size: 0.95rem;
  text-decoration: none; border: 2px solid transparent;
}
.btn-primary { background: var(--blue-600); color: #fff; }
.btn-primary:hover { background: var(--blue-500); color: #fff; }
.btn-ghost { border-color: rgba(255, 255, 255, 0.55); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); color: #fff; border-color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ---------- sections ---------- */

.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section-sand { background: var(--sand); border-block: 1px solid var(--rule); }
.section-navy { background: var(--navy-900); color: rgba(255, 255, 255, 0.88); }
.section-navy h2 { color: #fff; }

.eyebrow {
  margin: 0 0 0.75rem; font-weight: 700; font-size: 0.75rem;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--blue-600);
}
.measure { max-width: 38rem; }
.lede { font-size: 1.15rem; color: var(--muted); }

/* ---------- the Buddha quote ---------- */

.quote {
  margin: 0; padding-left: 1.5rem;
  border-left: 3px solid var(--blue-600);
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-style: italic; line-height: 1.55; color: var(--navy-800);
}
.quote cite {
  display: block; margin-top: 0.9rem;
  font-size: 0.85rem; font-style: normal;
  letter-spacing: 0.06em; color: var(--muted);
}

/* ---------- cards ---------- */

.grid { display: grid; gap: var(--gap); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }

.card {
  background: var(--paper); border: 1px solid var(--rule);
  border-radius: 12px; padding: 1.6rem;
}
.card h3 { margin-bottom: 0.4rem; color: var(--navy-800); }
.card p { margin: 0; color: var(--muted); font-size: 0.97rem; }

/* ---------- split ---------- */

.split {
  display: grid; gap: var(--gap); align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
}
/* Hairline keeps pale photos (beach, sky) from dissolving into the sand
   section background, which has almost the same value. */
.split img { border-radius: 12px; border: 1px solid var(--rule); }

/* ---------- litter / newsletter band ---------- */

.litter-badge {
  display: inline-block; margin-bottom: 1rem;
  padding: 0.35rem 0.85rem; border-radius: 100px;
  background: var(--blue-600); color: #fff; font-weight: 700;
  font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
}
.subscribe { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.5rem; max-width: 30rem; }
.subscribe input[type="email"] {
  flex: 1 1 15rem; padding: 0.8rem 1rem; font: inherit; font-size: 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.28); border-radius: 8px;
  background: rgba(255, 255, 255, 0.08); color: #fff;
}
.subscribe input::placeholder { color: rgba(255, 255, 255, 0.55); }
.subscribe button {
  padding: 0.8rem 1.5rem; font: inherit; font-weight: 600; font-size: 0.95rem;
  border: 0; border-radius: 8px; background: var(--blue-600); color: #fff; cursor: pointer;
}
.subscribe button:hover { background: var(--blue-500); }
.fineprint { margin: 0.9rem 0 0; font-size: 0.85rem; color: rgba(255, 255, 255, 0.6); }

/* ---------- photo strip ---------- */

.strip { display: grid; gap: 0.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }
.strip img { aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; }

/* ---------- footer ---------- */

.site-footer { background: var(--navy-900); color: rgba(255, 255, 255, 0.72); padding-top: 3.5rem; }
.footer-grid { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
.site-footer h2 {
  margin-bottom: 0.9rem; color: #fff; font-size: 0.78rem;
  letter-spacing: 0.18em; text-transform: uppercase;
}
.site-footer a { color: rgba(255, 255, 255, 0.78); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.plain { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; font-size: 0.95rem; }
.footer-tagline {
  margin-top: 1rem; font-family: var(--font-display);
  font-style: italic; color: rgba(255, 255, 255, 0.7);
}
.footer-legal { margin-top: 3rem; padding-block: 1.5rem; border-top: 1px solid rgba(255, 255, 255, 0.12); }
.footer-legal p { margin: 0; font-size: 0.85rem; color: rgba(255, 255, 255, 0.5); }

/* ---------- responsive ---------- */

/* Nine nav items need ~890px alongside the brand mark, so the menu has to
   collapse well before tablet width or it overflows between ~860 and ~920px. */
@media (max-width: 1000px) {
  .header-inner { position: relative; }
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--paper); border-bottom: 1px solid var(--rule);
    padding: 0.75rem 1.25rem 1.25rem;
  }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; gap: 0.15rem; }
  .nav a { padding: 0.7rem 0.5rem; font-size: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

/* ==================================================================
   Interior pages
   ================================================================== */

/* ---------- page head ---------- */

.page-head {
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.85);
  padding-block: clamp(2.5rem, 6vw, 4rem);
}
.page-head h1 { color: #fff; margin-bottom: 0.3em; }
.page-head .eyebrow { color: #a9d6f7; }
.page-head p { margin: 0; max-width: 44rem; color: rgba(255, 255, 255, 0.78); }

/* ---------- long-form text ---------- */

.prose { max-width: 40rem; }
.prose h2 { margin-top: 2.2em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.8em; color: var(--navy-800); }
.prose ul { padding-left: 1.2rem; margin: 0 0 1.2em; }
.prose li { margin-bottom: 0.4em; }
.prose > img { border-radius: 12px; margin-block: 2rem; }

/* ---------- dog profiles ---------- */

.dog {
  display: grid; gap: var(--gap); align-items: start;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  padding-block: clamp(2rem, 5vw, 3.5rem);
  border-top: 1px solid var(--rule);
}
.dog:first-of-type { border-top: 0; padding-top: 0; }
.dog-photo { border-radius: 12px; aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.dog-name {
  font-family: var(--font-display); font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--navy-900); margin: 0 0 0.15em; letter-spacing: 0.01em;
}
.dog-registered {
  font-size: 0.95rem; color: var(--blue-600);
  font-weight: 600; margin: 0 0 1rem;
}
.dog-honours { list-style: none; margin: 0 0 1.2rem; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.dog-honours li {
  background: var(--blue-050); color: var(--navy-800);
  border-radius: 100px; padding: 0.25rem 0.75rem;
  font-size: 0.78rem; font-weight: 600;
}

/* ---------- testimonials ---------- */

.testimonial {
  background: var(--paper); border: 1px solid var(--rule);
  border-radius: 12px; padding: clamp(1.4rem, 3vw, 2rem);
  margin-bottom: 1.25rem; break-inside: avoid;
}
.testimonial p { margin: 0 0 1em; }
.testimonial p:last-of-type { margin-bottom: 0; }
.testimonial footer {
  margin-top: 1.1rem; padding-top: 0.9rem;
  border-top: 1px solid var(--rule);
  font-size: 0.9rem; font-weight: 600; color: var(--navy-800);
}

/* ---------- service lists (breeding page) ---------- */

.service {
  border: 1px solid var(--rule); border-radius: 12px;
  padding: 1.5rem; background: var(--paper);
}
.service h3 { margin-top: 0; margin-bottom: 0.7rem; color: var(--navy-800); }
.service ul { margin: 0; padding-left: 1.1rem; }
.service li { margin-bottom: 0.35em; font-size: 0.97rem; color: var(--muted); }

.ticks { list-style: none; margin: 0 0 1.5em; padding: 0; }
.ticks li { position: relative; padding-left: 1.75rem; margin-bottom: 0.5em; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 0.55em;
  width: 0.7rem; height: 0.38rem;
  border-left: 2.5px solid var(--blue-600);
  border-bottom: 2.5px solid var(--blue-600);
  transform: rotate(-45deg);
}

/* ---------- contact / detail rows ---------- */

.detail-list { list-style: none; margin: 0; padding: 0; }
.detail-list li { margin-bottom: 1.1rem; }
.detail-list dt,
.detail-label {
  display: block; font-size: 0.72rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 0.2rem;
}
.detail-value { font-size: 1.1rem; color: var(--navy-800); }

/* ---------- resources ---------- */

.resource {
  display: block; padding: 1.1rem 1.3rem;
  border: 1px solid var(--rule); border-radius: 10px;
  margin-bottom: 0.7rem; text-decoration: none; background: var(--paper);
}
.resource:hover { border-color: var(--blue-500); background: var(--blue-050); }
.resource strong { display: block; color: var(--navy-800); font-size: 1.05rem; }
.resource span { font-size: 0.9rem; color: var(--muted); }

/* ---------- forms ---------- */

.form-field { margin-bottom: 1.1rem; }
.form-field label {
  display: block; margin-bottom: 0.35rem;
  font-size: 0.9rem; font-weight: 600; color: var(--navy-800);
}
.form-field input,
.form-field textarea,
.form-field select {
  width: 100%; padding: 0.7rem 0.9rem; font: inherit; font-size: 1rem;
  border: 1px solid var(--rule); border-radius: 8px; background: var(--paper); color: var(--ink);
}
.form-field textarea { min-height: 9rem; resize: vertical; }
.form-field input:focus, .form-field textarea:focus { border-color: var(--blue-500); }
.form-note { font-size: 0.88rem; color: var(--muted); }

/* ---------- editorial placeholder, removed before launch ---------- */

.todo {
  border: 1px dashed #c9a227; background: #fdf8e6;
  border-radius: 8px; padding: 1rem 1.2rem; margin-bottom: 1.25rem;
  font-size: 0.92rem; color: #6b5200;
}
.todo strong { color: #6b5200; }

/* ==================================================================
   Our Dogs — "elegant like Westminster"
   Restrained and formal: hairline rules, letterspaced small caps for
   titles, serif names. Deliberately no coloured pills or soft shadows.
   ================================================================== */

.dogs-statement {
  max-width: 44rem;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  line-height: 1.5;
  color: var(--navy-800);
}

.rule-mark {
  display: flex; align-items: center; gap: 1rem;
  margin: 3.5rem 0 2.5rem;
}
.rule-mark::before,
.rule-mark::after { content: ""; height: 1px; background: var(--rule); flex: 1; }
.rule-mark span {
  font-size: 0.72rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--muted); white-space: nowrap;
}

/* ---------- portrait cards ---------- */

/* Flex, not grid: the roster grows as Anat adds dogs, and a grid strands the
   remainder on a left-aligned final row (4 dogs gave 3 + 1). Wrapping flex with
   justify-content:center keeps any count balanced — 5 reads as 3 + 2, centred. */
.karma-dogs {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: clamp(2rem, 4vw, 3rem);
}

.karma-card { flex: 0 1 16rem; max-width: 17rem; text-align: center; }

.karma-card-photo {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  border: 1px solid var(--rule);
  background: var(--sand);
}

/* Empty frame, until Anat sends photos labelled with names. */
.karma-card-frame {
  width: 100%; aspect-ratio: 4 / 5;
  border: 1px solid var(--rule); background: var(--sand);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 0.8rem;
  letter-spacing: 0.14em; text-transform: uppercase;
}

.karma-card-name {
  font-family: var(--font-display);
  font-size: 1.75rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--navy-900);
  margin: 1.25rem 0 0.4rem;
}

.karma-card-name::after {
  content: ""; display: block;
  width: 2.5rem; height: 1px; background: var(--blue-600);
  margin: 0.7rem auto 0;
}

.karma-card-reg {
  font-family: var(--font-display); font-style: italic;
  font-size: 0.98rem; color: var(--navy-800);
  margin: 0.9rem 0 0.5rem;
}

.karma-card-titles {
  list-style: none; margin: 0 0 0.9rem; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center;
  font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted);
}
.karma-card-titles li + li::before {
  content: "\00b7"; margin: 0 0.5rem; color: var(--rule);
}

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

/* ---------- foundation dogs ---------- */

.foundation {
  padding-block: 2rem;
  border-top: 1px solid var(--rule);
}
.foundation:first-of-type { border-top: 0; }
.foundation h3 {
  font-family: var(--font-display);
  font-size: 1.45rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--navy-900); margin-bottom: 0.3rem;
}
.foundation .dog-registered {
  font-family: var(--font-display); font-style: italic;
  font-weight: 400; font-size: 1rem; color: var(--navy-800);
}

/* ==================================================================
   Members area
   ================================================================== */

.alert, .notice {
  border-radius: 10px; padding: 1rem 1.2rem; margin-bottom: 1.5rem;
  font-size: 0.95rem; line-height: 1.55;
}
.alert  { background: #fdf3f2; border: 1px solid #e6c3bf; color: #7d2a20; }
.notice { background: #eef7ef; border: 1px solid #bcdcc2; color: #1f5b2c; }

/* The unencrypted-connection warning. Deliberately loud — it is the difference
   between a password being private and being readable on the wire. */
.alert-hard {
  border-radius: 0; margin: 0; border-inline: 0;
  background: #7d2a20; border-color: #7d2a20; color: #fff;
  text-align: center;
}
.alert-hard strong { color: #ffd9d4; }

.mini-btn {
  font: inherit; font-size: 0.85rem; font-weight: 600;
  padding: 0.4rem 0.9rem; margin-right: 0.4rem;
  border: 1px solid var(--rule); border-radius: 6px;
  background: var(--paper); color: var(--navy-800); cursor: pointer;
}
.mini-btn:hover { border-color: var(--blue-500); background: var(--blue-050); }

.request {
  display: flex; flex-wrap: wrap; gap: 1rem; align-items: start;
  justify-content: space-between;
  border: 1px solid var(--rule); border-radius: 12px;
  padding: 1.4rem; margin-bottom: 1rem;
}
.request h3 { margin: 0 0 0.2rem; color: var(--navy-800); }
.request-meta  { margin: 0 0 0.6rem; font-size: 0.88rem; color: var(--muted); }
.request-about { margin: 0; font-size: 0.97rem; }
.request-actions { flex-shrink: 0; }

.member-table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
.member-table th {
  text-align: left; padding: 0.6rem 0.8rem;
  border-bottom: 2px solid var(--rule);
  font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}
.member-table td { padding: 0.7rem 0.8rem; border-bottom: 1px solid var(--rule); }

.tag {
  display: inline-block; padding: 0.1rem 0.5rem; border-radius: 100px;
  background: var(--blue-050); color: var(--navy-800);
  font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700;
}
