/* The Diamond Grove — base layout, header, hero and footer shell. */

:root {
	--dg-navy: #001f3d;
	--dg-navy-hover: #002d5a;
	--dg-ink: #001f3d;
	--dg-muted: #4a5666;
	--dg-cream: #faf8f4;
	--dg-sale: #b3202a;
	--dg-line: #e3e1da;
	--dg-page: 1440px;
	--font-heading--family: 'Cormorant Garamond', serif;
	--font-body--family: 'Montserrat', sans-serif;
}

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

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

body {
	margin: 0;
	background: #fff;
	color: var(--dg-ink);
	font-family: var(--font-body--family);
	font-size: 1rem;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

img, video, svg { max-width: 100%; height: auto; }
a { color: inherit; }

h1, h2, h3, h4 {
	font-family: var(--font-heading--family);
	font-weight: 700;
	line-height: 1.15;
	color: var(--dg-ink);
}

.list-unstyled { list-style: none; margin: 0; padding: 0; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

.dg-skip-link {
	position: absolute;
	left: -9999px;
	z-index: 100;
	padding: 0.75rem 1rem;
	background: #fff;
}
.dg-skip-link:focus { left: 1rem; top: 1rem; }

.dg-page-width {
	width: 100%;
	max-width: var(--dg-page);
	margin: 0 auto;
	padding-inline: clamp(16px, 4vw, 48px);
}

.dg-content { padding-block: 48px 80px; }
.dg-center { text-align: center; }

.dg-page-title {
	margin: 0 0 2rem;
	font-size: clamp(2rem, 4vw, 3rem);
	letter-spacing: 0.5px;
	text-transform: uppercase;
}

.dg-rte { font-size: 1.0625rem; line-height: 1.75; }

.dg-button,
.button,
button.button,
.wp-element-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 1rem 2rem;
	border: 0;
	border-radius: 3px;
	background: var(--dg-navy);
	color: #fff;
	font-family: var(--font-body--family);
	font-size: 0.8125rem;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.2s ease;
}
.dg-button:hover,
.button:hover,
.wp-element-button:hover { background: var(--dg-navy-hover); color: #fff; }

/* Announcement bars */
.dg-announcements p { margin: 0; }
.dg-announcement {
	padding: 6px 16px;
	font-size: 0.875rem;
	line-height: 1.4;
	text-align: center;
}
.dg-announcement--sale { background: var(--dg-sale); color: var(--dg-cream); font-weight: 600; }
.dg-announcement--info { background: var(--dg-cream); color: #001f3f; }

/* Header */
.dg-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--dg-navy);
	color: #fff;
}
.admin-bar .dg-header { top: 32px; }

.dg-header__inner {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	max-width: var(--dg-page);
	min-height: 120px;
	margin: 0 auto;
	padding-inline: clamp(16px, 7vw, 120px);
}

.dg-header__logo { justify-self: start; display: block; line-height: 0; }
.dg-header__logo img { width: auto; height: 84px; }

.dg-header__actions {
	justify-self: end;
	display: flex;
	align-items: center;
	gap: 6px;
}

.dg-header__icon {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	cursor: pointer;
}
.dg-icon { width: 20px; height: 20px; }
.dg-header__icon.dg-header__menu-toggle { display: none; }

.dg-cart-count {
	position: absolute;
	top: 3px;
	right: 2px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 16px;
	height: 16px;
	padding: 0 4px;
	border-radius: 999px;
	background: #fff;
	color: var(--dg-navy);
	font-size: 0.625rem;
	font-weight: 600;
	line-height: 1;
}
.dg-cart-count[hidden] { display: none; }

.dg-nav__list { display: flex; list-style: none; margin: 0; padding: 0; }
.dg-nav__link {
	display: block;
	padding: 48px 25px;
	color: #fff;
	font-size: 1rem;
	font-weight: 400;
	letter-spacing: 0.04em;
	text-decoration: none;
	text-transform: uppercase;
}
.dg-nav__item:hover .dg-nav__link,
.dg-nav__item.is-open .dg-nav__link { text-decoration: underline; text-underline-offset: 6px; }

.dg-mega {
	position: absolute;
	left: 0;
	right: 0;
	top: 100%;
	visibility: hidden;
	opacity: 0;
	background: var(--dg-cream);
	color: var(--dg-ink);
	box-shadow: 0 18px 30px rgba(0, 31, 61, 0.12);
	transition: opacity 0.15s ease, visibility 0.15s ease;
}
.dg-nav__item:hover .dg-mega,
.dg-nav__item:focus-within .dg-mega,
.dg-nav__item.is-open .dg-mega { visibility: visible; opacity: 1; }
.dg-mega__inner {
	display: grid;
	max-width: 1100px;
	margin: 0 auto;
	padding: 32px clamp(16px, 4vw, 48px) 24px;
}

/* Search bar */
.dg-search { background: var(--dg-cream); color: var(--dg-ink); }
.dg-search__form {
	display: flex;
	align-items: center;
	gap: 12px;
	max-width: 900px;
	margin: 0 auto;
	padding: 16px clamp(16px, 4vw, 48px);
}
.dg-search__input {
	flex: 1;
	padding: 12px 16px;
	border: 1px solid var(--dg-line);
	border-radius: 3px;
	background: #fff;
	font: inherit;
}
.dg-search__close { color: var(--dg-ink); }

/* Mobile drawer */
.dg-drawer {
	position: fixed;
	inset: 0;
	z-index: 60;
	background: rgba(0, 15, 30, 0.45);
}
.dg-drawer__panel {
	width: min(420px, 90vw);
	height: 100%;
	overflow-y: auto;
	padding: 56px 20px 32px;
	background: var(--dg-cream);
	color: var(--dg-ink);
}
.dg-drawer__close { position: absolute; top: 8px; left: min(372px, calc(90vw - 48px)); }
.dg-drawer__group { border-bottom: 1px solid var(--dg-line); }
.dg-drawer__group summary {
	padding: 16px 0;
	font-family: var(--font-heading--family);
	font-size: 1.375rem;
	font-weight: 700;
	text-transform: uppercase;
	cursor: pointer;
	list-style: none;
}
.dg-drawer__group summary::-webkit-details-marker { display: none; }
.dg-drawer__group summary::after { content: '+'; float: right; font-family: var(--font-body--family); font-weight: 400; }
.dg-drawer__group[open] summary::after { content: '\2212'; }
.dg-drawer__group > div { padding-bottom: 16px; }
body.dg-drawer-open { overflow: hidden; }

/* Hero */
.dg-hero {
	position: relative;
	display: flex;
	align-items: center;
	min-height: calc(100svh - 120px - 64px);
	padding: 40px clamp(20px, 8vw, 130px);
	background: #eef2f6 var(--dg-hero-image) center / cover no-repeat;
}
.dg-hero { overflow: hidden; }
.dg-hero__video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.dg-hero__content { position: relative; max-width: 34rem; }

@media (prefers-reduced-motion: reduce) {
	.dg-hero__video { display: none; }
}
.dg-hero__title {
	margin: 0 0 1rem;
	font-size: clamp(2rem, 3.4vw, 2.75rem);
	font-weight: 700;
	letter-spacing: 0.5px;
	text-transform: uppercase;
}
.dg-hero__text {
	max-width: 28rem;
	margin: 0 0 32px;
	font-size: 1.125rem;
	line-height: 1.75;
}

@media (max-width: 989px) {
	.dg-header__inner {
		grid-template-columns: auto 1fr auto;
		min-height: 72px;
		padding-inline: 12px;
	}
	.dg-header__icon.dg-header__menu-toggle { display: inline-flex; }
	.dg-header__logo { justify-self: center; }
	.dg-header__logo img { height: 48px; }
	.dg-header__account { display: none; }
	.dg-nav { display: none; }
	.dg-hero {
		align-items: flex-start;
		min-height: calc(100svh - 72px - 96px);
		padding: 120px 16px 28px;
	}
	.dg-hero__title { font-size: 2.25rem; }
	.dg-hero__text { font-size: 1.0625rem; }
}

@media (max-width: 782px) {
	.admin-bar .dg-header { top: 46px; }
}
