@charset "UTF-8";

/* ============================================================================
   DDG Corporate Child — global styles

   Design tokens first, then layout primitives, then components.
   Breakpoint rules live in responsive.css so this file stays readable.
   ========================================================================= */

/* ---------------------------------------------------------------- fonts */

@font-face {
	font-family: 'Saira Condensed';
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url('../fonts/saira-condensed-600.woff2') format('woff2');
}

@font-face {
	font-family: 'Saira Condensed';
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url('../fonts/saira-condensed-700.woff2') format('woff2');
}

@font-face {
	font-family: 'Manrope';
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url('../fonts/manrope-variable.woff2') format('woff2');
}

/* --------------------------------------------------------------- tokens */

:root {
	--ddg-carbon: #131417;
	--ddg-asphalt: #1b1d22;
	--ddg-slate: #24272e;
	--ddg-bone: #f4f2ed;
	--ddg-mute: #9a968e;
	--ddg-gold: #c8a24b;
	--ddg-gold-bright: #e7c878;
	--ddg-red: #c42b2b;
	--ddg-green: #4f9d69;

	--ddg-hairline: rgba(255, 255, 255, 0.09);

	--ddg-display: 'Saira Condensed', 'Arial Narrow', Arial, sans-serif;
	--ddg-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;

	--ddg-nav-h: 72px;
	--ddg-max: 1220px;
	--ddg-radius: 5px;
}

/* ---------------------------------------------------------------- reset */

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

body.ddg {
	margin: 0;
	background: var(--ddg-carbon);
	color: var(--ddg-bone);
	font-family: var(--ddg-body);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

.ddg img {
	max-width: 100%;
	height: auto;
}

.ddg h1,
.ddg h2,
.ddg h3,
.ddg h4 {
	font-family: var(--ddg-display);
	font-weight: 700;
	line-height: 1.06;
	letter-spacing: 0.01em;
	margin: 0 0 0.5em;
}

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

.ddg a:hover {
	color: var(--ddg-gold-bright);
}

.ddg :focus-visible {
	outline: 2px solid var(--ddg-gold-bright);
	outline-offset: 3px;
}

.ddg-skip-link {
	position: absolute;
	left: -9999px;
	z-index: 999;
	padding: 12px 20px;
	background: var(--ddg-gold);
	color: #17130a;
	font-weight: 700;
}

.ddg-skip-link:focus {
	left: 12px;
	top: 12px;
}

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

/* --------------------------------------------------------------- layout */

.ddg-wrap {
	width: min(100% - 40px, var(--ddg-max));
	margin-inline: auto;
}

.ddg-main {
	min-height: 40vh;
}

/* Non-hero pages need room below the fixed header. */
.ddg:not(.ddg-has-hero) .ddg-main {
	padding-top: var(--ddg-nav-h);
}

/* -------------------------------------------------------------- buttons */

.ddg-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 46px;
	padding: 0 26px;
	border: 1px solid transparent;
	border-radius: 3px;
	font-family: var(--ddg-display);
	font-size: 16px;
	font-weight: 600;
	letter-spacing: 0.04em;
	cursor: pointer;
	transition: background 0.25s, border-color 0.25s, color 0.25s;
}

.ddg-btn--gold {
	background: var(--ddg-gold);
	color: #17130a;
}

.ddg-btn--gold:hover {
	background: var(--ddg-gold-bright);
	color: #17130a;
}

.ddg-btn--ghost {
	border-color: rgba(244, 242, 237, 0.34);
	color: var(--ddg-bone);
}

.ddg-btn--ghost:hover {
	border-color: var(--ddg-gold);
	color: var(--ddg-gold-bright);
}

/* ----------------------------------------------------------- navigation */

.ddg-nav {
	position: fixed;
	inset: 0 0 auto 0;
	z-index: 60;
	height: var(--ddg-nav-h);
	display: flex;
	align-items: center;
	background: rgba(19, 20, 23, 0.94);
	border-bottom: 1px solid var(--ddg-hairline);
	transition: background 0.35s, backdrop-filter 0.35s, border-color 0.35s;
}

/* Over the homepage hero the bar starts invisible and materialises on scroll. */
.ddg-nav--transparent {
	background: transparent;
	border-bottom-color: transparent;
}

