/*
Theme Name: Divinely Touched
Theme URI: https://example.com
Author: Divinely Touched
Description: Custom starter theme for Divinely Touched — spa, reiki, retreats, hypnotherapy, courses, yoga, store and venue marketplace, with an 18+ entry gate, a Venue taxonomy, and all core pages created automatically on activation.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: divinely-touched
*/

:root {
	--dt-teal: #a9c6c1;
	--dt-teal-dark: #6f9a94;
	--dt-gold: #c9a24b;
	--dt-cream: #faf7f2;
	--dt-ink: #2b2b2b;
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	font-family: 'EB Garamond', Georgia, serif;
	color: var(--dt-ink);
	background: var(--dt-cream);
	line-height: 1.6;
}

a {
	color: var(--dt-teal-dark);
}

.dt-container {
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 24px;
}

/* Header / nav */
.dt-site-header {
	background: #fff;
	border-bottom: 1px solid #eee;
	padding: 18px 0;
}
.dt-site-header .dt-container {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
}
.dt-site-title {
	font-family: 'Playfair Display', Georgia, serif;
	font-weight: 700;
	font-size: 22px;
	letter-spacing: 0.02em;
	color: var(--dt-gold);
	text-decoration: none;
}
.dt-nav ul {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
	margin: 0;
	padding: 0;
}
.dt-nav a {
	text-decoration: none;
	color: var(--dt-ink);
	font-size: 15px;
}
.dt-nav a:hover {
	color: var(--dt-gold);
}

/* Hero */
.dt-hero {
	position: relative;
	min-height: 60vh;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	background-color: var(--dt-teal);
	background-size: cover;
	background-position: center;
	color: #fff;
}
.dt-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(0,0,0,0.08);
}
.dt-hero-inner {
	position: relative;
	z-index: 1;
	padding: 40px 20px;
}
.dt-hero h1 {
	font-family: 'Playfair Display', Georgia, serif;
	font-weight: 700;
	letter-spacing: 0.03em;
	font-size: clamp(36px, 6vw, 64px);
	color: var(--dt-gold);
	text-shadow: 0 2px 10px rgba(0,0,0,0.35);
	margin: 0 0 12px;
}
.dt-hero p {
	font-size: 18px;
	max-width: 520px;
	margin: 0 auto;
	color: #fff;
	text-shadow: 0 1px 6px rgba(0,0,0,0.3);
}

/* Tiles */
.dt-tiles {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 20px;
	padding: 60px 0;
}
.dt-tile {
	background: #fff;
	border: 1px solid #eee;
	border-radius: 10px;
	padding: 0 0 20px;
	text-align: center;
	text-decoration: none;
	color: var(--dt-ink);
	transition: box-shadow 0.2s ease, transform 0.2s ease;
	overflow: hidden;
}
.dt-tile:hover {
	box-shadow: 0 8px 24px rgba(0,0,0,0.08);
	transform: translateY(-2px);
}
.dt-tile-image {
	width: 100%;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	margin-bottom: 14px;
}
.dt-tile-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.dt-tile h3 {
	font-family: 'Playfair Display', Georgia, serif;
	font-weight: 700;
	font-size: 20px;
	color: var(--dt-gold);
	margin: 0 0 4px;
	padding: 0 16px;
}

/* Page content */
.dt-page {
	padding: 60px 0;
	max-width: 800px;
	margin: 0 auto;
}
.dt-page-image {
	width: 100%;
	max-height: 420px;
	overflow: hidden;
	border-radius: 12px;
	margin-bottom: 24px;
}
.dt-page-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.dt-page h1 {
	font-family: 'Playfair Display', Georgia, serif;
	font-weight: 700;
	color: var(--dt-gold);
	font-size: 36px;
}

/* Venues grid (shortcode output reuses these) */
.dt-venue-card {
	border: 1px solid #e2e2e2;
	border-radius: 8px;
	padding: 20px;
}

/* Footer */
.dt-site-footer {
	background: #fff;
	border-top: 1px solid #eee;
	padding: 30px 0;
	text-align: center;
	font-size: 13px;
	color: #777;
}
.dt-site-footer a {
	color: #777;
	margin: 0 8px;
}

