/*!
Theme Name:   Astraz Garden Hall
Theme URI:    https://astrazgardenhall.com.br
Author:       Astraz Studio
Author URI:   https://astrazstudio.com.br
Description:  Tema exclusivo para o Astraz Garden Hall — casa de eventos de alto padrão para até 350 convidados. Luxury minimalist com hero em vídeo, galeria filtrável em AJAX, simulador de orçamento em três passos e agendamento de visita guiada.
Version:      1.0.0
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 8.0
License:      GNU General Public License v2 or later
License URI:  https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  agh
Tags:         custom-menu, featured-images, translation-ready, editorial, minimal, accessibility-ready
*/

/* =========================================================================
   1. Tokens do design system
   ====================================================================== */

:root {
	/* --- Cor ---
	   Todo par usado no site foi auditado. Os dois erros que quebram o
	   contraste desta paleta:
	   • #D4AF37 sobre fundo claro dá 2,0:1 — usar --agh-gold-ink.
	   • texto branco dentro do botão dourado dá 2,1:1 — o rótulo é escuro. */
	--agh-bone: #faf8f4;
	--agh-bone-2: #f2eee6;
	--agh-olive: #1c2826;
	--agh-olive-soft: #2a3936;
	--agh-carvao: #191c1b;
	--agh-gold: #d4af37;
	--agh-gold-hover: #c29e2a;
	--agh-gold-ink: #8a6d1f;
	--agh-gold-ink-aaa: #634c0f;
	--agh-gold-soft: #e8d9a8;
	--agh-mist: #414e4a;
	--agh-line: #e2dcd0;
	--agh-danger: #a33a2e;
	--agh-success: #1c4429;

	/* --- Tipografia --- */
	--agh-font-display: "Playfair Display", Georgia, "Times New Roman", serif;
	--agh-font-body: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

	--agh-fs-h1: clamp(2.25rem, 5.2vw, 3.5rem);   /* 36 → 56px */
	--agh-fs-h2: clamp(1.75rem, 3.4vw, 2.5rem);   /* 28 → 40px */
	--agh-fs-h3: clamp(1.25rem, 1.8vw, 1.5rem);   /* 20 → 24px */
	--agh-fs-h4: 1.125rem;
	--agh-fs-lead: clamp(1.0625rem, 1.4vw, 1.25rem);
	--agh-fs-body: 1rem;
	--agh-fs-small: 0.875rem;
	--agh-fs-eyebrow: 0.75rem;

	--agh-lh-tight: 1.12;
	--agh-lh-body: 1.6;

	/* --- Espaço (base 8) --- */
	--agh-s1: 8px;
	--agh-s2: 16px;
	--agh-s3: 24px;
	--agh-s4: 32px;
	--agh-s5: 48px;
	--agh-s6: 64px;
	--agh-s7: 96px;
	--agh-s8: 128px;

	--agh-section-y: clamp(72px, 9vw, 140px);
	--agh-container: 1240px;
	--agh-gutter: clamp(20px, 4vw, 40px);
	--agh-header-h: 88px;

	/* --- Forma e movimento --- */
	--agh-radius: 2px;
	--agh-radius-card: 4px;
	--agh-shadow: 0 24px 60px -32px rgba(28, 40, 38, .35);
	--agh-ease: cubic-bezier(.16, 1, .3, 1);
	--agh-dur: 600ms;
	--agh-dur-fast: 250ms;

	/* Overlay do hero: 60% de base, com as pontas mais fechadas para o texto
	   sustentar contraste sobre qualquer foto — inclusive jardim ao meio-dia. */
	--agh-overlay: linear-gradient(180deg, rgba(28, 40, 38, .62) 0%, rgba(28, 40, 38, .52) 45%, rgba(28, 40, 38, .8) 100%);

	/* Profundidade das superfícies escuras: halo dourado difuso no alto e
	   vinhete nas bordas. Verde chapado lê como fundo de slide, não como luxo. */
	--agh-profundidade:
		radial-gradient(120% 85% at 50% 10%, rgba(212, 175, 55, .16) 0%, rgba(212, 175, 55, 0) 58%),
		radial-gradient(120% 120% at 50% 50%, rgba(42, 57, 54, .85) 0%, rgba(25, 28, 27, .96) 100%);
}

/* =========================================================================
   2. Reset enxuto
   ====================================================================== */

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

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

body {
	margin: 0;
	background: var(--agh-bone);
	color: var(--agh-carvao);
	font-family: var(--agh-font-body);
	font-size: var(--agh-fs-body);
	line-height: var(--agh-lh-body);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}

img,
picture,
video,
canvas,
svg {
	display: block;
	max-width: 100%;
}

img {
	height: auto;
}

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

button {
	cursor: pointer;
}

/* Âncora não pode aterrissar embaixo do header fixo. */
[id] {
	scroll-margin-top: calc(var(--agh-header-h) + 24px);
}

/* =========================================================================
   3. Tipografia
   ====================================================================== */

h1,
h2,
h3,
h4 {
	margin: 0;
	font-family: var(--agh-font-display);
	font-weight: 500;
	color: var(--agh-olive);
	text-wrap: balance;
}

h1 {
	font-size: var(--agh-fs-h1);
	line-height: 1.08;
	letter-spacing: -.02em;
}

h2 {
	font-size: var(--agh-fs-h2);
	line-height: var(--agh-lh-tight);
	letter-spacing: -.015em;
}

h3 {
	font-size: var(--agh-fs-h3);
	line-height: 1.25;
	letter-spacing: -.01em;
}

h4 {
	font-family: var(--agh-font-body);
	font-size: var(--agh-fs-h4);
	font-weight: 600;
	line-height: 1.35;
	color: var(--agh-mist);
}

