/*
Theme Name: GTM Arts and Crafts Manufacturing
Theme URI: https://gtmartsandcrafts.ph
Author: Roy
Description: Custom e-commerce theme for GTM Arts and Crafts Manufacturing — handcrafted bayong bags, pasiking, and alat, handwoven in Dilasag, Aurora, Philippines. "Carry your story through your memories."
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: template
*/

/* =========================================================
   1. RESET
   ========================================================= */
*,
*::before,
*::after {
	box-sizing: border-box;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin-top: 0;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body,
ul,
ol,
figure,
blockquote {
	margin: 0;
}

ul,
ol {
	padding: 0;
	list-style: none;
}

img,
svg,
video {
	display: block;
	max-width: 100%;
	height: auto;
}

a {
	color: inherit;
	text-decoration: none;
}

button,
input,
select,
textarea {
	font: inherit;
	color: inherit;
}

button {
	cursor: pointer;
	background: none;
	border: none;
}

table {
	border-collapse: collapse;
	width: 100%;
}

/* =========================================================
   2. DESIGN TOKENS
   ========================================================= */
:root {
	--color-text: #2b2620;
	--color-text-muted: #6b6459;
	--color-bg: #fbf7f0;
	--color-bg-alt: #f1e9da;
	--color-border: #e4d9c4;
	--color-primary: #d4a017;
	--color-primary-dark: #a87d0f;
	--color-dark: #1c1a16;
	--color-white: #ffffff;
	--color-success: #3a7d44;
	--color-danger: #b3261e;

	/* Poppins for headings/display (geometric, distinctive at bold weights),
	   Urbanist for body/UI text (clean, highly readable at small sizes) —
	   both loaded via Google Fonts in assets.php + preconnected in header.php.
	   System-font fallbacks kick in instantly before the webfont finishes
	   loading (display=swap is set on the Google Fonts URL). */
	--font-base: "Urbanist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--font-display: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

	--container-width: 1200px;
	--space-xs: 8px;
	--space-sm: 16px;
	--space-md: 24px;
	--space-lg: 48px;
	--space-xl: 80px;

	--radius: 6px;
	--radius-lg: 14px;
	--shadow-sm: 0 1px 3px rgba(28, 26, 22, 0.08);
	--shadow-md: 0 8px 24px rgba(28, 26, 22, 0.12);
}

/* =========================================================
   3. BASE TYPOGRAPHY
   ========================================================= */
body {
	font-family: var(--font-base);
	font-size: 16px;
	line-height: 1.6;
	color: var(--color-text);
	background: var(--color-bg);
}

h1,
h2,
h3,
h4 {
	font-family: var(--font-display);
	font-weight: 700;
	line-height: 1.2;
	color: var(--color-dark);
}

h1 {
	font-size: clamp(2rem, 4vw, 3rem);
	margin-bottom: 35px;

	@media (max-width: 1200px) {
		margin-bottom: 30px;
	}
}

h2 {
	font-size: clamp(1.6rem, 3vw, 2.25rem);
	margin-bottom: 30px;

	@media (max-width: 1200px) {
		margin-bottom: 25px;
	}
}

h3 {
	font-size: 1.4rem;
	margin-bottom: 20px;

	@media (max-width: 1200px) {
		margin-bottom: 15px;
	}
}

p {
	color: var(--color-text-muted);
}

p:last-of-type {
	margin-bottom: 0;
}

a.link_primary {
	color: var(--color-primary-dark);
	font-weight: 600;
}

.eyebrow {
	display: inline-block;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	font-size: 0.75rem;
	font-weight: 700;
	color: var(--color-primary-dark);
	margin-bottom: var(--space-xs);
}

/* =========================================================
   4. LAYOUT HELPERS
   ========================================================= */
.wrapper {
	max-width: var(--container-width);
	margin: 0 auto;
}

section {
	padding: 100px 30px;

	@media (max-width: 1200px) {
		padding: 70px 30px;
	}

	@media (max-width: 991px) {
		padding: 50px 20px;
	}
}

.section_alt {
	background: var(--color-bg-alt);
}

/* Apply to a .section when the section directly above/below it shares the
   same background color, so the two read as one continuous block instead
   of a padded gap of the same color sitting between two "different"
   sections. Only remove the padding on the side that's actually touching
   the same-colored neighbor — the other side keeps its normal spacing. */
.section_flush_top {
	padding-top: 0;
}

.section_flush_bottom {
	padding-bottom: 0;
}

.grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: var(--space-md);
}

