/*
 * West Edge Digital: content and block styles.
 *
 * Loaded on the live site AND in the block editor (via add_editor_style), so
 * cards, sections, buttons, lists and FAQs look the same in both places.
 * Keep selectors free of front-end-only wrappers such as .entry-content.
 * Header and footer styles live in style.css (front end only).
 */

/* ==========================================================================
   Tokens
   ========================================================================== */
:root {
	--wed-navy: #101d30;
	--wed-navy-2: #18294a;
	--wed-cyan: #00a9ca;
	--wed-cyan-hover: #33bdd8;
	--wed-cyan-dark: #00738c;
	--wed-ink: #2b3449;
	--wed-muted: #55607a;
	--wed-bg: #ffffff;
	--wed-bg-alt: #f3f7fa;
	--wed-border: #d9e1e8;
	--wed-radius: 12px;
	--wed-shadow: 0 6px 24px rgba(16, 29, 48, 0.08);
	--wed-wrap: 1160px;
	--wed-gutter: 16px;
}

/* ==========================================================================
   Base type
   ========================================================================== */
body {
	font-size: 18px;
	line-height: 1.65;
	color: var(--wed-ink);
}

@media (max-width: 600px) {
	body {
		font-size: 17px;
	}
}

.wed-section h1,
.wed-section h2,
.wed-section h3 {
	color: var(--wed-navy);
	line-height: 1.2;
	letter-spacing: -0.01em;
	/* Never split words mid-way in headings */
	overflow-wrap: normal;
	word-break: normal;
	hyphens: manual;
}

.wed-section h1 {
	font-size: clamp(2rem, 5vw, 3.25rem);
	margin-bottom: 0.5em;
}

.wed-section h2 {
	font-size: clamp(1.6rem, 3.6vw, 2.4rem);
	margin-bottom: 0.6em;
}

.wed-section h3 {
	font-size: clamp(1.2rem, 2.2vw, 1.4rem);
	margin-bottom: 0.5em;
}

.wed-section p {
	margin-bottom: 1em;
}

