/* ==========================================================================
   Homepage
   ========================================================================== */

/* Hero */
.dr-hero {
	position: relative;
	background: var(--cream);
}

.dr-hero__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 64px;
	padding-block: 56px 96px;
}

.dr-hero__text {
	display: flex;
	flex: 1 1 420px;
	flex-direction: column;
	gap: 24px;
	min-width: 0;
}

.dr-hero__badge {
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	gap: 8px;
	padding: 8px 16px;
	border-radius: 999px;
	background: #fff;
	color: var(--caramel-deep);
	font-size: 13px;
}

.dr-hero__title {
	margin: 0;
	font-size: clamp(46px, 6vw, 72px);
	line-height: 1;
}

.dr-hero__title .dr-squiggle em {
	color: var(--caramel-deep);
}

.dr-hero__lead {
	max-width: 28em;
	margin: 0;
	font-size: 18px;
	color: var(--muted);
}

.dr-hero__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 22px;
	margin-top: 4px;
}

.dr-hero__actions .dr-link-underline {
	font-size: 16px;
}

.dr-hero__visual {
	position: relative;
	flex: 1 1 480px;
	min-width: 0;
	height: 560px;
}

.dr-hero__arch {
	position: absolute;
	top: 0;
	right: 40px;
	width: min(400px, 82%);
	height: 520px;
	overflow: hidden;
	border-radius: 200px 200px 28px 28px;
	background: var(--blush);
}

.dr-hero__img,
.dr-hero__circle img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.dr-hero__circle {
	position: absolute;
	left: 20px;
	bottom: 0;
	width: 190px;
	height: 190px;
	overflow: hidden;
	border: 8px solid var(--cream);
	border-radius: 50%;
	background: var(--sage);
}

.dr-hero__sticker {
	position: absolute;
	top: 330px;
	right: 0;
	width: 132px;
	height: 132px;
	transform: rotate(-12deg);
	animation: dr-spin 40s linear infinite;
}

@keyframes dr-spin {
	from {
		transform: rotate(-12deg);
	}

	to {
		transform: rotate(348deg);
	}
}

.dr-hero__deco--sprig {
	position: absolute;
	top: 40px;
	left: 70px;
	width: 46px;
	height: 46px;
	color: var(--caramel);
}

.dr-hero__visual > .dr-icon {
	position: absolute;
	top: 150px;
	left: 150px;
	color: #e8c9b8;
}

.dr-hero__wave {
	position: absolute;
	left: 0;
	bottom: -1px;
	display: block;
	width: 100%;
	height: 48px;
}

/* USPs */
.dr-usps {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px 44px;
	padding-top: 28px;
	font-size: 14px;
	color: var(--muted);
}

.dr-usps li {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.dr-usps .dr-icon {
	color: var(--caramel-deep);
}

/* Sections */
.dr-home-section {
	padding-top: var(--section);
}

.dr-home-section__head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 40px;
}

.dr-home-section__title {
	margin: 0;
	font-size: clamp(34px, 4vw, 46px);
}

.dr-home-section__title.is-center {
	margin-bottom: 48px;
	text-align: center;
}

/* Category circles */
.dr-home-cats__list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
	justify-items: center;
	gap: 28px;
}

.dr-home-cat {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	text-decoration: none;
}

.dr-home-cat__ring {
	display: block;
	width: 180px;
	height: 180px;
	padding: 12px;
	border-radius: 50%;
	background: var(--ring, var(--blush));
	transition: transform 0.35s ease;
}

.dr-home-cat:hover .dr-home-cat__ring {
	transform: translateY(-6px) rotate(-3deg);
}

.dr-home-cat__ring img {
	display: block;
	width: 100%;
	height: 100%;
	border-radius: 50%;
	object-fit: cover;
}

.dr-home-cat__label {
	font-size: 16px;
	font-weight: 500;
}

/* Promo block */
.dr-promo {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 48px;
	padding: 56px 64px;
	border-radius: 40px;
	background: var(--sage);
}

.dr-promo__media {
	position: relative;
	flex: 0 1 360px;
	min-width: 0;
}

.dr-promo__arch {
	aspect-ratio: 4 / 5;
	overflow: hidden;
	border-radius: 180px 180px 24px 24px;
	background: var(--paper);
}

.dr-promo__arch img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.dr-promo__sticker {
	position: absolute;
	top: 32px;
	right: -24px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 104px;
	height: 104px;
	border-radius: 50%;
	background: var(--blush);
	line-height: 1;
	transform: rotate(12deg);
}

.dr-promo__sticker-now {
	font-size: 12px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.dr-promo__sticker-pct {
	font-family: var(--font-heading);
	font-size: 36px;
	font-weight: 500;
}

.dr-promo__body {
	display: flex;
	flex: 1 1 380px;
	flex-direction: column;
	gap: 20px;
	min-width: 0;
}

.dr-promo__label {
	color: #4f5d45;
	font-size: 14px;
	letter-spacing: 0.24em;
}

.dr-promo__title {
	margin: 0;
	font-size: clamp(38px, 5vw, 56px);
	line-height: 1;
}

.dr-promo__title em {
	color: inherit;
}

.dr-promo__text {
	max-width: 26em;
	margin: 0;
	font-size: 17px;
	color: #4a4038;
}

.dr-promo__price {
	display: flex;
	align-items: baseline;
	gap: 14px;
	margin: 0;
}

.dr-promo__now {
	font-family: var(--font-heading);
	font-size: 40px;
	font-weight: 500;
}

.dr-promo__price del {
	font-size: 16px;
	color: #5f554e;
}

.dr-promo__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px;
}

