/* ============================================================
   Innermost Labs theme — elegant, minimal, classic.
   No cards or boxed sections: content is dot-bullet lists with
   clean hairline transitions between sections. System sans only.
   Light/dark switching, cookie consent and CF7 styling live in plugins.
   ============================================================ */

/* ---- Light (white) is the DEFAULT everywhere — front end AND editor. ----- */
:root {
	--ino-surface: #f3f4f6;
	--ino-surface-2: #ffffff;
	--ino-border: rgba(0, 0, 0, .14);
	--ino-border-soft: rgba(0, 0, 0, .09);
	--ino-text: #16181d;
	--ino-muted: rgba(0, 0, 0, .62);
	--ino-faint: rgba(0, 0, 0, .42);
	--ino-input-bg: rgba(0, 0, 0, .03);
	--ino-track: rgba(0, 0, 0, .2);
	--ino-shadow: rgba(0, 0, 0, .16);
}

/* ---- Dark is opt-in via the switcher (no OS-following). -----------------
   The theme-toggle plugin sets html[data-theme="dark"]; nothing else does. */
html[data-theme="dark"] {
	--ino-surface: #161616;
	--ino-surface-2: #1a1a1a;
	--ino-border: rgba(255, 255, 255, .14);
	--ino-border-soft: rgba(255, 255, 255, .10);
	--ino-text: #ffffff;
	--ino-muted: rgba(255, 255, 255, .72);
	--ino-faint: rgba(255, 255, 255, .42);
	--ino-input-bg: rgba(0, 0, 0, .22);
	--ino-track: rgba(255, 255, 255, .18);
	--ino-shadow: rgba(0, 0, 0, .50);
	--wp--preset--color--base: #0a0a0a;
	--wp--preset--color--contrast: #ffffff;
	--wp--preset--color--contrast-2: #0d0d0d;
	--wp--preset--color--contrast-3: #a4a4a4;
}

/* ---- Typography rhythm ------------------------------------- */
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
.ino-lead { font-size: 19px; line-height: 1.6; color: var(--ino-muted); }
.ino-dim { color: var(--ino-muted); }

/* ---- Eyebrow (small-caps red kicker) ---------------------- */
.ino-eyebrow {
	color: var(--wp--preset--color--primary);
	font-weight: 600;
	letter-spacing: .18em;
	text-transform: uppercase;
	font-size: 12px;
	margin: 0 0 1rem;
}

/* ---- Section title (prominent, with a short red accent) --- */
.ino-section-title {
	font-size: clamp(22px, 2.6vw, 28px);
	font-weight: 700;
	letter-spacing: -.01em;
	line-height: 1.2;
	color: var(--ino-text);
	margin: 0 0 1.6rem;
	padding-bottom: .7rem;
	position: relative;
}
.ino-section-title::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 34px;
	height: 2px;
	background: var(--wp--preset--color--primary);
}

/* ---- Sections: clean hairline transitions -----------------------------
   Width is handled natively by the theme's contentSize (so the editor and the
   front end match exactly). Each section just adds vertical rhythm + a rule. */
.ino-section {
	padding-top: 3rem;
	padding-bottom: 3rem;
	border-top: 1px solid var(--ino-border-soft);
}
/* The first section under the content has no rule above it. */
:where(.wp-block-post-content, .entry-content) > .ino-section:first-child { border-top: 0; padding-top: 2rem; }

/* ---- Hero ------------------------------------------------- */
.ino-hero-title { font-size: clamp(40px, 6vw, 60px); }
.ino-hero .ino-lead { margin-top: 1.25rem; font-size: 20px; }
.ino-hero .wp-block-buttons { margin-top: 2rem; }

