/**
 * New footer design (dd-footer)
 * Used on home page; can be applied site-wide later.
 *
 * @package DeutschDaily
 */

.dd-footer {
	--dd-bg: #f3efea;
	--dd-surface: #f8f5ef;
	--dd-surface-2: #fbfaf7;
	--dd-border: #e3d4b7;
	--dd-border-soft: rgba(227, 212, 183, 0.55);
	--dd-text: #161825;
	--dd-text-soft: #5f6673;
	--dd-accent: #ddb551;
	--dd-accent-hover: #d1aa47;
	--dd-white: #ffffff;
	--dd-shadow: 0 16px 40px rgba(22, 24, 37, 0.06);
	--dd-shadow-soft: 0 10px 28px rgba(22, 24, 37, 0.04);

	background: var(--dd-bg);
	padding: 40px 20px 28px;
	color: var(--dd-text);
}

.dd-footer * {
	box-sizing: border-box;
}

.dd-footer__wrap {
	max-width: 1440px;
	margin: 0 auto;
}

/* CTA */
.dd-footer__cta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	padding: 42px 36px;
	margin-bottom: 26px;
	border: 1px solid var(--dd-border);
	border-radius: 32px;
	background:
		radial-gradient(circle at 12% 20%, rgba(221, 181, 81, 0.10), transparent 26%),
		linear-gradient(135deg, #eaf2e4 0%, #f4efe3 46%, #fbfaf7 100%);
	box-shadow: var(--dd-shadow-soft);
}

.dd-footer__cta-content h2 {
	margin: 0 0 10px;
	font-size: clamp(30px, 4vw, 56px);
	line-height: 1.05;
	font-weight: 800;
	letter-spacing: -0.03em;
}

.dd-footer__cta-content p {
	margin: 0;
	font-size: 20px;
	line-height: 1.5;
	color: var(--dd-text-soft);
	max-width: 760px;
}

.dd-footer__cta-actions {
	display: flex;
	align-items: center;
	gap: 14px;
	flex-shrink: 0;
}

.dd-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 62px;
	padding: 0 28px;
	border-radius: 999px;
	border: 1px solid transparent;
	text-decoration: none;
	font-weight: 800;
	font-size: 16px;
	line-height: 1;
	transition: all 0.22s ease;
	white-space: nowrap;
}

.dd-btn--primary {
	background: var(--dd-accent);
	color: #111111;
	box-shadow: 0 10px 22px rgba(221, 181, 81, 0.24);
}

.dd-btn--primary:hover {
	background: var(--dd-accent-hover);
	transform: translateY(-1px);
}

.dd-btn--secondary {
	background: rgba(255, 255, 255, 0.72);
	color: var(--dd-text);
	border-color: rgba(22, 24, 37, 0.12);
}

.dd-btn--secondary:hover {
	background: #ffffff;
	transform: translateY(-1px);
}

