/* Global — every page. Tokens, reset, base type, container. */
@font-face {
	font-family: "Plus Jakarta Sans";
	src: url("../fonts/plus-jakarta-sans-latin.woff2") format("woff2");
	font-weight: 200 800;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "DM Sans";
	src: url("../fonts/dm-sans-latin.woff2") format("woff2");
	font-weight: 100 1000;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "DM Sans";
	src: url("../fonts/dm-sans-latin-italic.woff2") format("woff2");
	font-weight: 100 1000;
	font-style: italic;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


/* ---------------------------------------------------------------- tokens */
:root {
	/* Brand — values lifted from the approved design. */
	--c-gold: #f5c800;
	--c-gold-dk: #d4a800;
	--c-gold-lt: #fff8d6;
	--c-gold-mid: #fef0a0;
	--c-black: #111111;
	--c-dark: #222222;
	--c-mid: #555555;
	--c-muted: #888888;
	--c-light: #eeeeee;
	--c-border: #e8e8e8;
	--c-bg: #fafafa;
	--c-white: #ffffff;
	--c-green: #2a6041;

	--ff-sans: "Plus Jakarta Sans", system-ui, sans-serif;
	--ff-alt: "DM Sans", system-ui, sans-serif;

	/* Layout — 78.75rem content box, 2rem gutters. */
	--container-max: 78.75rem;
	--container-pad: 2rem;
	--header-h: 4.75rem;

	--ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Sticky header must not cover anchor targets. */
:root {
	scroll-padding-block-start: calc(var(--header-h) + 1rem);
}

@media (width <= 48rem) {
	:root {
		--container-pad: 1rem;
		--header-h: 4rem;
	}
}

@media (width <= 23.4375rem) {
	:root {
		--container-pad: 0.75rem;
	}
}

/* ----------------------------------------------------------------- reset */
*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

ul[role="list"],
ol[role="list"] {
	list-style: none;
}

.picture {
	height: 100%;
}

img,
picture,
svg,
video {
	display: block;
	max-inline-size: 100%;
	block-size: auto;
}

button,
input,
select,
textarea {
	font: inherit;
	color: inherit;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

/* ------------------------------------------------------------------ base */
html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
	/* No font-size override here — 1rem must stay the user's own setting. */
}

body {
	font-family: var(--ff-sans);
	font-size: 1rem;
	color: var(--c-dark);
	background: var(--c-white);
	-webkit-font-smoothing: antialiased;
	overflow-x: clip; /* clip beats hidden — keeps position:sticky working. */
}

blockquote, caption, figcaption, h1, h2, h3, h4, h5, h6, p {
  text-wrap: auto !important;
}

a {
	color: inherit;
}

/* One focus ring for the whole site. Outline stays px — it must not scale. */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 3px solid var(--c-gold);
	outline-offset: 3px;
}

/* ---------------------------------------------------------------- layout */
.container {
	--_pad: var(--container-pad);
	inline-size: 100%;
	max-inline-size: var(--container-max);
	margin-inline: auto;
	padding-inline: var(--_pad);
}

.container--narrow {
	--container-max: 55rem;
}

.container--flush {
	--_pad: 0;
}

:where(.wp-site-blocks) > *,
:root :where(.is-layout-constrained) > * {
	margin-block-start: 0 !important;
}

:root :where(a:where(:not(.wp-element-button)):hover) {
	text-decoration: none !important;
}

.block-editor-block-list__layout.is-root-container > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
	width: 100% !important;
	max-width: 100% !important;
}

.has-global-padding {
  padding: 0 !important;
}

.wp-block-post-title {
  display: none;
}

body .is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
	max-width: 100%;
}

body .has-global-padding > .alignfull {
  margin-right: 0;
  margin-left: 0;
}

/* ------------------------------------------------------------- utilities */
.u-visually-hidden:not(:focus-visible) {
	position: absolute;
	inline-size: 1px;
	block-size: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.skip-link {
	position: absolute;
	inset-block-start: 0.5rem;
	inset-inline-start: 0.5rem;
	z-index: 400;
	padding: 0.625rem 1.125rem;
	font-weight: 700;
	color: var(--c-black);
	background: var(--c-gold);
	border-radius: 0.5rem;
}

/* ------------------------------------------------------------- sections */
.section {
	padding-block: 6rem;
	margin-block-start: 0 !important;
}

.section__eyebrow {
	display: block;
	margin-block-end: 0.625rem !important;
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--c-gold-dk);
}

