/* ==========================================================================
   OctoberIT — Theme Stylesheet
   Color system ported from the original design's OKLCH tokens
   (terracotta-orange primary, warm-neutral surfaces).
   ========================================================================== */

:root {
	--font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
	--font-display: "Libre Franklin", var(--font-sans);
	--font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, "Cascadia Code", monospace;

	--radius: 0.75rem;
	--radius-sm: 0.5rem;
	--radius-lg: 1rem;

	--background: oklch(0.99 0.008 28);
	--foreground: oklch(0.15 0.012 28);
	--card: oklch(0.98 0.01 28);
	--card-foreground: oklch(0.15 0.012 28);
	--primary: oklch(0.58 0.18 28);
	--primary-foreground: oklch(0.99 0.008 28);
	--secondary: oklch(0.92 0.015 28);
	--muted-foreground: oklch(0.48 0.02 28);
	--accent: oklch(0.88 0.08 28);
	--border: oklch(0.88 0.015 28);
	--ring: oklch(0.58 0.18 28);

	--max-width: 1280px;
}

/* Fallback colors for browsers without oklch() support. */
@supports not (color: oklch(0.5 0.1 28)) {
	:root {
		--background: #fdfaf8;
		--foreground: #221a17;
		--card: #f7f1ee;
		--card-foreground: #221a17;
		--primary: #c1440e;
		--primary-foreground: #fdfaf8;
		--secondary: #ece2dd;
		--muted-foreground: #6f6560;
		--accent: #e8cdbb;
		--border: #ddd0c8;
		--ring: #c1440e;
	}
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--background);
	color: var(--foreground);
	font-family: var(--font-sans);
	font-size: 16px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: color-mix(in srgb, var(--primary) 20%, transparent); color: var(--primary); }

.container {
	max-width: var(--max-width);
	margin: 0 auto;
	padding: 0 1.25rem;
}

.icon { width: 1.25em; height: 1.25em; flex-shrink: 0; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.65s cubic-bezier(0.22,1,0.36,1), transform 0.65s cubic-bezier(0.22,1,0.36,1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	font-weight: 600;
	font-size: 0.9375rem;
	padding: 0.65rem 1.25rem;
	border-radius: var(--radius-sm);
	border: 1px solid transparent;
	cursor: pointer;
	transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
	white-space: nowrap;
}
.btn--primary { background: var(--primary); color: var(--primary-foreground); box-shadow: 0 1px 2px rgba(0,0,0,0.08); }
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 6px 16px color-mix(in srgb, var(--primary) 35%, transparent); }
.btn--outline { background: transparent; border-color: var(--border); color: var(--foreground); }
.btn--outline:hover { background: var(--secondary); }
.btn--lg { padding: 0.85rem 1.5rem; font-size: 1rem; }
.btn--block { width: 100%; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
	position: fixed;
	inset-inline: 0;
	top: 0;
	z-index: 50;
	background: color-mix(in srgb, var(--background) 90%, transparent);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid color-mix(in srgb, var(--foreground) 8%, transparent);
}
.site-header__inner {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.75rem 0;
}
.site-logo { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }

/* Custom logo uploaded via Appearance > Customize > Site Identity.
   Without this cap, a full-size wordmark image (e.g. 900px wide) forces
   the nav to wrap onto a second line — constrain it to a sensible header height.
   !important is used deliberately: WordPress core sometimes prints inline
   width/height attributes on the custom-logo <img>, and this must win. */
.site-logo a,
.custom-logo-link {
	display: flex !important;
	align-items: center;
	height: 100%;
}
.site-logo img,
.custom-logo-link img,
img.custom-logo {
	max-height: 84px !important;
	height: 84px !important;
	width: auto !important;
	max-width: 480px !important;
	object-fit: contain;
	display: block;
}

.site-logo__mark {
	display: flex; align-items: center; justify-content: center;
	width: 2.5rem; height: 2.5rem;
	background: var(--primary); color: var(--primary-foreground);
	font-weight: 800; font-size: 1.125rem;
	border-radius: var(--radius-sm);
}
.site-logo__text { display: flex; flex-direction: column; line-height: 1.2; }
.site-logo__name { font-weight: 700; font-size: 1rem; font-family: var(--font-display); }
.site-logo__tagline { font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.2em; color: var(--muted-foreground); }