.dr-promo__coupon {
	padding: 14px 22px;
	border: 1.5px dashed var(--ink);
	border-radius: 999px;
	font-size: 15px;
}

.dr-promo__coupon strong {
	letter-spacing: 0.06em;
}

.dr-promo__deco {
	position: absolute;
	right: 48px;
	bottom: 40px;
	width: 60px;
	height: 60px;
	color: var(--paper);
}

/* Brand story */
.dr-home-story {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 22px;
	max-width: calc(760px + 2 * var(--gutter));
	padding-block: var(--section);
	text-align: center;
}

.dr-home-story__logo {
	width: 104px;
	height: auto;
}

.dr-home-story p {
	margin: 0;
	font-size: 17px;
	line-height: 1.85;
	color: var(--muted);
}

/* Newsletter */
.dr-home-newsletter {
	scroll-margin-top: 40px;
}

.dr-home-newsletter__panel {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 28px;
	padding: 56px 64px;
	border-radius: 40px;
	background: var(--blush);
}

.dr-home-newsletter__title {
	margin: 0 0 6px;
	font-size: clamp(32px, 3.6vw, 42px);
}

.dr-home-newsletter__title em {
	color: inherit;
}

.dr-home-newsletter__text p {
	margin: 0;
	color: #5e4e44;
}

.dr-home-newsletter .dr-newsletter {
	flex: 1 1 420px;
}

/* Small screens (Mobile design) ----------------------------------------- */

@media (max-width: 899px) {
	.dr-hero__inner {
		flex-direction: column-reverse;
		gap: 18px;
		padding-block: 12px 64px;
	}

	.dr-hero__text {
		flex-basis: auto;
		align-items: stretch;
		gap: 18px;
		text-align: center;
	}

	.dr-hero__badge {
		align-self: center;
	}

	.dr-hero__actions {
		flex-direction: column;
		align-items: stretch;
	}

	.dr-hero__actions .dr-link-underline {
		align-self: center;
	}

	.dr-hero__visual {
		flex: none;
		width: 100%;
		height: 380px;
	}

	.dr-hero__arch {
		right: 30px;
		left: 30px;
		width: auto;
		height: 360px;
		border-radius: 160px 160px 24px 24px;
	}

	.dr-hero__circle {
		left: 0;
		width: 112px;
		height: 112px;
		border-width: 6px;
	}

	.dr-hero__sticker {
		top: auto;
		right: 0;
		bottom: 20px;
		width: 92px;
		height: 92px;
	}

	.dr-hero__deco--sprig,
	.dr-hero__visual > .dr-icon {
		display: none;
	}

	.dr-usps {
		justify-content: flex-start;
		flex-direction: column;
		align-items: center;
	}

	.dr-home-section__title.is-center {
		margin-bottom: 22px;
		text-align: left;
	}

	.dr-home-cats__list {
		display: flex;
		gap: 16px;
		margin-inline: calc(-1 * var(--gutter));
		padding: 0 var(--gutter) 8px;
		overflow-x: auto;
		scrollbar-width: none;
	}

	.dr-home-cats__list li {
		flex: none;
	}

	.dr-home-cat {
		gap: 10px;
	}

	.dr-home-cat__ring {
		width: 104px;
		height: 104px;
		padding: 7px;
	}

	.dr-home-cat__label {
		font-size: 14px;
		font-weight: 400;
	}

	.dr-home-section__head {
		margin-bottom: 22px;
	}

	.dr-promo {
		flex-direction: column;
		align-items: stretch;
		gap: 14px;
		padding: 28px 24px 30px;
		border-radius: 32px;
	}

	.dr-promo__media {
		flex: none;
	}

	.dr-promo__arch {
		aspect-ratio: auto;
		height: 260px;
		border-radius: 130px 130px 20px 20px;
	}

	.dr-promo__sticker {
		top: 18px;
		right: -8px;
		width: 78px;
		height: 78px;
	}

	.dr-promo__sticker-pct {
		font-size: 28px;
	}

	.dr-promo__body {
		flex: none;
		gap: 14px;
	}

	.dr-promo__actions {
		flex-direction: column-reverse;
		align-items: stretch;
		text-align: center;
	}

	.dr-promo__deco {
		display: none;
	}

	.dr-home-newsletter__panel {
		flex-direction: column;
		align-items: stretch;
		gap: 12px;
		padding: 30px 22px;
		border-radius: 32px;
	}

	.dr-home-newsletter .dr-newsletter {
		flex: none;
		flex-direction: column;
		gap: 12px;
		padding: 0;
		background: none;
	}

	.dr-home-newsletter .dr-newsletter__input {
		height: 52px;
		border-radius: 999px;
		background: #fff;
	}

	.dr-home-newsletter .dr-newsletter .dr-btn {
		min-height: 52px;
	}
}
