:root {
  color-scheme: light;
  --hzp-bg: #f4f7fb;
  --hzp-primary: #2f6fed;
  --hzp-primary-dark: #2458bf;
  --hzp-text: #1d2736;
  --hzp-muted: #5f6b7a;
  --hzp-danger: #b42318;
  --hzp-danger-bg: #fff2f2;
  --hzp-success: #0f7b56;
  --hzp-success-bg: #ebfff7;
}

html {
  scroll-behavior: smooth;
  background: var(--hzp-bg);
}

body {
  background: var(--hzp-bg);
  color: var(--hzp-text);
  font-family: "Segoe UI", Roboto, Inter, Arial, sans-serif;
}

/* Neutralize OS dark-mode override — this site is light-only */
@media (prefers-color-scheme: dark) {
  body, .page-section, .section-deny, .section-affirm {
    background-color: var(--hzp-bg);
    color: var(--hzp-text);
  }
  .section-deny { background-color: #fff8f8; }
  .section-affirm { background-color: #f4f8ff; }
  .content-card, .declaration-card, .form-card {
    background: #fff;
    color: var(--hzp-text);
  }
  .text-muted { color: var(--hzp-muted) !important; }
  fieldset, .dog-form fieldset label, select, input {
    background: #f4f8ff;
    color: var(--hzp-text);
    border-color: #bfd1ee;
  }
  .instagram-placeholder { background: #f4f8ff; }
  .footer { background: #fff; color: var(--hzp-text); }
}

.section-heading,
.masthead-heading,
.navbar-brand {
  font-family: 'Montserrat', "Segoe UI", Arial, sans-serif;
}

#mainNav {
  background: rgba(26, 30, 38, 0.15);
  backdrop-filter: blur(4px);
  transition: background 0.3s, box-shadow 0.3s;
}

#mainNav.scrolled {
  background: rgba(18, 22, 30, 0.97);
  box-shadow: 0 2px 16px rgba(0,0,0,0.35);
}

#mainNav .navbar-brand {
  letter-spacing: 0.03em;
}

#mainNav .nav-link {
  color: #f8f9fa;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.07em;
}

#mainNav .nav-link:hover {
  color: var(--hzp-primary);
}

.masthead {
  padding-top: 12rem;
  padding-bottom: 8rem;
  text-align: center;
  color: #fff;
  background-image: linear-gradient(rgba(15, 20, 30, 0.72), rgba(15, 20, 30, 0.72)), url("huragan.jpg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
}

.masthead-subheading {
  font-size: 1.3rem;
  font-style: italic;
  margin-bottom: 0.8rem;
}

.masthead-heading {
  font-size: clamp(2rem, 3vw + 1rem, 3.6rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.75rem;
}

.scroll-chevron {
  position: absolute;
  bottom: 1.8rem;
  left: 50%;
  transform: translateX(-50%);
  width: 2.4rem;
  height: 2.4rem;
  border: 2px solid rgba(255,255,255,0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 1.2rem;
  line-height: 1;
  animation: bounce 2s ease-in-out infinite;
  transition: border-color 0.2s, color 0.2s;
}

.scroll-chevron::after {
  content: '▾';
}

.scroll-chevron:hover {
  border-color: #fff;
  color: #fff;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

.section-icon {
  font-size: 3rem;
  line-height: 1;
  margin-bottom: 1rem;
  display: block;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.12));
}

.btn-xl {
  padding: 1rem 1.6rem;
  font-size: 0.95rem;
  font-weight: 800;
  border-radius: 999px;
  letter-spacing: 0.06em;
}

.btn-primary {
  --bs-btn-bg: var(--hzp-primary);
  --bs-btn-border-color: var(--hzp-primary);
  --bs-btn-hover-bg: var(--hzp-primary-dark);
  --bs-btn-hover-border-color: var(--hzp-primary-dark);
}

.page-section {
  padding: 5rem 0;
}

.section-heading {
  font-size: 2rem;
  font-weight: 800;
}

.content-card {
  width: min(100%, 940px);
  background: #ffffff;
  border: 1px solid #dbe4f2;
  border-radius: 18px;
  padding: 1.25rem;
  box-shadow: 0 12px 35px rgba(24, 46, 84, 0.08);
}

.form-card {
  width: min(100%, 760px);
}

.evidence-frame {
  background: #f8fbff;
  border: 2px solid #c7daf8;
  border-radius: 14px;
  padding: 0.7rem;
  box-shadow: inset 0 0 0 3px #eaf2ff;
  position: relative;
}

.evidence-label {
  margin: 0 0 0.55rem;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #315085;
}

.dog-photo {
  width: 100%;
  max-height: 780px;
  object-fit: contain;
  background: #f1f6ff;
  border-radius: 12px;
  border: 1px solid #c7daf8;
  animation: dogEntrance 650ms ease-out both;
}

.evidence-name {
  margin: 0.55rem 0 0;
  font-weight: 700;
  color: #27406b;
}

.caption {
  font-style: italic;
  color: #495a73;
}

.declaration-card {
  width: min(100%, 680px);
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(24, 46, 84, 0.10);
  padding: 2.75rem 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.declaration-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
}

.declaration-card--deny::before {
  background: #e53e3e;
}

.declaration-card--affirm::before {
  background: var(--hzp-primary);
}

.declaration-emoji {
  font-size: 4.5rem;
  line-height: 1;
  display: block;
  margin-bottom: 1.25rem;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.12));
}

