/*
Theme Name: D8S
Description: Hand-coded theme for delta8seo.com.
Version: 0.1.3
Requires PHP: 8.0
License: Proprietary
Text Domain: d8s
*/

/* Self-hosted fonts (latin subset, SIL Open Font License). */
@font-face {
	font-family: "Space Grotesk";
	font-style: normal;
	font-weight: 300 700;
	font-display: swap;
	src: url("assets/fonts/space-grotesk-var.woff2") format("woff2");
}
@font-face {
	font-family: "IBM Plex Sans";
	font-style: normal;
	font-weight: 100 700;
	font-display: swap;
	src: url("assets/fonts/plex-sans-var.woff2") format("woff2");
}

:root {
	--black: #111312;
	--panel: #1b1e1c;
	--panel-2: #232725;
	--text: #e9ece9;
	--muted: #a3aaa5;
	--line: #2f3431;
	--lime: #c6f432;
	--lime-dark: #a8d41b;
	--paper: #f4f5f0;
	--ink: #151815;
	--ink-muted: #5b625d;
	--ink-line: #dfe2d9;

	--display: "Space Grotesk", system-ui, sans-serif;
	--sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

	--wrap: 1160px;
	--radius: 14px;
}

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

html { scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--black);
	color: var(--text);
	font: 17px/1.7 var(--sans);
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--lime); }
a:hover { color: #fff; }

h1, h2, h3 {
	font-family: var(--display);
	font-weight: 700;
	color: #fff;
	letter-spacing: -0.025em;
	margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.6rem, 6.4vw, 4.8rem); line-height: 1.02; }
h2 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.08; }
h3 { font-size: 1.25rem; line-height: 1.3; letter-spacing: -0.01em; }
.hl { color: var(--lime); }

p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 16px; z-index: 100; background: var(--lime); color: var(--black); padding: 8px 14px; border-radius: 8px; }

/* Buttons */

