/* =========================================================
   Ashton Garden Supplies – main styles
   Colours live in the two blocks below. Change them there.
   ========================================================= */

/* ---------- Light mode (default) ---------- */
:root {
	--bg: #F5F8FB;
	--surface: #FFFFFF;
	--surface-2: #EAF1F7;
	--ink: #0F1A24;
	--muted: #4E5D6B;
	--line: #D9E2EB;
	--green: #1A8A4A;
	--on-green: #FFFFFF;
	--green-chip: #E0F2E7;
	--blue: #1E5FD0;
	--on-blue: #FFFFFF;
	--blue-chip: #E3ECFB;
	--top: #0F1A24;
	--top-ink: #D6DEE6;
	--shadow: 0 12px 32px rgba(15, 26, 36, .12);

	--font-body: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
	--font-head: "Space Grotesk", Inter, sans-serif;
	--radius: 20px;
	color-scheme: light;
}

/* ---------- Dark mode (black) ---------- */
[data-theme="dark"] {
	--bg: #000000;
	--surface: #0A0C0D;
	--surface-2: #111517;
	--ink: #F2F5F7;
	--muted: #9BA6AE;
	--line: #1F2529;
	--green: #2FCB76;
	--on-green: #000000;
	--green-chip: #0B2618;
	--blue: #4D9CFF;
	--on-blue: #000000;
	--blue-chip: #0B1C33;
	--top: #050607;
	--top-ink: #B9C3CB;
	--shadow: 0 12px 32px rgba(0, 0, 0, .6);
	color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.6;
	transition: background-color .2s, color .2s;
}
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
a:hover { opacity: .85; }
img { max-width: 100%; height: auto; display: block; }
ul { margin: 0; padding: 0; list-style: none; }
.icon { flex: none; }

