/*
Theme Name: Family Basket
Author: Family Basket
Description: Grocery store theme for Family Basket. Built for WooCommerce and the Family Basket Network plugin. Kannada-friendly fonts, mobile-first.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: family-basket
*/

:root {
	--fb-leaf: #1e5b3a;
	--fb-leaf-deep: #123d26;
	--fb-turmeric: #e8a317;
	--fb-turmeric-soft: #fbe9bf;
	--fb-chilli: #b8322a;
	--fb-ink: #1b2620;
	--fb-muted: #5c6a61;
	--fb-line: #dfe5e0;
	--fb-paper: #ffffff;
	--fb-wash: #f3f6f2;
	--fb-head: "Baloo Tamma 2", "Hind", system-ui, sans-serif;
	--fb-body: "Hind", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--fb-body);
	font-size: 17px;
	line-height: 1.6;
	color: var(--fb-ink);
	background: var(--fb-paper);
}
img { max-width: 100%; height: auto; }
a { color: var(--fb-leaf); }
a:hover { color: var(--fb-leaf-deep); }
:focus-visible { outline: 3px solid var(--fb-turmeric); outline-offset: 2px; }
h1, h2, h3, h4 { font-family: var(--fb-head); line-height: 1.15; color: var(--fb-leaf-deep); margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 600; }

.fb-container { width: min(1160px, 100% - 40px); margin-inline: auto; }
.fb-skip { position: absolute; left: -9999px; }
.fb-skip:focus { left: 12px; top: 12px; z-index: 100; background: #fff; padding: 8px 12px; }

/* Header */
.fb-header { background: var(--fb-paper); border-bottom: 1px solid var(--fb-line); position: sticky; top: 0; z-index: 50; }
.fb-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; }
.fb-wordmark { display: inline-flex; align-items: center; gap: 10px; font-family: var(--fb-head); font-weight: 700; font-size: 1.5rem; color: var(--fb-leaf-deep); text-decoration: none; }
.fb-mark { width: 30px; height: 22px; border-radius: 0 0 15px 15px; background: var(--fb-turmeric); box-shadow: inset 0 6px 0 var(--fb-leaf); }
.custom-logo { max-height: 56px; width: auto; }
.fb-nav { display: flex; align-items: center; gap: 22px; }
.fb-menu { list-style: none; display: flex; gap: 22px; margin: 0; padding: 0; }
.fb-menu a { text-decoration: none; color: var(--fb-ink); font-weight: 500; }
.fb-menu a:hover, .fb-menu .current-menu-item > a { color: var(--fb-leaf); }
.fb-menu ul { display: none; }
.fb-cart { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--fb-leaf); color: #fff !important; text-decoration: none; font-weight: 600; }
.fb-cart span { background: var(--fb-turmeric); color: var(--fb-leaf-deep); border-radius: 999px; min-width: 24px; padding: 0 6px; text-align: center; font-size: .9rem; }
.fb-nav-toggle, .fb-nav-btn { display: none; }

/* Buttons */
.fb-btn {
	display: inline-block;
	padding: 13px 24px;
	border-radius: 10px;
	background: var(--fb-leaf);
	color: #fff !important;
	font-weight: 600;
	text-decoration: none;
	border: 0;
}
.fb-btn:hover { background: var(--fb-leaf-deep); }
.fb-btn-ghost { background: transparent; color: var(--fb-leaf-deep) !important; box-shadow: inset 0 0 0 2px var(--fb-leaf); }
.fb-btn-ghost:hover { background: var(--fb-wash); }

/* Hero */
.fb-hero { background: var(--fb-turmeric-soft); border-bottom: 10px solid var(--fb-turmeric); }
.fb-hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 40px; padding: 64px 0 56px; }
.fb-hero h1 { max-width: 14ch; margin-bottom: 18px; }
.fb-hero-place { font-weight: 600; color: var(--fb-chilli); margin: 0 0 10px; }
.fb-lead { font-size: 1.2rem; max-width: 52ch; color: var(--fb-ink); margin: 0 0 26px; }
.fb-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.fb-hero-art svg { width: 100%; height: auto; display: block; }

/* Sections */
.fb-section { padding: 64px 0; }
.fb-section-wash { background: var(--fb-wash); }
.fb-section-head { max-width: 60ch; margin-bottom: 28px; }
.fb-section-head p { color: var(--fb-muted); margin: 0; }

.fb-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: step; }
.fb-steps li { counter-increment: step; border-top: 4px solid var(--fb-leaf); padding-top: 16px; }
.fb-steps li::before { content: counter(step); display: block; font-family: var(--fb-head); font-size: 2.6rem; font-weight: 700; color: var(--fb-turmeric); line-height: 1; margin-bottom: 8px; }
.fb-steps p { color: var(--fb-muted); margin: 0; }

.fb-band { background: var(--fb-leaf); color: #fff; padding: 56px 0; }
.fb-band-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; }
.fb-band h2 { color: #fff; }
.fb-band p { margin: 0 0 8px; max-width: 58ch; }
.fb-band .fb-btn { background: var(--fb-turmeric); color: var(--fb-leaf-deep) !important; }
.fb-band .fb-btn:hover { background: #f3b93a; }
.fb-band-note { font-size: .92rem; opacity: .85; }
.fb-band-actions { justify-self: end; }

/* Content pages */
.fb-main { min-height: 50vh; }
.fb-page { padding: 48px 0 64px; }
.fb-prose { max-width: 72ch; }
.fb-page-wide .fb-prose { max-width: none; }
.fb-entry + .fb-entry { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--fb-line); }

/* Footer */
.fb-footer { background: var(--fb-leaf-deep); color: #dce7df; padding: 44px 0 28px; font-size: .95rem; }
.fb-footer a { color: #fff; }
.fb-footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.fb-footer h3 { color: #fff; font-size: 1.1rem; }
.fb-footer ul { list-style: none; margin: 0; padding: 0; }
.fb-footer li { margin: 4px 0; }
.fb-footer-bottom { margin-top: 28px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.15); font-size: .85rem; }

/* WooCommerce touches */
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit,
.woocommerce a.button.alt, .woocommerce button.button.alt {
	background: var(--fb-leaf);
	color: #fff;
	border-radius: 8px;
	font-weight: 600;
}
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover { background: var(--fb-leaf-deep); color: #fff; }
.woocommerce ul.products li.product .price, .woocommerce div.product p.price { color: var(--fb-leaf-deep); font-weight: 600; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-family: var(--fb-head); font-size: 1.15rem; }
.woocommerce span.onsale { background: var(--fb-chilli); }

/* Mobile */
@media (max-width: 860px) {
	.fb-nav-btn { display: inline-flex; flex-direction: column; gap: 5px; cursor: pointer; padding: 10px; }
	.fb-nav-btn span { width: 24px; height: 2px; background: var(--fb-ink); display: block; }
	.fb-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--fb-line); flex-direction: column; align-items: flex-start; padding: 16px 20px 20px; }
	.fb-nav-toggle:checked ~ .fb-nav { display: flex; }
	.fb-menu { flex-direction: column; gap: 12px; }
	.fb-hero-inner, .fb-band-inner, .fb-footer-inner { grid-template-columns: 1fr; }
	.fb-hero-inner { padding: 40px 0; }
	.fb-hero-art { max-width: 320px; }
	.fb-steps { grid-template-columns: 1fr; }
	.fb-band-actions { justify-self: start; }
}
