/* =========================================================
   Benji's Balls: website styles
   Colours and fonts come from the Benji's Balls Design System.
   ========================================================= */

:root {
  /* Brand colours */
  --ball-yellow:       #E8BE2C;
  --ball-yellow-soft:  #F6DE7C;
  --ball-yellow-cream: #FBF1D2;
  --chocolate:         #3A2418;
  --chocolate-deep:    #241410;
  --chocolate-soft:    #5A3A28;
  --cream:             #FBF7EC;
  --cream-warm:        #F4ECD6;
  --ball-blue:         #2F6FAD;
  --ball-blue-cream:   #E6F0F8;
  --white:             #FFFFFF;
  --grey:              #7E715A;

  /* Fonts */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'Nunito', 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-hand:    'Caveat', 'Comic Sans MS', cursive;

  /* The signature "sticker" look */
  --outline: 3px solid var(--chocolate-deep);
  --shadow:     5px 5px 0 0 var(--chocolate-deep);
  --shadow-big: 7px 7px 0 0 var(--chocolate-deep);
  --bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ---------- Basics ---------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--chocolate-deep);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
}

img { max-width: 100%; height: auto; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1;
  margin: 0;
  text-wrap: pretty;
}

.eyebrow {
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 14px;
}

.hand {
  font-family: var(--font-hand);
  font-weight: 700;
  font-size: 26px;
  display: inline-block;
  transform: rotate(-3deg);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
  font-weight: 800;
  text-decoration: none;
  border: 2px solid var(--chocolate-deep);
  border-radius: 999px;
  white-space: nowrap;
  transition: transform 150ms var(--bounce), box-shadow 150ms;
}
.btn-sm { font-size: 14px; padding: 7px 16px; box-shadow: 3px 3px 0 0 var(--chocolate-deep); }
.btn-lg { font-size: 18px; padding: 14px 28px; box-shadow: 6px 6px 0 0 var(--chocolate-deep); }
.btn-primary { background: var(--ball-yellow); color: var(--chocolate-deep); }
.btn-dark    { background: var(--chocolate-deep); color: var(--ball-yellow); }

/* Hover: lift up. Press: squash flat, like pressing a sticker. */
.btn:hover  { transform: translate(-2px, -2px); box-shadow: var(--shadow-big); }
.btn:active { transform: translate(4px, 4px); box-shadow: none; }
.btn:focus-visible, a:focus-visible {
  outline: 3px solid var(--chocolate-deep);
  outline-offset: 2px;
}

/* ---------- Badges ---------- */
.badge {
  display: inline-block;
  font-weight: 800;
  font-size: 12px;
  padding: 5px 12px;
  border: 2px solid var(--chocolate-deep);
  border-radius: 999px;
}
.badge-yellow { background: var(--ball-yellow); color: var(--chocolate-deep); }
.badge-dark   { background: var(--chocolate-deep); color: var(--ball-yellow); }
.badge-cream  { background: var(--white); color: var(--chocolate-deep); }
.badge-blue   { background: var(--ball-blue); color: var(--white); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 32px;
  background: var(--cream);
  border-bottom: var(--outline);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--chocolate-deep);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 24px;
  letter-spacing: -0.02em;
}
.logo img { width: 50px; height: 50px; }

.nav { display: flex; gap: 28px; }
.nav a {
  color: var(--chocolate-deep);
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  border-bottom: 3px solid transparent;
}
.nav a:hover { border-bottom-color: var(--ball-yellow); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--ball-yellow);
  border-bottom: var(--outline);
  padding: 72px 32px 84px;
}
/* dotted pattern behind the hero */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, var(--chocolate-deep) 1.8px, transparent 2.2px);
  background-size: 26px 26px;
  opacity: 0.16;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero h1 { font-size: 88px; line-height: 0.95; }
.hero-text { font-size: 18px; max-width: 480px; margin: 20px 0 0; }
.hero-actions { display: flex; align-items: center; gap: 22px; margin-top: 28px; flex-wrap: wrap; }

.hero-art { position: relative; display: grid; place-items: center; }
.hero-art img {
  width: 360px;
  transform: rotate(-6deg);
  filter: drop-shadow(6px 6px 0 var(--chocolate-deep));
}
.hero-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 13px;
  padding: 6px 14px;
  transform: rotate(8deg);
}

/* ---------- Feature strip ---------- */
.strip {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding: 18px 32px;
  background: var(--cream-warm);
  border-bottom: var(--outline);
  font-weight: 800;
  font-size: 14px;
}
.strip span::before { content: "● "; color: var(--ball-yellow); }

/* ---------- Sections ---------- */
.section { max-width: 1200px; margin: 0 auto; padding: 72px 32px; }
.section h2 { font-size: 48px; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 28px;
}
.section-head .eyebrow { color: var(--chocolate-soft); }