.container { max-width: 1280px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link {
	position: absolute; left: -9999px; top: 8px; z-index: 100;
	background: var(--green); color: var(--on-green); padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 16px 28px; border-radius: 999px; font-weight: 600; font-size: 16px;
	border: 1.5px solid transparent; min-height: 44px; cursor: pointer;
}
.btn--sm { padding: 11px 18px; font-size: 14px; }
.btn--block { display: flex; width: 100%; }
.btn--green { background: var(--green); color: var(--on-green); }
.btn--outline-blue { border-color: var(--blue); color: var(--blue); }
.btn--outline-green { border-color: var(--green); color: var(--green); padding: 12px; font-size: 14px; }
.link-blue { color: var(--blue); font-weight: 600; }

/* ---------- Top bar ---------- */
.topbar { background: var(--top); color: var(--top-ink); font-size: 13px; }
.topbar__inner { display: flex; flex-wrap: wrap; gap: 6px 24px; justify-content: space-between; padding-top: 9px; padding-bottom: 9px; }

/* ---------- Header ---------- */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.header__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; padding-top: 18px; padding-bottom: 18px; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand__mark {
	width: 44px; height: 44px; border-radius: 12px;
	background: var(--green); color: var(--on-green);
	display: flex; align-items: center; justify-content: center;
}
.brand__logo-img { height: 44px; width: auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-family: var(--font-head); font-weight: 700; font-size: 20px; }
.brand__sub { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

.search {
	flex: 1 1 300px; display: flex; align-items: center; gap: 10px;
	background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px;
	padding: 0 18px; height: 46px; color: var(--muted);
}
.search input {
	flex: 1; min-width: 0; border: 0; background: transparent; outline: none;
	font: inherit; font-size: 15px; color: var(--ink);
}
.search input::placeholder { color: var(--muted); }

.header__actions { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; }
.header__link { padding: 12px 14px; }

.theme-toggle {
	width: 46px; height: 46px; border-radius: 999px; padding: 0; cursor: pointer;
	border: 1px solid var(--line); background: var(--surface-2); color: var(--blue);
	display: flex; align-items: center; justify-content: center;
}
.theme-toggle__sun { display: none; }
[data-theme="dark"] .theme-toggle__sun { display: flex; }
[data-theme="dark"] .theme-toggle__moon { display: none; }
.theme-toggle__moon, .theme-toggle__sun { align-items: center; justify-content: center; }
.theme-toggle__moon { display: flex; }

/* Phone menu (three lines) – hidden on desktop */
.menu-toggle {
	display: none; width: 46px; height: 46px; border-radius: 999px; padding: 0; cursor: pointer;
	border: 1px solid var(--line); background: var(--surface-2); color: var(--ink);
	align-items: center; justify-content: center;
}
.menu-toggle__open, .menu-toggle__close { display: flex; }
.menu-toggle__close { display: none; }
.menu-toggle[aria-expanded="true"] .menu-toggle__open { display: none; }
.menu-toggle[aria-expanded="true"] .menu-toggle__close { display: flex; }
.mobile-menu { border-top: 1px solid var(--line); background: var(--surface); padding: 8px 0 20px; }
.mobile-menu[hidden] { display: none; }
.mobile-menu__title { margin: 8px 0; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.mobile-menu__list a {
	display: flex; justify-content: space-between; align-items: center;
	padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 16px; font-weight: 500;
}
.mobile-menu__list a::after { content: "→"; color: var(--blue); }
.mobile-menu__buttons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.mobile-menu__buttons .btn { padding: 13px; font-size: 15px; }

/* Category bar */
.catbar { border-top: 1px solid var(--line); }
.catbar__list {
	display: flex; gap: 4px; overflow-x: auto; white-space: nowrap;
	font-size: 14px; font-weight: 500; scrollbar-width: thin;
}
.catbar__list a { display: block; padding: 14px 12px; color: var(--muted); }
.catbar__list a:hover, .catbar__list .current-menu-item a { color: var(--ink); }

/* ---------- Hero ---------- */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding-top: 56px; padding-bottom: 40px; }
.hero__text { flex: 1 1 460px; min-width: 0; }
.hero__text h1 { margin: 20px 0 16px; font-size: clamp(40px, 5.5vw, 64px); line-height: 1.02; letter-spacing: -0.02em; }
.lead { font-size: 18px; color: var(--muted); max-width: 520px; margin-bottom: 32px; }
.hero__buttons { display: flex; flex-wrap: wrap; gap: 12px; }

.chip {
	display: inline-flex; align-items: center; gap: 8px;
	font-size: 13px; font-weight: 600; padding: 8px 14px; border-radius: 999px;
}
.chip--blue { color: var(--blue); background: var(--blue-chip); }

.hero__media { flex: 1 1 460px; min-width: 0; position: relative; }
.hero__img {
	display: block;
	width: 100%; aspect-ratio: 5 / 4; object-fit: cover;
	border-radius: 28px; border: 1px solid var(--line);
}
.hero__img--placeholder {
	background: var(--surface-2); color: var(--muted);
	display: flex; align-items: center; justify-content: center;
}
.hero__badge {
	position: absolute; left: -16px; bottom: 28px;
	background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
	padding: 16px 20px; display: flex; align-items: center; gap: 14px; box-shadow: var(--shadow);
}
.hero__badge strong { display: block; font-size: 15px; }
.hero__badge small { display: block; font-size: 13px; color: var(--muted); }

.icon-chip {
	flex: none; width: 48px; height: 48px; border-radius: 14px;
	display: flex; align-items: center; justify-content: center;
}
.icon-chip--blue { background: var(--blue-chip); color: var(--blue); }
.icon-chip--green { background: var(--green-chip); color: var(--green); width: 44px; height: 44px; border-radius: 12px; }

/* ---------- Value cards ---------- */
.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; padding-top: 16px; padding-bottom: 56px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.value { display: flex; gap: 16px; align-items: flex-start; }
.value h3 { font-size: 18px; margin-bottom: 4px; }
.value p { font-size: 14px; line-height: 1.5; color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding-top: 64px; padding-bottom: 64px; }
.values + .section { padding-top: 0; }
.section__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.section__head h2 { font-size: 36px; letter-spacing: -0.01em; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }

.cat-tile {
	background: var(--surface-2); border: 1px solid var(--line); border-radius: 22px;
	padding: 24px; min-height: 200px; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px;
}
.cat-tile strong { font-family: var(--font-head); font-size: 20px; line-height: 1.2; }
.cat-tile__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; width: 100%; }
.cat-tile--photo { flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 16px; padding: 12px 12px 20px; min-height: 0; }
.cat-tile--photo .cat-tile__row { padding: 0 8px; align-items: center; }
.cat-tile__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; }
.cat-tile__art {
	display: flex; align-items: center; justify-content: center;
	width: 100%; aspect-ratio: 4 / 3; border-radius: 14px; background: var(--surface); padding: 8%;
}

