/*
Theme Name: Imbasjaya
Theme URI: https://www.imbasjaya.com.my/
Author: Jomos
Description: Lightweight custom theme for Imbasjaya Sdn Bhd, wholesale food supplier in Kota Kinabalu, Sabah. No build tools, no page builder.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: imbasjaya
*/

/* ------------------------------------------------------------------
   Tokens
------------------------------------------------------------------ */
:root {
	--green: #1f6f43;
	--green-dark: #174f31;
	--green-light: #e4f2ea;
	--red: #c0392b;
	--red-dark: #9f2b1f;
	--amber: #e9a23b;
	--ink: #1e2a24;
	--ink-soft: #4f5d57;
	--muted: #7a877f;
	--line: #e3e8e4;
	--paper: #faf7f2;
	--white: #ffffff;
	--radius: 12px;
	--radius-lg: 20px;
	--shadow: 0 6px 18px rgba(30, 42, 36, .10);
	--shadow-hover: 0 14px 32px rgba(30, 42, 36, .18);
	--ease: 200ms ease;
	--font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
	--wrap: 1200px;
}

/* ------------------------------------------------------------------
   Base
------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition: none !important; animation: none !important; }
}
body {
	margin: 0;
	font-family: var(--font);
	font-size: 1.0625rem;
	line-height: 1.65;
	color: var(--ink);
	background: var(--white);
	-webkit-font-smoothing: antialiased;
}
body.nav-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--green-dark); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .6em; color: var(--ink); font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.25rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }
p, ul, ol { margin: 0 0 1.1em; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--green); color: #fff; padding: .6rem 1rem; z-index: 1000; border-radius: 8px; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }

.wrap { width: min(var(--wrap), 100% - 2rem); margin-inline: auto; }
.wrap--narrow { width: min(820px, 100% - 2rem); margin-inline: auto; }
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section--tight { padding: clamp(2rem, 5vw, 3.5rem) 0; }
.section--paper { background: var(--paper); }
.section--green { background: var(--green); color: #fff; }
.section--green h2, .section--green h3, .section--green p { color: #fff; }
.section-head { max-width: 680px; margin-bottom: clamp(1.75rem, 4vw, 3rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.eyebrow { display: inline-block; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--red); margin-bottom: .6rem; }
.section--green .eyebrow { color: var(--amber); }
.lead { font-size: 1.2rem; color: var(--ink-soft); }
.section--green .lead { color: rgba(255,255,255,.88); }
.muted { color: var(--muted); }

/* Buttons */
.btn {
	display: inline-flex; align-items: center; gap: .5rem;
	padding: .8rem 1.4rem; border-radius: 999px; font-weight: 600; font-size: 1rem;
	text-decoration: none; border: 2px solid transparent; cursor: pointer; line-height: 1.2;
	transition: background var(--ease), color var(--ease), border-color var(--ease), transform var(--ease), box-shadow var(--ease);
}
.btn svg { width: 1.2em; height: 1.2em; flex: none; }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--primary { background: var(--green); color: #fff; }
.btn--primary:hover { background: var(--green-dark); color: #fff; }
.btn--whatsapp { background: #25d366; color: #0b3d1f; }
.btn--whatsapp:hover { background: #1ebe5b; color: #0b3d1f; }
.btn--outline { border-color: var(--green); color: var(--green); background: transparent; }
.btn--outline:hover { background: var(--green); color: #fff; }
.btn--light { background: #fff; color: var(--green); }
.btn--light:hover { color: var(--green-dark); }
.btn--ghost { border-color: rgba(255,255,255,.6); color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn--sm { padding: .55rem 1rem; font-size: .9rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ------------------------------------------------------------------
   Images: rounded, shadow, aspect ratios, hover
------------------------------------------------------------------ */
.img-frame { border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; background: var(--line); }
.img-frame img { width: 100%; height: 100%; object-fit: cover; }
.ratio-16x9 { aspect-ratio: 16 / 9; }
.ratio-4x3 { aspect-ratio: 4 / 3; }
.ratio-1x1 { aspect-ratio: 1 / 1; }
.ratio-4x5 { aspect-ratio: 4 / 5; }
.img-frame img, .card__media img { transition: transform var(--ease); }
a.img-frame:hover, .card:hover .img-frame, .gallery-item:hover .img-frame { box-shadow: var(--shadow-hover); }
a.img-frame:hover img, .card:hover .card__media img, .gallery-item:hover img { transform: scale(1.04); }
.card, .gallery-item, .cat-card { transition: transform var(--ease), box-shadow var(--ease); }
.card:hover, .gallery-item:hover, .cat-card:hover { transform: translateY(-4px); }

/* ------------------------------------------------------------------
   Header
------------------------------------------------------------------ */
.topbar { background: var(--green-dark); color: #fff; font-size: .875rem; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 38px; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: .35rem; }
.topbar a:hover { text-decoration: underline; }
.topbar svg { width: 1em; height: 1em; }
.topbar__list { display: flex; gap: 1.25rem; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.site-header { position: sticky; top: 0; z-index: 500; background: #fff; border-bottom: 1px solid var(--line); transition: box-shadow var(--ease); }
.site-header.is-scrolled { box-shadow: 0 4px 18px rgba(0,0,0,.08); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 76px; }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--ink); }
.brand img { width: 52px; height: 52px; }
.brand__name { font-weight: 800; font-size: 1.15rem; line-height: 1.1; letter-spacing: -.01em; }
.brand__tag { display: block; font-size: .72rem; font-weight: 500; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; align-items: center; }
.site-nav a { display: block; padding: .6rem .85rem; color: var(--ink); text-decoration: none; font-weight: 600; border-radius: 8px; }
.site-nav a:hover, .site-nav .current-menu-item > a, .site-nav .current_page_item > a, .site-nav .current-menu-ancestor > a { color: var(--green); background: var(--green-light); }
.header-cta { display: none; }
.nav-toggle { display: none; background: none; border: 2px solid var(--line); border-radius: 10px; padding: .55rem; cursor: pointer; color: var(--ink); }
.nav-toggle svg { width: 24px; height: 24px; display: block; }
@media (min-width: 1024px) { .header-cta { display: inline-flex; } }
@media (max-width: 899px) {
	.nav-toggle { display: inline-flex; }
	.site-nav { position: fixed; inset: 0; top: 0; background: #fff; padding: 6rem 1.5rem 2rem; transform: translateX(100%); transition: transform var(--ease); z-index: 400; overflow: auto; }
	.site-nav.is-open { transform: none; }
	.site-nav ul { flex-direction: column; align-items: stretch; gap: .25rem; }
	.site-nav a { font-size: 1.15rem; padding: .85rem 1rem; }
	.site-nav .nav-wa { margin-top: 1rem; }
	.topbar__list li:nth-child(n+3) { display: none; }
}

/* ------------------------------------------------------------------
   Hero
------------------------------------------------------------------ */
.hero { background: linear-gradient(135deg, var(--paper) 0%, #fff 60%); overflow: hidden; }
.hero .wrap { display: grid; gap: 2.5rem; align-items: center; padding: clamp(2.5rem, 6vw, 5rem) 0; }
.hero__text h1 { margin-bottom: 1rem; }
.hero__text .lead { margin-bottom: 1.75rem; }
.hero__media { position: relative; }
.hero__media .img-frame { border-radius: var(--radius-lg); }
.hero__badge { position: absolute; left: -1rem; bottom: 1.5rem; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: .9rem 1.1rem; display: flex; gap: .75rem; align-items: center; max-width: 260px; }
.hero__badge strong { display: block; font-size: 1.4rem; color: var(--green); line-height: 1; }
.hero__badge span { font-size: .85rem; color: var(--ink-soft); }
.hero__stats { display: flex; gap: 2rem; flex-wrap: wrap; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.hero__stats strong { display: block; font-size: 1.6rem; color: var(--green); line-height: 1.1; }
.hero__stats span { font-size: .9rem; color: var(--ink-soft); }
@media (min-width: 900px) { .hero .wrap { grid-template-columns: 1.05fr .95fr; } .hero__badge { left: -2rem; } }

/* Page hero (inner pages) */
.page-hero { background: var(--green-dark); color: #fff; padding: clamp(2.5rem, 6vw, 4.5rem) 0; position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: -8rem; top: -8rem; width: 26rem; height: 26rem; border-radius: 50%; background: rgba(255,255,255,.05); }
.page-hero h1 { color: #fff; margin-bottom: .5rem; }
.page-hero p { color: rgba(255,255,255,.85); max-width: 640px; font-size: 1.15rem; margin: 0; }
.breadcrumbs { font-size: .85rem; color: rgba(255,255,255,.7); margin-bottom: 1rem; }
.breadcrumbs a { color: #fff; }

/* ------------------------------------------------------------------
   Grids & cards
------------------------------------------------------------------ */
.grid { display: grid; gap: 1.5rem; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.card:hover { box-shadow: var(--shadow-hover); }
.card__media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--line); }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__body { padding: 1.25rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.card__body h3 { margin: 0; font-size: 1.15rem; }
.card__body h3 a { color: var(--ink); text-decoration: none; }
.card__body h3 a:hover { color: var(--green); }
.card__body p { margin: 0; color: var(--ink-soft); font-size: .97rem; }
.card__meta { font-size: .82rem; color: var(--muted); display: flex; gap: .5rem; align-items: center; }
.card__meta svg { width: 1em; height: 1em; }
.card__more { margin-top: auto; padding-top: .5rem; font-weight: 600; text-decoration: none; display: inline-flex; gap: .35rem; align-items: center; }
.card__more svg { width: 1em; height: 1em; transition: transform var(--ease); }
.card__more:hover svg { transform: translateX(4px); }

/* Category cards */
.cat-card { position: relative; display: block; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 3; text-decoration: none; color: #fff; background: var(--ink); }
.cat-card:hover { box-shadow: var(--shadow-hover); }
.cat-card img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--ease); }
.cat-card:hover img { transform: scale(1.05); }
.cat-card__label { position: absolute; inset: auto 0 0 0; padding: 2.5rem 1.25rem 1.1rem; background: linear-gradient(to top, rgba(10,25,16,.9), rgba(10,25,16,0)); }
.cat-card__label h3 { color: #fff; margin: 0 0 .2rem; font-size: 1.2rem; }
.cat-card__label span { font-size: .85rem; opacity: .85; }

/* Feature list */
.features { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.feature__icon { width: 48px; height: 48px; border-radius: 12px; background: var(--green-light); color: var(--green); display: grid; place-items: center; margin-bottom: 1rem; }
.feature__icon svg { width: 26px; height: 26px; }
.feature h3 { font-size: 1.1rem; margin-bottom: .4rem; }
.feature p { margin: 0; color: var(--ink-soft); font-size: .97rem; }
.section--paper .feature { border: none; box-shadow: var(--shadow); }

/* Split (text + image) */
.split { display: grid; gap: 2.5rem; align-items: center; }
.split .img-frame { border-radius: var(--radius-lg); }
.split--reverse .split__media { order: -1; }
@media (min-width: 900px) {
	.split { grid-template-columns: 1fr 1fr; }
	.split--reverse .split__media { order: 2; }
}
.checklist { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: .6rem; }
.checklist li { display: flex; gap: .6rem; align-items: flex-start; }
.checklist svg { width: 1.3em; height: 1.3em; flex: none; color: var(--green); margin-top: .1em; }

/* Stats band */
.stats { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); text-align: center; }
.stats strong { display: block; font-size: clamp(2rem, 4vw, 2.8rem); color: #fff; line-height: 1; }
.stats span { color: rgba(255,255,255,.85); }

/* Client logos */
.logos { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); align-items: center; }
.logos__item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; display: grid; place-items: center; min-height: 100px; }
.logos__item img { max-height: 56px; width: auto; object-fit: contain; }

/* Gallery */
.gallery { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.gallery-item { display: block; text-decoration: none; color: inherit; }
.gallery-item .img-frame { aspect-ratio: 4 / 3; }
.gallery-item figcaption { font-size: .9rem; color: var(--ink-soft); padding: .6rem .2rem 0; }
.catalogue { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
.catalogue .img-frame { aspect-ratio: 4 / 5; }
.catalogue figcaption { font-size: .85rem; color: var(--muted); padding: .5rem .2rem 0; }

dialog#ij-lightbox { border: none; border-radius: var(--radius); padding: 0; max-width: min(96vw, 900px); background: #fff; box-shadow: var(--shadow-hover); }
dialog#ij-lightbox::backdrop { background: rgba(10,20,14,.8); }
dialog#ij-lightbox figure { margin: 0; }
dialog#ij-lightbox img { max-height: 85vh; width: auto; margin: auto; }
dialog#ij-lightbox figcaption { padding: .75rem 1rem; font-size: .9rem; color: var(--ink-soft); display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.lightbox-close { background: var(--line); border: 0; border-radius: 999px; padding: .4rem .9rem; cursor: pointer; font: inherit; }

/* Team */
.team { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.team .img-frame { aspect-ratio: 1 / 1; }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; }
.timeline li { display: grid; grid-template-columns: 80px 1fr; gap: 1rem; align-items: start; }
.timeline strong { color: var(--red); font-size: 1.15rem; }
.timeline p { margin: 0; color: var(--ink-soft); }

/* ------------------------------------------------------------------
   Content pages / blog
------------------------------------------------------------------ */
.entry-content { font-size: 1.05rem; }
.entry-content > * { margin-bottom: 1.2em; }
.entry-content h2 { font-size: 1.55rem; margin-top: 2em; }
.entry-content h3 { font-size: 1.25rem; margin-top: 1.6em; }
.entry-content img { border-radius: var(--radius); box-shadow: var(--shadow); }
.entry-content ul, .entry-content ol { padding-left: 1.4rem; }
.entry-content li { margin-bottom: .35em; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: .97rem; }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: .6rem .8rem; text-align: left; vertical-align: top; }
.entry-content th { background: var(--paper); }
.entry-content blockquote { border-left: 4px solid var(--green); margin: 0; padding: .5rem 0 .5rem 1.25rem; color: var(--ink-soft); font-style: italic; }
.editor-note { background: #fff6e0; border: 1px solid #f2d59a; border-left: 5px solid var(--amber); border-radius: 8px; padding: .9rem 1.1rem; font-size: .95rem; color: #6b4e0a; }
.editor-note strong { color: #513a05; }
.post-hero { aspect-ratio: 16 / 9; border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; margin-bottom: 2rem; }
.post-hero img { width: 100%; height: 100%; object-fit: cover; }
.post-meta { color: var(--muted); font-size: .9rem; display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.post-meta svg { width: 1em; height: 1em; vertical-align: -2px; margin-right: .3rem; }
.post-nav { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.post-nav a { text-decoration: none; font-weight: 600; }
.pagination { display: flex; gap: .5rem; justify-content: center; margin-top: 2.5rem; flex-wrap: wrap; }
.pagination .page-numbers { padding: .5rem .9rem; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; }
.pagination .current { background: var(--green); color: #fff; border-color: var(--green); }
.last-updated { color: var(--muted); font-size: .9rem; }

/* Contact */
.contact-grid { display: grid; gap: 2rem; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1.2fr; } }
.contact-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.75rem; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.contact-list li { display: grid; grid-template-columns: 44px 1fr; gap: .9rem; align-items: start; }
.contact-list .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--green-light); color: var(--green); display: grid; place-items: center; }
.contact-list .ico svg { width: 22px; height: 22px; }
.contact-list strong { display: block; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: .15rem; }
.contact-list a { text-decoration: none; font-weight: 600; }
.contact-list a:hover { text-decoration: underline; }
.hours { width: 100%; border-collapse: collapse; }
.hours td { padding: .55rem 0; border-bottom: 1px solid var(--line); }
.hours td:last-child { text-align: right; font-weight: 600; }
.map-frame { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 3; background: var(--line); }
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-frame .img-frame { border-radius: 0; box-shadow: none; height: 100%; }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--green-dark), var(--green)); color: #fff; border-radius: var(--radius-lg); padding: clamp(2rem, 5vw, 3.5rem); display: grid; gap: 1.5rem; align-items: center; }
.cta-band h2, .cta-band p { color: #fff; margin: 0; }
.cta-band p { opacity: .9; margin-top: .5rem; }
@media (min-width: 900px) { .cta-band { grid-template-columns: 1.4fr 1fr; } .cta-band .btn-row { justify-content: flex-end; } }

/* ------------------------------------------------------------------
   Footer
------------------------------------------------------------------ */
.site-footer { background: var(--ink); color: rgba(255,255,255,.8); padding: 3.5rem 0 1.5rem; margin-top: auto; font-size: .95rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.footer-brand img { width: 64px; height: 64px; margin-bottom: 1rem; }
.footer-brand p { margin: .5rem 0 0; }
.site-footer h3 { color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.footer-contact li { display: flex; gap: .6rem; align-items: flex-start; }
.footer-contact svg { width: 1.1em; height: 1.1em; flex: none; margin-top: .25em; color: var(--amber); }
.footer-social { display: flex; gap: .75rem; margin-top: 1rem; }
.footer-social a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.1); display: grid; place-items: center; }
.footer-social a:hover { background: var(--green); }
.footer-social svg { width: 20px; height: 20px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2.5rem; padding-top: 1.25rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .85rem; color: rgba(255,255,255,.6); }
.footer-bottom ul { display: flex; gap: 1.25rem; flex-wrap: wrap; }

/* ------------------------------------------------------------------
   Floating WhatsApp + cookie banner
------------------------------------------------------------------ */
.wa-float {
	position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 600;
	display: inline-flex; align-items: center; gap: .5rem;
	background: #25d366; color: #0b3d1f; text-decoration: none; font-weight: 700;
	padding: .75rem 1.1rem .75rem .85rem; border-radius: 999px; box-shadow: 0 8px 24px rgba(0,0,0,.25);
	transition: transform var(--ease), box-shadow var(--ease);
}
.wa-float svg { width: 30px; height: 30px; }
.wa-float:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 14px 30px rgba(0,0,0,.3); color: #0b3d1f; }
@media (max-width: 600px) { .wa-float__label { display: none; } .wa-float { padding: .75rem; } }

.cookie-banner {
	position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 700;
	max-width: 560px; margin: 0 auto; background: #fff; color: var(--ink);
	border-radius: var(--radius); box-shadow: 0 16px 40px rgba(0,0,0,.25); padding: 1.1rem 1.25rem;
	display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; font-size: .95rem;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0; flex: 1 1 260px; }
@media (min-width: 700px) { .cookie-banner { left: 1.5rem; right: auto; bottom: 1.5rem; } }

/* 404 */
.error-page { text-align: center; padding: clamp(3rem, 8vw, 6rem) 0; }
.error-page .code { font-size: clamp(5rem, 15vw, 9rem); font-weight: 800; color: var(--green-light); line-height: 1; letter-spacing: -.04em; }
.error-page h1 { margin-top: -.5rem; }
.error-links { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; margin-top: 1.5rem; }

/* Search form */
.search-form { display: flex; gap: .5rem; }
.search-form input[type="search"] { flex: 1; padding: .7rem 1rem; border: 1px solid var(--line); border-radius: 10px; font: inherit; }

/* Layout */
.site { min-height: 100vh; display: flex; flex-direction: column; }
.site-main { flex: 1; }