/* ---- Dot-bullet lists ------------------------------------- */
.ino-bullets { list-style: none; padding-left: 0; margin: 0; }
.ino-bullets li {
	position: relative;
	padding-left: 1.4rem;
	margin: 0 0 .95rem;
	line-height: 1.6;
	font-size: 17px;
}
.ino-bullets li::before {
	content: "";
	position: absolute;
	left: .15rem;
	top: .62em;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: var(--wp--preset--color--primary);
}
.ino-bullets a { color: var(--ino-text); text-decoration: none; }
.ino-bullets a:hover { color: var(--wp--preset--color--primary); }
.ino-bullets strong { font-weight: 700; }

/* ---- Contact details -------------------------------------- */
.ino-contact-details { list-style: none; padding-left: 0; line-height: 2.1; font-size: 16px; margin: 1.5rem 0 0; }
.ino-contact-details a { text-decoration: none; color: var(--ino-text); }
.ino-contact-details a:hover { color: var(--wp--preset--color--primary); }

/* =====================================================================
   HEADER ("top footer") — sticky, themed, responsive with right burger
   ===================================================================== */
.ino-header { position: static; }
.ino-headbar {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--wp--preset--color--base);
	border-bottom: 1px solid var(--ino-border-soft);
}
.ino-headbar-inner {
	max-width: 1280px;
	margin: 0 auto;
	padding: 1.05rem 1.25rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	flex-wrap: nowrap;
}
[x-cloak] { display: none !important; }
.ino-brand {
	font-size: 28px;
	font-weight: 800;
	letter-spacing: -.02em;
	color: var(--ino-text);
	text-decoration: none;
	white-space: nowrap;
	line-height: 1;
}
.ino-brand-accent { color: var(--wp--preset--color--primary); }
.ino-nav { display: flex; align-items: center; gap: 1.7rem; flex-wrap: nowrap; }
.ino-nav-item { position: relative; }
.ino-nav-link {
	display: inline-flex;
	align-items: center;
	gap: .35rem;
	color: var(--ino-text);
	text-decoration: none;
	font-size: 15px;
	font-weight: 600;
	opacity: .82;
	white-space: nowrap;
	transition: opacity .15s, color .15s;
}
.ino-nav-link:hover { opacity: 1; color: var(--wp--preset--color--primary); }
.ino-nav-link.has-sub::after {
	content: "";
	width: 6px; height: 6px;
	margin-top: -3px;
	border-right: 1.6px solid currentColor;
	border-bottom: 1.6px solid currentColor;
	transform: rotate(45deg);
	opacity: .55;
}
.ino-nav-item:hover .ino-nav-link, .ino-nav-item:focus-within .ino-nav-link { opacity: 1; }

/* Hover flyout dropdown */
.ino-dropdown {
	position: absolute;
	top: 100%;
	left: 0;
	margin-top: .6rem;
	min-width: 230px;
	display: flex;
	flex-direction: column;
	gap: .1rem;
	background: var(--ino-surface);
	border: 1px solid var(--ino-border);
	border-radius: 12px;
	padding: .5rem;
	box-shadow: 0 18px 50px var(--ino-shadow);
	z-index: 102;
}
.ino-dropdown::before { content: ""; position: absolute; left: 0; right: 0; top: -.6rem; height: .6rem; }
.ino-dropdown a {
	padding: .5rem .7rem;
	border-radius: 8px;
	color: var(--ino-text);
	text-decoration: none;
	font-size: 14px;
	font-weight: 500;
	white-space: nowrap;
	transition: background .12s, color .12s;
}
.ino-dropdown a:hover { background: var(--ino-input-bg); color: var(--wp--preset--color--primary); }

/* Social icons */
.ino-social { display: flex; align-items: center; gap: 1rem; }
.ino-social-link { color: var(--ino-faint); display: inline-flex; transition: color .15s; }
.ino-social-link:hover { color: var(--wp--preset--color--primary); }
.ino-social-link svg { display: block; }