.site-nav { display: none; min-width: 0; flex-shrink: 1; overflow-x: auto; }
.site-nav__list { display: flex; align-items: center; gap: 1.5rem; flex-wrap: nowrap; }
.site-nav__list li { flex-shrink: 0; white-space: nowrap; }
.site-nav__list a { font-size: 0.875rem; font-weight: 500; color: var(--muted-foreground); transition: color 0.15s ease; white-space: nowrap !important; }
.site-nav__list a:hover { color: var(--foreground); }

.site-header__cta { display: none; flex-shrink: 0; }

@media (min-width: 1024px) and (max-width: 1280px) {
	.site-nav__list { gap: 1rem; }
	.site-nav__list a { font-size: 0.8rem; }
}

.site-menu-toggle {
	display: inline-flex; align-items: center; justify-content: center;
	width: 2.5rem; height: 2.5rem;
	background: transparent; border: 1px solid var(--border); border-radius: var(--radius-sm);
	cursor: pointer; color: var(--foreground);
}

.site-mobile-nav { display: none; border-top: 1px solid var(--border); background: var(--background); }
.site-mobile-nav.is-open { display: block; }
.site-mobile-nav__list { display: flex; flex-direction: column; gap: 1rem; padding: 1rem 1.25rem 1.5rem; }
.site-mobile-nav__list a { font-size: 0.95rem; font-weight: 500; color: var(--muted-foreground); }

