/*
Theme Name: CISO Advisor
Theme URI: https://ciso-audit.cloud
Author: Site owner
Description: A lightweight, accessible, bilingual (English/German) landing theme for an independent Cyber Security Advisor / vCISO. One tiny local script (mail link protection), no external requests, harvester-proof email-only contact, built-in SEO markup.
Version: 1.7.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ciso-advisor
*/

/* ---------- Tokens ----------
   Navy   = trust and authority (hero, footer, headings)
   Blue   = links and structure
   Amber  = the single action colour: complementary to blue, so the
            contact button is the first thing the eye finds
   Green  = "secure / done" checkmarks only                                  */
:root {
	--ink: #0a1f44;
	--navy-2: #12306b;
	--text: #334155;
	--muted: #56657a;
	--tint: #eef3fb;
	--paper: #ffffff;
	--line: #d5deec;
	--blue: #1d4ed8;
	--blue-dark: #1e40af;
	--cta: #f5a623;
	--cta-hover: #e39510;
	--ok: #15803d;
	--serif: Georgia, "Times New Roman", Times, serif;
	--sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--wrap: 1160px;
}

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

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-padding-top: 5.5rem;
}
@media (prefers-reduced-motion: no-preference) {
	html { scroll-behavior: smooth; }
}

html { color-scheme: light; }

body {
	overflow-wrap: break-word;
	margin: 0;
	font-family: var(--sans);
	font-size: 1.0625rem;
	line-height: 1.65;
	color: var(--text);
	background: var(--paper);
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
	font-family: var(--serif);
	color: var(--ink);
	font-weight: 700;
	line-height: 1.2;
	margin: 0 0 .6em;
}
h1 { font-size: 2rem; font-size: clamp(1.85rem, 1.1rem + 3.6vw, 3.4rem); letter-spacing: -.01em; }
h2 { font-size: 1.75rem; font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.1rem); }
h3 { font-size: 1.2rem; margin-bottom: .4em; }
p { margin: 0 0 1em; }
a { color: var(--blue); text-underline-offset: .15em; }
a:hover { color: var(--blue-dark); }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }
@supports (padding: max(0px)) {
	.wrap { padding-left: max(1.25rem, env(safe-area-inset-left)); padding-right: max(1.25rem, env(safe-area-inset-right)); }
}
img, svg, video { max-width: 100%; height: auto; }
.brand-mark { height: 44px; }

/* Hyphenation for German so long compound words never overflow small screens */
html[lang|="de"] { -webkit-hyphens: auto; -ms-hyphens: auto; hyphens: auto; }
.measure { max-width: 40em; }

.skip-link {
	position: absolute; left: -9999px; top: 0; z-index: 100;
	background: var(--ink); color: #fff; padding: .75rem 1rem;
}
.skip-link:focus { left: 0; }

/* ---------- Header ---------- */
.site-header {
	position: -webkit-sticky;
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--paper);
	border-bottom: 1px solid var(--line);
}
.header-inner {
	display: -webkit-box; display: -ms-flexbox; display: flex;
	-ms-flex-wrap: wrap; flex-wrap: wrap;
	-webkit-box-align: center; -ms-flex-align: center; align-items: center;
	-webkit-box-pack: justify; -ms-flex-pack: justify; justify-content: space-between;
	padding-top: .75rem; padding-bottom: .75rem;
}
.brand-wrap { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-align: center; -ms-flex-align: center; align-items: center; margin-right: 1rem; }
.brand-mark { display: block; width: 44px; height: 44px; margin-right: .7rem; -webkit-flex-shrink: 0; flex-shrink: 0; }
.brand-wrap .custom-logo-link { display: block; margin-right: .75rem; line-height: 0; }
.brand-wrap .custom-logo { height: 40px; width: auto; max-width: 160px; }
.brand { text-decoration: none; color: var(--ink); display: block; line-height: 1.2; }
.brand-name { display: block; font-family: var(--serif); font-weight: 700; font-size: 1.15rem; }
.brand-role { display: block; font-size: .85rem; color: var(--muted); }

.site-nav { display: -webkit-box; display: -ms-flexbox; display: flex; -ms-flex-wrap: wrap; flex-wrap: wrap; -webkit-box-align: center; -ms-flex-align: center; align-items: center; }
.site-nav a {
	color: var(--ink); text-decoration: none; font-size: .95rem; font-weight: 500;
	padding: .5rem .75rem;
}
.site-nav a:hover { color: var(--blue); }
.site-nav .nav-lang { color: var(--muted); border-left: 1px solid var(--line); margin-left: .25rem; padding-left: 1rem; }
.site-nav .nav-cta {
	background: var(--cta); color: var(--ink); border-radius: 4px; margin-left: .5rem; font-weight: 600;
}
.site-nav .nav-cta:hover { background: var(--cta-hover); color: var(--ink); }

