/* Sunbeam Cat Club — cats.dploy.cc */

/* ─── Reset & Base ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-page: #FFF7EE;
  --bg-card: #FFFFFF;
  --accent-apricot: #FFC98B;
  --accent-coral: #F59E7D;
  --accent-moss: #9BC4A1;
  --ink: #22313F;
  --highlight: #FFF1CC;
  --bg-muted: #F5EDE4;
  --radius-card: 16px;
  --radius-img: 12px;
  --radius-pill: 999px;
  --max-w: 1200px;
  --gap: 24px;
  --section-py: 80px;
  --shadow-sm: 0 2px 8px rgba(34,49,63,.06);
  --shadow-md: 0 4px 20px rgba(34,49,63,.10);
  --shadow-lg: 0 8px 32px rgba(34,49,63,.14);
  --transition: .3s ease;
}

@media (max-width: 767px) {
  :root { --gap: 16px; --section-py: 48px; }
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
}

@media (max-width: 767px) { body { font-size: 16px; } }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gap);
}

/* ─── Typography ─── */
h1, h2, h3 { font-family: 'Fraunces', 'Georgia', serif; color: var(--ink); }
h1 { font-size: 56px; font-weight: 700; line-height: 1.1; letter-spacing: -.02em; }
h2 { font-size: 32px; font-weight: 600; line-height: 1.2; }
h3 { font-size: 20px; font-weight: 600; }
@media (max-width: 767px) {
  h1 { font-size: 36px; }
  h2 { font-size: 24px; }
}

.pill {
  display: inline-block;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.pill--apricot { background: var(--accent-apricot); color: var(--ink); }
.pill--coral   { background: var(--accent-coral); color: #fff; }
.pill--moss    { background: var(--accent-moss); color: var(--ink); }

/* ─── Skip Link ─── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--ink);
  color: #fff;
  padding: 8px 16px;
  border-radius: 8px;
  z-index: 1000;
  font-size: 14px;
}
.skip-link:focus { top: 8px; }

/* ─── Navigation ─── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 64px;
  background: rgba(255,247,238,.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(34,49,63,.06);
}
@media (max-width: 767px) { .nav { height: 56px; } }

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Fraunces', serif;
  font-size: 20px;
  font-weight: 600;
}
.nav__logo svg { width: 28px; height: 28px; }

.nav__links {
  display: flex;
  gap: 32px;
  list-style: none;
}
.nav__links a {
  font-size: 15px;
  font-weight: 500;
  transition: color var(--transition);
}
.nav__links a:hover { color: var(--accent-coral); }

.nav__hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav__hamburger svg { width: 24px; height: 24px; }

@media (max-width: 767px) {
  .nav__links { display: none; }
  .nav__hamburger { display: block; }
  .nav__links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: var(--bg-page);
    padding: 16px var(--gap);
    gap: 16px;
    border-bottom: 1px solid rgba(34,49,63,.1);
    box-shadow: var(--shadow-md);
  }
}

/* ─── Hero ─── */
.hero {
  min-height: calc(90vh - 64px);
  display: flex;
  align-items: center;
  padding: var(--section-py) 0;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

@media (max-width: 767px) {
  .hero { min-height: auto; }
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }
}

.hero__text { display: flex; flex-direction: column; gap: 20px; }
.hero__text .pill { align-self: flex-start; }
@media (max-width: 767px) { .hero__text .pill { align-self: center; } }

.hero__subhead {
  font-size: 18px;
  color: rgba(34,49,63,.7);
  max-width: 440px;
}
@media (max-width: 767px) { .hero__subhead { max-width: 100%; } }

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--accent-coral);
  color: #fff;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 16px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  align-self: flex-start;
  border: none;
  cursor: pointer;
}
.hero__cta:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
@media (max-width: 767px) { .hero__cta { align-self: center; width: 100%; justify-content: center; } }

.hero__image-wrap {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero__image {
  width: 100%;
  max-width: 520px;
  aspect-ratio: 5/6;
  border-radius: 24px;
  object-fit: cover;
  box-shadow: var(--shadow-lg);
  animation: heroReveal .8s ease both;
}

.hero__badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
  justify-content: center;
}
.hero__badge {
  padding: 6px 14px;
  background: var(--accent-apricot);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  animation: badgeFade .5s ease both;
}
.hero__badge:nth-child(2) { animation-delay: .3s; }
.hero__badge:nth-child(3) { animation-delay: .6s; }

@keyframes heroReveal {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes badgeFade {
  from { opacity: 0; transform: scale(.9); }
  to   { opacity: 1; transform: scale(1); }
}

/* ─── Image Ribbon ─── */
.ribbon {
  padding: 32px 0;
  overflow: hidden;
}
.ribbon__track {
  display: flex;
  justify-content: center;
  gap: 16px;
}
.ribbon__img {
  width: 220px;
  height: 160px;
  border-radius: var(--radius-img);
  object-fit: cover;
  flex-shrink: 0;
  transition: transform var(--transition);
}
.ribbon__img:hover { transform: scale(1.05); }

@media (max-width: 767px) {
  .ribbon__track {
    justify-content: flex-start;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 0 var(--gap);
  }
  .ribbon__img { scroll-snap-align: center; }
}

/* ─── Cat Census ─── */
.census {
  background: var(--highlight);
  padding: var(--section-py) 0;
}
.census__header {
  text-align: center;
  margin-bottom: 40px;
}
.census__header h2 { margin-top: 12px; }

.census__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}
@media (max-width: 767px) {
  .census__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 479px) {
  .census__grid { grid-template-columns: 1fr; }
}

