:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-muted: #f6f6f6;
  --surface-strong: #efefef;
  --ink: #242424;
  --ink-soft: #666666;
  --accent: #c53a3a;
  --accent-deep: #ab2f2f;
  --accent-soft: #f5e7e7;
  --navy: #2e5c9a;
  --line: #e5e5e5;
  --shadow: 0 18px 44px rgba(0, 0, 0, 0.08);
  --radius-lg: 8px;
  --radius-md: 6px;
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 0.75rem;
  --space-lg: 1rem;
  --space-xl: 1.5rem;
  --space-2xl: 2rem;
  --space-3xl: 3rem;
  --space-4xl: 4rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Work Sans", sans-serif;
  color: var(--ink-soft);
  background: var(--bg);
  line-height: 1.75;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--accent-deep);
  text-decoration: none;
}

a:hover,
a:focus {
  color: var(--accent);
  text-decoration: none;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(197, 58, 58, 0.35);
  outline-offset: 3px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-top: 0;
  color: var(--ink);
  font-family: "Niramit", sans-serif;
  line-height: 1.2;
}

h1 {
  font-size: clamp(3rem, 5.2vw, 4.7rem);
}

h2 {
  font-size: clamp(2.15rem, 3.2vw, 3rem);
}

h3 {
  font-size: clamp(1.4rem, 2.1vw, 1.75rem);
}

p,
li {
  font-size: 17px;
}

.container {
  width: min(1120px, calc(100% - 32px));
}

.header-top {
  background: #ffffff;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
}

.header-top__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  padding: 0.8rem 0;
  font-size: 1.08rem;
}

.header-top__item,
.header-top__meta {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.header-top__label {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.86rem;
  color: var(--accent);
}

.header-top__value {
  font-weight: 800;
  color: var(--accent);
}

.header-top a,
.header-top span {
  color: inherit;
}

.site-header {
  position: relative;
  z-index: 20;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xl);
  padding: 1.1rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-lg);
  min-width: 0;
}

.brand__logo {
  width: 78px;
  height: 78px;
  object-fit: contain;
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
  align-items: flex-start;
}

.brand__text strong {
  color: var(--ink);
  font-size: 1.16rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.brand__text span {
  color: var(--ink-soft);
  font-size: 0.86rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.site-navigation {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-left: auto;
}

.top-menu ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
}

.top-menu a {
  display: inline-block;
  padding: 0.35rem 0.55rem;
  border-radius: 0;
  color: var(--ink);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 14px;
}

.top-menu .is-active a,
.top-menu a:hover,
.top-menu a:focus {
  background: transparent;
  color: var(--accent);
}

.header-cta,
.btn-primary-custom,
.btn-secondary-custom {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.9rem 1.6rem;
  border-radius: 5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease;
}

.header-cta {
  min-height: 42px;
  padding: 0.72rem 1.2rem;
}

.header-cta,
.btn-primary-custom {
  background: var(--accent);
  color: var(--surface);
}

.header-cta:hover,
.btn-primary-custom:hover,
.header-cta:focus,
.btn-primary-custom:focus {
  background: var(--accent-deep);
  color: var(--surface);
  transform: translateY(-1px);
}

.btn-secondary-custom {
  background: #ffffff;
  color: var(--accent-deep);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.btn-secondary-custom:hover,
.btn-secondary-custom:focus {
  background: #fff4f4;
  color: var(--accent-deep);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 6px;
  background: var(--surface-muted);
  color: var(--ink);
}

.hero,
.page-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(4.5rem, 7vw, 6.4rem) 0;
}

.page-hero {
  background:
    linear-gradient(135deg, rgba(197, 58, 58, 0.96), rgba(171, 47, 47, 0.96));
}

.page-hero h1,
.page-hero p,
.page-hero .eyebrow {
  color: #ffffff;
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
  min-height: 520px;
}

.hero__content {
  max-width: 67ch;
  color: #ffffff;
  text-align: left;
}

.hero {
  background-image:
    linear-gradient(rgba(20, 20, 20, 0.5), rgba(20, 20, 20, 0.5)),
    url("/images/hero-homepage-banner.jpg");
  background-position: center center;
  background-size: cover;
}

.hero h1,
.hero h2,
.hero p,
.hero .eyebrow {
  color: #ffffff;
}

.eyebrow,
.hero__card-label,
.profile-card__status {
  display: inline-block;
  margin-bottom: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--accent);
}

.hero__lead,
.page-hero p {
  max-width: 65ch;
  font-size: 19px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.8rem;
}