@media (max-width: 720px) {
	.site-header { position: static; }
	.header-inner { -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center; text-align: center; }
	.brand-wrap { margin-right: 0; margin-bottom: .35rem; width: 100%; -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center; }
	.site-nav { -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center; width: 100%; }
	.site-nav a { padding: .45rem .5rem; font-size: .9rem; }
	.site-nav .nav-lang { border-left: 0; margin-left: 0; padding-left: .5rem; }
	.site-nav .nav-cta { margin-left: .25rem; }
}

/* ---------- Buttons ---------- */
.btn {
	display: inline-block; padding: .9rem 1.5rem; border-radius: 4px;
	font-weight: 700; text-decoration: none; border: 2px solid transparent;
	line-height: 1.2; word-break: break-word;
}
.btn-primary { background: var(--cta); color: var(--ink); }
.btn-primary:hover { background: var(--cta-hover); color: var(--ink); }
.btn-outline { border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn-outline:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, .08); }

/* ---------- Hero ---------- */
.hero {
	background: var(--ink);
	background: linear-gradient(135deg, var(--ink) 0%, var(--navy-2) 100%);
	color: #d6e0f0; padding: 3.5rem 0 4rem;
}
.hero h1 { color: #fff; }
.hero .lead { font-size: 1.15rem; max-width: 34em; color: #d6e0f0; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); grid-gap: 2.5rem; gap: 2.5rem; align-items: center; }
.hero-actions { margin: 1.75rem 0 0; }
.hero-actions .btn { margin: 0 .75rem .75rem 0; }

.scope { background: var(--paper); color: var(--text); border-radius: 6px; padding: 1.5rem 1.5rem .5rem; border-top: 4px solid var(--cta); }
.scope-title { font-size: 1.05rem; padding-bottom: .75rem; border-bottom: 2px solid var(--ink); margin-bottom: 0; }
.scope dl { margin: 0; }
.scope dl > div { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); grid-gap: 1rem; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.scope dl > div:last-child { border-bottom: 0; }
.scope dt { font-weight: 600; color: var(--ink); }
.scope dd { margin: 0; }

@media (min-width: 900px) {
	.hero { padding: 5rem 0 5.5rem; }
	.hero-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); grid-gap: 4rem; gap: 4rem; }
}
@media (max-width: 420px) {
	.scope dl > div { grid-template-columns: minmax(0, 1fr); grid-gap: .15rem; gap: .15rem; }
}

/* ---------- Standards band ---------- */
.band { background: var(--paper); border-bottom: 1px solid var(--line); }
.band-inner { display: -webkit-box; display: -ms-flexbox; display: flex; -ms-flex-wrap: wrap; flex-wrap: wrap; -webkit-box-align: center; -ms-flex-align: center; align-items: center; padding-top: 1.25rem; padding-bottom: 1.25rem; }
.band-label { margin: 0 2rem 0 0; font-weight: 600; color: var(--ink); font-size: .95rem; }
.band-list { list-style: none; margin: 0; padding: 0; display: -webkit-box; display: -ms-flexbox; display: flex; -ms-flex-wrap: wrap; flex-wrap: wrap; }
.band-list li { padding: .25rem 1.1rem; border-left: 1px solid var(--line); color: var(--muted); font-size: .95rem; }
.band-list li:first-child { border-left: 0; padding-left: 0; }
@media (max-width: 640px) {
	.band-label { width: 100%; margin: 0 0 .6rem; }
	.band-list li, .band-list li:first-child { border: 1px solid var(--line); border-radius: 999px; padding: .1rem .75rem; margin: 0 .4rem .4rem 0; font-size: .9rem; }
}

/* ---------- Sections ---------- */
.section { padding: 3.5rem 0; }
.section-tint { background: var(--tint); }
.section-intro { color: var(--muted); font-size: 1.1rem; }
@media (min-width: 900px) { .section { padding: 5rem 0; } }

