/*
Theme Name: ABI Web Design
Author: ABI Web Design
Description: A bright, easy-to-navigate theme for ABI Web Design. Includes services, portfolio, testimonials, FAQs, insights, a quote request form and a lead-magnet signup.
Version: 1.0.0
Requires at least: 6.2
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: abi
*/

:root {
	/* Brand colours sampled from the ABI Design logo. */
	--yellow: #f1cd17;
	--orange: #f88e1c;
	--pink: #d41c8e;
	--sky: #3b82cc;
	--green: #5bbe6a;
	--purple: #3b0e76;

	--ink: #161a45;
	--body: #454d6b;
	--muted: #6b7290;
	--bg: #ffffff;
	--tint: #f2f5fd;
	--tint-warm: #fffae3;
	--primary: #2946a2;
	--primary-dark: #1c3280;
	--accent: var(--yellow);
	--accent-ink: #33290a;
	--coral: var(--pink);
	--mint: #2f9e44;
	--line: #e1e6f4;
	--radius: 18px;
	--radius-sm: 10px;
	--shadow: 0 10px 30px rgba(14, 26, 58, .08);
	--shadow-lg: 0 24px 60px rgba(14, 26, 58, .14);
	--wrap: 1160px;
	--font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--font);
	font-size: 17px;
	line-height: 1.65;
	color: var(--body);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--primary); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--primary-dark); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1.1em; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 4px; }

.screen-reader-text {
	position: absolute; width: 1px; height: 1px; overflow: hidden;
	clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link:focus {
	position: fixed; top: 10px; left: 10px; z-index: 1000; width: auto; height: auto; clip: auto;
	background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px;
}

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.wrap--narrow { width: min(100% - 40px, 780px); margin-inline: auto; }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--tint { background: var(--tint); }
.section--warm { background: var(--tint-warm); }
.section-head { max-width: 720px; margin: 0 auto clamp(32px, 5vw, 56px); text-align: center; }
.section-head p { font-size: 1.1rem; margin: 0; }
.eyebrow {
	display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
	color: var(--primary); background: #e8ecf9; padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
}
mark { background: linear-gradient(transparent 62%, var(--accent) 62%); color: inherit; padding: 0 .08em; }

/* Buttons */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer;
	padding: 15px 28px; border-radius: 999px; border: 2px solid transparent;
	transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--primary); color: #fff; box-shadow: 0 8px 20px rgba(41, 70, 162, .28); }
