/*
Theme Name: Darvazavia Ethical Living | Eco-System
Theme URI: https://darvazavia.com/
Author: Darvazavia
Author URI: https://darvazavia.com/
Description: A lightweight, high-performance, code-only marketplace theme framework for Darvazavia Ethical Living. Curates ethical flights, property, and travel gear on a strict 8px grid with a premium "gate" palette, Cormorant Garamond display type, Inter UI type, and an inquire-to-book (no-checkout) flow. Fully mobile-responsive across desktops, tablets, and phones.
Requires at least: 6.7
Tested up to: 6.9.4
Requires PHP: 8.2
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: darvazavia
Tags: full-site-editing, block-patterns, custom-colors, custom-logo, editor-style, featured-images, translation-ready, wide-blocks, accessibility-ready, e-commerce
*/

/* -------------------------------------------------------------------------
 * Darvazavia Ethical Living — Main stylesheet
 * Tokens live in assets/css/il-tokens.css (loaded first).
 * Components live in assets/css/il-components.css (loaded after this).
 * Everything here adheres to the strict 8px spacing grid (--il-space-*).
 * ---------------------------------------------------------------------- */

/* ---- Reset / base ---- */
*,
*::before,
*::after {
	box-sizing: border-box;
}

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

body {
	margin: 0;
	font-family: var(--il-font-body);
	font-size: var(--il-font-size-base);   /* 16px */
	line-height: var(--il-line-height-base); /* 1.5 */
	color: var(--il-color-text);
	background-color: var(--il-color-bg);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	transition: background-color 0.3s ease, color 0.3s ease;
}

/* ---- Typography (Cormorant Garamond headings / Inter body) ---- */
h1, h2, h3, h4, h5, h6 {
	font-family: var(--il-font-display);
	font-weight: 600;
	line-height: 1.15;
	margin: 0 0 var(--il-space-2);
	color: var(--il-color-heading);
	letter-spacing: 0.01em;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.08em; }

p {
	margin: 0 0 var(--il-space-2);
}

a {
	color: var(--il-brand-green);
	text-decoration: none;
	transition: color 0.2s ease;
}

a:hover,
a:focus-visible {
	color: var(--il-color-link-hover);
	text-decoration: underline;
}

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

/* ---- Visible focus ring for keyboard users (accessibility-ready) ---- */
:focus-visible {
	outline: 3px solid var(--il-brand-orange);
	outline-offset: 2px;
	border-radius: var(--il-radius-sm);
}

/* ---- Layout primitives on the 8px grid ---- */
.il-container {
	width: 100%;
	max-width: var(--il-container-max);
	margin-inline: auto;
	padding-inline: var(--il-space-3); /* 24px */
}

.il-section {
	padding-block: var(--il-space-8); /* 64px */
}

.il-stack > * + * {
	margin-top: var(--il-space-3);
}

.il-grid {
	display: grid;
	gap: var(--il-space-3); /* 24px gutters, multiple of 8 */
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

/* ---- Buttons ---- */
.il-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--il-space-1);
	min-height: 48px; /* touch target, multiple of 8 */
	padding: var(--il-space-2) var(--il-space-3);
	font-family: var(--il-font-body);
	font-size: 1rem;
	font-weight: 600;
	line-height: 1;
	border: 2px solid transparent;
	border-radius: var(--il-radius-md);
	cursor: pointer;
	text-decoration: none;
	transition: transform 0.15s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.il-btn:hover { transform: translateY(-2px); text-decoration: none; }
.il-btn:active { transform: translateY(0); }

.il-btn--primary {
	background-color: var(--il-brand-green);
	color: var(--il-on-green);
}
.il-btn--primary:hover { background-color: var(--il-color-link-hover); color: var(--il-on-green); }

.il-btn--accent {
	background-color: var(--il-brand-orange);
	color: var(--il-on-orange);
}

.il-btn--ghost {
	background-color: transparent;
	color: var(--il-color-heading);
	border-color: var(--il-color-border);
}
.il-btn--ghost:hover { background-color: var(--il-color-surface-alt); }

/* ---- Screen-reader-only helper ---- */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	width: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	word-wrap: normal !important;
}

/* ---- Reduced motion: respect user preference ---- */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
		scroll-behavior: auto !important;
	}
}

/* ---- Responsive: tablet ---- */
@media (max-width: 1024px) {
	.il-section { padding-block: var(--il-space-7); } /* 48px */
}

/* ---- Responsive: phone ---- */
@media (max-width: 600px) {
	.il-container { padding-inline: var(--il-space-2); } /* 16px */
	.il-section { padding-block: var(--il-space-6); } /* 40px */
	.il-grid { grid-template-columns: 1fr; }
}