/* Main card */
.dd-footer__card {
	position: relative;
	overflow: hidden;
	border: 1px solid var(--dd-border);
	border-radius: 40px;
	background:
		radial-gradient(circle at 8% 85%, rgba(221, 181, 81, 0.12), transparent 20%),
		linear-gradient(180deg, #f8f5ef 0%, #f6f2eb 100%);
	box-shadow: var(--dd-shadow);
}

.dd-footer__card::after {
	content: "";
	position: absolute;
	inset: auto 0 0 0;
	height: 74px;
	background: linear-gradient(180deg, rgba(221, 181, 81, 0.09), rgba(221, 181, 81, 0.16));
	z-index: 0;
}

.dd-footer__grid,
.dd-footer__bottom {
	position: relative;
	z-index: 1;
}

.dd-footer__grid {
	display: grid;
	grid-template-columns: 1.25fr 0.95fr 0.95fr 0.95fr;
	gap: 42px;
	padding: 46px 34px 34px;
}

.dd-footer__brand {
	max-width: 390px;
}

.dd-footer__logo-row {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 18px;
	text-decoration: none;
	color: var(--dd-text);
}

.dd-footer__logo {
	width: 56px;
	height: 56px;
	border-radius: 18px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #f3e6b8 0%, #e8dfb9 100%);
	border: 1px solid var(--dd-border);
	font-size: 34px;
	font-weight: 800;
	line-height: 1;
	color: #5f4817;
	box-shadow: inset 0 -6px 10px rgba(221, 181, 81, 0.08);
}

.dd-footer__logo-img {
	width: 56px;
	height: 56px;
	border-radius: 18px;
	object-fit: cover;
	display: block;
}

.dd-footer__brand-name {
	font-size: clamp(28px, 2.4vw, 46px);
	font-weight: 800;
	letter-spacing: -0.03em;
}

.dd-footer__brand-text {
	margin: 0 0 22px;
	font-size: 18px;
	line-height: 1.65;
	color: var(--dd-text-soft);
	max-width: 330px;
}

.dd-footer__chips {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.dd-chip {
	display: inline-flex;
	align-items: center;
	width: fit-content;
	min-height: 44px;
	padding: 0 16px;
	border-radius: 999px;
	border: 1px solid var(--dd-border-soft);
	background: rgba(255, 255, 255, 0.55);
	color: var(--dd-text);
	text-decoration: none;
	font-weight: 600;
	transition: all 0.22s ease;
}

.dd-chip:hover {
	background: #fffdf8;
	border-color: var(--dd-border);
	transform: translateX(2px);
}

.dd-footer__col h3 {
	margin: 8px 0 18px;
	font-size: clamp(24px, 2vw, 40px);
	line-height: 1.12;
	font-weight: 800;
	letter-spacing: -0.03em;
}

.dd-footer__col ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.dd-footer__col li + li {
	margin-top: 10px;
}

.dd-footer__col a {
	display: block;
	padding: 12px 0;
	border-bottom: 1px solid rgba(22, 24, 37, 0.08);
	color: var(--dd-text);
	text-decoration: none;
	font-size: 18px;
	line-height: 1.45;
	font-weight: 600;
	transition: all 0.22s ease;
}

.dd-footer__col a:hover {
	color: #000;
	transform: translateX(2px);
}

.dd-footer__bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 20px 34px 24px;
	border-top: 1px solid rgba(22, 24, 37, 0.08);
}

.dd-footer__bottom p {
	margin: 0;
	font-size: 16px;
	color: #303445;
}

.dd-footer__legal {
	display: flex;
	align-items: center;
	gap: 28px;
	flex-wrap: wrap;
}

.dd-footer__legal a {
	color: #303445;
	text-decoration: none;
	font-size: 16px;
	font-weight: 600;
	border-bottom: 1px solid transparent;
	transition: all 0.22s ease;
}

.dd-footer__legal a:hover {
	border-color: currentColor;
}

/* Tablet */
@media (max-width: 1100px) {
	.dd-footer__cta {
		flex-direction: column;
		align-items: flex-start;
		padding: 32px 24px;
	}

	.dd-footer__cta-actions {
		width: 100%;
		flex-wrap: wrap;
	}

	.dd-footer__grid {
		grid-template-columns: 1fr 1fr;
		gap: 34px 28px;
		padding: 38px 24px 30px;
	}

	.dd-footer__bottom {
		padding: 18px 24px 22px;
		flex-direction: column;
		align-items: flex-start;
	}
}

/* Mobile */
@media (max-width: 680px) {
	.dd-footer {
		padding: 28px 14px 18px;
	}

	.dd-footer__cta {
		border-radius: 26px;
		padding: 24px 18px;
		gap: 20px;
	}

	.dd-footer__cta-content h2 {
		font-size: 34px;
	}

	.dd-footer__cta-content p {
		font-size: 17px;
	}

	.dd-footer__cta-actions {
		flex-direction: column;
		align-items: stretch;
	}

	.dd-btn {
		width: 100%;
		min-height: 56px;
	}

	.dd-footer__card {
		border-radius: 28px;
	}

	.dd-footer__grid {
		grid-template-columns: 1fr;
		gap: 22px;
		padding: 28px 18px 24px;
	}

	.dd-footer__brand-name {
		font-size: 28px;
	}

	.dd-footer__brand-text,
	.dd-footer__col a {
		font-size: 16px;
	}

	.dd-footer__col h3 {
		margin: 4px 0 12px;
		font-size: 24px;
	}

	.dd-footer__bottom {
		padding: 16px 18px 20px;
		gap: 12px;
	}

	.dd-footer__legal {
		gap: 16px;
	}
}
