/* ============================================================
   Pup Club — shared styles (heypupclub.com)
   Used by index.html + About / Events / Perks / Blog / Contact
   ============================================================ */

:root {
  --cream: #FBF0D8;
  --cream-deep: #F5E4BE;
  --ink: #231C16;
  --muted: #6E5F4E;
  --orange: #E05A2B;
  --orange-dark: #C24820;
  --mustard: #EBA235;
  --green: #3F7D54;
  --green-deep: #2E5E40;
  --blue: #6E8FD0;
  --pink: #E58AA5;
  --hard: 4px 4px 0 var(--ink);
  --hard-sm: 3px 3px 0 var(--ink);
  /* Solid extruded shadow for the orange accent words (fills in instead of a single offset). */
  --accent-shadow: 1px 1px 0 var(--ink), 2px 2px 0 var(--ink), 3px 3px 0 var(--ink), 4px 4px 0 var(--ink);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Nunito', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background-color: var(--cream);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ===== Keyframes ===== */
@keyframes fadeUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); }
  50% { transform: translateY(-14px) rotate(var(--r, 0deg)); }
}
@keyframes wiggle { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(0deg); } }

/* ===== Decorative scattered shapes (gently floating) ===== */
.deco { position: absolute; z-index: 0; pointer-events: none; animation: floaty 8s ease-in-out infinite; }
.deco-1 { top: 12%; left: 4%; width: 78px; --r: -12deg; animation-duration: 7.5s; }
.deco-2 { top: 100px; right: 6%; width: 54px; --r: 0deg; animation-duration: 9s; animation-delay: .6s; }
.deco-3 { bottom: 20%; left: 7%; width: 60px; --r: 8deg; animation-duration: 8.5s; animation-delay: 1.1s; }
.deco-4 { top: 46%; right: 5%; width: 70px; --r: 14deg; animation-duration: 7s; animation-delay: .3s; }
@media (max-width: 760px) {
  .deco-1, .deco-4 { display: none; }
  .deco-2 { width: 40px; }
  .deco-3 { width: 44px; bottom: 4%; }
}

/* ===== Header + nav ===== */
header {
  position: relative; z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px clamp(20px, 5vw, 60px);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; opacity: 0; animation: fadeUp .6s ease .1s forwards; }
.brand-logo { height: 48px; width: auto; display: block; }

.nav {
  display: flex; align-items: center; gap: clamp(14px, 2.4vw, 30px);
  opacity: 0; animation: fadeIn .6s ease .3s forwards;
}
.nav a {
  position: relative;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  color: var(--ink);
  text-decoration: none;
  padding: 4px 1px;
  transition: color .15s ease;
}
.nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -3px;
  height: 2.5px; background: var(--orange); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform .18s ease;
}
.nav a:hover { color: var(--orange); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--orange); }

/* Hamburger toggle (hidden on desktop, shown on small screens) */
.nav-toggle {
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  width: 46px; height: 46px; padding: 11px;
  background: #fff; border: 2.5px solid var(--ink); border-radius: 12px;
  box-shadow: var(--hard-sm); cursor: pointer;
  opacity: 0; animation: fadeIn .6s ease .3s forwards;
}
.nav-toggle-bar { display: block; height: 3px; width: 100%; background: var(--ink); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  border: 2.5px solid var(--ink);
  background: var(--orange);
  color: #fff;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  padding: 13px 28px;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: var(--hard-sm);
  transition: transform 0.14s ease, background 0.14s ease;
}
.btn:hover { background: var(--orange-dark); transform: translateY(-2px); }
.btn:active { transform: translateY(1px); }
.btn-ghost { background: #fff; color: var(--ink); }
.btn-ghost:hover { background: var(--cream-deep); color: var(--ink); }

/* ===== Shared page layout (subpages) ===== */
.page-main {
  position: relative; z-index: 2; flex: 1;
  padding: clamp(28px, 5vw, 60px) clamp(20px, 5vw, 60px) clamp(48px, 6vw, 80px);
}
.container { max-width: 1040px; margin: 0 auto; width: 100%; }
.container-narrow { max-width: 720px; margin: 0 auto; width: 100%; }

.page-head { text-align: center; max-width: 760px; margin: 0 auto clamp(34px, 5vw, 54px); }
.page-head .eyebrow { justify-content: center; }
.page-head h1 {
  font-family: 'Fraunces', serif; font-weight: 900;
  font-size: clamp(2.2rem, 5.5vw, 3.6rem); line-height: 1.05;
  letter-spacing: -0.015em; margin-bottom: 16px;
}
.page-head h1 .accent {
  font-family: 'Bagel Fat One', cursive; font-weight: 400; color: var(--orange);
  text-shadow: var(--accent-shadow); display: inline-block; transform: rotate(-2deg);
}
.page-head p { font-size: clamp(1.04rem, 2.2vw, 1.24rem); color: var(--muted); font-weight: 500; line-height: 1.6; }

/* fade-in helpers (no JS needed) */
.rise { opacity: 0; animation: fadeUp .7s cubic-bezier(.2,.7,.2,1) forwards; }
.rise-1 { animation-delay: .05s; }
.rise-2 { animation-delay: .16s; }
.rise-3 { animation-delay: .27s; }
.rise-4 { animation-delay: .38s; }

/* ===== Eyebrow (shared) ===== */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 800; font-size: 0.92rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--green); margin-bottom: 16px;
}
.eyebrow svg { width: 16px; height: 16px; }