.wed-section a:not(.wp-block-button__link) {
	color: var(--wed-cyan-dark);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.wed-section a:not(.wp-block-button__link):hover {
	color: var(--wed-navy);
}

/* ==========================================================================
   Sections & layout
   ========================================================================== */
.wp-block-group.wed-section {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
	padding: 80px var(--wed-gutter);
}

@media (max-width: 768px) {
	.wp-block-group.wed-section {
		padding: 52px var(--wed-gutter);
	}
}

.wed-wrap {
	max-width: var(--wed-wrap);
	margin-left: auto;
	margin-right: auto;
}

.wed-narrow .wed-wrap,
.wed-wrap.wed-narrow {
	max-width: 780px;
}

.wed-center {
	text-align: center;
}

.wed-center .wp-block-buttons {
	justify-content: center;
}

/* Section intros run the full content width; centred sections keep a readable measure */
.wed-intro {
	max-width: none;
	font-size: 1.1em;
	margin-bottom: 2em;
}

.wed-center .wed-intro {
	max-width: 760px;
	margin-left: auto;
	margin-right: auto;
}

.wed-section--alt {
	background: var(--wed-bg-alt);
}

.wed-section--dark {
	background: var(--wed-navy);
	color: #e6ecf3;
}

.wed-section--dark h1,
.wed-section--dark h2,
.wed-section--dark h3 {
	color: #ffffff;
}

.wed-section--dark a:not(.wp-block-button__link) {
	color: #7fdcef;
}

.wed-section--dark a:not(.wp-block-button__link):hover {
	color: #ffffff;
}

/* Hero */
.wp-block-group.wed-hero {
	background: linear-gradient(180deg, #f7fafc 0%, #eef4f8 100%);
	padding-top: 72px;
	padding-bottom: 72px;
}

.wed-hero .wp-block-columns {
	align-items: center;
	gap: 48px;
}

/* Lead paragraphs run the full width of their section; centred sections keep a readable measure */
.wed-lead {
	font-size: 1.2em;
	color: var(--wed-ink);
	max-width: none;
}

.wed-center .wed-lead {
	max-width: 680px;
	margin-left: auto;
	margin-right: auto;
}

@media (max-width: 768px) {
	.wp-block-group.wed-hero {
		padding-top: 44px;
		padding-bottom: 48px;
	}

	.wed-lead {
		font-size: 1.08em;
	}
}

/* Eyebrow / small text */
.wed-eyebrow {
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wed-cyan-dark);
	margin-bottom: 0.75em !important;
}

.wed-section--dark .wed-eyebrow {
	color: var(--wed-cyan);
}

.wed-small {
	font-size: 15px;
	color: var(--wed-muted);
}

.wed-section--dark .wed-small {
	color: #b8c4d4;
}

.wed-placeholder {
	font-size: 14px;
	color: var(--wed-muted);
	font-style: italic;
}

/* ==========================================================================
   Columns & cards
   ========================================================================== */
.wed-grid {
	gap: 24px;
	margin-bottom: 0;
}

.wed-grid > .wp-block-column {
	display: flex;
	flex-direction: column;
}

/* Equal-height cards in every row: columns stretch, buttons sit at the bottom */
.wp-block-columns.wed-grid {
	align-items: stretch !important;
}

.wed-card {
	background: var(--wed-bg);
	border: 1px solid var(--wed-border);
	border-radius: var(--wed-radius);
	padding: 28px;
	box-shadow: var(--wed-shadow);
	align-self: stretch !important;
}

/* Whole card clickable: the card's button link is stretched over the card */
.wed-card--link {
	position: relative;
	cursor: pointer;
	transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.wed-card--link .wp-block-button__link::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: var(--wed-radius);
}

.wed-card--link:hover {
	transform: translateY(-3px);
	box-shadow: 0 12px 32px rgba(16, 29, 48, 0.14);
	border-color: var(--wed-cyan);
}

.wed-card--link:focus-within {
	outline: 3px solid var(--wed-cyan);
	outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
	.wed-card--link,
	.wed-card--link:hover {
		transition: none;
		transform: none;
	}
}

.wed-card > *:last-child {
	margin-bottom: 0;
}

.wed-section .wed-card p {
	margin-bottom: 0.8em;
}

.wed-section .wed-card h3 {
	margin-top: 0;
}

/* Four-card rows go 2 x 2 on tablet widths */
@media (min-width: 782px) and (max-width: 1100px) {
	.wed-grid:has(> .wp-block-column:nth-child(4)) {
		flex-wrap: wrap !important;
	}

	.wed-grid:has(> .wp-block-column:nth-child(4)) > .wp-block-column {
		flex-basis: calc(50% - 12px) !important;
		flex-grow: 0;
	}
}

.wed-card .wp-block-buttons {
	margin-top: auto;
	padding-top: 8px;
}

.wed-section--dark .wed-card {
	background: var(--wed-navy-2);
	border-color: rgba(255, 255, 255, 0.12);
	box-shadow: none;
}

.wed-card--feature {
	border: 2px solid var(--wed-cyan);
	padding: 27px; /* 1px less than other cards to make up for the thicker border */
	position: relative;
}

/* "Most Popular" sits on the card's top edge, so the card titles in a row line up */
.wed-card--feature > .wed-pill {
	position: absolute;
	top: 0;
	left: 28px;
	transform: translateY(-50%);
	margin: 0 !important;
	z-index: 1;
}

.wed-card-label {
	font-weight: 600;
	color: var(--wed-cyan-dark);
	margin-bottom: 0.75em;
}

.wed-pill {
	display: inline-block;
	align-self: flex-start;
	background: var(--wed-cyan);
	color: var(--wed-navy);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	border-radius: 999px;
	padding: 4px 14px;
	margin-bottom: 1em !important;
}

.wed-price {
	font-family: 'Poppins', sans-serif;
	font-size: 2.6rem;
	font-weight: 700;
	line-height: 1;
	color: var(--wed-navy);
	margin-bottom: 0.4em !important;
}

.wed-price-sub {
	font-weight: 600;
	color: var(--wed-muted);
}

/* Discounted price: old price struck through beside the new one */
.wed-price-was {
	font-size: 0.55em;
	font-weight: 600;
	color: var(--wed-muted);
	text-decoration-thickness: 2px;
	vertical-align: middle;
	margin-right: 0.15em;
}

.wed-price-save {
	display: inline-block;
	align-self: flex-start;
	background: var(--wed-navy);
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	border-radius: 999px;
	padding: 4px 14px;
}

.wed-offer-line {
	color: var(--wed-navy);
}

.wed-step-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--wed-cyan);
	color: var(--wed-navy);
	font-weight: 700;
	margin-bottom: 0.75em !important;
}

