/* Frucool by P&L Marketing - one stylesheet for the whole site.
   Fonts self-hosted: Lilita One (display) + Figtree (text). */

@font-face { font-family: "Lilita One"; src: url("../fonts/lilita-one-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("../fonts/figtree-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("../fonts/figtree-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("../fonts/figtree-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("../fonts/figtree-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; }

:root {
  --ice: #eaf4fb;
  --frost: #f7fbfe;
  --white: #fff;
  --blue: #1a5dc8;
  --blue-deep: #0f3f8f;
  --navy: #0d2b52;
  --muted: #3f5a7a;
  --red: #d8232b;
  --line: #c6daea;
  --wa: #0f7a40;
  --display: "Lilita One", "Arial Rounded MT Bold", system-ui, sans-serif;
  --text: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1180px;
  --gut: clamp(1.1rem, 4vw, 2.5rem);
  --r-lg: 28px;
  --r-md: 16px;
  --r-pill: 999px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--ice); color: var(--navy); font: 400 1.0625rem/1.6 var(--text); }
img { max-width: 100%; height: auto; display: block; }
picture { display: block; }
a { color: var(--blue); text-underline-offset: .18em; text-decoration-thickness: .08em; }
a:hover { color: var(--blue-deep); }
:focus-visible { outline: 3px solid #ffb000; outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1; letter-spacing: .005em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.5rem, 5.4vw, 4.5rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.85rem); }
h3 { font-size: 1.6rem; }
p { margin: 0 0 1em; }
address { font-style: normal; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--navy); color: #fff; padding: .6rem 1rem; border-radius: 8px; }
.skip:focus { top: 1rem; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); max-width: 38em; }
.section-h { margin-bottom: .35em; }
.section-intro { max-width: 36em; color: var(--muted); margin-bottom: 2.5rem; }
.small { font-size: .875rem; color: var(--muted); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px; padding: .7em 1.4em; border-radius: var(--r-pill); border: 2px solid transparent; font: 700 1rem/1.1 var(--text); text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
.btn-sm { min-height: 42px; padding: .55em 1.1em; font-size: .95rem; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-deep); color: #fff; }
.btn-ghost { background: transparent; color: var(--blue); border-color: currentColor; }
.btn-ghost:hover { background: var(--white); color: var(--blue-deep); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: #0a5c30; color: #fff; }
.btn-light { background: #fff; color: var(--blue-deep); }
.btn-light:hover { background: var(--ice); color: var(--navy); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.link { font-weight: 700; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(247, 251, 254, .94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.header-in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.brand { display: flex; flex-direction: column; text-decoration: none; line-height: 1; }
.brand-word { font-family: var(--display); font-size: 2.1rem; color: var(--blue); text-shadow: 2px 2px 0 var(--red); letter-spacing: .01em; }
.brand-by { font-size: .78rem; font-weight: 700; color: var(--muted); margin-top: .2rem; }
.site-nav { display: flex; align-items: center; gap: 1.5rem; }
.site-nav ul { display: flex; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.site-nav ul a { display: block; padding: .55rem .85rem; border-radius: var(--r-pill); color: var(--navy); font-weight: 600; text-decoration: none; }
.site-nav ul a:hover { background: var(--ice); }
.site-nav ul a[aria-current="page"] { background: var(--navy); color: #fff; }
.nav-toggle { display: none; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; align-items: center; gap: .55rem; min-height: 44px; padding: 0 1rem; border: 2px solid var(--navy); border-radius: var(--r-pill); background: transparent; color: var(--navy); font: 700 .95rem var(--text); cursor: pointer; }
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 18px; height: 2px; background: currentColor; position: relative; }
  .nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bars::before { top: -6px; }
  .nav-toggle-bars::after { top: 6px; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 1rem; padding: 1rem var(--gut) 1.5rem; background: var(--frost); border-bottom: 1px solid var(--line); }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; }
  .site-nav ul a { padding: .8rem 1rem; font-size: 1.1rem; }
}

/* Hero - the freezer of Frucool tubes */
.hero { background: var(--blue); color: #fff; overflow: hidden; position: relative; }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 18px; background: repeating-linear-gradient(90deg, var(--red) 0 22px, #fff 22px 34px); opacity: .95; }
.hero-in { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 2rem; padding-top: clamp(3rem, 7vw, 6rem); padding-bottom: clamp(3.5rem, 7vw, 6rem); }
.hero h1 { color: #fff; text-shadow: 3px 3px 0 var(--blue-deep); max-width: 11em; text-wrap: balance; }
.hero .lead { color: #e7f0ff; max-width: 30em; }
.hero .btn-primary { background: #fff; color: var(--blue-deep); }
.hero .btn-primary:hover { background: var(--ice); }
.hero .btn-ghost { color: #fff; }
.hero .btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.hero-note { margin-top: 1.5rem; font-weight: 600; color: #cfe0ff; }

.tubes { display: flex; justify-content: center; align-items: flex-end; gap: clamp(.45rem, 1.3vw, .9rem); height: clamp(320px, 42vw, 470px); }
.tube { --w: clamp(40px, 4.6vw, 64px); position: relative; display: block; width: var(--w); height: calc(78% + (var(--i) * 3%)); border-radius: calc(var(--w) / 2.2); background:
    linear-gradient(90deg, rgba(255,255,255,0) 0 18%, rgba(255,255,255,.55) 22%, rgba(255,255,255,0) 32%),
    linear-gradient(90deg, color-mix(in srgb, var(--c) 78%, #000) 0%, var(--c) 30%, color-mix(in srgb, var(--c) 82%, #fff) 70%, color-mix(in srgb, var(--c) 85%, #000) 100%);
  box-shadow: 0 18px 30px -12px rgba(5, 25, 70, .55);
  transform: rotate(calc((var(--i) - 2.5) * 2.2deg));
  transform-origin: 50% 100%;
  animation: drop .8s cubic-bezier(.2, .9, .3, 1.25) both;
  animation-delay: calc(var(--i) * 90ms + 150ms);
}
.tube:nth-child(even) { height: calc(86% - (var(--i) * 2%)); }
/* crimped sachet ends */
.tube::before, .tube::after { content: ""; position: absolute; left: -3px; right: -3px; height: 16px; background: repeating-linear-gradient(90deg, rgba(255,255,255,.9) 0 3px, rgba(255,255,255,.55) 3px 6px); border-radius: 4px; }
.tube::before { top: -8px; }
.tube::after { bottom: -8px; }
.tube-label { position: absolute; inset: 22px 0; display: flex; align-items: center; justify-content: center; writing-mode: vertical-rl; transform: rotate(180deg); font-family: var(--display); font-size: clamp(1rem, 1.7vw, 1.4rem); color: #fff; text-shadow: 1px 1px 0 rgba(0,0,0,.25); white-space: nowrap; }
@keyframes drop { from { transform: translateY(-120%) rotate(0deg); opacity: 0; } to { opacity: 1; } }

/* Brand rows */
.brands { padding: clamp(4rem, 8vw, 7rem) 0 clamp(2rem, 4vw, 3rem); }
.brand-row { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: center; margin-bottom: clamp(3rem, 6vw, 5rem); }
.brand-row-flip .brand-row-img { order: 2; }
.brand-row-img { background: color-mix(in srgb, var(--c) 12%, #fff); border-radius: var(--r-lg); padding: clamp(1.25rem, 3vw, 2.5rem); border: 2px solid color-mix(in srgb, var(--c) 30%, #fff); }
.brand-row-img img { width: 100%; filter: drop-shadow(0 16px 18px rgba(13, 43, 82, .18)); }
.brand-row-copy h3 { font-size: clamp(2rem, 3.4vw, 2.6rem); color: var(--c); }
.brand-row-copy p { max-width: 32em; }
.packs { font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: .45rem; list-style: none; padding: 0; margin: 0 0 1.25rem; }
.chips li { display: inline-flex; align-items: center; gap: .45em; padding: .3em .8em .3em .45em; background: #fff; border: 1px solid var(--line); border-radius: var(--r-pill); font-size: .9rem; font-weight: 600; }
.chips li::before { content: ""; width: .95em; height: .95em; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 2px rgba(255,255,255,.5); }

/* Capacity band */
.capacity { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: clamp(3.5rem, 7vw, 6rem) 0; }
.capacity h2 { font-size: clamp(1.8rem, 3.6vw, 3rem); max-width: 18em; line-height: 1.05; }
.cap-num { color: var(--blue); }
.cap-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; list-style: none; padding: 0; margin: 2.5rem 0 0; }
.cap-facts li { border-top: 4px solid var(--red); padding-top: 1rem; color: var(--muted); }
.cap-facts strong { display: block; color: var(--navy); font-size: 1.1rem; }

/* Steps */
.how { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; list-style: none; padding: 0; margin: 2rem 0 0; }
.steps li { counter-increment: s; position: relative; padding-left: 4.2rem; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -.2rem; width: 3.1rem; height: 3.1rem; border-radius: 50%; display: grid; place-items: center; background: var(--blue); color: #fff; font: 1.6rem/1 var(--display); }
.steps h3 { font-size: 1.4rem; margin-bottom: .3em; }
.steps p { color: var(--muted); }

/* Page head */
.page-head { padding: clamp(3rem, 6vw, 5rem) 0 clamp(2rem, 4vw, 3rem); background: linear-gradient(180deg, var(--frost), var(--ice)); }
.page-head h1 { color: var(--blue); text-shadow: 3px 3px 0 #fff, 5px 5px 0 var(--line); max-width: 13em; }

/* Range */
.range-nav ul { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 2rem 0 0; }
.range-nav a { display: block; padding: .5rem 1rem; border-radius: var(--r-pill); background: #fff; border: 1px solid var(--line); color: var(--navy); font-weight: 600; text-decoration: none; }
.range-nav a:hover { border-color: var(--blue); color: var(--blue); }
.family { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.family:nth-of-type(even) { background: var(--frost); }
.family-head { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: end; margin-bottom: 2rem; }
.family-head p { max-width: 34em; margin: 0; color: var(--muted); }
.family-head .family-brand { font-weight: 700; color: var(--blue); margin-bottom: .25rem; }
.spec { display: flex; gap: 0; margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.spec div { padding: .7rem 1.1rem; border-left: 1px solid var(--line); }
.spec div:first-child { border-left: 0; }
.spec dt { font-size: .8rem; color: var(--muted); }
.spec dd { margin: 0; font-weight: 700; white-space: nowrap; }
.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; list-style: none; padding: 0; margin: 0; }
.product-img { overflow: hidden; background: #fff; border-radius: var(--r-md); border-bottom: 6px solid var(--c); padding: 1.25rem; aspect-ratio: 4 / 3; display: grid; place-items: center; }
.product-img picture { width: 100%; height: 100%; }
.product-img img { width: 100%; height: 100%; object-fit: contain; }
.product h3 { margin: 1rem 0 .2rem; font-size: 1.45rem; }
.product-meta { font-size: .92rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: .25rem 1rem; }
.barcode { font-variant-numeric: tabular-nums; }

.cta-band { background: var(--blue); color: #fff; padding: clamp(3rem, 6vw, 4.5rem) 0; }
.cta-band-in { display: grid; grid-template-columns: 1fr auto; gap: .5rem 2rem; align-items: center; }
.cta-band h2 { margin: 0; }
.cta-band p { margin: 0; grid-column: 1; color: #dfeaff; }
.cta-band .btn { grid-row: 1 / span 2; grid-column: 2; }

/* About */
.about-head { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2rem; align-items: center; }
.about-packs { position: relative; height: 320px; }
.about-packs picture { position: absolute; width: 62%; }
.about-packs img { filter: drop-shadow(0 14px 16px rgba(13, 43, 82, .2)); }
.about-packs picture:nth-child(1) { left: 0; top: 0; transform: rotate(-6deg); }
.about-packs picture:nth-child(2) { right: 0; top: 30%; transform: rotate(5deg); }
.about-packs picture:nth-child(3) { left: 18%; bottom: -4%; width: 46%; transform: rotate(-2deg); }
.story { padding: clamp(3.5rem, 7vw, 5.5rem) 0; }
.story-in { display: grid; grid-template-columns: 1fr 2fr; gap: 2rem; }
.timeline { list-style: none; padding: 0; margin: 0; border-left: 4px solid var(--line); }
.timeline li { position: relative; padding: 0 0 2rem 2rem; }
.timeline li::before { content: ""; position: absolute; left: -12px; top: .35rem; width: 20px; height: 20px; border-radius: 50%; background: var(--red); border: 4px solid var(--ice); }
.timeline .year { display: block; font: 1.9rem/1 var(--display); color: var(--blue); margin-bottom: .35rem; }
.timeline p { max-width: 34em; margin: 0; }
.visit { padding: clamp(3.5rem, 7vw, 5.5rem) 0; }
.visit-in { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center; }
.big-address { font: clamp(1.5rem, 3vw, 2.2rem)/1.15 var(--display); color: var(--navy); }
.visit-logo img { width: clamp(140px, 22vw, 240px); }

/* Order builder */
.order { padding: 1rem 0 clamp(3rem, 6vw, 5rem); }
.order-in { display: grid; grid-template-columns: 1fr 380px; gap: 2rem; align-items: start; }
.o-family { border: 0; padding: 0; margin: 0 0 2rem; }
.o-family legend { font: 1.6rem/1 var(--display); padding: 0; margin-bottom: .75rem; color: var(--navy); }
.o-family legend span { font: 600 .95rem var(--text); color: var(--muted); margin-left: .4rem; }
.o-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .55rem .6rem .55rem 1rem; background: #fff; border: 1px solid var(--line); border-left: 6px solid var(--c); border-radius: 12px; margin-bottom: .5rem; }
.o-row.has-qty { border-color: var(--c); box-shadow: 0 0 0 1px var(--c); }
.o-row label { font-weight: 600; }
.o-detail { display: block; font-weight: 400; font-size: .88rem; color: var(--muted); }
.qty { display: flex; align-items: center; gap: .25rem; flex-shrink: 0; }
.qty input { width: 4.2rem; height: 44px; text-align: center; border: 2px solid var(--line); border-radius: 10px; font: 700 1.05rem var(--text); color: var(--navy); -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-btn { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--ice); color: var(--navy); font: 700 1.3rem/1 var(--text); cursor: pointer; }
.qty-btn:hover { background: var(--blue); color: #fff; }
.summary { position: sticky; top: 92px; }
.summary-in { background: #fff; border: 2px solid var(--blue); border-radius: var(--r-lg); padding: 1.5rem; }
.summary h2 { font-size: 2rem; color: var(--blue); }
.sum-count { font-weight: 700; }
.sum-list { list-style: none; padding: 0; margin: 0 0 1.25rem; max-height: 220px; overflow: auto; font-size: .92rem; }
.sum-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .4rem 0; border-bottom: 1px dashed var(--line); }
.fields { display: grid; gap: .3rem; }
.fields label { font-weight: 600; font-size: .92rem; margin-top: .45rem; }
.opt { font-weight: 400; color: var(--muted); }
.fields input, .fields textarea { width: 100%; padding: .65rem .8rem; border: 2px solid var(--line); border-radius: 10px; font: inherit; color: var(--navy); background: var(--frost); }
.fields input:focus, .fields textarea:focus { border-color: var(--blue); outline: none; background: #fff; }
.fields [aria-invalid="true"] { border-color: var(--red); }
.form-error { margin: 1rem 0 0; padding: .7rem .9rem; border-radius: 10px; background: #fdeaea; color: #8f1117; font-weight: 600; }
.sum-actions { display: grid; gap: .6rem; margin: 1.25rem 0 1rem; }
.sum-actions .btn { width: 100%; }

.contact { background: #fff; border-top: 1px solid var(--line); padding: clamp(3.5rem, 7vw, 5.5rem) 0; }
.contact-in { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.contact-list li { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.c-label { display: block; font-size: .85rem; font-weight: 700; color: var(--muted); }
.contact-list a { font-weight: 700; }
.map { min-height: 340px; border-radius: var(--r-lg); background: var(--ice); border: 2px dashed var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; text-align: center; padding: 2rem; color: var(--muted); }
.map.is-loaded { padding: 0; border: 0; overflow: hidden; }
.map iframe { width: 100%; height: 400px; border: 0; display: block; }

/* Prose */
.prose-section { padding: 1rem 0 clamp(3rem, 6vw, 5rem); }
.prose { max-width: 46rem; }
.prose h2 { font-size: 1.7rem; margin-top: 2rem; }

/* 404 */
.notfound { text-align: center; padding-bottom: 5rem; }
.notfound h1, .notfound .lead { margin-left: auto; margin-right: auto; }
.notfound .actions { justify-content: center; }
.tubes-melt { height: 200px; margin-bottom: 2rem; }
.tubes-melt .tube { --w: 54px; animation: none; transform: rotate(calc((var(--i) - 1) * 14deg)); }

/* Footer */
.site-footer { background: var(--navy); color: #d6e2f2; padding: 3.5rem 0 1.5rem; font-size: .95rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.footer-co img { width: 96px; background: #fff; border-radius: 50%; padding: 6px; margin-bottom: 1rem; }
.footer-co p { max-width: 24em; }
.footer-h { font: 700 1rem var(--text); color: #fff; margin-bottom: .75rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .45rem; }
.footer-base { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,.15); display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; font-size: .85rem; }
.footer-base p { margin: 0; }

.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: var(--wa); color: #fff; box-shadow: 0 10px 24px -6px rgba(0, 60, 30, .5); }
.wa-float:hover { color: #fff; background: #0a5c30; }

/* Responsive */
@media (max-width: 1000px) {
  .order-in { grid-template-columns: 1fr; }
  .summary { position: static; }
  .products { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .hero-in { grid-template-columns: 1fr; }
  .tubes { height: 300px; }
  .brand-row { grid-template-columns: 1fr; }
  .brand-row-flip .brand-row-img { order: 0; }
  .cap-facts, .steps { grid-template-columns: 1fr; gap: 1.5rem; }
  .family-head { grid-template-columns: 1fr; }
  .about-head, .story-in, .visit-in, .contact-in { grid-template-columns: 1fr; }
  .about-packs { height: 260px; max-width: 460px; }
  .cta-band-in { grid-template-columns: 1fr; }
  .cta-band .btn { grid-row: auto; grid-column: 1; justify-self: start; margin-top: 1rem; }
}
@media (max-width: 560px) {
  .products { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .spec { flex-wrap: wrap; }
  .o-row { padding-left: .8rem; }
  .qty input { width: 3.4rem; }
  .brand-word { font-size: 1.8rem; }
}

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