@media (min-width: 1024px) {
	.site-nav { display: block; }
	.site-header__cta { display: block; }
	.site-menu-toggle { display: none; }
	.site-mobile-nav { display: none !important; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { position: relative; min-height: 100vh; padding-top: 8rem; overflow: hidden; isolation: isolate; }
.hero__bg {
	position: absolute; inset: 0; z-index: -2;
	background:
		radial-gradient(circle at 20% 10%, color-mix(in srgb, var(--primary) 22%, transparent), transparent 32%),
		linear-gradient(135deg, color-mix(in srgb, var(--foreground) 8%, transparent), transparent 40%);
}
.hero__grid {
	display: grid;
	gap: 3rem;
	align-items: center;
	padding-bottom: 5rem;
	padding-top: 2rem;
}
.pill {
	display: inline-flex; align-items: center; gap: 0.5rem;
	margin-bottom: 1.5rem;
	padding: 0.5rem 0.85rem;
	border: 1px solid color-mix(in srgb, var(--primary) 20%, transparent);
	background: color-mix(in srgb, var(--primary) 10%, transparent);
	color: var(--primary);
	font-weight: 700; font-size: 0.875rem;
	border-radius: var(--radius-sm);
}
.hero__title { font-size: clamp(2.25rem, 5vw, 4.5rem); line-height: 1.05; max-width: 42rem; }
.hero__lede { margin-top: 1.5rem; max-width: 38rem; font-size: clamp(1.05rem, 1.5vw, 1.25rem); line-height: 1.7; color: var(--muted-foreground); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.hero__stats { display: grid; gap: 1rem; grid-template-columns: 1fr; margin-top: 2.5rem; }
.stat-card { border: 1px solid var(--border); background: var(--card); border-radius: var(--radius); padding: 1rem; box-shadow: 0 1px 2px rgba(0,0,0,0.04); }
.stat-card__value { font-family: var(--font-mono); font-size: 1.5rem; font-weight: 700; color: var(--primary); }
.stat-card__label { margin-top: 0.25rem; font-size: 0.875rem; color: var(--muted-foreground); }

.hero__media { position: relative; }
.hero__media-glow { position: absolute; inset: -1rem; z-index: -1; border-radius: 2rem; background: color-mix(in srgb, var(--primary) 10%, transparent); filter: blur(48px); }
.hero__media-frame { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); background: var(--card); box-shadow: 0 25px 60px -12px rgba(0,0,0,0.25); }
.hero__media-frame img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; }
.hero__media-badge {
	position: absolute; left: 1.5rem; right: 1.5rem; bottom: -2rem;
	display: flex; gap: 0.75rem;
	background: color-mix(in srgb, var(--background) 95%, transparent);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 1.1rem;
	box-shadow: 0 20px 40px -8px rgba(0,0,0,0.2);
	backdrop-filter: blur(6px);
}
.hero__media-badge .icon { color: var(--primary); margin-top: 0.15rem; }
.hero__media-badge-title { font-weight: 700; margin: 0; }
.hero__media-badge-text { margin: 0.35rem 0 0; font-size: 0.875rem; color: var(--muted-foreground); }

@media (min-width: 1024px) {
	.hero__grid { grid-template-columns: 1.02fr 0.98fr; }
	.hero__stats { grid-template-columns: repeat(3, 1fr); }
	.hero__media-badge { left: auto; right: 2rem; width: 20rem; }
}

/* ==========================================================================
   Sections (shared)
   ========================================================================== */
.section { padding: 6rem 0; }
.section--card { background: var(--card); }
.section--dark { background: var(--foreground); color: var(--background); }
.section--dark .eyebrow { color: var(--primary); }

.section-intro { max-width: 48rem; }
.eyebrow { font-size: 0.8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.2em; color: var(--primary); }
.section-title { margin-top: 1rem; font-size: clamp(1.75rem, 3.5vw, 3rem); line-height: 1.15; }
.section-lede { margin-top: 1.25rem; font-size: clamp(1.05rem, 1.5vw, 1.15rem); line-height: 1.7; color: var(--muted-foreground); max-width: 44rem; }
.section-lede--dark { color: color-mix(in srgb, var(--background) 70%, transparent); }

.grid { display: grid; gap: 1.5rem; margin-top: 3rem; }
.grid--3 { grid-template-columns: 1fr; }
.grid--2 { grid-template-columns: 1fr; gap: 3rem; margin-top: 0; }
@media (min-width: 1024px) {
	.grid--3 { grid-template-columns: repeat(3, 1fr); }
	.grid--2 { grid-template-columns: 1fr 1fr; }
}
.grid--center { align-items: center; }

.card {
	background: var(--background);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	padding: 1.75rem;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -16px rgba(0,0,0,0.15); }
.card__icon {
	display: inline-flex; align-items: center; justify-content: center;
	width: 3rem; height: 3rem; margin-bottom: 1.25rem;
	background: color-mix(in srgb, var(--primary) 10%, transparent);
	color: var(--primary);
	border-radius: var(--radius);
}
.card__title { font-size: 1.25rem; }
.card__text { margin-top: 1rem; line-height: 1.7; color: var(--muted-foreground); }

.media-frame { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); background: var(--card); box-shadow: 0 20px 40px -16px rgba(0,0,0,0.2); }
.media-frame img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; }
.media-frame--dark { border-color: color-mix(in srgb, var(--background) 12%, transparent); background: color-mix(in srgb, var(--background) 5%, transparent); }
.media-frame--dark img { opacity: 0.95; }

.outcome-list { display: grid; gap: 1rem; margin-top: 2rem; }
.outcome-item { display: flex; gap: 0.75rem; border: 1px solid var(--border); background: var(--card); border-radius: var(--radius); padding: 1rem; }
.outcome-item .icon { color: var(--primary); margin-top: 0.15rem; }
.outcome-item span { font-size: 0.9375rem; line-height: 1.6; color: var(--muted-foreground); }

.dark-card {
	border: 1px solid color-mix(in srgb, var(--background) 12%, transparent);
	background: color-mix(in srgb, var(--background) 6%, transparent);
	border-radius: var(--radius-lg);
	padding: 1.25rem;
}
.dark-card .icon { color: var(--primary); }
.dark-card h3 { margin-top: 1rem; color: var(--background); font-size: 1rem; }
.dark-card p { margin-top: 0.5rem; font-size: 0.875rem; line-height: 1.6; color: color-mix(in srgb, var(--background) 65%, transparent); }

.info-box { margin-top: 2rem; border: 1px solid var(--border); background: var(--card); border-radius: var(--radius-lg); padding: 1.5rem; }
.info-box h3 { font-size: 1.05rem; }
.info-box p { margin-top: 0.75rem; line-height: 1.7; color: var(--muted-foreground); }

/* ==========================================================================
   Pricing
   ========================================================================== */