/* Category drawings – colours follow light/dark mode */
.cat-art { width: 100%; height: auto; display: block; }
.ill-line { fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.ill-paper, .ill-paper.ill-line { fill: var(--surface-2); }
.ill-green { fill: var(--green); }
path.ill-line.ill-green { fill: none; stroke: var(--green); }
rect.ill-line.ill-green { fill: var(--green); stroke: var(--ink); }
.ill-blue { fill: var(--blue); }
rect.ill-line.ill-blue, path.ill-line.ill-blue { fill: var(--blue); stroke: var(--ink); }
.ill-glow { opacity: .2; }
.ill-blue-line { stroke: var(--blue); stroke-width: 4; stroke-linecap: round; }
.ill-soil { fill: #6B4A2F; }
.ill-soil-dot { fill: #3E2A1A; }
.ill-dark { fill: #18222B; }
.round-arrow {
	flex: none; width: 40px; height: 40px; border-radius: 999px;
	background: var(--blue); color: var(--on-blue);
	display: flex; align-items: center; justify-content: center;
}

.band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.product { display: flex; flex-direction: column; gap: 6px; }
.product__img {
	aspect-ratio: 1; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--line);
	display: flex; align-items: center; justify-content: center; color: var(--muted); margin-bottom: 8px;
}
/* Product photos sit in a white frame in both modes (most product shots are on white) */
.product__img--photo { background: #FFFFFF; padding: 8%; }
.product__img--photo img { width: 100%; height: 100%; object-fit: contain; }
.product__brand { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--blue); font-weight: 600; }
.product h3 { font-family: var(--font-body); font-size: 17px; font-weight: 600; line-height: 1.35; }
.product__price { font-size: 15px; margin-bottom: 8px; }
.product__price strong { font-size: 18px; }

/* Brands */
.brands { padding-top: 48px; padding-bottom: 48px; text-align: center; }
.eyebrow { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 20px; }
.brands ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 40px; font-family: var(--font-head); font-size: 22px; font-weight: 600; color: var(--muted); }

/* ---------- Normal pages ---------- */
.page h1 { font-size: clamp(32px, 4vw, 48px); margin-bottom: 24px; }
.page__content { max-width: 760px; }
.page__content p, .page__content ul, .page__content ol { margin-bottom: 1em; }
.page__content ul { list-style: disc; padding-left: 1.4em; }
.page__content a { color: var(--blue); text-decoration: underline; }
.post-card { margin-bottom: 16px; }

.contact-card { max-width: 520px; margin-top: 16px; }
.contact-card p { margin-bottom: 8px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--top); color: var(--top-ink); border-top: 1px solid var(--line); }
.footer__inner { display: flex; flex-wrap: wrap; gap: 40px; padding-top: 56px; padding-bottom: 32px; }
.footer__about { flex: 2 1 320px; }
.footer__about h2 { font-size: 28px; color: #FFFFFF; margin-bottom: 12px; }
.footer__about p { font-size: 15px; margin-bottom: 6px; }
.footer__col { flex: 1 1 140px; }
.footer__col h3 { font-family: var(--font-body); font-size: 15px; color: #FFFFFF; margin-bottom: 12px; }
.footer__links { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer__bottom { padding-top: 20px; padding-bottom: 32px; border-top: 1px solid rgba(255,255,255,.12); font-size: 13px; }

/* ---------- Phones ---------- */
/* The phone menu never shows on wider screens, even if left open */
@media (min-width: 701px) {
	.mobile-menu { display: none !important; }
}

@media (max-width: 700px) {
	.header__inner { gap: 12px; }
	.search { order: 3; flex-basis: 100%; }
	.header__actions { margin-left: auto; }
	.header__link { display: none; }
	.hero { padding-top: 32px; gap: 32px; }
	.hero__badge { left: 12px; bottom: 12px; }
	.section { padding-top: 48px; padding-bottom: 48px; }
	.section__head h2 { font-size: 28px; }
	.topbar__inner span:first-child { display: none; }
	.menu-toggle { display: flex; }
	.catbar { display: none; }

	/* Compact: 2 per row instead of 1 */
	.values, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.values { padding-bottom: 40px; }
	.value { flex-direction: column; padding: 16px; gap: 10px; }
	.value h3 { font-size: 16px; }
	.value p { font-size: 13px; }
	.cat-tile { min-height: 110px; padding: 16px; }
	.cat-tile strong { font-size: 16px; }
	.cat-tile--photo { padding: 8px 8px 14px; gap: 10px; min-height: 0; }
	.cat-tile--photo .cat-tile__row { padding: 0 4px; }
	.cat-tile .round-arrow { width: 32px; height: 32px; }
	.product h3 { font-size: 14px; }
	.product .btn { padding: 10px; font-size: 13px; }
	.hero__img { aspect-ratio: 16 / 10; }
	.footer__inner { gap: 24px; padding-top: 40px; }
	.footer__col { flex: 1 1 28%; }
	.brands ul { font-size: 16px; gap: 8px 20px; }
}
