/**
 * Global Theme Styles
 *
 * Contains only:
 * - Design variables
 * - CSS reset
 * - Typography
 * - Layout utilities
 * - Buttons
 * - Forms
 * - General content
 * - WordPress defaults
 *
 * Header and banner styles must remain in separate files.
 */

/* ==================================================
   1. DESIGN SYSTEM
================================================== */

:root {
	/* Brand colors */
	--color-primary: #071d36;
	--color-primary-light: #102f50;
	--color-primary-dark: #031326;

	--color-accent: #c4a05a;
	--color-accent-light: #e0c37c;
	--color-accent-dark: #96713a;

	/* Neutral colors */
	--color-white: #ffffff;
	--color-black: #111111;
	--color-background: #ffffff;
	--color-background-soft: #faf7f1;
	--color-background-muted: #f1ebe2;

	/* Text colors */
	--color-heading: #071d36;
	--color-text: #263548;
	--color-text-muted: #667384;
	--color-text-light: #ffffff;

	/* Border colors */
	--color-border: #ded8ce;
	--color-border-light: #ece7df;
	--color-border-accent: rgba(196, 160, 90, 0.55);

	/* Status colors */
	--color-success: #26734d;
	--color-error: #b42318;
	--color-warning: #a15c00;

	/* Typography */
	--font-heading: "Playfair Display", Georgia, "Times New Roman", serif;
	--font-body: "Poppins", Arial, Helvetica, sans-serif;
	--font-accent: "Cormorant Garamond", Georgia, serif;

	/* Font weights */
	--font-regular: 400;
	--font-medium: 500;
	--font-semibold: 600;
	--font-bold: 700;

	/* Content widths */
	--container-width: 1440px;
	--container-narrow: 820px;
	--container-small: 680px;

	/* Responsive page spacing */
	--page-padding: clamp(20px, 4vw, 64px);
	--section-spacing: clamp(64px, 8vw, 120px);
	--section-spacing-small: clamp(40px, 5vw, 72px);

	/* Border radius */
	--radius-small: 6px;
	--radius-medium: 12px;
	--radius-large: 24px;
	--radius-pill: 999px;

	/* Shadows */
	--shadow-small: 0 6px 20px rgba(7, 29, 54, 0.07);
	--shadow-medium: 0 15px 45px rgba(7, 29, 54, 0.11);
	--shadow-large: 0 24px 70px rgba(7, 29, 54, 0.15);

	/* Animation */
	--transition-fast: 180ms ease;
	--transition-normal: 300ms ease;
}


/* ==================================================
   2. RESET
================================================== */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	overflow-x: hidden;
	background-color: var(--color-background);
	color: var(--color-text);
	font-family: var(--font-body);
	font-size: 16px;
	font-weight: var(--font-regular);
	line-height: 1.75;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

img,
picture,
svg,
video,
canvas {
	display: block;
	max-width: 100%;
	height: auto;
}

iframe {
	max-width: 100%;
	border: 0;
}

figure {
	margin: 0;
}

button,
input,
textarea,
select {
	font: inherit;
}

button {
	cursor: pointer;
}

table {
	width: 100%;
	border-collapse: collapse;
}

ul,
ol {
	margin-top: 0;
}

address {
	font-style: normal;
}


/* ==================================================
   3. GLOBAL LINKS
================================================== */

a {
	color: var(--color-primary);
	text-decoration-thickness: 1px;
	text-underline-offset: 4px;
	transition:
		color var(--transition-fast),
		background-color var(--transition-fast),
		border-color var(--transition-fast),
		transform var(--transition-fast);
}

a:hover {
	color: var(--color-accent-dark);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
	outline: 3px solid var(--color-accent-light);
	outline-offset: 4px;
}


/* ==================================================
   4. CONTENT TYPOGRAPHY
================================================== */

/*
 * Scoped to main content so header and banner typography
 * can be controlled from header.css and banner.css.
 */