p {
	margin: 0 0 var(--agh-s2);
	max-width: 64ch;
}

a {
	color: var(--agh-gold-ink);
	text-decoration-thickness: 1px;
	text-underline-offset: .2em;
}

a:hover {
	color: var(--agh-carvao);
}

strong {
	font-weight: 600;
}

ul,
ol {
	margin: 0 0 var(--agh-s2);
	padding-left: 1.2em;
}

li {
	margin-bottom: var(--agh-s1);
}

blockquote {
	margin: 0;
}

/* =========================================================================
   4. Utilitários de layout
   ====================================================================== */

.agh-container {
	width: 100%;
	max-width: var(--agh-container);
	margin-inline: auto;
	padding-inline: var(--agh-gutter);
}

.agh-container--narrow {
	max-width: 860px;
}

.agh-section {
	padding-block: var(--agh-section-y);
}

.agh-section--alt {
	background: var(--agh-bone-2);
}

.agh-section--dark {
	background-color: var(--agh-olive);
	background-image: var(--agh-profundidade);
	color: var(--agh-bone);
}

.agh-section--dark h1,
.agh-section--dark h2,
.agh-section--dark h3 {
	color: var(--agh-bone);
}

.agh-section--dark h4 {
	color: var(--agh-gold-soft);
}

.agh-section--dark .agh-eyebrow {
	color: var(--agh-gold);
}

.agh-section--dark .agh-lead {
	color: rgba(250, 248, 244, .82);
}

/* :not(.agh-btn) é obrigatório aqui. Sem ele, esta regra vence a cor do
   botão primário por especificidade (0,2,0 contra 0,1,0) e o rótulo do
   botão dourado fica dourado sobre dourado — o botão parece vazio. */
.agh-section--dark a:not(.agh-btn) {
	color: var(--agh-gold);
}

.agh-section--dark a:not(.agh-btn):hover {
	color: var(--agh-gold-soft);
}

.agh-eyebrow {
	display: block;
	margin-bottom: var(--agh-s2);
	font-family: var(--agh-font-body);
	font-size: var(--agh-fs-eyebrow);
	font-weight: 600;
	line-height: 1;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--agh-gold-ink-aaa);
}

.agh-lead {
	max-width: 62ch;
	font-size: var(--agh-fs-lead);
	color: var(--agh-mist);
}

.agh-small {
	font-size: var(--agh-fs-small);
	color: var(--agh-mist);
}

/* Filete dourado: ornamento de ancoragem visual do título de seção. */
.agh-rule::before {
	content: "";
	display: block;
	width: 48px;
	height: 1px;
	margin-bottom: var(--agh-s3);
	background: var(--agh-gold);
	transition: width var(--agh-dur) var(--agh-ease);
}

.agh-section__head {
	max-width: 720px;
	margin-bottom: var(--agh-s6);
}

.agh-grid {
	display: grid;
	gap: var(--agh-s3);
}

/* =========================================================================
   5. Botões
   ====================================================================== */

.agh-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--agh-s1);
	min-height: 48px;
	padding: 16px 36px;
	border: 1px solid transparent;
	border-radius: var(--agh-radius);
	font-family: var(--agh-font-body);
	font-size: var(--agh-fs-small);
	font-weight: 600;
	line-height: 1;
	letter-spacing: .12em;
	text-transform: uppercase;
	text-decoration: none;
	transition:
		background-color var(--agh-dur-fast) var(--agh-ease),
		color var(--agh-dur-fast) var(--agh-ease),
		border-color var(--agh-dur-fast) var(--agh-ease),
		transform var(--agh-dur-fast) var(--agh-ease);
}

.agh-btn--primary,
.agh-section--dark .agh-btn--primary,
.agh-hero .agh-btn--primary {
	background: var(--agh-gold);
	color: var(--agh-olive);
}

.agh-btn--outline {
	background: transparent;
	border-color: var(--agh-olive);
	color: var(--agh-olive);
}

.agh-btn--light {
	background: transparent;
	border-color: rgba(250, 248, 244, .55);
	color: var(--agh-bone);
}

.agh-btn--block {
	width: 100%;
}

@media (hover: hover) {
	.agh-btn--primary:hover {
		background: var(--agh-gold-hover);
		color: var(--agh-olive);
		transform: translateY(-2px);
	}

	.agh-btn--outline:hover {
		background: rgba(28, 40, 38, .06);
		color: var(--agh-olive);
		transform: translateY(-2px);
	}

	.agh-btn--light:hover {
		background: rgba(250, 248, 244, .14);
		color: var(--agh-bone);
		transform: translateY(-2px);
	}
}

.agh-btn:active {
	transform: translateY(0);
}

.agh-btn[disabled],
.agh-btn[aria-disabled="true"] {
	opacity: .45;
	cursor: not-allowed;
	transform: none;
}

.agh-link {
	display: inline-flex;
	align-items: center;
	gap: var(--agh-s1);
	font-size: var(--agh-fs-small);
	font-weight: 600;
	letter-spacing: .04em;
	text-decoration: none;
}

.agh-link:hover {
	text-decoration: underline;
}

/* =========================================================================
   6. Foco e acessibilidade
   ====================================================================== */

:focus-visible {
	outline: 2px solid var(--agh-olive);
	outline-offset: 3px;
}

.agh-section--dark :focus-visible,
.agh-hero :focus-visible {
	outline-color: var(--agh-gold);
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.skip-link {
	position: absolute;
	top: -100px;
	left: var(--agh-gutter);
	z-index: 999;
	padding: 12px 20px;
	background: var(--agh-olive);
	color: var(--agh-bone);
	text-decoration: none;
}

.skip-link:focus {
	top: 12px;
	color: var(--agh-bone);
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
	}
}