/* Callout */
.wed-callout {
	background: var(--wed-bg-alt);
	border-left: 5px solid var(--wed-cyan);
	border-radius: 0 var(--wed-radius) var(--wed-radius) 0;
	padding: 24px 28px;
	margin-top: 32px;
}

.wed-section--alt .wed-callout {
	background: var(--wed-bg);
}

.wed-callout > *:last-child {
	margin-bottom: 0;
}

/* ==========================================================================
   Lists
   ========================================================================== */
ul.wed-checks,
ul.wed-ticks {
	list-style: none;
	margin-left: 0;
	padding-left: 0;
}

.wed-checks li,
.wed-ticks li {
	position: relative;
	padding-left: 32px;
	margin-bottom: 0.6em;
}

.wed-checks li::before,
.wed-ticks li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.35em;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--wed-cyan) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%23101d30' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.wed-ticks {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 28px;
	font-weight: 600;
	color: var(--wed-navy);
	margin-top: 1.5em;
}

.wed-ticks li {
	margin-bottom: 0;
}

/* ==========================================================================
   Images
   ========================================================================== */
.wed-section .wp-block-image img {
	border-radius: 10px;
	height: auto;
}

.wed-shot img {
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
}

.wp-block-image figcaption.wp-element-caption {
	font-size: 15px;
	color: var(--wed-muted);
	text-align: center;
}

/* Home hero: buttons and trust points centred under the image */
.wed-hero-media .wp-block-image {
	margin-bottom: 0;
}

.wed-section .wed-hero-media .wp-block-image img {
	border-radius: 0;
}

.wed-hero-media .wed-hero-actions {
	justify-content: center;
	margin-top: 44px;
}

/* Trust points: one centred row under the hero columns, just above the credentials strip */
ul.wed-ticks.wed-hero-ticks {
	justify-content: center;
	gap: 12px 36px;
	margin-top: 48px;
	margin-bottom: 0;
}

.wed-hero-ticks li {
	white-space: nowrap;
}

/* Tighten the gap between the trust points and the credentials strip below */
.wp-block-group.wed-hero:has(.wed-hero-ticks) {
	padding-bottom: 36px;
}

.wp-block-group.wed-hero:has(.wed-hero-ticks) + .wp-block-group.wed-section {
	padding-top: 44px;
}

@media (max-width: 600px) {
	ul.wed-ticks.wed-hero-ticks {
		flex-direction: column;
		align-items: center;
		margin-top: 32px;
	}
}

/* Badge strip */
.wed-badges {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 24px 40px;
	margin: 12px 0 20px;
}

.wed-badges .wp-block-image {
	margin: 0;
	flex: 0 0 auto;
}

.wed-section .wed-badges .wp-block-image img {
	width: auto;
	max-height: 110px;
	border-radius: 0;
}

@media (max-width: 600px) {
	.wed-badges {
		gap: 16px 24px;
	}

	.wed-badges .wp-block-image {
		flex: 0 0 40%;
		text-align: center;
	}

	.wed-section .wed-badges .wp-block-image img {
		max-height: 84px;
	}
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.wp-block-buttons {
	gap: 12px 16px;
	margin-top: 1.25em;
	margin-bottom: 1em;
}

.wp-block-button .wp-block-button__link,
.wpcf7 input[type="submit"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 12px 26px;
	border-radius: 8px;
	border: 2px solid var(--wed-cyan);
	background: var(--wed-cyan);
	color: var(--wed-navy);
	font-weight: 700;
	font-size: 17px;
	line-height: 1.2;
	text-decoration: none;
	transition: background-color 0.15s ease, border-color 0.15s ease;
}

.wp-block-button .wp-block-button__link:hover,
.wp-block-button .wp-block-button__link:focus,
.wpcf7 input[type="submit"]:hover,
.wpcf7 input[type="submit"]:focus {
	background: var(--wed-cyan-hover);
	border-color: var(--wed-cyan-hover);
	color: var(--wed-navy);
}

.wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent;
	border-color: var(--wed-navy);
	color: var(--wed-navy);
}

