/*
Theme Name: DigiSupportive Helpo
Theme URI: https://digisupportivehelpo.online
Author: DigiSupportive Helpo
Description: Independent consumer guide site with brand guide pages. Free third-party phone guidance. Not affiliated with any retailer.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: digisupportivehelpo
*/

:root {
  --ink: #12202e;
  --muted: #4a5b6c;
  --harbor: #0e2a47;
  --harbor-2: #17406b;
  --glass: #e3eef0;
  --paper: #f6f9fa;
  --white: #ffffff;
  --line: #d3dde5;
  --amber: #f5b800;
  --amber-dark: #d99e00;
  --ok: #1f7a4d;
  --radius: 6px;
  --font: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--harbor-2); text-underline-offset: 3px; }
a:hover { color: var(--harbor); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }

.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--amber); color: var(--ink);
  padding: 10px 16px; z-index: 100; font-weight: 700;
}
.skip-link:focus { left: 10px; top: 10px; }

h1, h2, h3 { line-height: 1.2; color: var(--harbor); margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.45rem, 2.6vw, 1.9rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; max-width: 68ch; }

/* Independence notice */
.site-notice { background: var(--glass); border-bottom: 1px solid var(--line); font-size: .9rem; }
.site-notice .wrap { padding: 8px 0; }
.site-notice strong { color: var(--harbor); }

/* Header */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 24px; padding: 14px 0; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--harbor); font-weight: 700; font-size: 1.2rem; }
.brand svg { width: 38px; height: 38px; flex: none; }
.primary-nav { margin-left: auto; }
.primary-nav ul { list-style: none; display: flex; gap: 22px; margin: 0; padding: 0; flex-wrap: wrap; }
.primary-nav a { color: var(--ink); text-decoration: none; font-weight: 700; padding: 6px 0; border-bottom: 2px solid transparent; }
.primary-nav a:hover, .primary-nav .current-menu-item a { border-bottom-color: var(--amber); }
.header-call { display: flex; align-items: center; gap: 12px; }
.header-call-label { font-size: .85rem; color: var(--muted); max-width: 11ch; line-height: 1.2; }
.nav-toggle { display: none; background: none; border: 2px solid var(--harbor); color: var(--harbor); border-radius: var(--radius); padding: 8px 14px; font: inherit; font-weight: 700; cursor: pointer; margin-left: auto; }

/* Buttons */
.btn { display: inline-block; padding: 12px 22px; border-radius: var(--radius); font-weight: 700; text-decoration: none; font-size: 1rem; border: 2px solid transparent; }
.btn-call { background: var(--amber); color: var(--ink); border-color: var(--amber); }
.btn-call:hover { background: var(--amber-dark); border-color: var(--amber-dark); color: var(--ink); }
.btn-lg { font-size: 1.35rem; padding: 16px 30px; }
.btn-ghost { border-color: var(--harbor); color: var(--harbor); background: transparent; }
.btn-ghost:hover { background: var(--harbor); color: var(--white); }

/* Hero */
.hero { background: var(--harbor); color: var(--white); padding: 64px 0 72px; }
.hero h1 { color: var(--white); max-width: 18ch; }
.hero p { color: #d6e4ee; font-size: 1.15rem; max-width: 52ch; }
.hero-call { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 28px; }
.hero-fine { font-size: .95rem; color: #bcd0de; margin-top: 18px; max-width: 60ch; }

/* Sections */
.section { padding: 56px 0; }
.section-alt { background: var(--white); border-block: 1px solid var(--line); }
.section-head { max-width: 62ch; margin-bottom: 28px; }

/* Guide cards */
.guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.guide-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.guide-card h3 { margin: 0; }
.guide-card h3 a { color: var(--harbor); text-decoration: none; }
.guide-card h3 a:hover { text-decoration: underline; }
.guide-card p { margin: 0; color: var(--muted); font-size: 1rem; }
.guide-card .soon { color: var(--muted); font-size: .9rem; margin-top: auto; }
.guide-card.is-soon { background: transparent; border-style: dashed; }
.guide-card .more { margin-top: auto; font-weight: 700; }

/* Steps */
.steps { counter-reset: step; list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; max-width: 70ch; }
.steps li { counter-increment: step; position: relative; padding-left: 52px; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--harbor); color: var(--white); display: grid; place-items: center; font-weight: 700; }
.steps strong { color: var(--harbor); }

/* Layout with sidebar */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; padding: 48px 0; align-items: start; }
.layout.no-sidebar { grid-template-columns: minmax(0, 1fr); }
.widget-area { display: grid; gap: 20px; }
.side-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.side-card h2 { font-size: 1.15rem; margin-bottom: .4em; }
.side-card ul { padding-left: 1.1em; margin: 0; }
.side-card.call { background: var(--harbor); color: var(--white); border-color: var(--harbor); }
.side-card.call h2 { color: var(--white); }
.side-card.call p { color: #d6e4ee; font-size: 1rem; }
.side-card.call .btn { display: block; text-align: center; }

/* Entry content */
.entry h2 { margin-top: 1.6em; }
.entry h3 { margin-top: 1.3em; }
.entry ul, .entry ol { max-width: 66ch; padding-left: 1.3em; }
.entry li { margin-bottom: .45em; }

/* Brand guide pages */
.guide { max-width: 800px; padding: 40px 0 64px; }
.crumbs { font-size: .95rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }
.callout { border-left: 5px solid var(--harbor-2); background: var(--glass); padding: 16px 20px; border-radius: 0 var(--radius) var(--radius) 0; margin: 1.4em 0; max-width: 68ch; }
.callout p:last-child { margin-bottom: 0; }
.callout.warn { border-left-color: var(--amber-dark); background: #fff6d9; }
.toc { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 22px; margin: 1.4em 0; max-width: 68ch; }
.toc ul { margin: .4em 0 0; }
details { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; margin-bottom: 12px; max-width: 68ch; }
summary { cursor: pointer; font-weight: 700; color: var(--harbor); }
details[open] summary { margin-bottom: 8px; }

/* Footer */
.site-footer { background: var(--harbor); color: #cfdfeb; padding: 44px 0 28px; margin-top: 40px; }
.site-footer a { color: var(--white); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer h2 { color: var(--white); font-size: 1.1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 6px; }
.footer-legal { border-top: 1px solid rgba(255,255,255,.2); margin-top: 30px; padding-top: 18px; font-size: .9rem; max-width: none; }
.footer-legal p { max-width: 90ch; }

/* Responsive */
@media (max-width: 880px) {
  .layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .nav-toggle { display: inline-block; }
  .primary-nav { display: none; width: 100%; margin-left: 0; order: 5; }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { flex-direction: column; gap: 4px; }
  .header-call { width: 100%; order: 4; }
  .header-call .btn { flex: 1; text-align: center; }
  .hero { padding: 44px 0 52px; }
}
/* Fixed call bar, mobile only. Not output on brand guide pages. */
.mobile-call-bar { display: none; }
@media (max-width: 880px) {
	.mobile-call-bar {
		display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
		background: var(--amber); border-top: 2px solid var(--amber-dark);
		padding-bottom: env(safe-area-inset-bottom);
		box-shadow: 0 -2px 10px rgba(14, 42, 71, .25);
	}
	.mobile-call-bar a {
		display: flex; flex-direction: column; align-items: center; justify-content: center;
		padding: 10px 16px; color: var(--ink); text-decoration: none; line-height: 1.2; min-height: 56px;
	}
	.mcb-small { font-size: .8rem; }
	.mcb-main { font-size: 1.25rem; font-weight: 700; }
	body.has-call-bar { padding-bottom: 76px; }
}

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