/*
Theme Name: Dolphin
Theme URI: https://dolphinpromotions.co.uk/
Author: James Smythe
Description: Astra child theme for Dolphin. Web design, SEO and IT support in Blackpool.
Version: 1.0.3
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dolphin
Template: astra
*/

/* ---------- Fonts (self-hosted, SIL Open Font License) ---------- */
@font-face {
	font-family: 'Inter';
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url(assets/fonts/inter-latin.woff2) format('woff2');
}

@font-face {
	font-family: 'Space Grotesk';
	font-style: normal;
	font-weight: 300 700;
	font-display: swap;
	src: url(assets/fonts/space-grotesk-latin.woff2) format('woff2');
}

/* ---------- Tokens ---------- */
:root {
	--d-ink: #0B1F33;
	--d-accent: #0A6C96;
	--d-accent-dark: #084F6E;
	--d-surf: #7FD1E8;
	--d-mist: #F2F6F9;
	--d-line: #E3EAF0;
	--d-slate: #42566A;
	--d-radius: 14px;
	--d-display: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* Kadence Blocks palette, so existing block pages pick up the new colours. */
html:root {
	--global-palette1: #0A6C96;
	--global-palette2: #084F6E;
	--global-palette3: #0B1F33;
	--global-palette4: #22384D;
	--global-palette5: #42566A;
	--global-palette6: #5C6F80;
	--global-palette7: #E3EAF0;
	--global-palette8: #F2F6F9;
	--global-palette9: #ffffff;
}

/* ---------- Base ---------- */
body,
button,
input,
select,
textarea {
	font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

body {
	color: var(--d-slate);
	-webkit-font-smoothing: antialiased;
}

body :is(h1, h2, h3, h4, h5, h6),
body .entry-content :is(h1, h2, h3, h4, h5, h6),
.entry-title,
.site-title {
	font-family: var(--d-display);
	font-weight: 700;
	color: var(--d-ink);
	letter-spacing: -0.01em;
	line-height: 1.15;
}

.entry-content a:not(.wp-block-button__link):not(.d-btn):not(.d-more):not(.d-work) {
	text-decoration: underline;
	text-underline-offset: 2px;
}

.wp-block-button__link,
.ast-button,
.button,
button[type="submit"],
input[type="submit"] {
	border-radius: 8px;
	font-weight: 600;
}

/* ---------- Header ---------- */
.site-header .ast-primary-header-bar {
	border-bottom: 1px solid var(--d-line);
	background: #fff;
}

.site-header .ast-site-title-wrap {
	display: none;
}

.dolphin-logo {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
}

.dolphin-logo .dolphin-mark {
	flex: none;
	display: block;
}

.dolphin-wordmark {
	font-family: var(--d-display);
	font-weight: 700;
	font-size: 26px;
	letter-spacing: -0.02em;
	line-height: 1;
	color: var(--d-ink);
}

.ast-builder-menu .main-header-menu > .menu-item > .menu-link {
	font-size: 15px;
	font-weight: 500;
	color: var(--d-ink);
}

.ast-builder-menu .main-header-menu > .menu-item > .menu-link:hover,
.ast-builder-menu .main-header-menu > .current-menu-item > .menu-link {
	color: var(--d-accent);
}

.ast-builder-menu .main-header-menu > .menu-item.menu-cta {
	display: flex;
	align-items: center;
	margin-left: 12px;
}

.ast-builder-menu .main-header-menu > .menu-item.menu-cta > .menu-link {
	background: var(--d-accent);
	color: #fff;
	font-weight: 600;
	border-radius: 8px;
	height: 44px;
	line-height: 44px;
	padding: 0 20px;
}

.ast-builder-menu .main-header-menu > .menu-item.menu-cta > .menu-link:hover {
	background: var(--d-accent-dark);
	color: #fff;
}

.ast-header-break-point .main-header-menu .menu-item.menu-cta {
	margin: 12px 20px;
}

.ast-header-break-point .main-header-menu .menu-item.menu-cta > .menu-link {
	display: block;
	text-align: center;
	color: #fff;
}

/* ---------- Shared layout ---------- */
.d-wrap {
	max-width: 1208px;
	margin: 0 auto;
	padding-left: 24px;
	padding-right: 24px;
	box-sizing: border-box;
}

.d-section {
	padding-top: 88px;
	padding-bottom: 88px;
}

.d-band { background: var(--d-mist); }

.d-home h1,
.d-home h2,
.d-home h3,
.d-home p,
.d-home ul,
.d-home ol { margin: 0; }

.d-home h1 { font-size: clamp(38px, 5vw, 62px); font-weight: 700; }
.d-home h2 { font-size: clamp(30px, 3.4vw, 38px); font-weight: 700; }
.d-home h3 { font-size: 22px; font-weight: 700; }

.d-eyebrow {
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--d-accent);
}

.d-lead { font-size: 19px; max-width: 540px; }
.d-sub { font-size: 18px; max-width: 620px; margin-top: 14px !important; }
.d-note { font-size: 15px; }

.d-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.d-btn {
	display: inline-block;
	background: var(--d-accent);
	color: #fff;
	font-weight: 600;
	padding: 14px 26px;
	border: 1.5px solid var(--d-accent);
	border-radius: 8px;
	text-decoration: none;
	line-height: 1.4;
}

.d-btn:hover,
.d-btn:focus { background: var(--d-accent-dark); border-color: var(--d-accent-dark); color: #fff; }

.d-btn--ghost { background: transparent; color: var(--d-ink); border-color: var(--d-ink); }
.d-btn--ghost:hover,
.d-btn--ghost:focus { background: var(--d-ink); border-color: var(--d-ink); color: #fff; }

.d-btn--light { background: var(--d-surf); border-color: var(--d-surf); color: var(--d-ink); }
.d-btn--light:hover,
.d-btn--light:focus { background: #fff; border-color: #fff; color: var(--d-ink); }

.d-more { font-weight: 600; text-decoration: none; color: var(--d-accent); }
.d-more:hover { color: var(--d-accent-dark); }

.d-num { font-family: var(--d-display); font-weight: 700; color: var(--d-accent); }

/* ---------- Front page container ---------- */
.dolphin-front .site-content > .ast-container {
	display: block;
	max-width: none;
	padding: 0;
}

.dolphin-front #primary { margin: 0; padding: 0; width: 100%; }

/* ---------- Hero ---------- */
.d-hero {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 48px 64px;
	padding-top: 88px;
	padding-bottom: 96px;
}

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

.d-hero__art { flex: 1 1 400px; min-width: 0; }

.d-browser {
	border: 1px solid #D5DFE8;
	border-radius: var(--d-radius);
	overflow: hidden;
	background: #fff;
	box-shadow: 0 24px 48px -24px rgba(11, 31, 51, 0.25);
}

.d-browser__bar {
	display: flex;
	gap: 7px;
	padding: 14px 16px;
	background: var(--d-mist);
	border-bottom: 1px solid #D5DFE8;
}

.d-browser__bar span { width: 10px; height: 10px; border-radius: 50%; background: #C3CFDA; }

.d-browser__body { padding: 28px; display: flex; flex-direction: column; gap: 14px; }

.d-sk { border-radius: 6px; background: var(--d-line); height: 12px; }
.d-sk--nav { width: 38%; height: 10px; margin-bottom: 18px; }
.d-sk--title { width: 78%; height: 30px; background: var(--d-ink); }
.d-sk--short { width: 56%; }
.d-sk--btn { width: 132px; height: 38px; background: var(--d-accent); margin: 10px 0 18px; }
.d-sk-row { display: flex; gap: 14px; }
.d-sk--card { flex: 1; height: 92px; background: var(--d-mist); border: 1px solid var(--d-line); }

/* ---------- Cards ---------- */
.d-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 24px;
	margin-top: 44px;
}

.d-card {
	background: #fff;
	border: 1px solid #DCE5EC;
	border-radius: var(--d-radius);
	padding: 32px;
	display: flex;
	flex-direction: column;
	gap: 14px;
	color: var(--d-slate);
}

.d-card svg { color: var(--d-accent); }
.d-card .d-more { margin-top: auto; padding-top: 10px; }

/* ---------- Split sections ---------- */
.d-split {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 48px 72px;
}

.d-split__text {
	flex: 1 1 420px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
}

.d-list,
.d-ticks,
.d-steps { list-style: none; padding: 0; }

.d-list { flex: 1 1 420px; min-width: 0; }

.d-list li {
	display: flex;
	gap: 16px;
	padding: 20px 0;
	border-bottom: 1px solid var(--d-line);
}

.d-list li:last-child { border-bottom: 0; }
.d-list strong { color: var(--d-ink); }

/* ---------- Work ---------- */
.d-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
}

.d-work {
	display: flex;
	flex-direction: column;
	gap: 6px;
	text-decoration: none;
	color: var(--d-slate);
}

.d-work img {
	width: 100%;
	height: auto;
	aspect-ratio: 8 / 5;
	object-fit: cover;
	object-position: top;
	border-radius: var(--d-radius);
	border: 1px solid #DCE5EC;
	margin-bottom: 10px;
	background: #DDE7EE;
}

.d-work__name {
	font-family: var(--d-display);
	font-weight: 700;
	font-size: 21px;
	color: var(--d-ink);
}

.d-work:hover .d-work__name { color: var(--d-accent); }
.d-work__desc { font-size: 15px; }

/* ---------- Process ---------- */
.d-steps {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 16px;
	margin-top: 44px !important;
}

.d-steps li {
	border-top: 3px solid var(--d-accent);
	padding-top: 16px;
	display: flex;
	flex-direction: column;
	gap: 4px;
	color: var(--d-ink);
}

.d-steps .d-num { font-size: 13px; }

/* ---------- Pricing band ---------- */
.d-dark { background: var(--d-ink); color: #C6D3DF; }
.d-dark h2 { color: #fff; font-size: clamp(32px, 4vw, 44px); margin-top: 14px; }
.d-dark .d-eyebrow { color: var(--d-surf); }
.d-dark .d-btn { margin-top: 26px; }

.d-ticks {
	flex: 1 1 420px;
	min-width: 0;
	padding: 32px !important;
	border: 1px solid #2A4259;
	border-radius: var(--d-radius);
	display: flex;
	flex-direction: column;
	gap: 16px;
	font-size: 17px;
	color: #fff;
}

.d-ticks li { position: relative; padding-left: 30px; }

.d-ticks li::before {
	content: "";
	position: absolute;
	left: 2px;
	top: 0.45em;
	width: 12px;
	height: 6px;
	border-left: 2px solid var(--d-surf);
	border-bottom: 2px solid var(--d-surf);
	transform: rotate(-45deg);
}

/* ---------- FAQ ---------- */
.d-faq__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 32px 48px;
	margin-top: 36px;
}

.d-faq__grid > div { border-top: 1px solid var(--d-line); padding-top: 22px; }
.d-faq__grid h3 { font-size: 19px; }
.d-faq__grid p { margin-top: 10px; }

/* ---------- CTA ---------- */
.d-cta {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 8px;
}

.d-cta h2 { max-width: 700px; }
.d-cta .d-sub { max-width: 560px; }
.d-cta .d-actions { justify-content: center; margin-top: 22px; }

/* ---------- Footer ---------- */
.d-footer { background: var(--d-ink); color: #C6D3DF; font-size: 15px; }
.d-footer a { color: #C6D3DF; text-decoration: none; }
.d-footer a:hover,
.d-footer a:focus { color: #fff; }

.d-footer__top {
	display: flex;
	flex-wrap: wrap;
	gap: 40px 64px;
	padding-top: 64px;
	padding-bottom: 40px;
}

.d-footer__brand {
	flex: 2 1 260px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.d-footer__brand p { margin: 0; max-width: 300px; }

.d-footer__logo {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	font-family: var(--d-display);
	font-weight: 700;
	font-size: 24px;
	color: #fff !important;
}

.d-footer__col { flex: 1 1 160px; display: flex; flex-direction: column; gap: 10px; }
.d-footer__col strong { color: #fff; }
.d-footer__col a { padding: 2px 0; }

.d-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 12px 24px;
	padding-top: 24px;
	padding-bottom: 32px;
	position: relative;
	font-size: 14px;
}

.d-footer__bottom::before {
	content: "";
	position: absolute;
	top: 0;
	left: 24px;
	right: 24px;
	border-top: 1px solid #2A4259;
}

.d-footer__legal { display: flex; gap: 24px; }

/* ---------- Inner pages ---------- */
.page:not(.dolphin-front) .entry-title {
	font-size: clamp(34px, 4.4vw, 52px);
}

.d-page > p,
.d-page > ul,
.d-page > ol,
.d-page > h2,
.d-page > h3 {
	max-width: 760px;
}

.d-page .d-lead {
	font-size: 20px;
	max-width: 760px;
	margin: 0 0 8px;
}

.d-page > h2 {
	font-size: 30px;
	margin: 56px 0 14px;
}

.d-page > h3 {
	font-size: 20px;
	margin: 28px 0 8px;
}

.d-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 20px;
	margin: 28px 0 8px;
}

.d-grid > div {
	background: #fff;
	border: 1px solid #DCE5EC;
	border-radius: var(--d-radius);
	padding: 26px;
}

.d-grid h3 { font-size: 20px; margin: 0 0 8px; }
.d-grid p { margin: 0; }
.d-grid p + p { margin-top: 14px; }

.d-page .d-flow {
	list-style: none;
	margin: 24px 0 0;
	padding: 0;
	counter-reset: dflow;
}

.d-flow li {
	counter-increment: dflow;
	position: relative;
	padding: 0 0 22px 56px;
}

.d-flow li::before {
	content: counter(dflow, decimal-leading-zero);
	position: absolute;
	left: 0;
	top: 0;
	font-family: var(--d-display);
	font-weight: 700;
	color: var(--d-accent);
}

.d-flow strong { display: block; color: var(--d-ink); }

.d-callout {
	background: var(--d-mist);
	border-radius: var(--d-radius);
	padding: 36px;
	margin-top: 56px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
}

.d-callout h2 { font-size: 26px; margin: 0; }
.d-callout p { margin: 6px 0 0; }

.d-page .d-cards { margin-top: 28px; }

.d-price {
	display: flex;
	flex-wrap: wrap;
	gap: 28px 56px;
	align-items: center;
	background: var(--d-ink);
	color: #C6D3DF;
	border-radius: var(--d-radius);
	padding: 40px;
	margin: 28px 0;
}

.d-price > div { flex: 1 1 260px; }
.d-price h2 { color: #fff; font-size: 26px; margin: 0; }
.d-price p { margin: 8px 0 0; }
.d-price .d-btn { margin-top: 14px; background: var(--d-surf); border-color: var(--d-surf); color: var(--d-ink); }
.d-price__sum { font-family: var(--d-display); font-weight: 700; font-size: 56px; line-height: 1; color: #fff; margin-top: 14px !important; }
.d-price ul { flex: 1 1 320px; margin: 0; padding-left: 20px; color: #fff; }
.d-price li { margin: 0 0 10px; }

.d-about .d-avatar { border-radius: 50%; margin-bottom: 8px; }

.ast-single-post .entry-content a.d-btn,
.ast-single-post .entry-content a.d-more,
.ast-single-post .entry-content a.d-work {
	text-decoration: none;
}

.entry-content .d-price h2 { color: #fff; }

/* ---------- Forms ---------- */
div.wpforms-container-full .wpforms-form button[type="submit"] {
	background: var(--d-accent) !important;
	border: 0 !important;
	color: #fff !important;
	font-weight: 600;
	font-size: 16px;
	padding: 14px 26px;
	height: auto;
	border-radius: 8px;
}

div.wpforms-container-full .wpforms-form button[type="submit"]:hover,
div.wpforms-container-full .wpforms-form button[type="submit"]:focus {
	background: var(--d-accent-dark) !important;
}

div.wpforms-container-full .wpforms-form input[type="text"],
div.wpforms-container-full .wpforms-form input[type="email"],
div.wpforms-container-full .wpforms-form textarea {
	border: 1px solid #C3CFDA;
	border-radius: 8px;
	padding: 10px 12px;
}

div.wpforms-container-full { max-width: 760px; margin-left: 0; }

/* ---------- Small screens ---------- */
@media (max-width: 600px) {
	.d-section { padding-top: 64px; padding-bottom: 64px; }
	.d-hero { padding-top: 56px; padding-bottom: 64px; }
	.d-card, .d-ticks { padding: 24px !important; }
	.d-price, .d-callout { padding: 26px; }
	.dolphin-wordmark { font-size: 22px; }
}
