/* ==========================================================================
   E&B's Dog Ice Cream
   Brand colours:  yellow #F0A213 · ink #231F20 · cream #FFF7EA
   Flag accents:   red #CF1E25 · blue #2A3A9C · green #27963C
   Flavour tints:  banana #F7E3B6 · carrot #F7D3AE
   ========================================================================== */

:root{
  --yellow:#F0A213;
  --yellow-dark:#D18D0C;
  --ink:#231F20;
  --ink-soft:#4A4547;
  --cream:#FFF7EA;
  --white:#ffffff;
  --banana:#F7E3B6;
  --carrot:#F7D3AE;
  --red:#CF1E25;
  --blue:#2A3A9C;
  --green:#27963C;
  --line:rgba(35,31,32,.14);
  --radius:20px;
  --shadow:0 14px 38px rgba(35,31,32,.10);
}

*{box-sizing:border-box}

html{scroll-behavior:smooth}

body{
  margin:0;
  background:var(--cream);
  color:var(--ink);
  font-family:Montserrat,system-ui,-apple-system,"Segoe UI",sans-serif;
  font-size:17px;
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
}

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

h1,h2,h3{font-family:Fredoka,Montserrat,sans-serif;font-weight:700;line-height:1.1;margin:0 0 14px}
h1{font-size:clamp(32px,5.2vw,54px)}
h2{font-size:clamp(26px,3.6vw,38px)}
h3{font-size:clamp(20px,2.4vw,25px)}
p{margin:0 0 16px}

a{color:var(--ink);text-decoration-thickness:2px;text-underline-offset:3px}
a:hover,a:focus{color:var(--yellow-dark)}

.wrap{width:min(1120px,100% - 40px);margin-inline:auto}
.narrow{width:min(760px,100% - 40px)}

.skip{
  position:absolute;left:-9999px;top:0;background:var(--ink);color:#fff;
  padding:10px 16px;border-radius:0 0 8px 0;z-index:100;
}
.skip:focus{left:0}

/* ---------- header ---------- */
.site-head{
  position:sticky;top:0;z-index:50;
  background:rgba(255,247,234,.94);
  backdrop-filter:blur(8px);
  border-bottom:1px solid var(--line);
}
.head-inner{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:10px 0}
.brand{display:flex;align-items:center;gap:10px;text-decoration:none;font-weight:800;font-size:15px}
.brand img{width:46px;height:auto}
.site-head nav{display:flex;align-items:center;gap:22px;flex-wrap:wrap}
.site-head nav a{text-decoration:none;font-weight:600;font-size:15px}
.nav-cta{
  background:var(--ink);color:#fff;padding:9px 16px;border-radius:999px;font-weight:700;
}
.nav-cta:hover,.nav-cta:focus{background:var(--yellow);color:var(--ink)}

/* Hamburger. Hidden on desktop, where the links sit in the bar. */
.nav-toggle{
  display:none;width:48px;height:48px;padding:0;
  background:transparent;border:2px solid var(--ink);border-radius:12px;
  cursor:pointer;color:var(--ink);
}
.nav-toggle .bars{display:block;width:22px;margin:0 auto}
.nav-toggle .bars i{
  display:block;height:2.5px;background:currentColor;border-radius:2px;
  transition:transform .2s ease,opacity .2s ease;
}
.nav-toggle .bars i+i{margin-top:5px}
.nav-toggle[aria-expanded="true"]{background:var(--ink);color:var(--cream)}
.nav-toggle[aria-expanded="true"] .bars i:nth-child(1){transform:translateY(7.5px) rotate(45deg)}
.nav-toggle[aria-expanded="true"] .bars i:nth-child(2){opacity:0}
.nav-toggle[aria-expanded="true"] .bars i:nth-child(3){transform:translateY(-7.5px) rotate(-45deg)}