/* Hamburger (hidden until the nav no longer fits) */
.ino-burger {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 40px; height: 40px;
	padding: 0;
	background: none;
	border: 1px solid var(--ino-border);
	border-radius: 8px;
	cursor: pointer;
}
.ino-burger span { display: block; width: 18px; height: 2px; margin: 0 auto; background: var(--ino-text); transition: transform .2s, opacity .2s; }
.ino-headbar.is-collapsed .ino-nav { display: none; }
.ino-headbar.is-collapsed .ino-burger { display: flex; }
.ino-headbar.is-open .ino-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.ino-headbar.is-open .ino-burger span:nth-child(2) { opacity: 0; }
.ino-headbar.is-open .ino-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Right-side hamburger panel (collapsed nav) */
.ino-menu {
	position: absolute;
	right: 1.25rem;
	top: calc(100% + 6px);
	width: min(290px, calc(100vw - 2.5rem));
	max-height: calc(100vh - 90px);
	overflow: auto;
	background: var(--ino-surface);
	border: 1px solid var(--ino-border);
	border-radius: 14px;
	padding: 1.1rem 1.2rem;
	display: flex;
	flex-direction: column;
	gap: 1.1rem;
	box-shadow: 0 18px 50px var(--ino-shadow);
	z-index: 101;
}
.ino-menu-group { display: flex; flex-direction: column; }
.ino-menu-top { color: var(--ino-text); text-decoration: none; font-size: 16px; font-weight: 700; padding: .15rem 0; }
.ino-menu-top:hover { color: var(--wp--preset--color--primary); }
.ino-menu-sub { display: flex; flex-direction: column; gap: .1rem; margin: .4rem 0 0 .2rem; padding-left: .85rem; border-left: 1px solid var(--ino-border-soft); }
.ino-menu-sub a { color: var(--ino-muted); text-decoration: none; font-size: 14px; padding: .28rem 0; }
.ino-menu-sub a:hover { color: var(--wp--preset--color--primary); }

/* =====================================================================
   FOOTER ("down footer") — cohesive, themed, integrated copyright
   ===================================================================== */
.ino-footer {
	margin-top: 2rem;
	background: var(--wp--preset--color--contrast-2);
	border-top: 1px solid var(--ino-border-soft);
}
.ino-foot-brand {
	display: inline-block;
	font-size: 30px;
	font-weight: 800;
	letter-spacing: -.02em;
	color: var(--ino-text);
	text-decoration: none;
	margin-bottom: .6rem;
	line-height: 1;
}
.ino-foot-h {
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .14em;
	color: var(--ino-muted);
	margin: 0 0 1.1rem;
}
.ino-foot-list { list-style: none; padding-left: 0; margin: 0; line-height: 2.05; }
.ino-foot-list a { color: var(--ino-muted); text-decoration: none; font-size: 14.5px; transition: color .15s; }
.ino-foot-list a:hover { color: var(--wp--preset--color--primary); }
.ino-foot-list li { margin: 0; }

.ino-foot-bottom { margin-top: 3rem; padding-top: 1.4rem; border-top: 1px solid var(--ino-border-soft); gap: 1.25rem 1.5rem; }
.ino-foot-social { gap: 1.15rem; }
.ino-foot-social .ino-social-link { color: var(--ino-faint); }
.ino-foot-social .ino-social-link:hover { color: var(--wp--preset--color--primary); }
.ino-foot-copy { margin: 0; font-size: 13px; color: var(--ino-faint); letter-spacing: .02em; }
.ino-foot-legal { margin: 0; display: flex; gap: 1.4rem; flex-wrap: wrap; }
.ino-foot-legal a { color: var(--ino-faint); text-decoration: none; font-size: 13px; transition: color .15s; }
.ino-foot-legal a:hover { color: var(--wp--preset--color--primary); }

/* ---- Reduced motion --------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	.ino-nav a, .ino-social-link, .ino-burger span, .ino-foot-list a, .ino-foot-legal a { transition: none; }
}
