/* ==========================================================================
   Fonts
   ========================================================================== */

@font-face {
	font-family: 'Fedra Sans Arm';
	src: url('../fonts/FedraSansArm-Book.woff2') format('woff2'),
	     url('../fonts/FedraSansArm-Book.woff') format('woff');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Fedra Sans Arm';
	src: url('../fonts/FedraSansArm-Bold.woff2') format('woff2'),
	     url('../fonts/FedraSansArm-Bold.woff') format('woff');
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}


/* ==========================================================================
   Variables
   ========================================================================== */

:root {
	/* Colors */
	--color-black:      #231F20;
	--color-dark:       #474034;
	--color-cream:      #EDE8DE;
	--color-orange:     #F25E0D;
	--color-orange-hover: #d94e00;
	--color-white:      #ffffff;
	--color-bg:         #f7f9fc;
	--color-text-muted: #717d96;
	--color-border:     #cbd2e0;

	/* Typography */
	--font-primary: 'Fedra Sans Arm', sans-serif;
	--font-ui:      'Inter', sans-serif;

	/* Layout */
	--container-max:     1440px;
	--container-pad:     40px;

	/* Transitions */
	--ease: 0.2s ease;
}


/* ==========================================================================
   Reset & Base
   ========================================================================== */

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

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

body {
	font-family: var(--font-primary);
	font-weight: 400;
	color: var(--color-dark);
	background: var(--color-white);
	line-height: 1.6;
}

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

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

ul, ol {
	list-style: none;
}

button {
	cursor: pointer;
	border: none;
	background: none;
	font-family: inherit;
}

input, select, textarea {
	font-family: inherit;
}


/* ==========================================================================
   Layout
   ========================================================================== */

.container {
	max-width: var(--container-max);
	margin: 0 auto;
	padding: 0 var(--container-pad);
}

.main-content {
	min-height: 60vh;
}


/* ==========================================================================
   Typography
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-primary);
	font-weight: 700;
	line-height: 1.2;
	color: var(--color-black);
}

h1 { font-size: clamp(2rem,   4vw,  3.25rem); }
h2 { font-size: clamp(1.75rem, 3vw,  2.5rem);  }
h3 { font-size: clamp(1.25rem, 2vw,  1.5rem);  }

p {
	font-size: 1.125rem;
	line-height: 1.7;
}


/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 10px 24px;
	font-family: var(--font-ui);
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1;
	border-radius: 3px;
	border: 2px solid transparent;
	transition: background var(--ease), color var(--ease), border-color var(--ease);
	cursor: pointer;
	white-space: nowrap;
}

.btn--primary {
	background: var(--color-orange);
	color: var(--color-white);
	border-color: var(--color-orange);
}

.btn--primary:hover,
.btn--primary:focus-visible {
	background: var(--color-orange-hover);
	border-color: var(--color-orange-hover);
}

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

.btn--outline:hover,
.btn--outline:focus-visible {
	background: var(--color-black);
	color: var(--color-white);
}

.btn--outline-light {
	background: transparent;
	color: var(--color-cream);
	border-color: var(--color-cream);
}

.btn--outline-light:hover,
.btn--outline-light:focus-visible {
	background: var(--color-cream);
	color: var(--color-black);
}

.btn--sm {
	padding: 7px 16px;
	font-size: 0.8rem;
}


/* ==========================================================================
   Site Header
   ========================================================================== */

.site-header {
	background: var(--color-cream);
	position: sticky;
	top: 0;
	z-index: 200;
	border-bottom: 1px solid rgba(71, 64, 52, 0.12);
}

.site-header__inner {
	display: flex;
	align-items: center;
	gap: 32px;
	height: 80px;
}

/* Logo */
.site-logo {
	flex-shrink: 0;
	display: flex;
	align-items: center;
}

.site-logo img {
	height: 52px;
	width: auto;
}

/* Nav */
.site-nav {
	flex: 1;
}

.site-nav__list {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 36px;
}

.site-nav__list li a {
	font-family: var(--font-ui);
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--color-black);
	transition: color var(--ease);
	padding-bottom: 3px;
	border-bottom: 2px solid transparent;
}