.grid_2 {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--space-lg);
	align-items: center;
}

.text_center {
	text-align: center;
}

.section_head {
	max-width: 640px;
	margin: 0 auto var(--space-lg);
	text-align: center;
}

.section_head p {
	margin-top: var(--space-sm);
}

.flex_row {
	display: flex;
	align-items: center;
	gap: var(--space-sm);
	flex-wrap: wrap;
}

.flex_between {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-sm);
	flex-wrap: wrap;
}

/* =========================================================
   5. BUTTONS
   ========================================================= */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 14px 28px;
	border-radius: var(--radius);
	font-weight: 700;
	font-size: 0.95rem;
	transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
	border: 2px solid transparent;
}

.btn_primary {
	background: var(--color-primary);
	color: var(--color-dark);
}

.btn_primary:hover {
	background: var(--color-primary-dark);
	color: var(--color-white);
	transform: translateY(-1px);
}

.btn_dark {
	background: var(--color-dark);
	color: var(--color-white);
}

.btn_dark:hover {
	background: #000;
	transform: translateY(-1px);
}

.btn_outline {
	background: transparent;
	border-color: var(--color-dark);
	color: var(--color-dark);
}

.btn_outline:hover {
	background: var(--color-dark);
	color: var(--color-white);
}

.btn_block {
	width: 100%;
}

.btn_sm {
	padding: 8px 16px;
	font-size: 0.85rem;
}

.btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.social_row {
	display: flex;
	gap: var(--space-sm);
	flex-wrap: wrap;
}

.social_pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 18px;
	border-radius: 999px;
	border: 1.5px solid var(--color-border);
	font-weight: 600;
	font-size: 0.9rem;
	background: var(--color-white);
}

.social_pill:hover {
	border-color: var(--color-primary);
	color: var(--color-primary-dark);
}

.social_pill svg {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
}

/* =========================================================
   6. HEADER / NAV
   ========================================================= */
.site_header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--color-bg);
	border-bottom: 1px solid var(--color-border);
}

.header_inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: var(--space-sm) 20px;
	gap: var(--space-md);
}

.site_logo {
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 700;
}

.site_logo img {
	width: 42px;
	height: 42px;
	border-radius: 8px;
	object-fit: cover;
}

.site_logo span {
	font-family: var(--font-display);
	font-size: 1.15rem;
	color: var(--color-dark);
	line-height: 1.1;
}

.site_logo small {
	display: block;
	font-family: var(--font-base);
	font-size: 0.65rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	color: var(--color-text-muted);
	text-transform: uppercase;
}

.primary_menu {
	display: flex;
	align-items: center;
	gap: var(--space-md);
}

.primary_menu ul {
	display: flex;
	gap: var(--space-md);
	align-items: center;
}

.primary_menu a {
	font-weight: 600;
	font-size: 0.95rem;
}

.primary_menu a:hover {
	color: var(--color-primary-dark);
}

.header_actions {
	display: flex;
	align-items: center;
	gap: var(--space-sm);
}

.cart_link {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 700;
}

.cart_count {
	background: var(--color-primary);
	color: var(--color-dark);
	font-size: 0.7rem;
	font-weight: 800;
	border-radius: 999px;
	min-width: 20px;
	height: 20px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0 5px;
}

#navToggle {
	display: none;
	flex-direction: column;
	gap: 5px;
	padding: 6px;
}

#navToggle span {
	width: 24px;
	height: 2px;
	background: var(--color-dark);
	display: block;
}

