/* Toyco — styles inspired by the Story & Clay catalogue */
:root {
  --cream: #FFF6E8;
  --sand: #F6EBDC;
  --navy: #1F3A6E;
  --brown: #5A3B22;
  --orange: #C4471A;
  --teal: #237A5B;
  --sun: #FFD36E;
  --slate: #2F4E5E;
  --lilac: #E6E3F8;
  --white: #FFFFFF;
  --display: 'Chewy', 'Comic Sans MS', 'Trebuchet MS', cursive;
  --body: 'Quicksand', 'Nunito', 'Segoe UI', system-ui, sans-serif;
  --wrap: 1200px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--cream); color: var(--brown); font-family: var(--body); font-weight: 500; font-size: 18px; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
a:hover { color: var(--orange); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; color: var(--navy); line-height: 1.05; margin: 0; letter-spacing: 0.5px; }
h4 { margin: 0; font-size: 18px; color: var(--navy); }
p { margin: 0; }
.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 999px; z-index: 50; }
.skip:focus { left: 12px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 26px; border-radius: 999px; font-weight: 700; font-size: 18px; text-decoration: none; border: 0; cursor: pointer; font-family: var(--body); }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: #A33A14; color: #fff; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--sun); color: var(--navy); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: #142850; color: #fff; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--cream); border-bottom: 2px solid #EFDFC6; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo svg { width: 40px; height: 40px; }
.logo span { font-family: var(--display); font-size: 36px; color: var(--navy); line-height: 1; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { text-decoration: none; font-weight: 700; color: var(--brown); }
.nav a[aria-current="page"] { color: var(--orange); }
.nav .btn { color: #fff; }
.nav-toggle { display: none; background: var(--navy); color: #fff; border: 0; border-radius: 999px; padding: 10px 18px; font: 700 16px var(--body); min-height: 44px; }
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--cream); padding: 8px 20px 20px; border-bottom: 2px solid #EFDFC6; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 4px; }
  .nav .btn { margin-top: 8px; }
}

/* Wavy bands */
.band { color: #fff; text-align: center; }
.band-inner { padding: 64px 0 28px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.band h1, .band h2 { color: #fff; }
.band p { max-width: 62ch; font-size: 19px; }
.wave { display: block; width: 100%; height: 40px; }

/* Hero */
.hero { background: var(--slate); color: #fff; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; padding: 72px 0 40px; }
.hero h1 { color: #fff; font-size: clamp(48px, 7vw, 92px); }
.hero .lede { font-size: 21px; max-width: 34ch; margin-top: 22px; color: #FFF1D6; }
.hero .cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-photo { border-radius: 32px; overflow: hidden; background: #fff; }
.hero-tag { font-family: var(--display); color: var(--sun); font-size: 26px; letter-spacing: 1px; margin-bottom: 14px; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 32px; padding-top: 48px; } }

/* Safety circles */
.safety { padding: 28px 0 64px; }
.safety .wrap { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.safety-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; }
.dot { width: 140px; height: 140px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; color: #fff; font-weight: 700; font-size: 15px; line-height: 1.2; padding: 14px; }
.dot svg { width: 32px; height: 32px; }
.safety-note { font-weight: 700; color: var(--navy); }

/* Section heads on cream */
.section { padding: 88px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; display: flex; flex-direction: column; gap: 14px; align-items: center; }
.section-head h2 { font-size: clamp(40px, 5vw, 60px); }
.speech { background: var(--sun); border-radius: 48px; padding: 22px 40px; position: relative; }
.speech::after { content: ""; position: absolute; left: 22%; bottom: -18px; border: 18px solid transparent; border-top-color: var(--sun); border-bottom: 0; }

/* Brands */
.brands { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.brand { border-radius: 36px; overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.brand-top { padding: 36px 36px 16px; color: #fff; }
.brand-top h3 { color: #fff; font-size: 52px; }
.brand-top p { margin-top: 8px; font-size: 18px; }
.brand-art { background: #fff; padding: 20px 20px 0; }
.brand-art img, .brand-art svg { border-radius: 20px; width: 100%; }
.brand-body { padding: 24px 36px 36px; display: flex; flex-direction: column; gap: 18px; flex-grow: 1; }
.facts { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.facts li { background: var(--lilac); color: var(--navy); border-radius: 999px; padding: 6px 16px; font-weight: 700; font-size: 16px; }
.brand-body .btn { align-self: flex-start; margin-top: auto; }
.todo { background: #FFF0B8; border: 2px dashed #D9A400; border-radius: 12px; padding: 10px 14px; color: #6B4E00; font-size: 16px; }
@media (max-width: 900px) { .brands { grid-template-columns: 1fr; } .brand-top h3 { font-size: 44px; } }

/* Range tiles */
.tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.tile { text-decoration: none; border-radius: 28px; overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.tile img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.tile span { display: block; padding: 14px 18px 18px; font-family: var(--display); font-size: 24px; line-height: 1.1; color: #fff; flex-grow: 1; }
.tile:hover span { text-decoration: underline; }
@media (max-width: 1000px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .tiles { grid-template-columns: 1fr; } }

/* Reasons */
.reasons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.reason h3 { font-size: 32px; margin-bottom: 10px; }
.reason .blob { width: 64px; height: 64px; margin-bottom: 16px; }
@media (max-width: 900px) { .reasons { grid-template-columns: 1fr; gap: 28px; } }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: step; }
.steps li { counter-increment: step; background: #fff; border-radius: 28px; padding: 32px; position: relative; }
.steps li::before { content: counter(step); display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; background: var(--teal); color: #fff; font-family: var(--display); font-size: 28px; margin-bottom: 16px; }
.steps h3 { font-size: 28px; margin-bottom: 8px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }

/* CTA */
.cta { background: var(--sand); text-align: center; }
.cta .wrap { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.cta h2 { font-size: clamp(44px, 6vw, 72px); }

/* Series (range page) */
.series-body { padding: 56px 0 96px; display: flex; flex-direction: column; gap: 56px; }
.series h2 { font-size: clamp(44px, 6vw, 76px); }
.product { display: grid; grid-template-columns: 400px 1fr; gap: 48px; align-items: start; }
.product + .product { border-top: 3px dotted var(--rule, #E4D6C0); padding-top: 56px; }
.product-info { display: flex; flex-direction: column; gap: 18px; }
.product-name { font-weight: 700; color: var(--brown); }
.product h3 { font-size: clamp(34px, 4vw, 46px); }
.pill { display: inline-block; background: var(--lilac); color: var(--navy); border-radius: 999px; padding: 4px 14px; font-weight: 700; }
.includes { list-style: none; margin: 8px 0 0; padding: 0; counter-reset: inc; display: flex; flex-direction: column; gap: 8px; }
.includes li { counter-increment: inc; display: flex; gap: 10px; align-items: flex-start; }
.includes li::before { content: counter(inc); flex-shrink: 0; width: 26px; height: 26px; margin-top: 2px; border-radius: 50%; background: var(--teal); color: #fff; font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.hint { font-size: 14px; color: #7A5C42; }
.lineup { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.lineup li { background: #fff; border-radius: 12px; padding: 4px 12px; font-family: var(--display); font-size: 19px; color: var(--brown); }
.packing { font-size: 15px; line-height: 1.55; }
.product-media { display: flex; flex-direction: column; gap: 20px; }
.product-media img { border-radius: 22px; width: 100%; }
@media (max-width: 900px) { .product { grid-template-columns: 1fr; gap: 28px; } }

/* Jump nav on range page */
.jump { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; padding: 8px 0 56px; list-style: none; margin: 0; }
.jump a { display: inline-flex; min-height: 44px; align-items: center; padding: 8px 18px; border-radius: 999px; color: #fff; text-decoration: none; font-weight: 700; }
.jump a:hover { color: #fff; text-decoration: underline; }

/* Popular sets */
.sets { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; align-items: start; }
.set-card { background: #fff; border-radius: 28px; overflow: hidden; }
.set-card h3 { padding: 16px 28px; font-size: 32px; }
.set-card ul { list-style: none; margin: 0; padding: 4px 28px 14px; }
.set-card li { padding: 12px 0; border-top: 2px dotted #E4D6C0; display: flex; flex-direction: column; }
.set-card li a { font-weight: 700; font-size: 19px; }
@media (max-width: 800px) { .sets { grid-template-columns: 1fr; } }

/* Stockist page */
.contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: start; }
.form { background: #fff; border-radius: 32px; padding: 36px; display: grid; gap: 18px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-weight: 700; color: var(--navy); font-size: 16px; }
.form input, .form select, .form textarea { font: 500 17px var(--body); color: var(--brown); padding: 12px 14px; border: 2px solid #D9C7AE; border-radius: 14px; background: var(--cream); min-height: 48px; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--navy); outline: none; box-shadow: 0 0 0 3px #C9D6F0; }
.form fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.form legend { font-weight: 700; color: var(--navy); font-size: 16px; margin-bottom: 8px; }
.form fieldset label { flex-direction: row; align-items: center; gap: 8px; font-weight: 600; color: var(--brown); }
.form input[type="checkbox"] { width: 22px; height: 22px; min-height: 0; accent-color: var(--teal); }
.form .btn { justify-self: start; }
.form small { color: #7A5C42; }
.details { display: flex; flex-direction: column; gap: 28px; }
.details .card { background: var(--sun); border-radius: 28px; padding: 28px; }
.details .card h3 { font-size: 30px; margin-bottom: 10px; }
.details dl { margin: 0; display: grid; gap: 8px; }
.details dt { font-weight: 700; color: var(--navy); }
.details dd { margin: 0 0 6px; }
.faq details { background: #fff; border-radius: 20px; padding: 18px 22px; }
.faq details + details { margin-top: 12px; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--navy); font-size: 18px; }
.faq details p { margin-top: 10px; }
@media (max-width: 900px) { .contact-grid, .form .row { grid-template-columns: 1fr; } .form { padding: 24px; } }

/* Footer */
.site-footer { background: var(--navy); color: #F5E9D6; padding: 56px 0 40px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer h2 { color: #fff; font-size: 34px; }
.site-footer h3 { color: var(--sun); font-family: var(--body); font-weight: 700; font-size: 17px; margin-bottom: 10px; letter-spacing: 0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer a { color: #F5E9D6; }
.site-footer a:hover { color: var(--sun); }
.fine { margin-top: 40px; font-size: 15px; color: #C8BBA6; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; } }
.hero > .wave { background: var(--cream); }
@media (max-width: 520px) { .dot { width: 112px; height: 112px; font-size: 13px; } .safety-row { gap: 14px; } }

/* Cogo themes */
.themes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.theme { background: #fff; border-radius: 28px; overflow: hidden; display: flex; flex-direction: column; }
.theme img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.theme div { padding: 20px 24px 26px; display: flex; flex-direction: column; gap: 8px; }
.theme h3 { font-size: 30px; }
@media (max-width: 1000px) { .themes { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .themes { grid-template-columns: 1fr; } }
.maker { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: start; }
.maker-text { display: flex; flex-direction: column; gap: 18px; }
.maker-text h2 { font-size: clamp(40px, 5vw, 60px); }
.maker-text h3 { font-size: 30px; margin-top: 10px; }
.checks { margin: 0; padding-left: 22px; display: grid; gap: 8px; }
.maker-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.maker-photos img { border-radius: 22px; width: 100%; height: 100%; object-fit: cover; }
.maker-photos img:first-child { grid-row: span 2; }
@media (max-width: 900px) { .maker { grid-template-columns: 1fr; } }

/* Toyco wordmark */
.tc { font-family: 'Montserrat', 'Century Gothic', 'Segoe UI', sans-serif; font-weight: 500; font-size: 0.86em; letter-spacing: 0.08em; text-transform: uppercase; color: #0C1437; white-space: nowrap; }
.tc .tc-co { color: #B70D0E; }
.hero .tc, .site-footer .tc { color: #FFFFFF; }
.hero .tc .tc-co, .site-footer .tc .tc-co { color: #FF9E9E; }
.logo img { width: 44px; height: auto; }
.wordmark { display: flex; flex-direction: column; line-height: 1; }
.wordmark .tc { font-size: 30px; letter-spacing: 0.1em; }
.wordmark small, .footer-mark small { font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: 10px; letter-spacing: 0.42em; text-transform: uppercase; color: #8C6A35; margin-top: 5px; }
.footer-mark { display: flex; flex-direction: column; line-height: 1; }
.footer-mark .tc { font-size: 34px; letter-spacing: 0.1em; }
.footer-mark small { color: #D9B77E; }
.tagline { font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: 13px; letter-spacing: 0.3em; text-transform: uppercase; margin-top: 12px; color: #fff; }
.tagline span { color: #FF9E9E; }

/* Cogo logo in place of the word */
.cogo-logo { display: inline-block; height: 0.95em; width: auto; vertical-align: -0.14em; margin: 0 0.06em; }
.nav .cogo-logo { height: 22px; vertical-align: -5px; }
.btn, .jump a { gap: 0.3em; }

/* Story and Clay wordmark (logo colours) */
.sc { font-family: 'Fredoka', 'Quicksand', 'Nunito', sans-serif; font-weight: 600; white-space: nowrap; letter-spacing: 0; }
.sc-s { color: #2C4757; }
.sc-a { color: #B9562F; font-size: 0.72em; font-weight: 500; }
.sc-c { color: #5E7456; }
.hero .sc-s, .site-footer .sc-s, .btn-primary .sc-s, .btn-navy .sc-s, .band .sc-s { color: #FFFFFF; }
.hero .sc-a, .site-footer .sc-a, .btn-primary .sc-a, .btn-navy .sc-a, .band .sc-a { color: #FFC4A8; }
.hero .sc-c, .site-footer .sc-c, .btn-primary .sc-c, .btn-navy .sc-c, .band .sc-c { color: #CFE3C4; }
.sc-top { background: #FFF1E3; color: #2C4757 !important; }
.sc-top h3 { line-height: 0; }
.sc-logo { width: 200px; height: auto; }
.sc-h1 { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.sc-badge { background: #FFF6E8; border-radius: 36px; padding: 22px 34px; line-height: 0; }
.sc-badge .sc-logo { width: 240px; }
@media (max-width: 600px) { .sc-logo { width: 160px; } .sc-badge .sc-logo { width: 180px; } }
.hero .btn-light .sc-s { color: #2C4757; }
.hero .btn-light .sc-a { color: #B9562F; }
.hero .btn-light .sc-c { color: #5E7456; }
