/*
Theme Name: Grab And Go
Theme URI: https://github.com/QuixoticCreatives/Grab-And-Goo-Website
Author: Quixotic Creatives
Description: Lightweight theme for the Grab And Go website. Built for Elementor and the Grab And Go Elements plugin, which supplies the header, footer, widgets and page layouts. Light, dark and system colour modes, Poppins type.
Version: 1.1.0
Requires at least: 6.5
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: grab-and-go
Update URI: false
Tags: one-column, custom-logo, custom-menu, featured-images, full-width-template, block-styles
*/

/* Base reset. Page colours, glass panels and components come from the Grab And Go Elements plugin (gag.css). */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
	font-size: 16px;
	line-height: 1.6;
	color: #1d140e;
	background: #f6efe6;
	-webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; }
a { color: #e8551c; }
h1, h2, h3, h4, h5, h6 { line-height: 1.15; margin: 0 0 .6em; font-weight: 600; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
	clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.screen-reader-text:focus {
	clip: auto; width: auto; height: auto; margin: 0; padding: 12px 16px; z-index: 100000;
	top: 8px; left: 8px; background: #fff; color: #1d140e; border-radius: 8px;
}

/* Pages and posts that are not built with Elementor (blog posts, legal pages, search, 404). */
.gag-theme-main { width: min(100% - 32px, 820px); margin: 0 auto; padding: clamp(130px, 14vw, 170px) 0 clamp(64px, 8vw, 110px); }
.gag-theme-main .entry-title { font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -.035em; line-height: 1.05; }
.gag-theme-main .entry-meta { color: rgba(29, 20, 14, .55); font-size: .9rem; margin-bottom: 2rem; }
.gag-theme-main .entry-content { font-size: 1.05rem; line-height: 1.75; }
.gag-theme-main .entry-content > * + * { margin-top: 1.1em; }
.gag-theme-main .entry-content img { border-radius: 16px; }
.gag-theme-main article + article { margin-top: 3.5rem; padding-top: 3rem; border-top: 1px solid rgba(29, 20, 14, .1); }
.gag-theme-main .post-thumbnail img { border-radius: 20px; margin-bottom: 1.5rem; }
.gag-theme-pagination { margin-top: 3rem; display: flex; gap: 12px; flex-wrap: wrap; }
.gag-theme-pagination .page-numbers { padding: .5em .9em; border-radius: 999px; border: 1px solid rgba(29, 20, 14, .12); text-decoration: none; color: inherit; }
.gag-theme-pagination .current { background: #e8551c; color: #fff; border-color: #e8551c; }
.search-form { display: flex; gap: 8px; margin-top: 1.5rem; }
.search-form .search-field { flex: 1; padding: .8em 1em; border-radius: 12px; border: 1px solid rgba(29, 20, 14, .15); background: #fff; }
.search-form .search-submit { padding: .8em 1.3em; border-radius: 999px; border: 0; background: #e8551c; color: #fff; cursor: pointer; }

/* Fallback header and footer, shown only when the Grab And Go Elements plugin is not active. */
.gag-theme-header, .gag-theme-footer { width: min(100% - 32px, 1200px); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 20px 0; }
.gag-theme-header .site-title { font-weight: 700; font-size: 1.2rem; color: inherit; text-decoration: none; }
.gag-theme-header ul, .gag-theme-footer ul { list-style: none; display: flex; gap: 18px; margin: 0; padding: 0; flex-wrap: wrap; }
.gag-theme-header a, .gag-theme-footer a { color: inherit; text-decoration: none; }
.gag-theme-footer { border-top: 1px solid rgba(29, 20, 14, .1); font-size: .9rem; color: rgba(29, 20, 14, .6); }
.gag-theme-notice { width: min(100% - 32px, 1200px); margin: 0 auto 16px; padding: 12px 16px; border-radius: 12px; background: #fff3e8; border: 1px dashed #e8551c; font-size: .9rem; }

/* Dark mode for theme-only areas (the plugin sets data-theme on <html>). */
html[data-theme="dark"] body { color: #f7efe6; background: #0d0806; }
html[data-theme="dark"] .gag-theme-main .entry-meta, html[data-theme="dark"] .gag-theme-footer { color: rgba(247, 239, 230, .6); }
@media (prefers-color-scheme: dark) {
	html[data-theme="system"] body { color: #f7efe6; background: #0d0806; }
}