.btn--primary:hover { background: var(--primary-dark); color: #fff; }
.btn--accent { background: var(--accent); color: var(--accent-ink); box-shadow: 0 8px 20px rgba(241, 205, 23, .4); }
.btn--accent:hover { color: var(--accent-ink); background: #f7da4a; }
.btn--ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.link-arrow { font-weight: 700; text-decoration: none; }
.link-arrow::after { content: " \2192"; transition: margin .15s; }
.link-arrow:hover::after { margin-left: 4px; }

/* Header */
.site-header {
	position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .92);
	backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 1.15rem; }
.brand:hover { color: var(--ink); }
.brand__mark {
	display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
	background: var(--primary); color: #fff; font-size: .95rem; letter-spacing: .04em;
	box-shadow: 4px 4px 0 var(--accent);
}
.custom-logo, .brand__logo { height: 64px; max-height: 64px; width: auto; display: block; }
.site-footer .brand__logo, .site-footer .custom-logo { background: #fff; border-radius: 14px; padding: 8px 10px; height: 92px; max-height: 92px; }
.dots { display: flex; gap: 8px; margin: 0 0 22px; }
.dots i { width: 14px; height: 14px; border-radius: 50%; background: var(--yellow); }
.dots i:nth-child(2) { background: var(--orange); }
.dots i:nth-child(3) { background: var(--pink); }
.dots i:nth-child(4) { background: var(--sky); }
.dots i:nth-child(5) { background: var(--green); }
.dots i:nth-child(6) { background: var(--purple); }
.section-head .dots, .page-hero .dots, .cta-band .dots { justify-content: center; }
.nav-toggle {
	display: none; background: none; border: 2px solid var(--line); border-radius: 12px;
	width: 46px; height: 46px; cursor: pointer; padding: 0; align-items: center; justify-content: center;
}
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after {
	display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; transition: transform .2s;
}
.nav-toggle .bars::before, .nav-toggle .bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle .bars::before { top: -6px; }
.nav-toggle .bars::after { top: 6px; }
.nav-open .nav-toggle .bars { background: transparent; }
.nav-open .nav-toggle .bars::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle .bars::after { transform: translateY(-6px) rotate(-45deg); }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.main-nav a {
	display: block; padding: 10px 14px; border-radius: 999px; text-decoration: none;
	color: var(--ink); font-weight: 600; font-size: .97rem;
}
.main-nav a:hover, .main-nav .current-menu-item > a, .main-nav .current_page_item > a { background: var(--tint); color: var(--primary); }
.main-nav .menu-cta > a { background: var(--accent); color: var(--accent-ink); padding: 12px 22px; margin-left: 8px; font-weight: 700; }
.main-nav .menu-cta > a:hover { background: #f7da4a; color: var(--accent-ink); }

@media (max-width: 940px) {
	.nav-toggle { display: inline-flex; }
	.main-nav {
		display: none; position: absolute; left: 0; right: 0; top: 100%;
		background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); padding: 12px 20px 22px;
	}
	.nav-open .main-nav { display: block; }
	.main-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
	.main-nav a { padding: 14px 16px; font-size: 1.05rem; border-radius: 12px; }
	.main-nav .menu-cta > a { margin: 10px 0 0; text-align: center; }
}

/* Hero */
.hero {
	position: relative; overflow: hidden;
	background:
		radial-gradient(600px 300px at 90% 0%, #fdf0a6 0%, transparent 70%),
		radial-gradient(700px 400px at 0% 100%, #dfe6fa 0%, transparent 70%),
		#fff;
	padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 8vw, 104px);
}
.hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero__lead { font-size: 1.2rem; max-width: 34em; }
.hero__checks { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-weight: 600; color: var(--ink); font-size: .95rem; }
.hero__checks li { display: flex; align-items: center; gap: 8px; }
.hero__checks svg { color: var(--mint); width: 20px; height: 20px; flex: none; }

.mock { position: relative; }
.mock__window { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); border: 1px solid var(--line); overflow: hidden; transform: rotate(1.5deg); }
.mock__bar { display: flex; gap: 6px; padding: 14px 16px; border-bottom: 1px solid var(--line); background: #f8faff; }
.mock__bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--coral); }
.mock__bar i:nth-child(2) { background: var(--accent); }
.mock__bar i:nth-child(3) { background: var(--green); }
.mock__body { padding: 22px; display: grid; gap: 14px; }
.mock__hero { height: 120px; border-radius: 12px; background: linear-gradient(120deg, var(--primary), var(--sky)); position: relative; }
.mock__hero::after { content: ""; position: absolute; left: 18px; bottom: 18px; width: 90px; height: 26px; border-radius: 999px; background: var(--accent); }
.mock__line { height: 12px; border-radius: 6px; background: #e8eefb; }
.mock__line--short { width: 60%; }
.mock__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mock__cards span { height: 64px; border-radius: 10px; background: var(--tint); border: 1px solid var(--line); }
.mock__chip {
	position: absolute; background: #fff; border-radius: 999px; padding: 10px 18px; font-weight: 700; font-size: .9rem;
	color: var(--ink); box-shadow: var(--shadow); display: flex; align-items: center; gap: 8px; border: 1px solid var(--line);
}
.mock__chip svg { width: 18px; height: 18px; color: var(--primary); }
.mock__chip--a { top: -18px; left: -14px; }
.mock__chip--b { bottom: 36px; right: -16px; }
.mock__chip--c { bottom: -18px; left: 24px; }

@media (max-width: 860px) {
	.hero__grid { grid-template-columns: 1fr; }
	.mock { max-width: 460px; margin: 10px auto 0; }
	.mock__chip--a { left: 0; }
	.mock__chip--b { right: 0; }
}

/* Cards & grids */
.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid--3, .grid--2, .grid--4 { grid-template-columns: 1fr; } }

.card {
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px;
	transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
	display: flex; flex-direction: column;
}
.card p:last-child { margin-bottom: 0; }
a.card { text-decoration: none; color: inherit; }
a.card:hover, .card--hover:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #c9d7f5; }
.card__icon {
	width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 20px;
	background: #e6eeff; color: var(--primary);
}
.card__icon svg { width: 26px; height: 26px; }
.card__icon { background: var(--primary); color: #fff; border-radius: 50%; }
.grid > .card:nth-child(6n+1) .card__icon { background: var(--yellow); color: var(--accent-ink); }
.grid > .card:nth-child(6n+2) .card__icon { background: var(--orange); }
.grid > .card:nth-child(6n+3) .card__icon { background: var(--pink); }
.grid > .card:nth-child(6n+4) .card__icon { background: var(--sky); }
.grid > .card:nth-child(6n+5) .card__icon { background: var(--green); }
.grid > .card:nth-child(6n+6) .card__icon { background: var(--purple); }
.card .link-arrow { margin-top: auto; padding-top: 14px; }

/* Why / split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.checklist li {
	display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--line);
	border-radius: var(--radius-sm); padding: 16px 18px; color: var(--ink); font-weight: 600;
}
.checklist svg { width: 22px; height: 22px; color: var(--mint); flex: none; margin-top: 2px; }

.audience { border-radius: var(--radius); padding: 36px; border: 1px solid var(--line); background: #fff; }
.audience--biz { background: linear-gradient(160deg, #e6ebfa, #fff 70%); }
.audience--life { background: linear-gradient(160deg, #fdf3b8, #fff 70%); }
.audience ul { padding-left: 1.2em; margin: 0 0 22px; }
.audience li { margin-bottom: 6px; }

/* Process */
.steps { counter-reset: step; }
.step { position: relative; padding-top: 8px; }
.step::before {
	counter-increment: step; content: counter(step);
	display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
	background: var(--ink); color: #fff; font-weight: 800; margin-bottom: 16px; box-shadow: 4px 4px 0 var(--accent);
}

/* Portfolio */
.project { padding: 0; overflow: hidden; }
.project__cover { aspect-ratio: 16 / 10; display: grid; place-items: center; position: relative; background: linear-gradient(135deg, var(--primary), var(--sky)); }
.project:nth-child(3n+2) .project__cover { background: linear-gradient(135deg, var(--orange), var(--pink)); }
.project:nth-child(3n+3) .project__cover { background: linear-gradient(135deg, var(--green), var(--sky)); }
.project__cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.project__initials { font-size: 3rem; font-weight: 800; color: rgba(255, 255, 255, .9); letter-spacing: .04em; }
.project__body { padding: 22px 26px 26px; }
.project__body h3 { margin-bottom: 6px; }
.project__type { font-size: .85rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.badge { position: absolute; top: 14px; left: 14px; background: #fff; color: var(--ink); font-size: .75rem; font-weight: 800; padding: 5px 12px; border-radius: 999px; letter-spacing: .06em; text-transform: uppercase; }

/* Testimonials */
.quote { position: relative; }
.quote blockquote { margin: 0 0 20px; font-size: 1.05rem; color: var(--ink); }
.quote blockquote p:last-child { margin: 0; }
.quote__stars { color: var(--accent); letter-spacing: 3px; font-size: 1.1rem; margin-bottom: 12px; }
.quote__who { margin-top: auto; font-weight: 700; color: var(--ink); }
.quote__who span { display: block; font-weight: 500; color: var(--muted); font-size: .92rem; }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.faq details[open] { border-color: #c9d7f5; box-shadow: var(--shadow); }
.faq summary {
	list-style: none; cursor: pointer; padding: 20px 56px 20px 22px; font-weight: 700; color: var(--ink);
	position: relative; font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
	content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
	width: 28px; height: 28px; border-radius: 50%; background: var(--tint); color: var(--primary);
	display: grid; place-items: center; font-size: 1.2rem; font-weight: 700; line-height: 1;
}
.faq details[open] summary::after { content: "\2212"; background: var(--primary); color: #fff; }
.faq__answer { padding: 0 22px 20px; }
.faq__answer p:last-child { margin: 0; }

/* Posts */
.post-card { padding: 0; overflow: hidden; }
.post-card__thumb { aspect-ratio: 16 / 9; background: linear-gradient(135deg, #e6ebfa, #fdf3b8); display: block; }
.post-card__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-card__body { padding: 24px 26px 26px; display: flex; flex-direction: column; flex: 1; }
.post-card h3 a { color: var(--ink); text-decoration: none; }
.post-card h3 a:hover { color: var(--primary); }
.meta { font-size: .85rem; color: var(--muted); font-weight: 600; margin-bottom: 10px; }
.meta a { color: var(--primary); text-decoration: none; }

/* Forms */
.form { display: grid; gap: 16px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .form__row { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 700; color: var(--ink); font-size: .92rem; margin-bottom: 6px; }
.field input, .field select, .field textarea {
	width: 100%; font: inherit; color: var(--ink); background: #fff;
	border: 2px solid var(--line); border-radius: var(--radius-sm); padding: 13px 14px;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(41, 70, 162, .14); }
.field textarea { min-height: 140px; resize: vertical; }
.form__note { font-size: .85rem; color: var(--muted); margin: 0; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.notice { border-radius: var(--radius-sm); padding: 16px 18px; font-weight: 600; margin-bottom: 20px; }
.notice--ok { background: #e3f6e6; color: #1c5a27; border: 1px solid #b5e2bc; }
.notice--err { background: #ffe5e2; color: #8a1c12; border: 1px solid #ffc2bc; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow); }

.contact-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 14px; align-items: center; color: var(--ink); font-weight: 600; }
.contact-list svg { width: 22px; height: 22px; color: var(--primary); flex: none; }
.contact-list a { color: inherit; text-decoration: none; }
.contact-list a:hover { color: var(--primary); }

/* Lead magnet */
.magnet { background: var(--purple); color: #c9d3ea; border-radius: calc(var(--radius) + 6px); padding: clamp(28px, 5vw, 56px); display: grid; grid-template-columns: 1.1fr .9fr; gap: 36px; align-items: center; position: relative; overflow: hidden; }
.magnet::before { content: ""; position: absolute; width: 320px; height: 320px; border-radius: 50%; background: var(--pink); opacity: .45; right: -100px; top: -140px; }
.magnet > * { position: relative; }
.magnet h2 { color: #fff; }
.magnet .field label { color: #fff; }
.magnet .field input { border-color: transparent; }
.magnet .form__note { color: #9fb0d6; }
.magnet .form__note a { color: #fff; }
@media (max-width: 860px) { .magnet { grid-template-columns: 1fr; } }

/* Page header & content */
.page-hero { background: linear-gradient(180deg, var(--tint), #fff); padding: clamp(44px, 6vw, 80px) 0 clamp(28px, 4vw, 44px); text-align: center; }
.page-hero p { max-width: 640px; margin: 0 auto; font-size: 1.12rem; }
.entry { padding: 24px 0 clamp(56px, 8vw, 96px); }
.entry-content > * { margin-top: 0; margin-bottom: 1.3em; }
.entry-content h2 { margin-top: 1.6em; font-size: 1.7rem; }
.entry-content h3 { margin-top: 1.4em; }
.entry-content img { border-radius: var(--radius-sm); }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content li { margin-bottom: .45em; }
.entry-content blockquote { margin-left: 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--accent); color: var(--ink); font-size: 1.1rem; }
.entry-thumb { border-radius: var(--radius); overflow: hidden; margin-bottom: 32px; }
.entry-thumb img { display: block; width: 100%; }
.alignwide { width: min(100vw - 40px, var(--wrap)); margin-left: 50%; transform: translateX(-50%); max-width: none; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; text-align: center; }
.wp-caption-text, figcaption { font-size: .88rem; color: var(--muted); text-align: center; }
.pagination, .nav-links { display: flex; gap: 8px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }
.page-numbers { padding: 10px 16px; border-radius: 10px; border: 1px solid var(--line); text-decoration: none; font-weight: 700; color: var(--ink); }
.page-numbers.current, .page-numbers:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* CTA band & footer */
.cta-band { background: linear-gradient(120deg, var(--primary), var(--purple)); color: #e6edff; border-radius: calc(var(--radius) + 6px); padding: clamp(32px, 5vw, 60px); text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { max-width: 560px; margin: 0 auto 26px; font-size: 1.1rem; }
.cta-band .btn-row { justify-content: center; }

.site-footer { background: #17123f; color: #aab6d3; padding: 64px 0 28px; font-size: .96rem; }
.site-footer a { color: #dfe6f7; text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; letter-spacing: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 36px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer .brand { color: #fff; margin-bottom: 14px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 44px; padding-top: 22px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: .88rem; }
.social { display: flex; gap: 14px; margin-top: 18px; }

@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; scroll-behavior: auto !important; }
}
