/* whatbreedismydog.com design system — loaded after style.css, overrides the Bootstrap theme */

:root {
  --wb-pine: #0e5a48;
  --wb-pine-deep: #093d31;
  --wb-pine-soft: #e3efe9;
  --wb-marigold: #f3b33c;
  --wb-marigold-soft: #fbe8c3;
  --wb-marigold-deep: #7a4e0d;
  --wb-bg: #f7faf8;
  --wb-surface: #ffffff;
  --wb-ink: #14251f;
  --wb-ink-soft: #44554b;
  --wb-line: #d8e4dd;
  --wb-radius: 16px;
  --wb-radius-lg: 26px;
  --wb-font: "Bricolage Grotesque", "DM Sans", system-ui, sans-serif;
  --wb-shadow: 0 1px 2px rgba(9, 61, 49, 0.06), 0 12px 32px -12px rgba(9, 61, 49, 0.18);
  --wb-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

body {
  font-family: var(--wb-font);
  background: var(--wb-bg);
  color: var(--wb-ink);
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--wb-font);
  color: var(--wb-ink);
  text-wrap: balance;
}

/* ---------- Nav ---------- */

.wb-nav {
  position: sticky;
  top: 0;
  z-index: 1020;
  background: rgba(247, 250, 248, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--wb-line);
}

.wb-nav-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0.7rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.wb-nav-logo img { height: 34px; width: auto; display: block; }

.wb-nav-links {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 1.4rem;
  list-style: none;
  padding: 0;
  margin-bottom: 0;
}

.wb-nav-links a {
  color: var(--wb-ink-soft);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 0.15s var(--wb-ease);
}

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

.wb-nav-cta {
  background: var(--wb-pine);
  color: #fff !important;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  transition: background 0.15s var(--wb-ease), transform 0.15s var(--wb-ease);
}

.wb-nav-cta:hover { background: var(--wb-pine-deep); transform: translateY(-1px); }

@media (max-width: 540px) {
  .wb-nav-links { gap: 0.9rem; }
  .wb-nav-links .wb-nav-plain { display: none; }
}

/* ---------- Buttons ---------- */

.wb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--wb-font);
  font-weight: 700;
  font-size: 1.02rem;
  line-height: 1;
  padding: 0.95rem 1.7rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.18s var(--wb-ease), box-shadow 0.18s var(--wb-ease),
    background 0.18s var(--wb-ease), color 0.18s var(--wb-ease);
}

.wb-btn:active { transform: scale(0.98); }

.wb-btn-primary {
  background: var(--wb-marigold);
  color: var(--wb-ink);
}

.wb-btn-primary:hover:not(:disabled) {
  background: #f6c05c;
  color: var(--wb-ink);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -10px rgba(243, 179, 60, 0.7);
}

.wb-btn-primary:disabled { opacity: 0.55; cursor: not-allowed; }

