/* ===================================================
   THE CROCHET CLUB OF LONDON — Stylesheet
   Palette: #d1adae (dusty rose), #e0cec2 (warm beige)
   Fonts: Playfair Display, Montserrat
   =================================================== */

/* ---------- RESET & BASE ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', sans-serif;
  color: #1a1a1a;
  background: #fff;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

h1, h2, h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 400;
}

/* ---------- HEADER ---------- */
.site-header {
  background: #d1adae;
  padding: 0 40px;
  position: relative;
  z-index: 10;
}

.header-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 245px;
}

.logo img {
  height: 180px;
  width: auto;
}

.main-nav {
  display: flex;
  gap: 10px;
}

.main-nav a {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 28px;
  padding: 10px 28px;
  border-radius: 8px;
  transition: background 0.25s ease, color 0.25s ease;
}

.main-nav a:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 900px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 40px 120px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1100px;
}

.hero-badge {
  display: inline-block;
  background: #d1adae;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 28px;
  padding: 18px 50px;
  border-radius: 20px;
  margin-bottom: 40px;
}

.hero h1 {
  font-size: 64px;
  line-height: 1.15;
  margin-bottom: 36px;
}

.hero-sub {
  font-size: 30px;
  line-height: 1.5;
  max-width: 900px;
  margin: 0 auto 50px;
}

.hero-buttons {
  display: flex;
  gap: 40px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-size: 22px;
  padding: 22px 50px;
  border-radius: 20px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.btn-primary {
  background: #d1adae;
  color: #1a1a1a;
}

.btn-primary:hover {
  background: #c49c9e;
}

.btn-outline {
  background: #d1adae;
  color: #1a1a1a;
}

.btn-outline:hover {
  background: #c49c9e;
}

.btn-cta {
  background: #e0cec2;
  color: #1a1a1a;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: 28px;
  padding: 22px 60px;
  border-radius: 20px;
}

.btn-cta:hover {
  background: #d4bfb1;
}

/* ---------- SHELTER SECTION ---------- */
.shelter {
  background: #e0cec2;
  padding: 80px 40px 40px;
  text-align: center;
}

.shelter-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.shelter h2 {
  font-size: 44px;
  margin-bottom: 30px;
}

.section-desc {
  font-size: 22px;
  line-height: 1.6;
  max-width: 900px;
  margin: 0 auto 50px;
}

.shelter-image {
  max-width: 580px;
  margin: 0 auto;
}

.shelter-image img {
  width: 100%;
}

.section-quote {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: 22px;
  text-align: center;
  padding: 30px 40px;
  max-width: 900px;
  margin: 0 auto;
}

/* ---------- STATS STRIP ---------- */
.stats-strip {
  padding: 60px 40px;
  position: relative;
  overflow: hidden;
}

.stats-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.stats-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stats-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-around;
  align-items: center;
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
  gap: 30px;
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 44px;
  margin-bottom: 6px;
}

.stat-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 20px;
}

/* ---------- STITCH LINE DIVIDERS ---------- */
.stitch-divider {
  position: relative;
  z-index: 2;
  line-height: 0;
  height: 0;
  overflow: visible;
}

.stitch-divider svg {
  width: calc(100% + 40px);
  margin-left: -20px;
  height: 75px;
  display: block;
  position: relative;
  top: -38px;
}

/* ---------- SOLID STRIP DIVIDER ---------- */
.solid-strip-divider {
  width: 100%;
  height: 46px;
  background: #d1adae;
}

/* ---------- BLANKETS SECTION ---------- */
.blankets {
  position: relative;
  padding: 80px 0 100px;
  overflow: hidden;
}

.blankets-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.blankets-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blankets-inner {
  max-width: 1300px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
  padding: 0 40px;
}

.blankets h2 {
  font-size: 44px;
  margin-bottom: 30px;
}

.blankets .section-desc {
  margin-bottom: 60px;
}