/* =========================================================
   7. HERO / HOMEPAGE SECTIONS
   Home-page-only rules (.hero, .brand_strip, .story_teaser) now live in
   assets/css/home.css, loaded conditionally on is_front_page() — see
   functions/conditional_assets.php. .cta_band stays here because it's
   reused on both Home and About.
   ========================================================= */
.cta_band {
	background: var(--color-dark);
	color: var(--color-white);
	border-radius: var(--radius-lg);
	padding: var(--space-lg);
	text-align: center;
}

.cta_band h2 {
	color: var(--color-white);
}

.cta_band p {
	color: rgba(255, 255, 255, 0.75);
	margin: var(--space-sm) 0 var(--space-md);
}

/* =========================================================
   8. PRODUCTS / SHOP
   Product-grid and single-product rules now live in assets/css/shop.css
   and assets/css/product.css (loaded on the shop/home and single-product
   contexts respectively) — see functions/conditional_assets.php.
   ========================================================= */

/* =========================================================
   9. CART / CHECKOUT
   Cart and checkout rules now live in assets/css/cart.css and
   assets/css/checkout.css, loaded on is_cart()/is_checkout() — see
   functions/conditional_assets.php.
   ========================================================= */

/* =========================================================
   10. FORMS
   ========================================================= */
.form_field {
	margin-bottom: var(--space-sm);
}

.form_field label {
	display: block;
	font-weight: 700;
	font-size: 0.85rem;
	margin-bottom: 6px;
}

.form_field input[type="text"],
.form_field input[type="email"],
.form_field input[type="tel"],
.form_field input[type="number"],
.form_field select,
.form_field textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1.5px solid var(--color-border);
	border-radius: var(--radius);
	background: var(--color-white);
}

.form_field textarea {
	min-height: 120px;
	resize: vertical;
}

.form_field input:focus,
.form_field select:focus,
.form_field textarea:focus {
	outline: 2px solid var(--color-primary);
	outline-offset: 1px;
}

.form_row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--space-sm);
}

.form_note {
	font-size: 0.85rem;
	color: var(--color-text-muted);
	margin-top: var(--space-xs);
}

.form_success {
	background: #eaf5ec;
	border: 1.5px solid var(--color-success);
	color: var(--color-success);
	padding: var(--space-sm);
	border-radius: var(--radius);
	margin-bottom: var(--space-md);
	font-weight: 600;
}

.form_error {
	background: #fbeceb;
	border: 1.5px solid var(--color-danger);
	color: var(--color-danger);
	padding: var(--space-sm);
	border-radius: var(--radius);
	margin-bottom: var(--space-md);
	font-weight: 600;
}

.required {
	color: var(--color-danger);
}

/* =========================================================
   11. FOOTER
   ========================================================= */
.site_footer {
	background: var(--color-dark);
	color: rgba(255, 255, 255, 0.8);
	padding: var(--space-xl) 0 var(--space-md);
}

.footer_grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1fr;
	gap: var(--space-lg);
	margin-bottom: var(--space-lg);
}

.footer_grid h4 {
	color: var(--color-white);
	font-size: 0.95rem;
	margin-bottom: var(--space-sm);
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.footer_grid ul li {
	margin-bottom: 8px;
}

.footer_grid a:hover {
	color: var(--color-primary);
}

.footer_brand {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: var(--space-sm);
}

.footer_brand img {
	width: 44px;
	height: 44px;
	border-radius: 8px;
}

.footer_bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.15);
	padding-top: var(--space-md);
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: var(--space-sm);
	font-size: 0.85rem;
}

/* Floating Messenger button (footer.php, rendered once sitewide, fixed
   positioning so it floats over every page regardless of scroll). Replaces
   the old header .social_pill link — that was crowding the mobile header
   next to the cart icon and hamburger. */