.site-nav__list li a:hover,
.site-nav__list li.current-menu-item a {
	color: var(--color-orange);
}

.site-nav__list li.current-menu-item a {
	color: var(--color-black);
	border-bottom-color: var(--color-black);
}

/* Header actions */
.site-header__actions {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	gap: 10px;
}

/* Mobile toggle */
.nav-toggle {
	display: none;
	flex-direction: column;
	gap: 5px;
	padding: 4px;
	margin-left: auto;
}

.nav-toggle span {
	display: block;
	width: 24px;
	height: 2px;
	background: var(--color-black);
	transition: transform var(--ease), opacity var(--ease);
}


/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
	position: relative;
	background: var(--color-black);
	min-height: 520px;
	display: flex;
	align-items: stretch;
	overflow: hidden;
}

.hero__inner {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	padding-top: 80px;
	padding-bottom: 80px;
	width: 100%;
}

.hero__content {
	max-width: 580px;
}

.hero__title {
	font-size: clamp(2rem, 3.5vw, 3rem);
	color: var(--color-cream);
	font-weight: 700;
	line-height: 1.2;
	margin-bottom: 24px;
}

.hero__description {
	font-size: 1.125rem;
	color: rgba(237, 232, 222, 0.75);
	line-height: 1.75;
}

.hero__image-wrapper {
	position: absolute;
	inset: 0;
	left: 50%;
}

.hero__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0.55;
}


/* ==========================================================================
   Search & Map
   ========================================================================== */

.search-map {
	background: var(--color-cream);
	padding-top: 56px;
}

.search-map__top {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
	align-items: end;
	margin-bottom: 28px;
}

.search-map__title {
	font-size: clamp(2rem, 3vw, 2.75rem);
	color: var(--color-black);
	font-weight: 700;
	line-height: 1.1;
}

.search-map__name-field {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.search-map__label {
	font-family: var(--font-ui);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--color-dark);
}

.search-input-wrapper {
	position: relative;
}

.search-input {
	width: 100%;
	height: 48px;
	padding: 0 48px 0 16px;
	border: 1px solid var(--color-border);
	background: var(--color-white);
	font-size: 1rem;
	color: var(--color-dark);
	outline: none;
	transition: border-color var(--ease);
	border-radius: 2px;
}

.search-input:focus {
	border-color: var(--color-dark);
}

.search-input-icon {
	position: absolute;
	right: 14px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--color-dark);
	pointer-events: none;
}

.search-map__filters {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	margin-bottom: 32px;
}

.search-map__filter-group {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.search-select {
	width: 100%;
	height: 48px;
	padding: 0 40px 0 16px;
	border: 1px solid var(--color-border);
	background: var(--color-white);
	font-size: 1rem;
	color: var(--color-dark);
	appearance: none;
	cursor: pointer;
	outline: none;
	border-radius: 2px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23474034' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	transition: border-color var(--ease);
}

.search-select:focus {
	border-color: var(--color-dark);
}

.search-map__map {
	width: 100%;
	height: 500px;
}

.search-map__map iframe {
	width: 100%;
	height: 100%;
	border: none;
	display: block;
}


/* ==========================================================================
   Latest Monuments
   ========================================================================== */

.latest {
	background: var(--color-white);
	padding: 80px 0;
}

.latest__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 44px;
}

.latest__title {
	color: var(--color-black);
}

.cards-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
	margin-bottom: 40px;
}

/* Card */
.card {
	border: 1px solid var(--color-border);
	background: var(--color-white);
	display: flex;
	flex-direction: column;
	transition: box-shadow var(--ease);
}

.card:hover {
	box-shadow: 0 4px 24px rgba(35, 31, 32, 0.1);
}

.card__image-wrapper {
	position: relative;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--color-border);
}

.card__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.card:hover .card__image {
	transform: scale(1.04);
}

.card__image--placeholder {
	background: var(--color-border);
}

.card__expand {
	position: absolute;
	top: 12px;
	left: 12px;
	width: 32px;
	height: 32px;
	background: rgba(255, 255, 255, 0.9);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--color-black);
	transition: background var(--ease);
}

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

.card__body {
	padding: 22px 20px 20px;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.card__title {
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--color-black);
	margin-bottom: 10px;
	line-height: 1.3;
}