.section__title {
	font-family: var(--ff-alt);
	font-size: clamp(2rem, 4vw, 3.25rem);
	font-weight: 700;
	line-height: 1.08;
	letter-spacing: -0.02em;
	color: var(--c-black);
	margin-block-start: 0 !important;
}

.section__sub {
	max-inline-size: 35rem;
	font-size: 1.0625rem;
	font-weight: 300;
	line-height: 1.7;
	color: var(--c-mid);
}

.section__header {
	margin-block-end: 3.25rem;
}

@media (width <= 48rem) {
	.section {
		padding-block: 3.5rem;
	}

	.section__title {
		font-size: clamp(1.625rem, 7vw, 2.375rem);
	}

	.section__sub {
		font-size: 0.9375rem;
	}

	.section__header {
		margin-block-end: 2.25rem;
	}
}

@media (width <= 23.4375rem) {
	.section {
		padding-block: 3rem;
	}
}

@media (width <= 20rem) {
	.section {
		padding-block: 2.5rem;
	}

	.section__title {
		font-size: clamp(1.375rem, 8vw, 1.875rem);
	}

	.section__sub {
		font-size: 0.875rem;
	}
}	

.section .section__header-row {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 1.5rem;
	margin-block-end: 3.25rem;
}

.link-more {
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
	padding-block-end: 2px;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--c-black);
	text-decoration: none;
	white-space: nowrap;
	border-block-end: 2px solid var(--c-gold);
	transition: color 0.2s;
}

.link-more:hover {
	color: var(--c-gold-dk);
}

@media (width <= 48rem) {
	.section__header-row {
		gap: 0.75rem;
		margin-block-end: 2.25rem;
	}
}

@media (width <= 30rem) {
	.section__header-row {
		margin-block-end: 1.75rem;
	}
}

/* ------------------------------------------------------------ scroll reveal */
/* Only active once the inline bootstrap has set .has-reveal, so content is
   never left hidden if the script fails. */
.has-reveal .reveal {
	opacity: 0;
	translate: 0 3rem;
	transition:
		opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1) var(--_delay, 0ms),
		translate 0.8s cubic-bezier(0.16, 1, 0.3, 1) var(--_delay, 0ms);
}

.has-reveal .reveal.is-revealed {
	opacity: 1;
	translate: 0 0;
}

/* The hero image is the LCP candidate, so it is never held back. */
.has-reveal .hero__media,
.has-reveal .hero__media.reveal {
	opacity: 1;
	translate: 0 0;
	transition: none;
}

@media (prefers-reduced-motion: reduce) {
	.has-reveal .reveal,
	.has-reveal .reveal.is-revealed {
		opacity: 1;
		translate: 0 0;
		transition: none;
	}
}

/* -------------------------------------------------------------- breadcrumb */
.crumbs {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.375rem;
	font-size: 0.8125rem;
	color: var(--c-muted);
}

.crumbs a {
	color: inherit;
	text-decoration: none;
	transition: color 0.2s;
}

.crumbs a:hover {
	color: var(--c-black);
}

.crumbs__current {
	font-weight: 500;
	color: var(--c-dark);
}

/* Order confirmation page — match site theme */
body.woocommerce-order-received {
  background-color: var(--c-bg);
  color: var(--c-dark);
  font-family: var(--ff-sans);
}

body.woocommerce-order-received .has-global-padding {
  margin-block: 2.5rem !important;
}

.wc-block-order-confirmation-status,
.wc-block-order-confirmation-summary,
.wc-block-order-confirmation-totals-wrapper,
.wc-block-order-confirmation-address-wrapper {
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

/* Heading */
.wc-block-order-confirmation-status h1 {
  font-family: var(--ff-alt);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 800;
  color: var(--c-black);
  margin-bottom: 0.5rem;
  line-height: 1.1;
}

.wc-block-order-confirmation-status p {
  font-size: 1.1rem;
  color: var(--c-mid);
  margin-bottom: 1rem;
}

/* Summary strip */
body.woocommerce-order-received .wc-block-order-confirmation-summary-list {
  padding: 1.75rem 2rem;
  margin: 0 0 2rem 0;
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(17, 17, 17, 0.05);
}

.wc-block-order-confirmation-summary-list-item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.wc-block-order-confirmation-summary-list-item__key {
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--c-gold-dk);
}