/* ---------- buttons ---------- */
.btn{
  display:inline-block;background:var(--yellow);color:var(--ink);
  font-weight:700;text-decoration:none;padding:15px 26px;border-radius:999px;
  border:2px solid var(--yellow);min-height:48px;
  transition:transform .15s ease,background .15s ease;
}
.btn:hover,.btn:focus{background:var(--yellow-dark);border-color:var(--yellow-dark);color:var(--ink);transform:translateY(-1px)}
.btn-ghost{background:transparent;border-color:var(--ink);color:var(--ink)}
.btn-ghost:hover,.btn-ghost:focus{background:var(--ink);border-color:var(--ink);color:#fff}
.btn-dark{background:var(--ink);border-color:var(--ink);color:#fff;cursor:pointer;font-size:17px;font-family:inherit}
.btn-dark:hover,.btn-dark:focus{background:#3a3436;border-color:#3a3436;color:#fff}

/* ---------- hero ---------- */
.hero{background:var(--yellow);padding:46px 0 0;border-bottom:1px solid rgba(35,31,32,.1)}
.hero-inner{display:flex;align-items:center;gap:40px;flex-wrap:wrap}
.hero-copy{flex:1 1 360px;min-width:0}
.hero-art{flex:0 1 300px;display:flex;justify-content:center}
.hero-art img{
  width:300px;background:var(--white);border-radius:28px;padding:22px;box-shadow:var(--shadow);
}
/* On the yellow hero the primary button has to be dark to show up at all */
.hero .btn{background:var(--ink);border-color:var(--ink);color:#fff}
.hero .btn:hover,.hero .btn:focus{background:#3a3436;border-color:#3a3436;color:#fff}
.hero .btn-ghost{background:transparent;border-color:var(--ink);color:var(--ink)}
.hero .btn-ghost:hover,.hero .btn-ghost:focus{background:var(--ink);color:#fff}

.lede{font-size:clamp(17px,2vw,20px);font-weight:500;max-width:48ch}
.hero-actions{display:flex;gap:12px;flex-wrap:wrap;margin:24px 0 12px}
.hero-note{font-size:14px;font-weight:600}

.trust{
  display:flex;gap:16px;flex-wrap:wrap;
  margin-top:34px;padding:22px 0;border-top:1px solid rgba(35,31,32,.15);
  list-style:none;
}
.trust li{flex:1 1 220px;display:flex;flex-direction:column}
.trust strong{font-size:16px}
.trust span{font-size:14px;color:#5c5456}

/* ---------- sections ---------- */
.section{padding:70px 0}
.section-alt{background:var(--white)}
.section-lede{font-size:19px;font-weight:500;max-width:52ch;margin-bottom:34px}
.sub{margin-top:34px}

/* ---------- flavours ---------- */
.flavours{display:flex;gap:24px;flex-wrap:wrap}
.flavour{
  flex:1 1 320px;background:var(--white);border-radius:var(--radius);
  padding:30px 28px;box-shadow:var(--shadow);border-top:10px solid var(--yellow);
}
.flavour-pbb{border-top-color:var(--yellow)}
.flavour-cc{border-top-color:var(--carrot)}
.flavour h3{margin-bottom:12px}
.flavour dl{margin:22px 0 0;padding-top:18px;border-top:1px solid var(--line)}
.flavour dt{font-size:12px;font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:var(--ink-soft)}
.flavour dd{margin:2px 0 14px;font-weight:600}
.flavour dd:last-child{margin-bottom:0}

/* ---------- lists ---------- */
.ticks{list-style:none;padding:0;margin:0}
.ticks li{position:relative;padding-left:30px;margin-bottom:14px}
.ticks li::before{
  content:"";position:absolute;left:0;top:9px;width:14px;height:14px;border-radius:50%;
  background:var(--yellow);
}

.callout{
  background:var(--white);border-left:6px solid var(--red);
  padding:22px 24px;border-radius:0 var(--radius) var(--radius) 0;margin-top:30px;
}
.callout h3{font-size:19px;margin-bottom:8px}
.callout p{margin:0}

/* ---------- story ---------- */
.section-story{background:var(--banana)}
.story-inner{display:flex;gap:40px;align-items:center;flex-wrap:wrap}
.story-art{flex:0 1 320px;display:flex;gap:18px;justify-content:center;align-items:flex-end}
.story-art figure{margin:0;text-align:center;display:flex;flex-direction:column;justify-content:flex-end}
.story-art img{width:150px;height:auto}
.story-art figcaption{font-family:Fredoka,sans-serif;font-weight:600;font-size:17px;margin-top:4px}
.story-copy{flex:1 1 380px;min-width:0}

/* ---------- waitlist ---------- */
.section-waitlist{background:var(--ink);color:var(--cream)}
.section-waitlist h2{color:var(--white)}
.section-waitlist a{color:var(--yellow)}
.card{
  background:var(--white);color:var(--ink);border-radius:var(--radius);
  padding:30px 28px;margin-top:30px;box-shadow:var(--shadow);
}
.field{margin-bottom:18px}
.field label{display:block;font-weight:700;font-size:15px;margin-bottom:6px}
.req{color:var(--red);font-weight:600}
.opt{color:var(--ink-soft);font-weight:500}
.field input{
  width:100%;padding:14px 16px;font:inherit;font-size:16px;
  border:2px solid var(--line);border-radius:12px;background:#fdfcfa;color:var(--ink);
  min-height:48px;
}
.field input:focus{outline:3px solid var(--yellow);outline-offset:1px;border-color:var(--ink)}
.field input[aria-invalid="true"]{border-color:var(--red)}
.hint{font-size:13.5px;color:var(--ink-soft);margin:6px 0 0}
.form-note{font-size:13.5px;color:var(--ink-soft);margin:14px 0 0}
.form-msg{margin:14px 0 0;font-weight:700;display:none}
.form-msg.show{display:block}
.form-msg.ok{color:var(--green)}
.form-msg.bad{color:var(--red)}

/* ---------- faq ---------- */
details{
  background:var(--cream);border-radius:14px;padding:4px 20px;margin-bottom:12px;
  border:1px solid var(--line);
}
details summary{
  cursor:pointer;font-weight:700;padding:14px 0;list-style:none;
  font-size:17px;display:flex;justify-content:space-between;gap:16px;align-items:center;
}
details summary::-webkit-details-marker{display:none}
details summary::after{content:"+";font-family:Fredoka,sans-serif;font-size:24px;line-height:1;color:var(--yellow-dark)}
details[open] summary::after{content:"\2013"}
details p{margin:0 0 16px}

/* ---------- contact ---------- */
.two-col{display:flex;gap:40px;flex-wrap:wrap}
.two-col>div{flex:1 1 320px;min-width:0}
.contact-list{list-style:none;padding:0;margin:0;font-weight:600}
.contact-list li{margin-bottom:10px}

/* ---------- social icons ---------- */
.social{display:flex;gap:14px;list-style:none;padding:0;margin:20px 0 0}
.social a{
  display:flex;align-items:center;justify-content:center;
  width:48px;height:48px;border-radius:14px;
  background:var(--white);border:1.5px solid var(--line);
  transition:transform .15s ease,background .15s ease,border-color .15s ease;
}
.social img{width:24px;height:24px;display:block}
.social a:hover,.social a:focus{background:var(--yellow);border-color:var(--yellow);transform:translateY(-2px)}
.social-light{justify-content:center}
.social-light a{background:transparent;border-color:rgba(255,247,234,.3)}
.social-light img{filter:invert(1)}
.social-light a:hover,.social-light a:focus{background:var(--yellow);border-color:var(--yellow)}
.social-light a:hover img,.social-light a:focus img{filter:none}

/* ---------- footer ---------- */
.site-foot{background:var(--ink);color:var(--cream);padding:46px 0 0;margin-top:0}
.foot-inner{text-align:center}
.foot-inner p{margin:0 0 8px}
.foot-brand{font-family:Fredoka,sans-serif;font-size:21px;font-weight:700;color:var(--white)}
.foot-links{display:flex;gap:20px;justify-content:center;flex-wrap:wrap;margin-top:16px;font-weight:700}
.site-foot a{color:var(--yellow)}
.foot-small{font-size:13px;color:#9d9698;margin-top:22px;padding-bottom:22px}
.flag{display:flex;height:12px}
.flag i{flex:1}
.flag .r{background:var(--red)}
.flag .b{background:var(--blue)}
.flag .g{background:var(--green)}

/* ---------- small screens ---------- */
@media (max-width:760px){
  body{font-size:16px}
  .section{padding:52px 0}
  .hero{padding-top:34px}
  .hero-inner{flex-direction:column-reverse;text-align:center}
  .hero-copy{text-align:left}
  .hero-art img{width:210px}
  .brand span{display:none}
  .brand img{width:42px}

  /* Hamburger drawer replaces the inline nav bar */
  .head-inner{position:relative}
  .nav-toggle{display:block}
  .site-head nav{
    position:absolute;left:0;right:0;top:100%;
    flex-direction:column;align-items:stretch;gap:0;
    background:var(--cream);
    border-bottom:1px solid var(--line);
    box-shadow:0 18px 30px rgba(35,31,32,.14);
    padding:6px 20px 18px;
    display:none;
  }
  .site-head nav.open{display:flex}
  .site-head nav a{
    padding:14px 2px;font-size:17px;
    border-bottom:1px solid var(--line);
  }
  .site-head nav a:last-child{border-bottom:0}
  .site-head nav .nav-cta{
    margin-top:14px;text-align:center;padding:15px 16px;border-bottom:0;
  }
  .story-art{order:-1}
  .story-art img{width:128px}
  .social{justify-content:flex-start}
  .two-col{gap:34px}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .btn{transition:none}
}