/* Age gate */
#dt-age-gate {
	position: fixed;
	inset: 0;
	background: rgba(20, 30, 28, 0.92);
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}
#dt-age-gate.dt-hidden {
	display: none;
}
.dt-age-box {
	background: #fff;
	border-radius: 12px;
	max-width: 420px;
	padding: 36px 28px;
	text-align: center;
}
.dt-age-box h2 {
	font-family: 'Playfair Display', Georgia, serif;
	font-weight: 700;
	color: var(--dt-gold);
	font-size: 30px;
	margin-top: 0;
}
.dt-age-actions {
	display: flex;
	gap: 12px;
	justify-content: center;
	margin-top: 20px;
}
.dt-age-actions button {
	padding: 10px 24px;
	border-radius: 6px;
	border: none;
	font-size: 15px;
	cursor: pointer;
}
.dt-age-yes {
	background: var(--dt-teal-dark);
	color: #fff;
}
.dt-age-no {
	background: #eee;
	color: var(--dt-ink);
}

/* Inline enquiry/registration form */
.dt-inline-form {
	max-width: 420px;
	background: #fff;
	border: 1px solid #eee;
	border-radius: 10px;
	padding: 20px;
	margin: 20px 0;
}
.dt-inline-form label {
	font-size: 14px;
	display: block;
}
.dt-inline-form input[type="text"],
.dt-inline-form input[type="email"],
.dt-inline-form textarea {
	width: 100%;
	padding: 8px 10px;
	margin-top: 4px;
	border: 1px solid #ddd;
	border-radius: 6px;
	font-family: inherit;
	font-size: 14px;
	box-sizing: border-box;
}

/* Hiking trail cards */
.dt-trail-card {
	text-align: left;
	padding: 20px;
}
.dt-trail-card h3 {
	padding: 0;
}
.dt-trail-card p {
	font-size: 14px;
	margin: 4px 0;
}
.dt-trail-fee {
	background: #fff7e6;
	border-radius: 6px;
	padding: 6px 10px;
	margin: 10px 0 !important;
}
.dt-map-link {
	display: inline-block;
	margin-top: 10px;
	background: var(--dt-teal-dark);
	color: #fff !important;
	padding: 8px 16px;
	border-radius: 6px;
	text-decoration: none;
	font-size: 14px;
}
.dt-map-link:hover {
	opacity: 0.9;
}

/* Available Dates callout */
.dt-available-dates {
	background: #fff7e6;
	border: 1px solid #f0d98a;
	border-radius: 8px;
	padding: 14px 18px;
	margin: 0 0 24px;
}
.dt-available-dates strong {
	color: var(--dt-gold);
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}
.dt-available-dates p {
	margin: 6px 0 0;
}

/* Contact modal */
#dt-contact-modal {
	position: fixed;
	inset: 0;
	background: rgba(20, 30, 28, 0.85);
	z-index: 99997;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}
#dt-contact-modal.dt-hidden {
	display: none;
}
.dt-contact-box {
	background: #fff;
	border-radius: 12px;
	max-width: 420px;
	width: 100%;
	padding: 32px 26px;
	position: relative;
}
.dt-contact-box h2 {
	font-family: 'Playfair Display', Georgia, serif;
	font-weight: 700;
	color: var(--dt-gold);
	font-size: 26px;
	margin-top: 0;
}
.dt-contact-box label {
	font-size: 14px;
	display: block;
}
.dt-contact-box input[type="text"],
.dt-contact-box input[type="email"],
.dt-contact-box textarea {
	width: 100%;
	padding: 8px 10px;
	margin-top: 4px;
	border: 1px solid #ddd;
	border-radius: 6px;
	font-family: inherit;
	font-size: 14px;
}
#dt-contact-close {
	position: absolute;
	top: 12px;
	right: 16px;
	background: none;
	border: none;
	font-size: 22px;
	cursor: pointer;
	color: #999;
}

/* Cookie consent banner */
#dt-cookie-banner {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 99998;
	background: var(--dt-ink);
	color: #fff;
	padding: 16px 20px;
}
#dt-cookie-banner.dt-hidden {
	display: none;
}
.dt-cookie-inner {
	max-width: 900px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
}
.dt-cookie-inner p {
	margin: 0;
	font-size: 14px;
	flex: 1 1 320px;
}
.dt-cookie-inner a {
	color: var(--dt-gold);
}
#dt-cookie-accept {
	background: var(--dt-gold);
	color: #2b2b2b;
	border: none;
	padding: 10px 20px;
	border-radius: 6px;
	cursor: pointer;
	font-size: 14px;
	white-space: nowrap;
}

@media (max-width: 600px) {
	.dt-nav ul { justify-content: center; }
}
