/*
 * A to Z Travel Center
 * Global design system and utility classes
 */

:root {
	--atoz-navy: #12324a;
	--atoz-navy-dark: #0b2233;
	--atoz-blue: #2f6f9f;
	--atoz-sky: #dcecf5;
	--atoz-sand: #f2eadf;
	--atoz-cream: #faf7f2;
	--atoz-gold: #c99a4a;
	--atoz-charcoal: #22272b;
	--atoz-gray: #66727a;
	--atoz-border: #d9e0e4;
	--atoz-white: #ffffff;

	--atoz-font-heading: "Playfair Display", Georgia, serif;
	--atoz-font-body: "Inter", Arial, sans-serif;

	--atoz-container: 1200px;
	--atoz-radius-sm: 6px;
	--atoz-radius-md: 12px;
	--atoz-radius-lg: 22px;

	--atoz-shadow-soft: 0 12px 34px rgba(11, 34, 51, 0.10);
	--atoz-transition: 180ms ease;
}

html {
	scroll-behavior: smooth;
}

body {
	background: var(--atoz-white);
	color: var(--atoz-charcoal);
	font-family: var(--atoz-font-body);
	font-size: 18px;
	line-height: 1.65;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	color: var(--atoz-navy-dark);
	font-family: var(--atoz-font-heading);
	font-weight: 700;
	line-height: 1.15;
	margin-top: 0;
}

h1 {
	font-size: clamp(2.75rem, 6vw, 5.5rem);
}

h2 {
	font-size: clamp(2.15rem, 4vw, 3.8rem);
}

h3 {
	font-size: clamp(1.55rem, 2.5vw, 2.25rem);
}

p:last-child {
	margin-bottom: 0;
}

a {
	color: var(--atoz-blue);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
	transition: color var(--atoz-transition);
}

a:hover,
a:focus {
	color: var(--atoz-navy-dark);
}

:focus-visible {
	outline: 3px solid var(--atoz-gold);
	outline-offset: 3px;
}

.atoz-container {
	margin-inline: auto;
	max-width: var(--atoz-container);
	padding-inline: 24px;
	width: 100%;
}

.atoz-section {
	padding-block: clamp(64px, 8vw, 120px);
}

.atoz-section--compact {
	padding-block: clamp(44px, 6vw, 78px);
}

.atoz-section--navy {
	background: var(--atoz-navy-dark);
	color: var(--atoz-white);
}

.atoz-section--navy h1,
.atoz-section--navy h2,
.atoz-section--navy h3,
.atoz-section--navy h4 {
	color: var(--atoz-white);
}

.atoz-section--cream {
	background: var(--atoz-cream);
}

.atoz-eyebrow {
	color: var(--atoz-gold);
	font-size: 0.82rem;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.atoz-lead {
	font-size: clamp(1.15rem, 1.8vw, 1.4rem);
	line-height: 1.55;
}

.atoz-button,
.elementor-button.atoz-button {
	align-items: center;
	background: var(--atoz-gold);
	border: 2px solid var(--atoz-gold);
	border-radius: 999px;
	color: var(--atoz-navy-dark);
	display: inline-flex;
	font-weight: 800;
	justify-content: center;
	min-height: 52px;
	padding: 13px 26px;
	text-decoration: none;
	transition:
		background var(--atoz-transition),
		border-color var(--atoz-transition),
		color var(--atoz-transition),
		transform var(--atoz-transition);
}

.atoz-button:hover,
.atoz-button:focus,
.elementor-button.atoz-button:hover,
.elementor-button.atoz-button:focus {
	background: var(--atoz-white);
	border-color: var(--atoz-white);
	color: var(--atoz-navy-dark);
	transform: translateY(-1px);
}

.atoz-button--outline,
.elementor-button.atoz-button--outline {
	background: transparent;
	border-color: currentColor;
	color: var(--atoz-navy-dark);
}

.atoz-card {
	background: var(--atoz-white);
	border: 1px solid var(--atoz-border);
	border-radius: var(--atoz-radius-md);
	box-shadow: var(--atoz-shadow-soft);
	height: 100%;
	overflow: hidden;
}

.atoz-card__content {
	padding: clamp(24px, 4vw, 40px);
}

.atoz-grid {
	display: grid;
	gap: clamp(24px, 3vw, 38px);
}

.atoz-grid--2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.atoz-grid--3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.atoz-grid--4 {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.atoz-image-cover img {
	height: 100%;
	object-fit: cover;
	width: 100%;
}

/* Gravity Forms */
.gform_wrapper.gravity-theme input[type="text"],
.gform_wrapper.gravity-theme input[type="email"],
.gform_wrapper.gravity-theme input[type="tel"],
.gform_wrapper.gravity-theme input[type="url"],
.gform_wrapper.gravity-theme input[type="number"],
.gform_wrapper.gravity-theme select,
.gform_wrapper.gravity-theme textarea {
	background: var(--atoz-white);
	border: 1px solid var(--atoz-border);
	border-radius: var(--atoz-radius-sm);
	box-shadow: none;
	color: var(--atoz-charcoal);
	min-height: 52px;
	padding: 12px 14px;
}

.gform_wrapper.gravity-theme textarea {
	min-height: 150px;
}

.gform_wrapper.gravity-theme input:focus,
.gform_wrapper.gravity-theme select:focus,
.gform_wrapper.gravity-theme textarea:focus {
	border-color: var(--atoz-blue);
	box-shadow: 0 0 0 3px rgba(47, 111, 159, 0.15);
	outline: 0;
}

.gform_wrapper.gravity-theme .gform_button {
	background: var(--atoz-gold);
	border: 0;
	border-radius: 999px;
	color: var(--atoz-navy-dark);
	cursor: pointer;
	font-weight: 800;
	min-height: 52px;
	padding: 13px 28px;
}

/* Elementor cleanup */
.elementor-widget-text-editor ul,
.elementor-widget-theme-post-content ul {
	padding-left: 1.2em;
}

.elementor-widget-text-editor li + li,
.elementor-widget-theme-post-content li + li {
	margin-top: 0.45em;
}

@media (max-width: 1024px) {
	.atoz-grid--4,
	.atoz-grid--3 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	body {
		font-size: 17px;
	}

	.atoz-container {
		padding-inline: 20px;
	}

	.atoz-grid--2,
	.atoz-grid--3,
	.atoz-grid--4 {
		grid-template-columns: 1fr;
	}

	.atoz-button,
	.elementor-button.atoz-button {
		width: 100%;
	}
}

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

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
}