.card__title a:hover {
	color: var(--color-orange);
}

.card__excerpt {
	font-size: 0.9rem;
	color: var(--color-text-muted);
	line-height: 1.6;
	margin-bottom: 20px;
	flex: 1;
}

.latest__footer {
	display: flex;
	justify-content: flex-end;
}


/* ==========================================================================
   Prefooter / About
   ========================================================================== */

.prefooter {
	background: var(--color-cream);
	padding: 80px 0;
}

.prefooter__inner {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 60px;
	align-items: center;
}

.prefooter__title {
	color: var(--color-black);
	margin-bottom: 28px;
}

.prefooter__logo {
	margin-bottom: 24px;
}

.prefooter__logo img {
	height: 72px;
	width: auto;
}

.prefooter__text {
	font-size: 1rem;
	color: var(--color-dark);
	line-height: 1.75;
}

.prefooter__image-wrapper {
	overflow: hidden;
}

.prefooter__image {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}


/* ==========================================================================
   Site Footer
   ========================================================================== */

.site-footer {
	position: relative;
	background: var(--color-black);
	padding: 44px 0;
	overflow: hidden;
}

.site-footer__bg-wrapper {
	position: absolute;
	inset: 0;
	pointer-events: none;
}

.site-footer__bg {
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0.25;
}

.site-footer__inner {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
}

.site-footer__brand {
	flex-shrink: 0;
}

.site-footer__logo img {
	height: 48px;
	width: auto;
	filter: brightness(0) invert(1);
	opacity: 0.85;
	margin-bottom: 10px;
}

.site-footer__copy {
	font-family: var(--font-ui);
	font-size: 0.75rem;
	color: rgba(237, 232, 222, 0.45);
	line-height: 1;
}

.site-footer__nav-list {
	display: flex;
	align-items: center;
	gap: 32px;
	flex-wrap: wrap;
}

.site-footer__nav-list a {
	font-family: var(--font-ui);
	font-size: 0.8125rem;
	color: rgba(237, 232, 222, 0.65);
	transition: color var(--ease);
}

.site-footer__nav-list a:hover {
	color: var(--color-cream);
}


/* ==========================================================================
   Page template (content_long)
   ========================================================================== */

.page-hero {
	background: #edf0f7;
	padding: 60px 0;
	border-bottom: 1px solid var(--color-border);
}

.page-hero__title {
	font-size: clamp(2rem, 3.5vw, 3rem);
	color: var(--color-black);
	max-width: 860px;
}

.page-layout {
	display: grid;
	grid-template-columns: 1fr 408px;
	gap: 60px;
	padding-top: 60px;
	padding-bottom: 80px;
	align-items: start;
}

.page-layout__main {
	min-width: 0;
}

/* WordPress content styles */
.page-layout__main h2 {
	font-size: clamp(1.5rem, 2.5vw, 2rem);
	margin-top: 48px;
	margin-bottom: 20px;
	color: var(--color-black);
}

.page-layout__main h2:first-child {
	margin-top: 0;
}

.page-layout__main p {
	font-size: 1.125rem;
	line-height: 1.75;
	color: var(--color-dark);
	margin-bottom: 24px;
}

.page-layout__main img {
	width: 100%;
	height: auto;
	margin: 40px 0;
}

.page-layout__main ul,
.page-layout__main ol {
	list-style: revert;
	padding-left: 1.5em;
	margin-bottom: 24px;
	font-size: 1.125rem;
	line-height: 1.75;
	color: var(--color-dark);
}

.page-layout__main li {
	margin-bottom: 8px;
}

.page-layout__main a {
	color: var(--color-orange);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.page-layout__main a:hover {
	color: var(--color-orange-hover);
}

/* Sidebar */
.page-layout__sidebar {
	position: sticky;
	top: 100px;
	font-size: 0.9rem;
	color: var(--color-dark);
	line-height: 1.6;
}

.page-layout__sidebar p {
	font-size: 0.9rem;
	margin-bottom: 16px;
}

.page-layout__sidebar a {
	color: var(--color-orange);
}


/* ==========================================================================
   Accessibility
   ========================================================================== */

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

.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-width: 0;
}