/* ===== Card grids ===== */
.grid { display: grid; gap: clamp(18px, 3vw, 26px); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 2.5px solid var(--ink); border-radius: 22px;
  box-shadow: var(--hard); padding: clamp(20px, 3vw, 28px);
  transition: transform .16s ease, box-shadow .16s ease;
}
.card.hoverable:hover { transform: translateY(-4px); box-shadow: 6px 8px 0 var(--ink); }
.card .ico-badge {
  width: 56px; height: 56px; border-radius: 50%; border: 2.5px solid var(--ink);
  display: flex; align-items: center; justify-content: center; font-size: 1.55rem;
  box-shadow: var(--hard-sm); margin-bottom: 16px;
}
.card .meta {
  font-weight: 800; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--green); margin-bottom: 10px;
}
.card h3 { font-family: 'Fraunces', serif; font-weight: 800; font-size: 1.32rem; line-height: 1.2; margin-bottom: 9px; }
.card p { color: var(--muted); font-weight: 500; line-height: 1.55; font-size: 0.99rem; }
.card .card-link {
  display: inline-block; margin-top: 14px; font-weight: 800; color: var(--orange);
  text-decoration: none; border-bottom: 2px solid var(--orange);
}
.card .card-link:hover { color: var(--orange-dark); border-color: var(--orange-dark); }

/* tinted icon badges */
.bg-green { background: var(--green); } .bg-mustard { background: var(--mustard); }
.bg-pink { background: var(--pink); } .bg-blue { background: var(--blue); }
.bg-orange { background: var(--orange); }

/* ===== Prose (About) ===== */
.prose { max-width: 680px; margin: 0 auto; }
.prose .lead { font-size: clamp(1.15rem, 2.4vw, 1.4rem); color: var(--green-deep); font-weight: 600; line-height: 1.55; margin-bottom: 26px; }
.prose h2 {
  font-family: 'Fraunces', serif; font-weight: 800; font-size: clamp(1.45rem, 3vw, 2rem);
  margin: clamp(30px, 4vw, 42px) 0 14px;
}
.prose h3 {
  font-family: 'Fraunces', serif; font-weight: 700; font-size: clamp(1.18rem, 2.3vw, 1.4rem);
  color: var(--orange-dark); margin: 26px 0 8px;
}
.prose p { color: var(--ink); font-weight: 500; font-size: 1.08rem; line-height: 1.75; margin-bottom: 16px; }
.prose strong { color: var(--green-deep); }
.prose ul { margin: 4px 0 20px; padding-left: 4px; list-style: none; }
.prose li {
  position: relative; padding-left: 26px; margin-bottom: 10px;
  color: var(--ink); font-weight: 500; font-size: 1.08rem; line-height: 1.7;
}
.prose li::before {
  content: ''; position: absolute; left: 2px; top: 0.62em;
  width: 9px; height: 9px; background: var(--orange);
  border: 2px solid var(--ink); border-radius: 50%;
}
.post-back {
  display: inline-block; margin-bottom: 26px; font-weight: 800; color: var(--orange);
  text-decoration: none; border-bottom: 2px solid transparent;
}
.post-back:hover { border-color: var(--orange); }

/* ===== CTA band ===== */
.cta-band {
  text-align: center; margin-top: clamp(44px, 6vw, 72px);
  background: var(--cream-deep); border: 2.5px solid var(--ink); border-radius: 26px;
  box-shadow: var(--hard); padding: clamp(30px, 5vw, 48px) clamp(20px, 4vw, 40px);
}
.cta-band h2 { font-family: 'Fraunces', serif; font-weight: 900; font-size: clamp(1.6rem, 3.5vw, 2.3rem); margin-bottom: 12px; }
.cta-band p { color: var(--muted); font-weight: 500; font-size: 1.05rem; margin-bottom: 22px; max-width: 520px; margin-left: auto; margin-right: auto; }