.blanket-scroll {
  display: flex;
  gap: 30px;
  overflow-x: auto;
  padding: 10px 40px 30px;
  margin: 0 -40px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scroll-padding-left: 40px;
}

.blanket-scroll::-webkit-scrollbar {
  height: 8px;
}

.blanket-scroll::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.06);
  border-radius: 10px;
  margin: 0 40px;
}

.blanket-scroll::-webkit-scrollbar-thumb {
  background: #d1adae;
  border-radius: 10px;
}

.blanket-scroll::-webkit-scrollbar-thumb:hover {
  background: #c49c9e;
}

.blanket-card {
  min-width: 380px;
  max-width: 380px;
  background: #d1adae;
  border-radius: 40px;
  overflow: hidden;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  scroll-snap-align: start;
  flex-shrink: 0;
}

.blanket-card:last-child {
  margin-right: 40px;
}

.blanket-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.blanket-card-img {
  width: 100%;
  height: 420px;
  overflow: hidden;
  border-radius: 40px 40px 0 0;
}

.blanket-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.blanket-card:hover .blanket-card-img img {
  transform: scale(1.04);
}

.blanket-card-info {
  padding: 24px 30px 30px;
}

.blanket-card-info h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 500;
  font-size: 22px;
  margin-bottom: 6px;
  padding-top: 14px;
  border-top: 1px solid rgba(0, 0, 0, 0.15);
}

.blanket-card-info p {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 18px;
  line-height: 1.4;
  margin-bottom: 18px;
}

.blanket-badge {
  display: inline-block;
  background: #e0cec2;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 18px;
  padding: 12px 30px;
  border-radius: 40px;
}

/* ---------- EVERY SQUARE SECTION ---------- */
.every-square {
  background: #e0cec2;
  padding: 80px 40px 60px;
  text-align: center;
}

.every-square-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.every-square h2 {
  font-size: 44px;
  margin-bottom: 30px;
}

.every-square-image {
  max-width: 556px;
  margin: 0 auto 20px;
}

.every-square-image img {
  width: 100%;
}

/* ---------- HOOK TO HEART SECTION ---------- */
.hook-to-heart {
  background: #e0cec2;
  padding: 40px 40px 60px;
  text-align: center;
}

.hook-to-heart-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.hook-to-heart h2 {
  font-size: 44px;
  margin-bottom: 30px;
}

.hook-to-heart-image {
  max-width: 580px;
  margin: 0 auto 20px;
}

.hook-to-heart-image img {
  width: 100%;
}

/* ---------- DONATE CTA SECTION ---------- */
.donate-cta {
  position: relative;
  min-height: 800px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 40px;
}

.donate-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.donate-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.donate-content {
  position: relative;
  z-index: 1;
  max-width: 1000px;
}

.donate-cta h2 {
  font-size: 60px;
  line-height: 1.2;
  margin-bottom: 40px;
}

.donate-cta .section-desc {
  font-size: 30px;
  margin-bottom: 50px;
}

.donate-cta .btn-cta {
  margin-bottom: 30px;
}

.join-link {
  font-size: 22px;
  line-height: 1;
}

.join-link a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.join-link a:hover {
  color: #6b3a3d;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .header-inner {
    height: 180px;
  }

  .logo img {
    height: 130px;
  }

  .main-nav a {
    font-size: 22px;
    padding: 8px 18px;
  }

  .hero {
    min-height: 700px;
    padding: 60px 30px 100px;
  }

  .hero h1 {
    font-size: 48px;
  }

  .hero-sub {
    font-size: 24px;
  }

  .hero-badge {
    font-size: 22px;
    padding: 14px 36px;
  }

  .shelter h2,
  .blankets h2,
  .every-square h2,
  .hook-to-heart h2 {
    font-size: 36px;
  }

  .section-desc {
    font-size: 20px;
  }

  .stat-number {
    font-size: 36px;
  }

  .stat-label {
    font-size: 18px;
  }

  .blanket-card {
    min-width: 300px;
    max-width: 300px;
  }

  .blanket-card-img {
    height: 340px;
  }

  .donate-cta h2 {
    font-size: 44px;
  }

  .donate-cta .section-desc {
    font-size: 24px;
  }
}