.wb-btn-pine { background: var(--wb-pine); color: #fff; }
.wb-btn-pine:hover { background: var(--wb-pine-deep); color: #fff; transform: translateY(-2px); }

.wb-btn-outline {
  background: transparent;
  color: var(--wb-pine);
  border-color: var(--wb-pine);
}

.wb-btn-outline:hover { background: var(--wb-pine-soft); color: var(--wb-pine-deep); }

/* ---------- Layout helpers ---------- */

.wb-container { max-width: 1140px; margin: 0 auto; padding: 0 1.25rem; }
.wb-section { padding: clamp(3rem, 8vw, 5.5rem) 0; }
.wb-section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.6rem;
}
.wb-section-sub {
  color: var(--wb-ink-soft);
  font-size: 1.05rem;
  max-width: 62ch;
}

/* ---------- Hero ---------- */

.wb-hero {
  background: var(--wb-pine);
  background: linear-gradient(160deg, #0f6350 0%, var(--wb-pine) 45%, var(--wb-pine-deep) 100%);
  color: #fff;
  padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(3.5rem, 8vw, 6rem);
  overflow: hidden;
}

.wb-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

@media (max-width: 900px) {
  .wb-hero-grid { grid-template-columns: 1fr; }
}

.wb-hero h1 {
  color: #fff;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 1rem;
}

.wb-hero h1 em {
  font-style: normal;
  color: var(--wb-marigold);
}

.wb-hero-sub {
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  line-height: 1.65;
  max-width: 52ch;
  margin-bottom: 1.8rem;
}

/* Upload card */

.wb-scan-card {
  background: var(--wb-surface);
  border-radius: var(--wb-radius-lg);
  padding: 1.1rem;
  box-shadow: var(--wb-shadow);
}

.wb-drop {
  display: block;
  border: 2px dashed var(--wb-line);
  border-radius: var(--wb-radius);
  background: var(--wb-bg);
  padding: 1.6rem 1.2rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.18s var(--wb-ease), background 0.18s var(--wb-ease);
}

.wb-drop:hover, .wb-drop.is-drag {
  border-color: var(--wb-pine);
  background: var(--wb-pine-soft);
}

.wb-drop input[type="file"] {
  position: absolute;
  width: 1px; height: 1px;
  opacity: 0;
  overflow: hidden;
}

.wb-drop-icon {
  width: 52px; height: 52px;
  margin: 0 auto 0.7rem;
  border-radius: 50%;
  background: var(--wb-pine-soft);
  color: var(--wb-pine);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.wb-drop-title { font-weight: 700; color: var(--wb-ink); margin-bottom: 0.2rem; }
.wb-drop-hint { color: var(--wb-ink-soft); font-size: 0.9rem; margin-bottom: 0; }

.wb-drop-preview {
  display: none;
  align-items: center;
  gap: 0.9rem;
  text-align: left;
}

.wb-drop.has-file .wb-drop-preview { display: flex; }
.wb-drop.has-file .wb-drop-empty { display: none; }

.wb-drop-preview img {
  width: 64px; height: 64px;
  object-fit: cover;
  border-radius: 12px;
}

.wb-drop-preview .wb-drop-title { word-break: break-all; }

.wb-scan-card .wb-btn { width: 100%; margin-top: 0.9rem; }

.wb-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.3rem;
  margin-top: 1.1rem;
  padding: 0;
  list-style: none;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
  font-weight: 500;
}

.wb-trust li::before {
  content: "✓";
  color: var(--wb-marigold);
  font-weight: 800;
  margin-right: 0.4rem;
}

/* Hero collage */

.wb-collage {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem;
}

.wb-collage figure {
  margin: 0;
  border-radius: var(--wb-radius);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 40px -18px rgba(0, 0, 0, 0.5);
}

.wb-collage img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
}

.wb-collage figure:nth-child(odd) { transform: translateY(1.2rem); }

.wb-collage figcaption {
  position: absolute;
}

@media (max-width: 900px) {
  .wb-collage { display: none; }
}

/* ---------- How it works ---------- */

.wb-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(1.2rem, 3vw, 2.5rem);
  margin-top: 2.2rem;
}

.wb-step { position: relative; padding-top: 0.4rem; }

.wb-step-num {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--wb-pine);
  opacity: 0.28;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.wb-step h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.4rem; }
.wb-step p { color: var(--wb-ink-soft); margin-bottom: 0; line-height: 1.6; }

/* ---------- Tips ---------- */

.wb-tips {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem 2.5rem;
  margin-top: 2rem;
}

.wb-tip {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  padding: 0.4rem 0;
}

.wb-tip-icon {
  flex: 0 0 auto;
  width: 42px; height: 42px;
  border-radius: 12px;
  background: var(--wb-pine-soft);
  color: var(--wb-pine);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
}

.wb-tip h3 { font-size: 1.02rem; font-weight: 700; margin-bottom: 0.2rem; }
.wb-tip p { color: var(--wb-ink-soft); font-size: 0.95rem; line-height: 1.6; margin-bottom: 0; }

/* ---------- Breed gallery ---------- */

.wb-breeds-band { background: var(--wb-pine-soft); }

.wb-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

/* Home strip: always a single row, horizontally scrollable when it overflows */
.wb-breeds {
  display: flex;
  gap: 0.9rem;
  margin-top: 2rem;
  overflow-x: auto;
  padding-bottom: 0.6rem;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-color: var(--wb-pine) transparent;
}

.wb-breeds .wb-breed {
  flex: 0 0 clamp(130px, 16vw, 168px);
  scroll-snap-align: start;
}

/* All-breeds page: wrapping grid */
.wb-breeds-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.9rem;
  margin-top: 2rem;
}

.wb-breed {
  border-radius: var(--wb-radius);
  overflow: hidden;
  background: var(--wb-surface);
  box-shadow: 0 6px 18px -10px rgba(9, 61, 49, 0.25);
  transition: transform 0.2s var(--wb-ease);
}

.wb-breed:hover { transform: translateY(-4px); }

.wb-breed img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.wb-breed figcaption {
  padding: 0.5rem 0.7rem 0.6rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--wb-ink);
}

