/**
 * Shipping calculator landing page.
 *
 * Shares the calculator widget's tokens so the two read as one page.
 */

.atv-page {
	--atvp-green: #4BB64A;
	--atvp-green-dark: #3d9c3c;
	--atvp-navy: #263E56;
	--atvp-muted: #6b7c8d;
	--atvp-line: rgba(38, 62, 86, 0.1);
	--atvp-tint: #F8F6F2;

	font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	color: var(--atvp-navy);
}

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

.atv-page__container {
	width: 100%;
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 24px;
}

.atv-page__container--narrow {
	max-width: 820px;
}

/* ------------------------------------------------------------------ hero */

.atv-page__hero {
	padding: 64px 0 36px;
	text-align: center;
	background:
		radial-gradient(700px 340px at 50% -30%, rgba(75, 182, 74, 0.16), transparent 65%),
		var(--atvp-tint);
}

.atv-page__badge {
	display: inline-block;
	padding: 6px 14px;
	margin-bottom: 18px;
	border-radius: 999px;
	background: rgba(75, 182, 74, 0.12);
	border: 1px solid rgba(75, 182, 74, 0.3);
	color: var(--atvp-green-dark);
	font-size: 12.5px;
	font-weight: 600;
}

.atv-page h1 {
	font-size: clamp(32px, 5vw, 52px);
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.1;
	margin: 0;
	color: var(--atvp-navy);
}

/* Scoped twice so the generic `.atv-page p` rule further down cannot reset
   the auto margins and drop this block to the left of the container. */
.atv-page .atv-page__lead {
	max-width: 680px;
	margin: 18px auto 0;
	font-size: 17px;
	line-height: 1.65;
	text-align: center;
	color: var(--atvp-muted);
}

.atv-page__chips {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	list-style: none;
	margin: 24px 0 0;
	padding: 0;
}

.atv-page__chips li {
	padding: 7px 15px;
	border-radius: 999px;
	background: #fff;
	border: 1px solid var(--atvp-line);
	font-size: 13.5px;
	font-weight: 500;
	color: var(--atvp-navy);
}

/* --------------------------------------------------------------- sections */

.atv-page__calc {
	padding: 0 0 20px;
	background: linear-gradient(180deg, var(--atvp-tint) 0%, var(--atvp-tint) 120px, transparent 120px);
}

.atv-page__section {
	padding: 56px 0;
}

.atv-page__section--tint {
	background: var(--atvp-tint);
}

.atv-page h2 {
	font-size: clamp(25px, 3.2vw, 36px);
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.2;
	margin: 0 0 14px;
	color: var(--atvp-navy);
}

.atv-page h3 {
	font-size: 17px;
	font-weight: 600;
	margin: 0 0 8px;
	color: var(--atvp-navy);
}

.atv-page p {
	font-size: 16px;
	line-height: 1.7;
	color: var(--atvp-muted);
	margin: 0 0 14px;
}

.atv-page__note {
	max-width: 760px;
}

/* ----------------------------------------------------------------- table */

.atv-page__table-wrap {
	overflow-x: auto;
	margin-top: 26px;
	border: 1px solid var(--atvp-line);
	border-radius: 20px;
	background: #fff;
}

.atv-page__table {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
	min-width: 520px;
}

.atv-page__table th,
.atv-page__table td {
	padding: 14px 20px;
	text-align: left;
	border-bottom: 1px solid rgba(38, 62, 86, 0.07);
}

.atv-page__table thead th {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--atvp-muted);
	background: rgba(38, 62, 86, 0.03);
}

.atv-page__table tbody th {
	font-weight: 600;
	color: var(--atvp-navy);
}

.atv-page__table tbody td {
	color: var(--atvp-muted);
}

.atv-page__table tbody td:first-of-type {
	font-weight: 700;
	color: var(--atvp-green-dark);
}

.atv-page__table tbody tr:last-child th,
.atv-page__table tbody tr:last-child td {
	border-bottom: 0;
}

.atv-page__table tbody tr:hover th,
.atv-page__table tbody tr:hover td {
	background: rgba(75, 182, 74, 0.05);
}

.atv-page__more {
	margin-top: 18px;
	font-size: 15px;
}

.atv-page__more a,
.atv-page a {
	color: var(--atvp-green-dark);
	font-weight: 600;
	text-decoration: none;
}

.atv-page__more a:hover,
.atv-page a:hover {
	text-decoration: underline;
}

/* --------------------------------------------------------------- factors */

.atv-page__factors {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	margin-top: 30px;
	/* Numbering lives here, not in the copy, so reordering the cards in
	   Elementor cannot leave a gap in the sequence. */
	counter-reset: atvp-factor;
}