.declaration-body {
  max-width: 520px;
  margin: 0 auto;
}

.section-deny {
  background: #fff8f8;
}

.section-affirm {
  background: #f4f8ff;
}

.coffee-card {
  width: min(100%, 560px);
  background: #fffbf0;
  border: 2px solid #f6d860;
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 4px 20px rgba(246, 180, 0, 0.12);
}

.coffee-emoji {
  font-size: 3rem;
  display: block;
  margin-bottom: 0.75rem;
}

.coffee-text {
  font-style: italic;
  color: var(--hzp-muted);
  margin-bottom: 1.25rem;
}

.btn-coffee {
  background: #FFDD00;
  border-color: #FFDD00;
  color: #000;
  font-weight: 800;
}

.btn-coffee:hover {
  background: #f0ce00;
  border-color: #f0ce00;
  color: #000;
}

.support-card {
  width: min(100%, 560px);
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(24, 46, 84, 0.10);
  overflow: hidden;
}

.support-photo {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}

.support-content {
  padding: 1.5rem;
  text-align: center;
}

.support-dog-name {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--hzp-text);
}

.support-message {
  font-style: italic;
  font-size: 1.05rem;
  color: var(--hzp-muted);
  margin-bottom: 0.75rem;
  quotes: none;
}

.support-owner {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--hzp-primary);
  margin: 0;
}

#wsparcie-carousel .carousel-control-prev,
#wsparcie-carousel .carousel-control-next {
  width: 3rem;
  color: var(--hzp-primary);
  opacity: 0.7;
}

#wsparcie-carousel .carousel-control-prev-icon,
#wsparcie-carousel .carousel-control-next-icon {
  filter: invert(1) sepia(1) saturate(5) hue-rotate(200deg);
}

textarea {
  width: 100%;
  padding: 0.65rem;
  border-radius: 10px;
  border: 1px solid #bfd1ee;
  resize: vertical;
  min-height: 90px;
  font: inherit;
}

textarea:focus {
  outline: 2px solid #9fbcf5;
  outline-offset: 1px;
  border-color: #6f96e8;
}

.footer-band {
  height: 380px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.footer-band-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.footer-band-overlay {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 2rem;
  background: linear-gradient(transparent, rgba(10, 14, 22, 0.82));
  text-align: center;
}

.footer-band-tagline {
  color: #fff;
  font-size: 1.2rem;
  font-style: italic;
  margin: 0;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}


.instagram-placeholder {
  border: 2px dashed #94b6ee;
  border-radius: 12px;
  padding: 1rem;
  background: #f4f8ff;
}

.dog-form {
  display: grid;
  gap: 0.8rem;
}

fieldset {
  border: 1px solid #c7daf8;
  border-radius: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 0.8rem;
}

.dog-form fieldset label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: #f4f8ff;
  border: 2px solid #c7daf8;
  border-radius: 999px;
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.dog-form fieldset label:has(input:checked) {
  background: var(--hzp-primary);
  border-color: var(--hzp-primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(47,111,237,0.35);
}

.dog-form fieldset label input[type="radio"] {
  display: none;
}

.gender-option {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.gender-icon {
  font-size: 1rem;
  line-height: 1;
}

.field-error {
  color: var(--hzp-danger);
  font-size: 0.875rem;
  margin: 0;
}

.field-hint {
  font-size: 0.8rem;
  color: var(--hzp-muted);
  margin: 0;
}

.input-file {
  padding: 0.4rem 0.65rem;
  background: #f4f8ff;
  cursor: pointer;
}

label,
legend {
  font-weight: 600;
}

select,
input,
button {
  font: inherit;
}

select,
input {
  width: 100%;
  padding: 0.65rem;
  border-radius: 10px;
  border: 1px solid #bfd1ee;
}

select:focus,
input:focus {
  outline: 2px solid #9fbcf5;
  outline-offset: 1px;
  border-color: #6f96e8;
}

.result {
  margin-top: 0.8rem;
  border-radius: 12px;
  padding: 1rem;
  border: 1px solid transparent;
  display: none;
}

.result.show {
  display: block;
  animation: resultPop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes resultPop {
  from { opacity: 0; transform: scale(0.95) translateY(6px); }
  to   { opacity: 1; transform: scale(1)    translateY(0); }
}

.result.bad {
  background: var(--hzp-danger-bg);
  border-color: #f7c2bf;
  color: var(--hzp-danger);
}

.result.good {
  background: var(--hzp-success-bg);
  border-color: #b4e9c9;
  color: var(--hzp-success);
}

.footer {
  background: #fff;
  border-top: 1px solid #dbe4f2;
}

@keyframes dogEntrance {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
    filter: saturate(85%);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: saturate(100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .dog-photo {
    animation: none;
  }
}

@media (max-width: 991.98px) {
  .masthead {
    padding-top: 9.5rem;
    padding-bottom: 5rem;
  }
}