/* ---------- FAQ ---------- */

.wb-faq { max-width: 760px; margin: 2rem auto 0; }

.wb-faq details {
  background: var(--wb-surface);
  border: 1px solid var(--wb-line);
  border-radius: var(--wb-radius);
  margin-bottom: 0.7rem;
  overflow: hidden;
}

.wb-faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1.05rem 3rem 1.05rem 1.25rem;
  font-weight: 700;
  font-size: 1rem;
  position: relative;
}

.wb-faq summary::-webkit-details-marker { display: none; }

.wb-faq summary::after {
  content: "+";
  position: absolute;
  right: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--wb-pine);
  transition: transform 0.2s var(--wb-ease);
}

.wb-faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }

.wb-faq details > div {
  padding: 0 1.25rem 1.15rem;
  color: var(--wb-ink-soft);
  line-height: 1.65;
}

/* ---------- Result page ---------- */

.wb-result-head { text-align: center; margin-bottom: 2.2rem; }

.wb-result-photo {
  width: 168px; height: 168px;
  object-fit: cover;
  border-radius: 50%;
  border: 5px solid var(--wb-surface);
  box-shadow: var(--wb-shadow);
  margin-bottom: 1rem;
}

.wb-match-top {
  display: grid;
  grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: center;
  background: var(--wb-surface);
  border-radius: var(--wb-radius-lg);
  box-shadow: var(--wb-shadow);
  padding: 1.4rem;
  margin-bottom: 1rem;
}

@media (max-width: 640px) {
  .wb-match-top { grid-template-columns: 1fr; }
}

.wb-match-top img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--wb-radius);
}

.wb-match-label {
  font-weight: 700;
  color: var(--wb-pine);
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
}

.wb-match-top h2 {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.8rem;
}

.wb-meter {
  height: 12px;
  border-radius: 999px;
  background: var(--wb-pine-soft);
  overflow: hidden;
  margin-bottom: 0.4rem;
}

.wb-meter span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--wb-pine);
}

.wb-meter-caption { color: var(--wb-ink-soft); font-size: 0.95rem; }

.wb-runners {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.wb-runner {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--wb-surface);
  border: 1px solid var(--wb-line);
  border-radius: var(--wb-radius);
  padding: 0.9rem;
}

.wb-runner img {
  width: 72px; height: 72px;
  object-fit: cover;
  border-radius: 12px;
  flex: 0 0 auto;
}

.wb-runner h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.35rem; }

.wb-runner .wb-meter { height: 8px; margin-bottom: 0.25rem; }

.wb-dna {
  background: var(--wb-marigold-soft);
  border-radius: var(--wb-radius-lg);
  padding: clamp(1.6rem, 4vw, 2.5rem);
  text-align: center;
  margin-bottom: 1.6rem;
}

.wb-dna h2 { font-size: clamp(1.3rem, 3vw, 1.7rem); font-weight: 800; margin-bottom: 0.6rem; }

.wb-dna p {
  color: var(--wb-ink-soft);
  max-width: 58ch;
  margin: 0 auto 1.3rem;
  line-height: 1.65;
}

/* ---------- Ad gate ---------- */

.wb-gate {
  max-width: 520px;
  margin: 0 auto;
  background: var(--wb-surface);
  border-radius: var(--wb-radius-lg);
  box-shadow: var(--wb-shadow);
  padding: clamp(1.8rem, 5vw, 2.8rem);
  text-align: center;
}

.wb-gate h1 { font-size: clamp(1.5rem, 4vw, 1.9rem); font-weight: 800; margin-bottom: 0.6rem; }
.wb-gate p { color: var(--wb-ink-soft); margin-bottom: 1.4rem; }

/* ---------- Footer ---------- */

.wb-footer {
  background: var(--wb-pine-deep);
  color: rgba(255, 255, 255, 0.8);
  padding: 2.2rem 0;
  margin-top: auto;
}

.wb-footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
  justify-content: space-between;
  font-size: 0.92rem;
}

.wb-footer img { height: 30px; }

.wb-footer a { color: #fff; text-decoration: none; font-weight: 600; }
.wb-footer a:hover { color: var(--wb-marigold); }

/* ---------- Motion ---------- */

.wb-rise {
  animation: wb-rise 0.7s var(--wb-ease) both;
}

.wb-rise-late { animation-delay: 0.12s; }

@keyframes wb-rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .wb-rise, .wb-rise-late { animation: none; }
  .wb-btn, .wb-breed, .wb-nav-cta { transition: none; }
}