.ddg-nav.is-stuck {
	background: rgba(19, 20, 23, 0.82);
	backdrop-filter: blur(16px) saturate(140%);
	-webkit-backdrop-filter: blur(16px) saturate(140%);
	border-bottom-color: var(--ddg-hairline);
}

/* The WordPress admin bar is also fixed at the top of the viewport, so a
   logged-in user would otherwise see the nav hidden behind it. */
.admin-bar .ddg-nav {
	top: 32px;
}

.admin-bar .ddg-search {
	top: calc(var(--ddg-nav-h) + 32px);
}

.admin-bar .ddg-mobile-menu {
	top: calc(var(--ddg-nav-h) + 32px);
}

.ddg-nav__inner {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 24px;
}

.ddg-nav__brand img {
	height: 42px;
	width: auto;
	filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.7));
}

.ddg-nav__wordmark {
	font-family: var(--ddg-display);
	font-size: 20px;
	font-weight: 700;
	letter-spacing: 0.04em;
}

.ddg-menu {
	display: flex;
	justify-content: center;
	gap: 26px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ddg-menu a {
	position: relative;
	display: block;
	padding: 6px 0;
	font-size: 14px;
	font-weight: 500;
	color: #ded9d0;
}

.ddg-menu a::after {
	content: '';
	position: absolute;
	left: 0;
	right: 100%;
	bottom: 0;
	height: 1.5px;
	background: var(--ddg-gold);
	transition: right 0.28s ease;
}

.ddg-menu a:hover::after,
.ddg-menu .current-menu-item > a::after {
	right: 0;
}

.ddg-nav__actions {
	display: flex;
	align-items: center;
	gap: 16px;
}

.ddg-icon-btn {
	position: relative;
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	padding: 0;
	background: none;
	border: 0;
	cursor: pointer;
}

.ddg-icon-btn svg {
	width: 20px;
	height: 20px;
	fill: none;
	stroke: #ded9d0;
	stroke-width: 1.6;
	stroke-linecap: round;
	stroke-linejoin: round;
	transition: stroke 0.25s;
}

.ddg-icon-btn:hover svg {
	stroke: var(--ddg-gold-bright);
}

.ddg-cart__count {
	position: absolute;
	top: 0;
	right: 0;
	min-width: 16px;
	height: 16px;
	padding: 0 4px;
	display: grid;
	place-items: center;
	background: var(--ddg-gold);
	color: #17130a;
	border-radius: 9px;
	font-size: 10.5px;
	font-weight: 700;
	line-height: 1;
}

.ddg-burger {
	display: none;
	padding: 6px;
	background: none;
	border: 0;
	cursor: pointer;
}

.ddg-burger span {
	display: block;
	width: 22px;
	height: 2px;
	margin: 4px 0;
	background: #ded9d0;
	transition: transform 0.28s, opacity 0.2s;
}

.ddg-burger[aria-expanded='true'] span:nth-child(1) {
	transform: translateY(6px) rotate(45deg);
}

.ddg-burger[aria-expanded='true'] span:nth-child(2) {
	opacity: 0;
}

.ddg-burger[aria-expanded='true'] span:nth-child(3) {
	transform: translateY(-6px) rotate(-45deg);
}

/* ---------------------------------------------------------- search bar */

.ddg-search {
	position: absolute;
	top: var(--ddg-nav-h);
	left: 0;
	right: 0;
	background: rgba(19, 20, 23, 0.97);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	border-bottom: 1px solid var(--ddg-hairline);
	padding: 18px 0;
}

.ddg-search[hidden] {
	display: none;
}

.ddg-search__form {
	display: flex;
	gap: 10px;
}

.ddg-search__form input[type='search'] {
	flex: 1;
	height: 46px;
	padding: 0 16px;
	background: var(--ddg-asphalt);
	border: 1px solid var(--ddg-hairline);
	border-radius: 3px;
	color: var(--ddg-bone);
	font-family: var(--ddg-body);
	font-size: 15px;
}

.ddg-search__form input[type='search']::placeholder {
	color: var(--ddg-mute);
}

/* -------------------------------------------------------- mobile menu */

.ddg-mobile-menu {
	position: fixed;
	inset: var(--ddg-nav-h) 0 0 0;
	z-index: 55;
	padding: 24px 20px 40px;
	background: var(--ddg-carbon);
	overflow-y: auto;
}

.ddg-mobile-menu[hidden] {
	display: none;
}

.ddg-mobile-menu__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.ddg-mobile-menu__list a {
	display: block;
	padding: 15px 0;
	border-bottom: 1px solid var(--ddg-hairline);
	font-family: var(--ddg-display);
	font-size: 22px;
	font-weight: 600;
}

/* -------------------------------------------------------------- footer */

.ddg-footer {
	background: #0e0f12;
	padding: 56px 0 26px;
	margin-top: 80px;
}

.ddg-footer__grid {
	display: grid;
	grid-template-columns: 1.6fr 1fr 1fr 1fr;
	gap: 34px;
}

.ddg-footer__brand img {
	height: 34px;
	width: auto;
	margin-bottom: 14px;
}

.ddg-footer__brand p {
	max-width: 34ch;
	margin: 0 0 16px;
	color: var(--ddg-mute);
	font-size: 13.5px;
}

.ddg-footer__title {
	margin: 0 0 12px;
	color: var(--ddg-gold);
	font-size: 15px;
	letter-spacing: 0.08em;
}

.ddg-footer__list,
.ddg-footer__social {
	margin: 0;
	padding: 0;
	list-style: none;
}

.ddg-footer__social {
	display: flex;
	gap: 16px;
}

.ddg-footer__list a,
.ddg-footer__social a {
	display: block;
	padding: 4px 0;
	color: var(--ddg-mute);
	font-size: 13.5px;
}

.ddg-footer__list a:hover,
.ddg-footer__social a:hover {
	color: var(--ddg-bone);
}

.ddg-footer__contact {
	margin-top: 14px;
	padding-top: 12px;
	border-top: 1px solid var(--ddg-hairline);
}

.ddg-footer__bottom {
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: 36px;
	padding-top: 18px;
	border-top: 1px solid var(--ddg-hairline);
	color: #6d6a64;
	font-size: 12.5px;
}

/* ------------------------------------------------------ reduced motion */

@media (prefers-reduced-motion: reduce) {
	.ddg *,
	.ddg *::before,
	.ddg *::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* ---------------------------------------------------------------- pages */

.ddg-page {
	padding-block: 48px 24px;
}

.ddg-page__header {
	margin-bottom: 30px;
	padding-bottom: 16px;
	border-bottom: 1px solid var(--ddg-hairline);
}

.ddg-page__header h1 {
	margin: 0;
	font-size: clamp(30px, 4vw, 46px);
}

.ddg-page__content,
.ddg-post__content {
	max-width: 68ch;
}

.ddg-page__content p,
.ddg-post__content p {
	margin: 0 0 1.15em;
}

.ddg-page__content a,
.ddg-post__content a {
	color: var(--ddg-gold-bright);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.ddg-posts {
	display: grid;
	gap: 34px;
}

.ddg-post__title {
	font-size: 26px;
}

.ddg-post__thumb img {
	border-radius: var(--ddg-radius);
}

.ddg-empty {
	padding: 80px 0 60px;
	text-align: center;
}

.ddg-empty p {
	max-width: 46ch;
	margin: 0 auto 26px;
	color: var(--ddg-mute);
}

.ddg .pagination,
.ddg .nav-links {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	margin-top: 40px;
}

.ddg .page-numbers {
	display: grid;
	place-items: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	background: var(--ddg-asphalt);
	border-radius: 3px;
	font-family: var(--ddg-display);
	font-size: 15px;
	font-weight: 600;
}

.ddg .page-numbers.current {
	background: var(--ddg-gold);
	color: #17130a;
}

/* The mobile panel is a full-screen sheet, so its links need to be large,
   well separated targets rather than a scaled-down copy of the desktop bar. */

.ddg-mobile-menu nav {
	max-width: 640px;
	margin-inline: auto;
}

.ddg-mobile-menu__list li:last-child a {
	border-bottom: 0;
}

.ddg-mobile-menu__list a:hover,
.ddg-mobile-menu__list .current-menu-item > a {
	color: var(--ddg-gold-bright);
}

.ddg-mobile-menu__list .sub-menu {
	margin: 0 0 0 16px;
	padding: 0;
	list-style: none;
}

.ddg-mobile-menu__list .sub-menu a {
	font-size: 17px;
	color: var(--ddg-mute);
}