.stat-card {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.stat-card__number {
  font-family: 'Fraunces', serif;
  font-size: 48px;
  font-weight: 800;
  color: var(--accent-coral);
  line-height: 1.1;
}
@media (max-width: 767px) { .stat-card__number { font-size: 36px; } }

.stat-card__label {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: rgba(34,49,63,.5);
  margin-top: 4px;
}
.stat-card__desc {
  font-size: 15px;
  color: rgba(34,49,63,.7);
  margin-top: 12px;
  line-height: 1.5;
}
.stat-card__source {
  display: inline-block;
  margin-top: 10px;
  font-size: 12px;
  color: var(--accent-moss);
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition);
}
.stat-card__source:hover { border-bottom-color: var(--accent-moss); }

/* ─── Breed Lounge ─── */
.breeds {
  padding: var(--section-py) 0;
}
.breeds__header {
  text-align: center;
  margin-bottom: 40px;
}
.breeds__header h2 { margin-top: 12px; }

.breeds__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
}
@media (max-width: 1023px) { .breeds__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 479px) {
  .breeds__grid {
    grid-template-columns: 1fr;
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: var(--gap);
    padding-bottom: 8px;
  }
}

.breed-card {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.breed-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
@media (max-width: 479px) {
  .breed-card { min-width: 260px; flex-shrink: 0; scroll-snap-align: center; }
}

.breed-card__img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.breed-card__body { padding: 20px; }
.breed-card__name { margin-bottom: 8px; }
.breed-card__tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--accent-moss);
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 10px;
}
.breed-card__blurb {
  font-size: 15px;
  color: rgba(34,49,63,.7);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ─── Gallery ─── */
.gallery {
  background: var(--bg-muted);
  padding: var(--section-py) 0;
}
.gallery__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 16px;
}
.gallery__header-text h2 { margin-top: 12px; }

.gallery__shuffle {
  padding: 10px 20px;
  background: transparent;
  border: 2px solid var(--accent-coral);
  color: var(--accent-coral);
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.gallery__shuffle:hover {
  background: var(--accent-coral);
  color: #fff;
}

.gallery__masonry {
  columns: 3;
  column-gap: var(--gap);
}
@media (max-width: 767px) { .gallery__masonry { columns: 2; } }
@media (max-width: 479px) { .gallery__masonry { columns: 1; } }

.gallery__item {
  break-inside: avoid;
  margin-bottom: var(--gap);
  position: relative;
  border-radius: var(--radius-img);
  overflow: hidden;
  cursor: pointer;
}

.gallery__img {
  width: 100%;
  display: block;
  border-radius: var(--radius-img);
  transition: filter var(--transition);
}
.gallery__item:hover .gallery__img { filter: brightness(1.05); }

.gallery__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px 16px 14px;
  background: linear-gradient(transparent, rgba(34,49,63,.7));
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  border-radius: 0 0 var(--radius-img) var(--radius-img);
  opacity: 0;
  transition: opacity var(--transition);
}
.gallery__item:hover .gallery__caption { opacity: 1; }
@media (max-width: 767px) { .gallery__caption { opacity: 1; } }

/* ─── Fact Strip ─── */
.facts {
  padding: 48px 0;
}
.facts__track {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
@media (max-width: 767px) {
  .facts__track {
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    justify-content: flex-start;
    padding: 0 var(--gap);
    -webkit-overflow-scrolling: touch;
  }
}

.fact-chip {
  padding: 10px 18px;
  background: var(--accent-apricot);
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}
@media (max-width: 767px) { .fact-chip { scroll-snap-align: center; } }

/* ─── Footer ─── */
.footer {
  background: var(--ink);
  color: rgba(255,255,255,.85);
  padding: 48px 0 32px;
}
.footer a { color: rgba(255,255,255,.7); transition: color var(--transition); }
.footer a:hover { color: #fff; }

.footer__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 32px;
}
@media (max-width: 767px) { .footer__grid { grid-template-columns: 1fr; gap: 24px; } }

.footer__logo {
  font-family: 'Fraunces', serif;
  font-size: 22px;
  font-weight: 600;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
}

.footer__col h4 {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 12px;
  color: rgba(255,255,255,.5);
}
.footer__col p, .footer__col li {
  font-size: 15px;
  line-height: 1.7;
}
.footer__col ul { list-style: none; }

.footer__bar {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 20px;
  font-size: 14px;
  color: rgba(255,255,255,.4);
  text-align: center;
}

/* ─── Reduced Motion ─── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