/* ---------- Product cards ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
  background: var(--white);
  border: 2px solid var(--chocolate-deep);
  border-radius: 20px;
  box-shadow: var(--shadow);
  transition: transform 180ms var(--bounce), box-shadow 180ms;
}
.card:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow-big); }
.card h3 { font-size: 22px; font-weight: 800; margin-top: 6px; }
.card p { margin: 0; font-size: 15px; color: var(--chocolate-soft); }
.card .meta { font-size: 13px; color: var(--grey); }

.card-tag { position: absolute; top: 14px; left: 14px; z-index: 1; transform: rotate(-4deg); }

.card-art {
  height: 190px;
  display: grid;
  place-items: center;
  background: var(--ball-yellow-cream);
  border: 2px solid var(--chocolate-deep);
  border-radius: 14px;
}

/* A ball drawn with CSS: yellow circle, thick outline, tennis-ball curves */
.ball {
  position: relative;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: var(--ball-yellow);
  border: 4px solid var(--chocolate-deep);
  box-shadow: 5px 5px 0 0 var(--chocolate-deep);
  overflow: hidden;
}
.ball::before, .ball::after {
  content: "";
  position: absolute;
  left: -10%;
  width: 120%;
  height: 60%;
  border: 3px solid var(--chocolate-deep);
  border-radius: 50%;
}
.ball::before { top: -38%; }
.ball::after  { bottom: -38%; }
.ball-small  { width: 90px; height: 90px; }
.ball-blue   { background: var(--ball-blue); }

/* Two balls side by side: one yellow, one blue */
.ball-pair { display: flex; align-items: center; gap: 20px; }

.grid-3 { grid-template-columns: repeat(3, 1fr); }

/* Tick list on the product cards */
.ticks { list-style: none; padding: 0; margin: 6px 0 0; font-weight: 700; font-size: 14px; }
.ticks li::before { content: "✓ "; color: var(--ball-blue); font-weight: 900; }

/* ---------- Why yellow and blue ---------- */
.why {
  background: var(--ball-blue-cream);
  border-top: var(--outline);
  padding: 72px 32px;
}
.why-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 48px;
  align-items: center;
}
.why h2 { font-size: 48px; margin-bottom: 16px; }
.why p { font-size: 18px; line-height: 1.6; color: var(--chocolate-soft); margin: 0 0 14px; max-width: 560px; }
.why .eyebrow { color: var(--ball-blue); font-size: 13px; }
.why-balls { display: flex; gap: 16px; }
.why-balls .ball:first-child { transform: rotate(-8deg); }
.why-balls .ball:last-child  { transform: translateY(24px) rotate(6deg); }

/* ---------- Quote ---------- */
.quote {
  position: relative;
  overflow: hidden;
  background: var(--ball-yellow);
  border-top: var(--outline);
  border-bottom: var(--outline);
  padding: 72px 32px;
  text-align: center;
}
.quote blockquote {
  max-width: 900px;
  margin: 0 auto;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 48px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.quote-by {
  margin: 24px 0 0;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ---------- Meet Benji ---------- */
.about {
  display: flex;
  align-items: center;
  gap: 40px;
  max-width: 900px;
}
.about img { width: 200px; flex-shrink: 0; transform: rotate(4deg); }
.about h2 { font-size: 56px; margin-bottom: 14px; }
.lead { font-size: 19px; line-height: 1.6; color: var(--chocolate-soft); margin: 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--chocolate-deep);
  color: var(--ball-yellow-cream);
  padding: 48px 32px 28px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-inner p { margin: 0; }
.logo-light { color: var(--ball-yellow); }
.logo-light img { width: 48px; height: 48px; }
.footer-bottom {
  max-width: 1200px;
  margin: 32px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--chocolate-soft);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: #CFC2A3;
}

/* =========================================================
   Smaller screens (tablets and phones)
   ========================================================= */
@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { grid-template-columns: 1fr; text-align: left; }
  .hero h1 { font-size: 64px; }
  .hero-art img { width: 260px; }
  .why-inner { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 600px) {
  .site-header { padding: 10px 16px; }
  .logo { font-size: 20px; }
  .logo img { width: 40px; height: 40px; }
  .nav { display: none; }

  .hero { padding: 48px 16px 56px; }
  .hero h1 { font-size: 52px; }
  .hero-badge { right: 0; }

  .strip { padding: 14px 16px; justify-content: flex-start; }
  .section { padding: 48px 16px; }
  .section h2 { font-size: 36px; }
  .section-head { flex-direction: column; align-items: start; }
  .grid { grid-template-columns: 1fr; }

  .quote { padding: 48px 16px; }
  .quote blockquote { font-size: 30px; }

  .about { flex-direction: column; text-align: center; }
  .about img { width: 150px; }
  .about h2 { font-size: 40px; }

  .ball-pair .ball { width: 100px; height: 100px; }
  .ball-pair .ball-small { width: 70px; height: 70px; }

  .why { padding: 48px 16px 56px; }
  .why h2 { font-size: 36px; }
  .why-balls .ball { width: 100px; height: 100px; }

  .site-footer { padding: 40px 16px 24px; }
}