.atv-page__factors article {
	padding: 26px 24px;
	background: #fff;
	border: 1px solid var(--atvp-line);
	border-radius: 20px;
}

.atv-page__factors h3::before {
	counter-increment: atvp-factor;
	content: counter(atvp-factor) ". ";
	color: var(--atvp-green-dark);
}

.atv-page__factors p {
	font-size: 14.5px;
	margin: 0;
}

/* ------------------------------------------------------------------ tips */

.atv-page__tips {
	counter-reset: atvp-tip;
	list-style: none;
	margin: 30px 0 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 20px;
}

.atv-page__tips li {
	position: relative;
	padding: 26px 24px 26px 70px;
	background: #fff;
	border: 1px solid var(--atvp-line);
	border-radius: 20px;
}

.atv-page__tips li::before {
	counter-increment: atvp-tip;
	content: counter(atvp-tip);
	position: absolute;
	left: 24px;
	top: 26px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 10px;
	background: rgba(75, 182, 74, 0.12);
	color: var(--atvp-green-dark);
	font-size: 14px;
	font-weight: 700;
}

.atv-page__tips p {
	font-size: 14.5px;
	margin: 0;
}

/* ------------------------------------------------------------------- faq */

.atv-page__faq {
	margin-top: 26px;
}

.atv-page__faq details {
	background: #fff;
	border: 1px solid var(--atvp-line);
	border-radius: 16px;
	margin-bottom: 12px;
	overflow: hidden;
}

.atv-page__faq summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 18px 22px;
	cursor: pointer;
	list-style: none;
}

.atv-page__faq summary::-webkit-details-marker {
	display: none;
}

.atv-page__faq summary h3 {
	margin: 0;
	font-size: 16.5px;
}

.atv-page__faq summary::after {
	content: "+";
	flex: none;
	font-size: 22px;
	line-height: 1;
	color: var(--atvp-green-dark);
}

.atv-page__faq details[open] summary::after {
	content: "\2212";
}

.atv-page__faq details p {
	margin: 0;
	padding: 0 22px 20px;
	font-size: 15px;
}

/* ----------------------------------------------------------- links + cta */

.atv-page__links {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 18px;
	margin-top: 26px;
}

.atv-page__links a {
	display: block;
	padding: 24px;
	background: #fff;
	border: 1px solid var(--atvp-line);
	border-radius: 20px;
	text-decoration: none;
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.atv-page__links a:hover {
	transform: translateY(-3px);
	border-color: rgba(75, 182, 74, 0.4);
	box-shadow: 0 16px 36px rgba(38, 62, 86, 0.1);
	text-decoration: none;
}

.atv-page__links strong {
	display: block;
	font-size: 16.5px;
	color: var(--atvp-navy);
	margin-bottom: 6px;
}

.atv-page__links span {
	display: block;
	font-size: 14.5px;
	line-height: 1.6;
	color: var(--atvp-muted);
	font-weight: 400;
}

.atv-page__cta {
	padding: 20px 0 72px;
}

.atv-page__cta .atv-page__container {
	padding-top: 56px;
	padding-bottom: 56px;
	text-align: center;
	border-radius: 32px;
	background:
		radial-gradient(520px 300px at 88% -20%, rgba(75, 182, 74, 0.4), transparent 60%),
		linear-gradient(135deg, #2b4763 0%, #1b2e43 100%);
	max-width: 1132px;
}

.atv-page__cta h2 {
	color: #fff;
}

.atv-page__cta p {
	color: rgba(255, 255, 255, 0.72);
	max-width: 520px;
	margin: 0 auto 26px;
}

.atv-page__btn {
	display: inline-block;
	padding: 15px 32px;
	border-radius: 14px;
	background: linear-gradient(180deg, #58c257 0%, #41a940 100%);
	color: #fff !important;
	font-weight: 600;
	font-size: 16px;
	text-decoration: none !important;
	box-shadow: 0 8px 24px rgba(75, 182, 74, 0.35);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.atv-page__btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 28px rgba(75, 182, 74, 0.45);
}

/* ------------------------------------------------------------ responsive */

@media (max-width: 900px) {
	.atv-page__factors,
	.atv-page__links {
		grid-template-columns: repeat(2, 1fr);
	}

	.atv-page__tips {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 640px) {
	.atv-page__hero {
		padding: 44px 0 28px;
	}

	.atv-page__section {
		padding: 42px 0;
	}

	.atv-page__factors,
	.atv-page__links {
		grid-template-columns: 1fr;
	}

	.atv-page__cta .atv-page__container {
		padding-top: 40px;
		padding-bottom: 40px;
		border-radius: 24px;
	}
}