.site-main h1,
.site-main h2,
.site-main h3,
.site-main h4,
.site-main h5,
.site-main h6 {
	margin-top: 0;
	margin-bottom: 0.20em;
	color: var(--color-heading);
	font-family: var(--font-heading);
	font-weight: var(--font-medium);
	line-height: 1.18;
	letter-spacing: -0.02em;
}

.site-main h1 {
	font-size: clamp(2.75rem, 5vw, 5rem);
}

/*.site-main h2 {*/
/*	font-size: clamp(2.1rem, 4vw, 3.75rem);*/
/*}*/

/*.site-main h3 {*/
/*	font-size: clamp(1.65rem, 3vw, 2.5rem);*/
/*}*/

.site-main h4 {
	font-size: clamp(1.35rem, 2vw, 1.85rem);
}

.site-main h5 {
	font-size: 1.2rem;
}

.site-main h6 {
	font-size: 1rem;
}

.site-main p {
	margin-top: 0;
	margin-bottom: 10px;
}

.site-main strong,
.site-main b {
	font-weight: var(--font-bold);
}

.site-main small {
	font-size: 0.875rem;
}

.site-main mark {
	padding: 2px 5px;
	background-color: var(--color-accent-light);
	color: var(--color-primary-dark);
}

.site-main hr {
	height: 1px;
	margin: 48px 0;
	border: 0;
	background-color: var(--color-border);
}


/* ==================================================
   5. CONTAINERS
================================================== */

.container {
	width: min(
		calc(100% - (var(--page-padding) * 2)),
		var(--container-width)
	);
	margin-inline: auto;
}

.container--narrow {
	width: min(
		calc(100% - (var(--page-padding) * 2)),
		var(--container-narrow)
	);
	margin-inline: auto;
}

.container--small {
	width: min(
		calc(100% - (var(--page-padding) * 2)),
		var(--container-small)
	);
	margin-inline: auto;
}

.site-main {
	min-height: 60vh;
}

.section {
	position: relative;
	padding-block: var(--section-spacing);
}

.section--small {
	padding-block: var(--section-spacing-small);
}

.section--white {
	background-color: var(--color-white);
}

.section--soft {
	background-color: var(--color-background-soft);
}

.section--muted {
	background-color: var(--color-background-muted);
}