.messenger_fab {
	position: fixed;
	right: var(--space-md);
	bottom: var(--space-md);
	z-index: 200;
	width: 56px;
	height: 56px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: #0084ff;
	color: var(--color-white);
	box-shadow: var(--shadow-md);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.messenger_fab:hover {
	transform: translateY(-3px) scale(1.05);
	box-shadow: 0 12px 28px rgba(28, 26, 22, 0.22);
	color: var(--color-white);
}

.messenger_fab svg {
	width: 28px;
	height: 28px;
}

/* =========================================================
   12. HERO BANNER / ABOUT / MISC / RESPONSIVE
   ========================================================= */
/* template-parts/hero-banner.php — background image (inline style, per
   instance) + a dark linear-gradient overlay for text legibility, also set
   inline so it composites correctly with the image in one background-image
   declaration. Falls back to a solid gradient when no image is passed. */
.hero_banner {
	padding: var(--space-xl) 0;
	text-align: center;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	color: var(--color-white);
}

.hero_banner h1 {
	color: var(--color-white);
}

.hero_banner_eyebrow {
	color: var(--color-primary);
}

.hero_banner_inner {
	max-width: 720px;
}

.hero_banner_inner p {
	margin-top: var(--space-xs);
	color: rgba(255, 255, 255, 0.85);
}

.shop_hero .hero_banner_inner {
	max-width: 760px;
}

.entry_content {
	padding-bottom: var(--space-xl);
}

.founder_section {
	display: grid;
	grid-template-columns: 0.9fr 1.1fr;
	gap: var(--space-xl);
	align-items: center;
}

.founder_section img {
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-md);
}

.founder_quote {
	font-family: var(--font-display);
	font-style: italic;
	font-size: 1.25rem;
	color: var(--color-dark);
	border-left: 4px solid var(--color-primary);
	padding-left: var(--space-sm);
	margin: var(--space-md) 0;
}

.timeline {
	border-left: 2px solid var(--color-border);
	padding-left: var(--space-md);
	display: flex;
	flex-direction: column;
	gap: var(--space-md);
}

.timeline_item h4 {
	margin-bottom: 4px;
}

.timeline_item .year {
	font-size: 0.8rem;
	font-weight: 800;
	color: var(--color-primary-dark);
	text-transform: uppercase;
}

/* .contact_grid / .contact_card / .contact_form_grid live in assets/css/contact.css
   (contact-page-only, loaded conditionally via functions/conditional_assets.php). */

.not_found {
	text-align: center;
	padding: var(--space-xl) 0;

	p {
		margin-bottom: 30px;
	}
}

@media (max-width: 991px) {
	.primary_menu {
		position: fixed;
		top: 73px;
		left: 0;
		right: 0;
		bottom: 0;
		background: var(--color-bg);
		flex-direction: column;
		align-items: flex-start;
		padding: var(--space-md);
		display: none;
		overflow-y: auto;
	}

	.primary_menu ul {
		flex-direction: column;
		align-items: flex-start;
		gap: var(--space-sm);
		width: 100%;
	}

	.site_header.menu_open .primary_menu {
		display: flex;
	}

	#navToggle {
		display: flex;
	}

	/* .hero_inner/.story_teaser (home.css), .product_single (product.css),
	   .founder_section (about.css), .contact_grid (contact.css) each carry
	   their own matching @media (max-width: 991px) rule in their own file. */
	.grid_2 {
		grid-template-columns: 1fr;
	}

	.footer_grid {
		grid-template-columns: 1fr 1fr;
	}

	.form_row {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 600px) {
	.footer_grid {
		grid-template-columns: 1fr;
	}

	.footer_bottom {
		flex-direction: column;
		align-items: flex-start;
	}

	.hero_banner {
		padding: var(--space-lg) 0;
	}

	.messenger_fab {
		right: var(--space-sm);
		bottom: var(--space-sm);
		width: 48px;
		height: 48px;
	}

	.messenger_fab svg {
		width: 24px;
		height: 24px;
	}
}

/* =========================================================
   13. WOOCOMMERCE SKIN
   Moved out of this file for per-page loading. See:
   assets/css/woocommerce-core.css (shared button/notice skin),
   assets/css/shop.css, product.css, cart.css, checkout.css,
   assets/css/myaccount.css — all loaded conditionally via
   functions/conditional_assets.php so pages only download the CSS they use.
   ========================================================= */