.hero__card,
.content-card,
.info-card,
.stat-card,
.profile-card,
.dog-card,
.member-chip {
  background: var(--surface);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.hero__card,
.content-card,
.info-card,
.profile-card {
  padding: clamp(1.25rem, 3vw, 2rem);
}

.profile-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.profile-card__image {
  width: calc(100% + 4rem);
  max-width: none;
  margin: -2rem -2rem 1.25rem;
  aspect-ratio: 1 / 0.72;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
}

.profile-card .inline-link {
  margin-top: auto;
  padding-top: 0.75rem;
}

.hero__card {
  background: rgba(255, 255, 255, 0.92);
}

.section {
  padding: clamp(3.5rem, 6vw, 6rem) 0;
}

.section--light {
  background: #f6f6f6;
}

.section--accent {
  background: var(--accent-soft);
}

.section--plain {
  background: #ffffff;
}

.section--photo {
  position: relative;
  background-image:
    linear-gradient(rgba(20, 20, 20, 0.58), rgba(20, 20, 20, 0.58)),
    url("/images/hero-figuranti.jpg");
  background-position: center;
  background-size: cover;
}

.section--photo h2,
.section--photo p,
.section--photo .eyebrow {
  color: #ffffff;
}

.section-heading {
  margin-bottom: 2rem;
  max-width: 70ch;
}

.section-divider {
  display: flex;
  justify-content: center;
  margin-bottom: 1.75rem;
}

.section-divider img {
  width: 150px;
  max-width: 40vw;
}

.stats-grid,
.cta-grid,
.profile-grid,
.dog-grid,
.three-column-lists {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.stat-card {
  padding: 1.7rem;
  text-align: left;
  box-shadow: none;
  border: 1px solid #ececec;
}

.stat-card strong {
  display: block;
  color: var(--accent);
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1;
  font-family: "Niramit", sans-serif;
  font-weight: 700;
}

.stat-card span {
  display: block;
  margin-top: 0.75rem;
  color: var(--ink);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 14px;
}

.split-panel,
.two-column-copy,
.member-detail {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.split-panel {
  align-items: center;
}

.content-card--prose p + p {
  margin-top: 1rem;
}

.content-card--prose,
.page-hero p,
.hero__lead,
.info-card p,
.profile-card p {
  max-width: 72ch;
}

.detail-list {
  padding-left: 1.1rem;
  margin-bottom: 0;
}

.detail-list li + li {
  margin-top: 0.65rem;
}

.inline-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  margin-top: 1rem;
}

.member-roster {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.member-chip {
  padding: 0.95rem 1rem;
  min-width: 180px;
}

.member-chip strong,
.profile-card h3,
.dog-card h3 {
  display: block;
  color: var(--ink);
}

.member-chip span {
  color: var(--ink-soft);
  font-size: 1rem;
}

.member-detail__side {
  position: sticky;
  top: 110px;
}

.member-photo {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 1rem;
  object-fit: cover;
}

.member-photo--feature {
  margin-bottom: 1.5rem;
  max-height: 540px;
}

.member-dogs-section {
  margin-top: 1.5rem;
}

.footer-contact,
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li + li,
.footer-contact li + li {
  margin-top: 0.7rem;
}

.footer-contact li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.footer-contact i {
  flex: 0 0 1.45rem;
  width: 1.15rem;
  text-align: center;
  color: var(--accent-deep);
}

.footer-contact--large li {
  font-size: 1.12rem;
}

.contact-details-emphasis li {
  font-size: 1.4rem;
  line-height: 1.7;
}

.contact-details-emphasis i {
  width: 1.35rem;
}

.integration-placeholder {
  margin-top: 1.5rem;
  padding: 1.25rem;
  border-radius: 8px;
  background: var(--accent-soft);
}

.site-footer {
  margin-top: 2rem;
  background: #ffffff;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
}

.site-footer h2,
.site-footer h3,
.site-footer a {
  color: var(--ink);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 2rem;
  padding: 3.25rem 0;
}

.site-footer__grid > div {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-logo {
  width: 88px;
  margin-bottom: 1rem;
}

.site-footer__bottom {
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.site-footer__bottom .container {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0 1.4rem;
  flex-wrap: wrap;
  font-size: 1rem;
  color: var(--ink-soft);
}

.dog-grid--stacked {
  grid-template-columns: 1fr;
  gap: 1rem;
}

.dog-grid--stacked .dog-card {
  padding: 1.4rem 1.5rem;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 991px) {
  .hero__grid,
  .split-panel,
  .two-column-copy,
  .member-detail {
    grid-template-columns: 1fr;
  }

  .member-detail__side {
    position: static;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-navigation {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding-top: 0.5rem;
  }

  .site-navigation.is-open {
    display: flex;
  }

  .top-menu ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0.4rem;
  }

  .header-cta {
    width: 100%;
  }
}

@media (min-width: 992px) {
  .site-footer__grid {
    grid-template-columns: minmax(240px, 1.35fr) minmax(140px, 0.75fr) minmax(170px, 0.9fr) minmax(260px, 1.35fr);
    column-gap: 2.5rem;
  }
}

@media (max-width: 767px) {
  .header-top__inner,
  .header-top__item,
  .header-top__meta,
  .hero__actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer__bottom .container {
    flex-direction: column;
  }

  .brand__logo {
    width: 64px;
    height: 64px;
  }
}