.plan-card {
	position: relative;
	display: flex;
	flex-direction: column;
	background: var(--background);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	padding: 2rem 1.75rem 1.75rem;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.plan-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -16px rgba(0,0,0,0.15); }
.plan-card--featured { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary), 0 20px 40px -16px color-mix(in srgb, var(--primary) 30%, transparent); }
.plan-card__badge {
	position: absolute; top: -0.75rem; left: 1.75rem;
	background: var(--primary); color: var(--primary-foreground);
	font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
	padding: 0.3rem 0.75rem; border-radius: 999px;
}
.plan-card__title { font-size: 1.25rem; }
.plan-card__price { display: flex; align-items: baseline; gap: 0.5rem; margin-top: 1rem; flex-wrap: wrap; }
.octoberit-plan-price { font-family: var(--font-mono); font-size: 2rem; font-weight: 700; color: var(--foreground); }
.octoberit-plan-price--tbe { color: var(--primary); letter-spacing: 0.02em; }
.octoberit-plan-price-note { font-size: 0.875rem; color: var(--muted-foreground); }
.plan-card__features { display: grid; gap: 0.75rem; margin: 1.75rem 0; }
.plan-card__features li { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.9rem; line-height: 1.5; color: var(--muted-foreground); }
.plan-card__features .icon { color: var(--primary); width: 1.1em; height: 1.1em; margin-top: 0.15rem; }
.plan-card__blurb { font-size: 0.8125rem; font-style: italic; color: var(--muted-foreground); margin-bottom: 1.25rem; }
.plan-card .btn { margin-top: auto; }

.pricing-footnote { margin-top: 3rem; text-align: center; font-size: 0.875rem; color: var(--muted-foreground); max-width: 46rem; margin-left: auto; margin-right: auto; }

/* ==========================================================================
   Approach
   ========================================================================== */
.approach-card { background: var(--background); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.75rem; box-shadow: 0 1px 2px rgba(0,0,0,0.04); }
.approach-card__step { font-family: var(--font-mono); font-weight: 700; color: var(--primary); font-size: 0.875rem; }
.approach-card__title { margin-top: 1.25rem; font-size: 1.25rem; }
.approach-card__text { margin-top: 1rem; line-height: 1.7; color: var(--muted-foreground); }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-section { position: relative; isolation: isolate; overflow: hidden; text-align: center; }
.contact-section__bg {
	position: absolute; inset: 0; z-index: -1;
	background: radial-gradient(circle at 70% 20%, color-mix(in srgb, var(--primary) 20%, transparent), transparent 34%);
}
.contact-section__inner { max-width: 56rem; margin: 0 auto; }
.contact-icon {
	display: inline-flex; align-items: center; justify-content: center;
	width: 3.5rem; height: 3.5rem; margin: 0 auto 1.5rem;
	background: var(--primary); color: var(--primary-foreground);
	border-radius: var(--radius-lg);
	box-shadow: 0 10px 25px -6px color-mix(in srgb, var(--primary) 50%, transparent);
}
.contact-details { display: flex; flex-direction: column; align-items: center; gap: 0.85rem; margin-top: 2rem; }
.contact-detail { display: inline-flex; align-items: center; gap: 0.6rem; font-size: 0.9375rem; color: var(--muted-foreground); }
.contact-detail .icon { color: var(--primary); }
@media (min-width: 768px) {
	.contact-details { flex-direction: row; justify-content: center; flex-wrap: wrap; gap: 2rem; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { border-top: 1px solid var(--border); background: var(--card); padding: 2.5rem 0; }
.site-footer__inner { display: flex; flex-direction: column; gap: 1rem; font-size: 0.875rem; color: var(--muted-foreground); }
.site-footer__links, .site-footer__nav { display: flex; gap: 1.5rem; }
.site-footer a:hover { color: var(--foreground); }
@media (min-width: 768px) {
	.site-footer__inner { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* ==========================================================================
   Basic article (fallback templates)
   ========================================================================== */
.basic-article h1 { font-size: 2rem; margin-bottom: 1.5rem; }
.basic-article__content { line-height: 1.8; color: var(--muted-foreground); }
.basic-article__content p { margin-bottom: 1.25rem; }