/* Inline waitlist email form (used in CTA bands) */
.cta-form { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; max-width: 470px; margin: 0 auto; }
.cta-form input[type="email"] {
  flex: 1 1 210px; min-width: 0;
  font-family: 'Nunito', sans-serif; font-weight: 600; font-size: 1rem;
  border: 2.5px solid var(--ink); border-radius: 999px; padding: 13px 20px;
  background: #fff; color: var(--ink); outline: none;
}
.cta-form input[type="email"]:focus { box-shadow: var(--hard-sm); }
.cta-form input::placeholder { color: #B3A48F; }
.cta-form button { flex: 0 0 auto; }
.cta-form .form-message { flex-basis: 100%; margin-top: 4px; text-align: center; }
@media (max-width: 460px) {
  .cta-form { flex-direction: column; align-items: stretch; }
  .cta-form input[type="email"] { flex: none; width: 100%; text-align: center; }
  .cta-form button { flex: none; width: 100%; }
  .cta-form .form-message { flex-basis: auto; }
}

/* ===== Forms (waitlist + contact) ===== */
.field-stack { display: flex; flex-direction: column; gap: 14px; max-width: 540px; margin: 0 auto; text-align: left; }
.field-stack label { font-weight: 800; font-size: 0.9rem; margin-bottom: -6px; }
.field-stack input, .field-stack textarea {
  font-family: 'Nunito', sans-serif; font-weight: 600; font-size: 1rem;
  border: 2.5px solid var(--ink); border-radius: 16px; padding: 13px 16px;
  background: #fff; color: var(--ink); outline: none; width: 100%;
}
.field-stack textarea { min-height: 130px; resize: vertical; }
.field-stack input:focus, .field-stack textarea:focus { box-shadow: var(--hard-sm); }
.field-stack input::placeholder, .field-stack textarea::placeholder { color: #B3A48F; }

.form-message {
  margin-top: 18px; font-family: 'Fraunces', serif; font-weight: 700; font-size: 1.12rem; min-height: 1.4em;
}
.form-message.success { color: var(--green); }
.form-message.error { color: var(--orange-dark); }

/* ===== Footer (wavy top, retro green) ===== */
.wave { display: block; width: 100%; height: 48px; margin-bottom: -1px; position: relative; z-index: 2; }
footer {
  position: relative; z-index: 2;
  background: var(--green-deep); color: var(--cream);
  padding: 30px 24px 34px; font-weight: 600; font-size: 0.92rem;
}
.footer-inner { max-width: 1040px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 10px 20px; }
footer a { color: var(--mustard); text-decoration: none; border-bottom: 1.5px solid transparent; }
footer a:hover { color: #fff; border-color: #fff; }
.footer-copy { opacity: 0.85; }
@media (max-width: 560px) { .footer-inner { flex-direction: column; text-align: center; justify-content: center; } .footer-nav { justify-content: center; } }

/* ===== Responsive header: hamburger dropdown on small screens ===== */
@media (max-width: 640px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; top: calc(100% - 4px); right: clamp(20px, 5vw, 60px);
    min-width: 210px;
    flex-direction: column; align-items: stretch; gap: 3px;
    background: var(--cream); border: 2.5px solid var(--ink); border-radius: 16px;
    box-shadow: var(--hard); padding: 8px;
    display: none; z-index: 30;
    opacity: 1; animation: none; /* override desktop fade-in so the panel is opaque */
  }
  .nav.open { display: flex; animation: fadeUp .18s ease; }
  .nav a { padding: 12px 16px; border-radius: 10px; font-size: 1.05rem; }
  .nav a::after { content: none; }
  .nav a:hover, .nav a[aria-current="page"] { background: var(--cream-deep); color: var(--orange); }
}

/* ============================================================
   Landing page (index.html) specific
   ============================================================ */
main.hero-main {
  position: relative; z-index: 2; flex: 1;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(20px, 5vw, 56px) clamp(20px, 5vw, 60px) clamp(40px, 6vw, 72px);
}
.hero { max-width: 720px; text-align: center; }
.hero .hero-badge, .hero .eyebrow, .hero h1, .hero .sub, .hero form, .hero .microcopy {
  opacity: 0; animation: fadeUp .7s cubic-bezier(.2, .7, .2, 1) forwards;
}
.hero .hero-badge { animation-delay: 0s; }
.hero .eyebrow { animation-delay: .12s; }
.hero h1 { animation-delay: .24s; }
.hero .sub { animation-delay: .4s; }
.hero form { animation-delay: .54s; }
.hero .microcopy { animation-delay: .66s; }

.hero-badge {
  display: flex; width: fit-content; align-items: center; gap: 6px;
  font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 0.82rem;
  color: var(--ink); background: var(--mustard); border: 2px solid var(--ink);
  padding: 8px 15px; border-radius: 999px; box-shadow: var(--hard-sm);
  transform: rotate(-2deg); margin: 0 auto 20px; white-space: nowrap;
}
.hero h1 {
  font-family: 'Fraunces', serif; font-weight: 900;
  font-size: clamp(2.5rem, 6.5vw, 4.4rem); line-height: 1.0;
  letter-spacing: -0.015em; margin-bottom: 24px;
}
.hero h1 .accent {
  font-family: 'Bagel Fat One', cursive; font-weight: 400; color: var(--orange);
  text-shadow: var(--accent-shadow); display: inline-block; transform: rotate(-2.5deg);
  margin-top: 6px; animation: wiggle 4.5s ease-in-out 1s infinite;
}
.hero .sub {
  font-size: clamp(1.06rem, 2.3vw, 1.28rem); font-weight: 500; color: var(--muted);
  line-height: 1.6; max-width: 560px; margin: 0 auto 34px;
}
.hero .sub strong { color: var(--green-deep); }

/* Waitlist form (retro outlined pill) */
form.waitlist {
  display: flex; gap: 10px; max-width: 500px; margin: 0 auto;
  background: #fff; padding: 8px; border: 2.5px solid var(--ink);
  border-radius: 999px; box-shadow: var(--hard);
}
form.waitlist input[type="email"] {
  flex: 1; border: none; outline: none; background: transparent;
  font-family: 'Nunito', sans-serif; font-weight: 600; font-size: 1rem;
  padding: 13px 20px; color: var(--ink); min-width: 0;
}
form.waitlist input::placeholder { color: #B3A48F; }
form.waitlist button {
  border: 2.5px solid var(--ink); background: var(--orange); color: #fff;
  font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 1rem;
  padding: 13px 26px; border-radius: 999px; cursor: pointer; white-space: nowrap;
  transition: transform 0.14s ease, background 0.14s ease;
}
form.waitlist button:hover { background: var(--orange-dark); transform: translateY(-2px); }
form.waitlist button:active { transform: translateY(1px); }
form.waitlist button:disabled { opacity: 0.65; cursor: default; transform: none; }
.microcopy { margin-top: 16px; font-size: 0.92rem; font-weight: 600; color: var(--muted); }

/* Three feature tiles */
.features { display: flex; justify-content: center; gap: clamp(20px, 5vw, 48px); margin-top: 48px; flex-wrap: wrap; }
.feat {
  display: flex; flex-direction: column; align-items: center; gap: 10px; width: 140px;
  opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease;
}
.features.reveal .feat { opacity: 1; transform: none; }
.features.reveal .feat:nth-child(1) { transition-delay: .05s; }
.features.reveal .feat:nth-child(2) { transition-delay: .18s; }
.features.reveal .feat:nth-child(3) { transition-delay: .31s; }
.ico-wrap { animation: bob 3.4s ease-in-out infinite; }
.feat:nth-child(2) .ico-wrap { animation-delay: .5s; }
.feat:nth-child(3) .ico-wrap { animation-delay: 1s; }
.feat .ico {
  width: 60px; height: 60px; display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; border: 2.5px solid var(--ink); border-radius: 50%;
  box-shadow: var(--hard-sm); transition: transform 0.2s ease;
}
.feat:hover .ico { transform: scale(1.14) rotate(-8deg); }
.feat:nth-child(1) .ico { background: var(--green); }
.feat:nth-child(2) .ico { background: var(--mustard); }
.feat:nth-child(3) .ico { background: var(--pink); }
.feat .label { font-weight: 800; font-size: 0.98rem; }
.feat .desc { font-weight: 600; font-size: 0.82rem; color: var(--muted); line-height: 1.35; }

@media (max-width: 540px) {
  form.waitlist { flex-direction: column; border-radius: 26px; }
  form.waitlist input[type="email"] { text-align: center; }
  form.waitlist button { border-radius: 16px; }
  .features { gap: 18px; }
  .feat { width: 120px; }
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .brand, .nav, .rise, .hero .hero-badge, .hero .eyebrow, .hero h1, .hero .sub, .hero form, .hero .microcopy, .feat { opacity: 1 !important; transform: none !important; }
  .page-head h1 .accent, .hero h1 .accent { transform: rotate(-2deg) !important; }
}