.wc-block-order-confirmation-summary-list-item__value {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--c-black);
}

/* Section headings */
.wc-block-order-confirmation-totals-wrapper h2,
.wc-block-order-confirmation-shipping-wrapper h2,
.wc-block-order-confirmation-billing-wrapper h2 {
  font-family: var(--ff-alt);
  font-weight: 800;
  color: var(--c-black);
  margin-bottom: 1.25rem;
}

/* Order table — card style, no harsh lines */
.wc-block-order-confirmation-totals__table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(17, 17, 17, 0.05);
}

.wc-block-order-confirmation-totals__table th,
.wc-block-order-confirmation-totals__table td {
  padding: 1.5rem 1.75rem;
  text-align: left;
  border-bottom: 1px solid var(--c-border);
  font-size: 1.05rem;
}

.wc-block-order-confirmation-totals__table thead th {
  background-color: var(--c-gold-lt);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  color: var(--c-black);
  border-bottom: 2px solid var(--c-gold);
}

/* extra breathing room around the product row */
.wc-block-order-confirmation-totals__table tbody td,
.wc-block-order-confirmation-totals__table tbody th {
  padding-top: 1.75rem;
  padding-bottom: 1.75rem;
}

.wc-block-order-confirmation-totals__table tbody tr:last-child td {
  border-bottom: 1px solid var(--c-border);
}

.wc-block-order-confirmation-totals__table tfoot tr:last-child th,
.wc-block-order-confirmation-totals__table tfoot tr:last-child td {
  border-bottom: none;
}

.wc-block-order-confirmation-totals__table tfoot th,
.wc-block-order-confirmation-totals__table tfoot td {
  font-weight: 700;
  font-size: 1.1rem;
  background-color: var(--c-bg);
}

.wc-block-order-confirmation-totals__table tfoot tr:last-child th,
.wc-block-order-confirmation-totals__table tfoot tr:last-child td {
  font-size: 1.3rem;
  color: var(--c-black);
  background-color: var(--c-gold-mid);
}

.wc-block-order-confirmation-totals__table a {
  color: var(--c-black);
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: underline;
  text-decoration-color: var(--c-gold);
  text-underline-offset: 3px;
  transition: color 0.2s var(--ease);
}

.wc-block-order-confirmation-totals__table a:hover {
  color: var(--c-gold-dk);
}

.product-quantity {
  font-size: 1.05rem;
  color: var(--c-mid);
}

/* Address cards */
.wc-block-order-confirmation-address-wrapper {
  margin-top: 3rem;
  margin-bottom: 4rem;
  gap: 2rem;
}

.wc-block-order-confirmation-shipping-address,
.wc-block-order-confirmation-billing-address {
  background-color: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: 16px;
  padding: 1.75rem;
  box-shadow: 0 4px 16px rgba(17, 17, 17, 0.05);
}

.wc-block-order-confirmation-shipping-address address,
.wc-block-order-confirmation-billing-address address {
  font-style: normal;
  line-height: 1.7;
  color: var(--c-dark);
  font-weight: 500;
  font-size: 1.05rem;
}

.woocommerce-customer-details--phone {
  margin-top: 0.5rem;
  color: var(--c-mid);
  font-size: 1rem;
}

/* Payment card logo */
.wc-payment-gateway-method-logo-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.wc-payment-gateway-method-logo-wrapper img {
  height: 18px;
  width: auto;
}

.wc-block-order-confirmation-address-wrapper {
  margin-block-start: 2.5rem !important;
}

body.woocommerce-order-received .wc-block-order-confirmation-totals-wrapper h2,
body.woocommerce-order-received
  .wc-block-order-confirmation-shipping-wrapper
  h2,
body.woocommerce-order-received
  .wc-block-order-confirmation-billing-wrapper
  h2 {
  margin-bottom: 1rem;
}

body.woocommerce-order-received .wc-block-order-confirmation-totals {
  margin-top: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .wc-block-order-confirmation-summary-list {
    gap: 1.5rem;
    padding: 1.25rem;
  }
  .wc-block-order-confirmation-address-wrapper {
    flex-direction: column;
  }
}