.btn {
	display: inline-block;
	padding: 14px 26px;
	border-radius: 999px;
	font-family: var(--display);
	font-weight: 700;
	font-size: 1rem;
	text-decoration: none;
	border: 2px solid transparent;
	cursor: pointer;
	transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn-lime { background: var(--lime); color: var(--black); }
.btn-lime:hover { background: #d7ff52; color: var(--black); }
.btn-outline { border-color: var(--line); color: #fff; }
.btn-outline:hover { border-color: var(--lime); color: var(--lime); }

/* Header */

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(17, 19, 18, 0.9);
	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: 70px; }
.brand {
	font-family: var(--display);
	font-weight: 700;
	font-size: 1.35rem;
	color: #fff;
	text-decoration: none;
	letter-spacing: -0.02em;
	white-space: nowrap;
}
.brand b {
	display: inline-grid;
	place-items: center;
	width: 1.6em;
	height: 1.6em;
	margin-right: 8px;
	border-radius: 8px;
	background: var(--lime);
	color: var(--black);
	font-size: 0.8em;
}
.nav { display: flex; align-items: center; gap: 26px; }
.nav a:not(.btn) { color: var(--text); text-decoration: none; font-size: 0.95rem; }
.nav a:not(.btn):hover { color: var(--lime); }
.nav .btn { padding: 10px 18px; font-size: 0.9rem; white-space: nowrap; }
@media (max-width: 860px) { .nav a:not(.btn) { display: none; } }
@media (max-width: 420px) { .brand { font-size: 1.1rem; } .nav .btn { padding: 9px 13px; font-size: 0.82rem; } }

/* Sections */

section { padding: 96px 0; }
.section-panel { background: var(--panel); }
.section-light { background: var(--paper); color: var(--ink); }
.section-light h2,
.section-light h3 { color: var(--ink); }

.tagline {
	display: inline-block;
	font-family: var(--display);
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--lime);
	margin-bottom: 16px;
}
.section-light .tagline { color: #5c7a07; }
.lede { font-size: 1.17rem; color: var(--muted); max-width: 700px; }
.section-light .lede { color: var(--ink-muted); }
.section-head { max-width: 780px; margin-bottom: 48px; }

/* Hero */

.hero {
	padding: 108px 0 96px;
	background:
		radial-gradient(800px 400px at 90% 0%, rgba(198, 244, 50, 0.14), transparent 70%),
		var(--black);
}
.hero .lede { font-size: 1.25rem; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.pills { list-style: none; margin: 56px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.pills li {
	border: 1px solid var(--line);
	border-radius: 999px;
	padding: 8px 16px;
	font-size: 0.92rem;
	color: var(--text);
}
.pills li::before { content: "● "; color: var(--lime); font-size: 0.7em; vertical-align: 2px; }

/* Layout helpers */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 24px; } }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 960px) { .grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid, .grid-2 { grid-template-columns: 1fr; } }

.card {
	background: var(--panel-2);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 28px;
}
.card p { color: var(--muted); margin: 0; font-size: 0.98rem; }
.card .icon {
	display: inline-grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 10px;
	background: rgba(198, 244, 50, 0.12);
	color: var(--lime);
	font-family: var(--display);
	font-weight: 700;
	margin-bottom: 16px;
}
.section-light .card { background: #fff; border-color: var(--ink-line); }
.section-light .card p { color: var(--ink-muted); }
.section-light .card .icon { background: var(--ink); color: var(--lime); }

/* Lists */

.dash { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.dash li { position: relative; padding-left: 28px; }
.dash li::before { content: ""; position: absolute; left: 0; top: 12px; width: 14px; height: 3px; border-radius: 2px; background: var(--lime); }
.dash strong { color: #fff; }
.section-light .dash li::before { background: #5c7a07; }
.section-light .dash strong { color: var(--ink); }

/* Callout */

.callout {
	border: 1px solid var(--lime);
	border-radius: var(--radius);
	padding: 36px;
	background: rgba(198, 244, 50, 0.05);
}
.callout h3 { color: var(--lime); }
.callout p:last-child { margin-bottom: 0; }

/* Steps */

.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.steps li { counter-increment: s; background: #fff; border: 1px solid var(--ink-line); border-radius: var(--radius); padding: 24px; }
.steps li::before {
	content: counter(s);
	display: inline-grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: var(--lime);
	color: var(--black);
	font-family: var(--display);
	font-weight: 700;
	margin-bottom: 14px;
}
.steps h3 { margin-bottom: 6px; }
.steps p { color: var(--ink-muted); font-size: 0.96rem; margin: 0; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* Booking */

.book-points { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 32px; max-width: 900px; }
@media (max-width: 760px) { .book-points { grid-template-columns: 1fr; } }
.cal-embed { margin-top: 48px; background: transparent; border-radius: var(--radius); min-height: 700px; overflow: visible; }

/* FAQ */

.faq { max-width: 840px; }
.faq details { border-bottom: 1px solid var(--line); padding: 22px 0; }
.faq summary {
	cursor: pointer;
	list-style: none;
	font-family: var(--display);
	font-weight: 700;
	font-size: 1.15rem;
	color: #fff;
	display: flex;
	justify-content: space-between;
	gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--lime); font-size: 1.5rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 12px 0 0; color: var(--muted); }

/* Footer */

.site-footer { border-top: 1px solid var(--line); color: var(--muted); padding: 56px 0 40px; font-size: 0.92rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 22px; }
.site-footer a { color: var(--text); text-decoration: none; }
.site-footer a:hover { color: var(--lime); }
.disclaimer { flex-basis: 100%; margin: 16px 0 0; font-size: 0.85rem; }

/* Generic and legal pages */

.page-body { padding: 72px 0 96px; }
.page-body .wrap { max-width: 800px; }
.legal .page-body h2 { font-size: 1.3rem; margin: 2.2em 0 0.6em; }
.legal .page-body ul { padding-left: 1.2em; }
.legal-meta { color: var(--muted); font-size: 0.9rem; }

/* Space between booking points and calendar */
.book-points { margin-bottom: 8px; }

/* Calendar loading state (hidden once cal.com injects its iframe) */
.cal-loading { margin: 0; padding: 48px 0; text-align: center; opacity: 0.7; }
.cal-embed:has(iframe) .cal-loading { display: none; }