.section--dark {
	background-color: var(--color-primary);
	color: var(--color-white);
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4,
.section--dark h5,
.section--dark h6 {
	color: var(--color-white);
}


/* ==================================================
   6. SECTION HEADINGS
================================================== */

.section-heading {
	max-width: 820px;
	margin-bottom: clamp(32px, 5vw, 60px);
}

.section-heading--center {
	margin-right: auto;
	margin-left: auto;
	text-align: center;
}

.section-heading__eyebrow {
	display: block;
	margin-bottom: 14px;
	color: var(--color-accent-dark);
	font-size: 0.85rem;
	font-weight: var(--font-semibold);
	letter-spacing: 0.18em;
	line-height: 1.4;
	text-transform: uppercase;
}

.section-heading__title {
	margin-bottom: 18px;
}

.section-heading__description {
	max-width: 700px;
	margin-bottom: 0;
	color: var(--color-text-muted);
	font-size: clamp(1rem, 1.4vw, 1.15rem);
}

.section-heading--center .section-heading__description {
	margin-right: auto;
	margin-left: auto;
}


/* ==================================================
   7. BUTTONS
================================================== */

.button,
.btn,
.wp-block-button__link,
input[type="submit"],
button[type="submit"] {
	display: inline-flex;
	min-height: 56px;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 13px 30px;
	border: 1px solid var(--color-accent);
	border-radius: var(--radius-medium);
	background-color: var(--color-primary);
	color: var(--color-accent-light);
	font-family: var(--font-body);
	font-size: 1rem;
	font-weight: var(--font-semibold);
	line-height: 1.25;
	text-align: center;
	text-decoration: none;
	box-shadow: var(--shadow-small);
	transition:
		background-color var(--transition-fast),
		color var(--transition-fast),
		border-color var(--transition-fast),
		box-shadow var(--transition-fast),
		transform var(--transition-fast);
}

.button:hover,
.btn:hover,
.wp-block-button__link:hover,
input[type="submit"]:hover,
button[type="submit"]:hover {
	border-color: var(--color-accent);
	background-color: var(--color-accent);
	color: var(--color-primary-dark);
	transform: translateY(-2px);
	box-shadow: var(--shadow-medium);
}

.button:active,
.btn:active {
	transform: translateY(0);
}

.button--outline,
.btn--outline {
	background-color: transparent;
	color: var(--color-primary);
	box-shadow: none;
}

.button--outline:hover,
.btn--outline:hover {
	background-color: var(--color-primary);
	color: var(--color-accent-light);
}

.button--gold,
.btn--gold {
	background-color: var(--color-accent);
	color: var(--color-primary-dark);
}

.button--gold:hover,
.btn--gold:hover {
	background-color: var(--color-primary);
	color: var(--color-accent-light);
}

.button--light,
.btn--light {
	border-color: var(--color-white);
	background-color: var(--color-white);
	color: var(--color-primary);
}

.button--small,
.btn--small {
	min-height: 46px;
	padding: 10px 22px;
	font-size: 0.9rem;
}

.button--large,
.btn--large {
	min-height: 64px;
	padding: 16px 38px;
	font-size: 1.05rem;
}

.button-group {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 18px;
}


/* ==================================================
   8. CARDS
================================================== */

.card {
	overflow: hidden;
	border: 1px solid var(--color-border-light);
	border-radius: var(--radius-medium);
	background-color: var(--color-white);
	box-shadow: var(--shadow-small);
	transition:
		transform var(--transition-normal),
		box-shadow var(--transition-normal),
		border-color var(--transition-normal);
}

.card:hover {
	border-color: var(--color-border-accent);
	transform: translateY(-5px);
	box-shadow: var(--shadow-medium);
}

.card__image {
	overflow: hidden;
}

.card__image img {
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	transition: transform 500ms ease;
}

.card:hover .card__image img {
	transform: scale(1.04);
}

.card__body {
	padding: clamp(22px, 3vw, 34px);
}

.card__title {
	margin-bottom: 12px;
	font-size: clamp(1.4rem, 2vw, 1.9rem);
}

.card__text {
	margin-bottom: 0;
	color: var(--color-text-muted);
}

.card__footer {
	padding: 0 clamp(22px, 3vw, 34px) clamp(22px, 3vw, 34px);
}


/* ==================================================
   9. GRID UTILITIES
================================================== */

.grid {
	display: grid;
	gap: clamp(24px, 3vw, 40px);
}

.grid--2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid--3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid--4 {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.flex {
	display: flex;
}

.flex--center {
	align-items: center;
	justify-content: center;
}

.flex--between {
	align-items: center;
	justify-content: space-between;
}

.flex--wrap {
	flex-wrap: wrap;
}

.gap-small {
	gap: 12px;
}

.gap-medium {
	gap: 24px;
}

.gap-large {
	gap: 40px;
}


/* ==================================================
   10. GENERAL CONTENT
================================================== */

.entry-content {
	color: var(--color-text);
}

.entry-content::after {
	display: table;
	clear: both;
	content: "";
}

.entry-content > * {
	max-width: var(--container-narrow);
	margin-right: auto;
	margin-left: auto;
}

.entry-content > .alignwide {
	max-width: var(--container-width);
}

.entry-content > .alignfull {
	width: 100vw;
	max-width: none;
	margin-right: calc(50% - 50vw);
	margin-left: calc(50% - 50vw);
}

.entry-content ul,
.entry-content ol {
	margin-bottom: 1.5rem;
	padding-left: 1.4rem;
}

.entry-content li {
	margin-bottom: 0.6rem;
}

.entry-content a:not(.button):not(.btn) {
	color: var(--color-primary);
	font-weight: var(--font-medium);
}

.entry-content a:not(.button):not(.btn):hover {
	color: var(--color-accent-dark);
}


/* ==================================================
   11. BLOCKQUOTES
================================================== */

blockquote,
.wp-block-quote {
	position: relative;
	margin: 36px 0;
	padding: 6px 0 6px 28px;
	border-left: 3px solid var(--color-accent);
	color: var(--color-heading);
	font-family: var(--font-accent);
	font-size: clamp(1.35rem, 2.2vw, 2rem);
	font-style: italic;
	line-height: 1.5;
}

blockquote p:last-child,
.wp-block-quote p:last-child {
	margin-bottom: 0;
}

blockquote cite,
.wp-block-quote cite {
	display: block;
	margin-top: 14px;
	color: var(--color-text-muted);
	font-family: var(--font-body);
	font-size: 0.9rem;
	font-style: normal;
	font-weight: var(--font-medium);
}


/* ==================================================
   12. FORMS
================================================== */

.form-group {
	margin-bottom: 22px;
}

label {
	display: block;
	margin-bottom: 8px;
	color: var(--color-heading);
	font-size: 0.95rem;
	font-weight: var(--font-medium);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="search"],
input[type="number"],
input[type="date"],
input[type="time"],
select,
textarea {
	width: 100%;
	min-height: 54px;
	padding: 13px 16px;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-small);
	background-color: var(--color-white);
	color: var(--color-text);
	transition:
		border-color var(--transition-fast),
		box-shadow var(--transition-fast);
}

textarea {
	min-height: 150px;
	resize: vertical;
}

input::placeholder,
textarea::placeholder {
	color: var(--color-text-muted);
	opacity: 0.8;
}

input:focus,
select:focus,
textarea:focus {
	border-color: var(--color-accent);
	outline: none;
	box-shadow: 0 0 0 3px rgba(196, 160, 90, 0.16);
}

input[type="checkbox"],
input[type="radio"] {
	width: 18px;
	height: 18px;
	margin-right: 8px;
	accent-color: var(--color-primary);
}

.form-note {
	margin-top: 7px;
	color: var(--color-text-muted);
	font-size: 0.85rem;
}

.form-error {
	margin-top: 7px;
	color: var(--color-error);
	font-size: 0.85rem;
}


/* ==================================================
   13. TABLES
================================================== */

.table-wrapper {
	width: 100%;
	overflow-x: auto;
}

table {
	margin-bottom: 24px;
	border: 1px solid var(--color-border);
	background-color: var(--color-white);
}

th,
td {
	padding: 14px 18px;
	border-bottom: 1px solid var(--color-border);
	text-align: left;
	vertical-align: top;
}

th {
	background-color: var(--color-background-soft);
	color: var(--color-heading);
	font-weight: var(--font-semibold);
}

tbody tr:last-child td {
	border-bottom: 0;
}


/* ==================================================
   14. LIST COMPONENTS
================================================== */

.check-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.check-list li {
	position: relative;
	margin-bottom: 14px;
	padding-left: 32px;
}

.check-list li::before {
	position: absolute;
	top: 0.55em;
	left: 0;
	width: 16px;
	height: 8px;
	border-bottom: 2px solid var(--color-accent-dark);
	border-left: 2px solid var(--color-accent-dark);
	content: "";
	transform: rotate(-45deg);
}


/* ==================================================
   15. IMAGES
================================================== */

.image-rounded img,
img.image-rounded {
	border-radius: var(--radius-medium);
}

.image-shadow img,
img.image-shadow {
	box-shadow: var(--shadow-medium);
}

.image-cover {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.featured-image {
	margin-bottom: clamp(30px, 5vw, 54px);
}

.featured-image img {
	width: 100%;
	border-radius: var(--radius-medium);
}


/* ==================================================
   16. WORDPRESS IMAGE CLASSES
================================================== */

.alignleft {
	float: left;
	margin: 8px 28px 20px 0;
}

.alignright {
	float: right;
	margin: 8px 0 20px 28px;
}

.aligncenter {
	display: block;
	margin-right: auto;
	margin-left: auto;
}

.wp-caption {
	max-width: 100%;
}

.wp-caption-text,
.gallery-caption {
	margin-top: 9px;
	color: var(--color-text-muted);
	font-size: 0.85rem;
	line-height: 1.5;
	text-align: center;
}


/* ==================================================
   17. PAGINATION
================================================== */

.pagination,
.nav-links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin-top: 50px;
}

.page-numbers {
	display: inline-flex;
	min-width: 44px;
	height: 44px;
	align-items: center;
	justify-content: center;
	padding: 7px 13px;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-small);
	background-color: var(--color-white);
	color: var(--color-primary);
	font-weight: var(--font-medium);
	text-decoration: none;
}