.wp-block-button.is-style-outline .wp-block-button__link:hover,
.wp-block-button.is-style-outline .wp-block-button__link:focus {
	background: var(--wed-navy);
	color: #ffffff;
}

.wed-section--dark .wp-block-button.is-style-outline .wp-block-button__link {
	border-color: #ffffff;
	color: #ffffff;
}

.wed-section--dark .wp-block-button.is-style-outline .wp-block-button__link:hover,
.wed-section--dark .wp-block-button.is-style-outline .wp-block-button__link:focus {
	background: #ffffff;
	color: var(--wed-navy);
}

@media (max-width: 600px) {
	.wp-block-buttons > .wp-block-button {
		width: 100%;
	}

	.wp-block-buttons .wp-block-button__link {
		width: 100%;
	}
}

/* ==========================================================================
   FAQ accordion (core/details)
   ========================================================================== */
.wed-faq .wp-block-details {
	background: var(--wed-bg);
	border: 1px solid var(--wed-border);
	border-radius: 10px;
	padding: 0;
	margin-bottom: 12px;
}

.wed-faq .wp-block-details summary {
	cursor: pointer;
	list-style: none;
	position: relative;
	padding: 18px 56px 18px 22px;
	font-weight: 700;
	color: var(--wed-navy);
	min-height: 48px;
}

.wed-faq .wp-block-details summary::-webkit-details-marker {
	display: none;
}

.wed-faq .wp-block-details summary::after {
	content: "+";
	position: absolute;
	right: 22px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 26px;
	font-weight: 400;
	color: var(--wed-cyan-dark);
}

.wed-faq .wp-block-details[open] summary::after {
	content: "\2212";
}

.wed-faq .wp-block-details > *:not(summary) {
	padding: 0 22px;
}

.wed-faq .wp-block-details > *:last-child {
	padding-bottom: 18px;
	margin-bottom: 0;
}

/* ==========================================================================
   Contact Form 7
   ========================================================================== */
.wed-form {
	background: var(--wed-bg);
	border: 1px solid var(--wed-border);
	border-radius: var(--wed-radius);
	padding: 32px;
	box-shadow: var(--wed-shadow);
}

@media (max-width: 600px) {
	.wed-form {
		padding: 22px 18px;
	}
}

.wpcf7 form p {
	margin-bottom: 1.1em;
}

.wpcf7 label,
.wpcf7 .wed-label {
	display: block;
	font-weight: 600;
	font-size: 16px;
	color: var(--wed-navy);
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="url"],
.wpcf7 select,
.wpcf7 textarea {
	width: 100%;
	min-height: 48px;
	margin-top: 6px;
	padding: 10px 14px;
	font-size: 17px;
	color: var(--wed-ink);
	background: #ffffff;
	border: 1px solid #a9b6c4;
	border-radius: 8px;
}

.wpcf7 textarea {
	min-height: 120px;
}

.wpcf7 input:focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus {
	border-color: var(--wed-cyan-dark);
	outline: 3px solid rgba(0, 169, 202, 0.35);
	outline-offset: 0;
}

.wpcf7 .wpcf7-list-item {
	display: block;
	margin: 8px 0 0;
}

.wpcf7 .wpcf7-list-item label {
	font-weight: 400;
	font-size: 16px;
	color: var(--wed-ink);
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 32px;
	cursor: pointer;
}

.wpcf7 .wpcf7-list-item input {
	width: 20px;
	height: 20px;
	margin: 0;
}

.wpcf7 .wed-fixed-package {
	display: block;
	margin-top: 6px;
	background: var(--wed-bg-alt);
	border-radius: 8px;
	padding: 12px 14px;
	font-weight: 600;
	color: var(--wed-navy);
}

.wpcf7 input[type="submit"] {
	width: 100%;
	height: auto;
	white-space: normal;
	cursor: pointer;
}