@media (max-width: 768px) {
  .site-header {
    padding: 0 20px;
  }

  .header-inner {
    height: auto;
    flex-direction: column;
    padding: 20px 0;
    gap: 16px;
  }

  .logo img {
    height: 100px;
  }

  .main-nav {
    gap: 6px;
  }

  .main-nav a {
    font-size: 18px;
    padding: 8px 14px;
  }

  .hero {
    min-height: 550px;
    padding: 50px 20px 80px;
  }

  .hero-badge {
    font-size: 18px;
    padding: 12px 28px;
    margin-bottom: 24px;
  }

  .hero h1 {
    font-size: 34px;
  }

  .hero-sub {
    font-size: 18px;
    margin-bottom: 32px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .btn {
    font-size: 18px;
    padding: 16px 36px;
  }

  .shelter,
  .blankets,
  .every-square,
  .hook-to-heart {
    padding-left: 20px;
    padding-right: 20px;
  }

  .shelter h2,
  .blankets h2,
  .every-square h2,
  .hook-to-heart h2 {
    font-size: 30px;
  }

  .section-desc {
    font-size: 18px;
  }

  .section-quote {
    font-size: 18px;
    padding: 20px 20px;
  }

  .stats-inner {
    gap: 20px;
  }

  .stat-number {
    font-size: 30px;
  }

  .stat-label {
    font-size: 16px;
  }

  .blanket-card {
    min-width: 280px;
    max-width: 280px;
  }

  .blanket-card-img {
    height: 300px;
  }

  .blanket-card-info h3 {
    font-size: 20px;
  }

  .blanket-card-info p {
    font-size: 16px;
  }

  .donate-cta {
    min-height: 600px;
    padding: 60px 20px;
  }

  .donate-cta h2 {
    font-size: 34px;
  }

  .donate-cta .section-desc {
    font-size: 20px;
  }

  .btn-cta {
    font-size: 22px;
    padding: 18px 44px;
  }

  .join-link {
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 28px;
  }

  .hero-sub {
    font-size: 16px;
  }

  .shelter h2,
  .blankets h2,
  .every-square h2,
  .hook-to-heart h2 {
    font-size: 26px;
  }

  .section-desc {
    font-size: 16px;
  }

  .stat-number {
    font-size: 26px;
  }

  .donate-cta h2 {
    font-size: 28px;
  }

  .donate-cta .section-desc {
    font-size: 17px;
  }
}

/* ---------- SCROLL REVEAL ANIMATIONS ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* stagger children slightly */
.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }

/* slide from left variant */
.reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}

/* slide from right variant */
.reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}

/* scale up variant for images */
.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-scale.active {
  opacity: 1;
  transform: scale(1);
}

/* blanket cards slide up with stagger in scroll container */
.blanket-scroll .blanket-card:nth-child(1) { transition-delay: 0s; }
.blanket-scroll .blanket-card:nth-child(2) { transition-delay: 0.12s; }
.blanket-scroll .blanket-card:nth-child(3) { transition-delay: 0.24s; }
.blanket-scroll .blanket-card:nth-child(4) { transition-delay: 0.36s; }

/* stat items pop in with stagger */
.stats-inner .stat:nth-child(1) { transition-delay: 0s; }
.stats-inner .stat:nth-child(2) { transition-delay: 0.1s; }
.stats-inner .stat:nth-child(3) { transition-delay: 0.2s; }
.stats-inner .stat:nth-child(4) { transition-delay: 0.3s; }

/* respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-left,
  .reveal-right,
  .reveal-scale {
    opacity: 1;
    transform: none;
    transition: none;
  }
}