.page-numbers:hover,
.page-numbers.current {
	border-color: var(--color-primary);
	background-color: var(--color-primary);
	color: var(--color-white);
}


/* ==================================================
   18. ACCESSIBILITY
================================================== */

.screen-reader-text {
	position: absolute;
	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 {
	position: fixed;
	top: 16px;
	left: 16px;
	z-index: 99999;
	width: auto;
	height: auto;
	padding: 12px 18px;
	overflow: visible;
	clip: auto;
	border-radius: var(--radius-small);
	background-color: var(--color-white);
	color: var(--color-primary);
	font-weight: var(--font-semibold);
	white-space: normal;
	box-shadow: var(--shadow-medium);
}

.skip-link {
	position: fixed;
	top: -100px;
	left: 20px;
	z-index: 99999;
	padding: 12px 18px;
	border-radius: var(--radius-small);
	background-color: var(--color-accent);
	color: var(--color-primary-dark);
	font-weight: var(--font-semibold);
	text-decoration: none;
}

.skip-link:focus {
	top: 20px;
}


/* ==================================================
   19. UTILITY CLASSES
================================================== */

.text-center {
	text-align: center;
}

.text-left {
	text-align: left;
}

.text-right {
	text-align: right;
}

.text-primary {
	color: var(--color-primary);
}

.text-accent {
	color: var(--color-accent-dark);
}

.text-muted {
	color: var(--color-text-muted);
}

.text-white {
	color: var(--color-white);
}

.bg-primary {
	background-color: var(--color-primary);
}

.bg-soft {
	background-color: var(--color-background-soft);
}

.bg-white {
	background-color: var(--color-white);
}

.hidden {
	display: none !important;
}

.no-margin {
	margin: 0 !important;
}

.margin-bottom-0 {
	margin-bottom: 0 !important;
}


/* ==================================================
   20. RESPONSIVE GLOBAL RULES
================================================== */

@media (max-width: 1024px) {
	.grid--4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.grid--3 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	body {
		font-size: 15px;
	}

	.grid--2,
	.grid--3,
	.grid--4 {
		grid-template-columns: 1fr;
	}

	.button-group {
		align-items: stretch;
		flex-direction: column;
	}

	.button-group .button,
	.button-group .btn {
		width: 100%;
	}

	.alignleft,
	.alignright {
		float: none;
		margin: 24px auto;
	}

	.section-heading {
		margin-bottom: 36px;
	}

	th,
	td {
		padding: 12px 14px;
	}
}

@media (max-width: 480px) {
	:root {
		--page-padding: 18px;
	}

	.button,
	.btn,
	.wp-block-button__link,
	input[type="submit"],
	button[type="submit"] {
		width: 100%;
		min-height: 52px;
		padding: 12px 22px;
	}
}


/* ==================================================
   21. REDUCED MOTION
================================================== */

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}