/* Service cards */
.cards { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); grid-gap: 1.25rem; gap: 1.25rem; }
.card { background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--blue); border-radius: 6px; padding: 1.5rem 1.5rem 1.25rem; }
.card h3 { font-size: 1.15rem; }
.card > p { color: var(--text); }
.checks { list-style: none; margin: 1rem 0 0; padding: 1rem 0 0; border-top: 1px solid var(--line); }
.checks li { position: relative; padding-left: 1.6rem; margin: 0 0 .4rem; font-size: .97rem; }
.checks li::before {
	content: ""; position: absolute; left: .2rem; top: .3em; width: .38rem; height: .72rem;
	border: solid var(--ok); border-width: 0 2px 2px 0;
	-webkit-transform: rotate(45deg); transform: rotate(45deg);
}
@media (min-width: 700px) { .cards { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (min-width: 1040px) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Approach */
.steps { list-style: none; margin: 2rem 0 0; padding: 0; counter-reset: step; display: grid; grid-template-columns: minmax(0, 1fr); grid-gap: 1.5rem; gap: 1.5rem; }
.steps li { counter-increment: step; padding-top: 1rem; border-top: 3px solid var(--blue); }
.steps h3::before { content: counter(step) ". "; color: var(--blue); }
.steps p { margin: 0; }
@media (min-width: 640px) { .steps { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (min-width: 960px) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Background */
.two-col { display: grid; grid-template-columns: minmax(0, 1fr); grid-gap: 1rem; gap: 1rem; }
@media (min-width: 900px) { .two-col { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); grid-gap: 4rem; gap: 4rem; } }
.about { font-size: 1.15rem; margin: 0; }

/* FAQ */
.faq { max-width: 48rem; margin-top: 1.5rem; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 1.1rem 2.25rem 1.1rem 0; font-weight: 600; color: var(--ink); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .25rem; top: .85rem; font-size: 1.5rem; line-height: 1; color: var(--blue); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0 0 1.25rem; max-width: 40em; }

/* Contact */
.contact-section { background: var(--ink); color: #d6e0f0; }
.contact-section h2 { color: #fff; }
.contact .btn { font-size: 1.05rem; }

/* Email address shown reversed in the HTML and flipped for humans (harvester protection) */
.mail-rev, .mask { unicode-bidi: bidi-override; direction: rtl; display: inline-block; }
.mask.is-revealed { unicode-bidi: normal; direction: ltr; }

/* ---------- Generic pages ---------- */
.page-main { padding: 3rem 0 4rem; min-height: 60vh; }
.prose { max-width: 46rem; }
.prose img { max-width: 100%; height: auto; }
.prose h1 { margin-bottom: .8em; }
.prose h2 { font-size: 1.35rem; margin-top: 2rem; }
.prose h3 { font-size: 1.1rem; margin-top: 1.5rem; }
.prose ul, .prose ol { padding-left: 1.25rem; }
.inline-mail { color: var(--blue); font-weight: 600; text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer { background: #071633; color: #b9c7de; font-size: .9rem; padding: 1.75rem 0; }
.footer-inner { display: -webkit-box; display: -ms-flexbox; display: flex; -ms-flex-wrap: wrap; flex-wrap: wrap; -webkit-box-pack: justify; -ms-flex-pack: justify; justify-content: space-between; }
.footer-inner p { margin: 0 1rem 0 0; }
.site-footer a { color: #fff; margin-left: 1.25rem; }
.site-footer a:first-child { margin-left: 0; }

/* ---------- Device adaptations ---------- */
/* Small phones (including folded foldables, 280px) */
@media (max-width: 420px) {
	.hero-actions .btn { display: block; width: 100%; text-align: center; margin-right: 0; }
	.contact .btn { display: block; width: 100%; text-align: center; }
	.card { padding: 1.25rem 1.1rem 1rem; }
	.scope { padding: 1.25rem 1.1rem .25rem; }
}
/* Touch screens: comfortable 44px tap targets */
@media (pointer: coarse) {
	.site-nav a { min-height: 44px; display: -webkit-inline-box; display: -ms-inline-flexbox; display: inline-flex; -webkit-box-align: center; -ms-flex-align: center; align-items: center; }
	.site-footer a { display: inline-block; padding: .5rem 0; }
	.faq summary { padding-top: 1.25rem; padding-bottom: 1.25rem; }
}
/* Landscape phones: a sticky header would eat the screen */
@media (max-height: 480px) and (orientation: landscape) {
	.site-header { position: static; }
	html { scroll-padding-top: 1rem; }
	.hero { padding: 2rem 0 2.5rem; }
}
/* Large monitors */
@media (min-width: 1500px) {
	:root { --wrap: 1280px; }
	body { font-size: 1.125rem; }
}
/* Notched phones: keep footer text clear of the home indicator */
@supports (padding: max(0px)) {
	.site-footer { padding-bottom: max(1.75rem, env(safe-area-inset-bottom)); }
}

@media print {
	.site-header, .skip-link, .hero-actions { display: none; }
	.hero, .contact-section { background: none; color: #000; }
	.hero h1, .hero .lead, .contact-section h2 { color: #000; }
}
