﻿/*
Theme Name: AxiomClear
Theme URI: https://github.com/timsredman/AxiomClear-Website
Author: Tim Redman
Description: A calm, trust-first WordPress theme for the AxiomClear business website.
Version: 0.1.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: Proprietary
Text Domain: axiomclear
*/

:root {
  --ink: #111827;
  --muted: #5f6b7a;
  --line: #d9e0e8;
  --surface: #ffffff;
  --soft: #f5f7fa;
  --soft-blue: #eef5fb;
  --navy: #10233f;
  --blue: #2f6f9f;
  --green: #287660;
  --gold: #8a6a1f;
  --max: 1120px;
  --radius: 8px;
  --shadow: 0 18px 45px rgba(16, 35, 63, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

a {
  color: var(--blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--navy);
}

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

.site-header {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 30;
}

.admin-bar .site-header {
  top: 32px;
}

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

.header-inner {
  align-items: center;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  min-height: 76px;
}

.brand {
  align-items: center;
  color: var(--navy);
  display: inline-flex;
  font-size: 1.5rem;
  font-weight: 750;
  letter-spacing: 0;
  text-decoration: none;
}

.brand-logo,
.brand .custom-logo {
  display: block;
  height: 52px;
  max-width: 210px;
  object-fit: contain;
  width: auto;
}

.brand-mark {
  align-items: center;
  border: 1px solid #cbd8e6;
  border-radius: 50%;
  color: var(--navy);
  display: inline-flex;
  font-size: 0.8rem;
  height: 36px;
  justify-content: center;
  margin-right: 10px;
  width: 36px;
}

.site-nav {
  align-items: center;
  display: flex;
  gap: 8px;
}

.site-nav ul {
  align-items: center;
  display: flex;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  border-radius: 6px;
  color: var(--ink);
  display: inline-block;
  font-size: 0.95rem;
  padding: 9px 11px;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav .current-menu-item > a {
  background: var(--soft);
  color: var(--navy);
}

.menu-toggle {
  background: var(--navy);
  border: 0;
  border-radius: 6px;
  color: #fff;
  cursor: pointer;
  display: none;
  font: inherit;
  padding: 9px 12px;
}

.button,
.wp-block-button__link,
button,
input[type="submit"] {
  background: var(--navy);
  border: 1px solid var(--navy);
  border-radius: 6px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-weight: 700;
  line-height: 1.2;
  padding: 12px 18px;
  text-decoration: none;
}

.button.secondary {
  background: #fff;
  border-color: #b9c7d5;
  color: var(--navy);
}

.button:hover,
.wp-block-button__link:hover,
button:hover,
input[type="submit"]:hover {
  background: #18395f;
  color: #fff;
}

.button.secondary:hover {
  background: var(--soft-blue);
  color: var(--navy);
}

.hero {
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.82)),
    linear-gradient(135deg, #eaf1f8, #ffffff 52%, #f3f7f4);
  border-bottom: 1px solid var(--line);
  padding: 82px 0 62px;
}

.hero-grid {
  align-items: center;
  display: grid;
  gap: 48px;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
}

.eyebrow {
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin: 0 0 14px;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4 {
  color: var(--navy);
  line-height: 1.13;
  margin: 0 0 16px;
}

h1 {
  font-size: clamp(2.45rem, 6vw, 4.85rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.15rem);
}

h3 {
  font-size: 1.35rem;
}

p {
  margin: 0 0 18px;
}

.lead {
  color: #344255;
  font-size: clamp(1.1rem, 2.2vw, 1.32rem);
  max-width: 760px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.trust-panel {
  background: #fff;
  border: 1px solid #dce4ee;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
}

.search-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-top: 12px;
  padding: 16px;
}

.search-card:first-child {
  margin-top: 0;
}

.confidence-row {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin: 8px 0;
}

.confidence-score {
  color: var(--green);
  font-size: 1.55rem;
  font-weight: 800;
}

.meter {
  background: #e6edf2;
  border-radius: 999px;
  height: 8px;
  overflow: hidden;
}

.meter span {
  background: var(--green);
  display: block;
  height: 100%;
}

.card-label {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
}

.section {
  padding: 72px 0;
}

.section.soft {
  background: var(--soft);
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
}

.section-head {
  margin-bottom: 34px;
  max-width: 760px;
}

.grid {
  display: grid;
  gap: 20px;
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.card.soft-card {
  background: var(--soft-blue);
}

.card p:last-child,
.post-card p:last-child {
  margin-bottom: 0;
}

.principles {
  counter-reset: principle;
  display: grid;
  gap: 14px;
}

.principle {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 18px 18px 56px;
  position: relative;
}

.principle::before {
  color: var(--blue);
  content: counter(principle, decimal-leading-zero);
  counter-increment: principle;
  font-size: 0.85rem;
  font-weight: 800;
  left: 18px;
  position: absolute;
  top: 21px;
}

.cta-band {
  background: var(--navy);
  color: #fff;
  padding: 54px 0;
}

.cta-band h2 {
  color: #fff;
}

.cta-band p {
  color: #dce7f2;
}

.cta-band .button {
  background: #fff;
  border-color: #fff;
  color: var(--navy);
}

.content-area {
  padding: 58px 0 80px;
}

.entry {
  max-width: 820px;
}

.entry h1 {
  font-size: clamp(2.3rem, 5vw, 3.5rem);
}

.entry-content > * {
  max-width: 820px;
}

.entry-content ul,
.entry-content ol {
  padding-left: 1.4rem;
}

.post-list {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.post-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}

.post-card a {
  color: var(--navy);
  text-decoration: none;
}

.post-meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 10px;
}

input,
textarea,
select {
  border: 1px solid #c8d3df;
  border-radius: 6px;
  font: inherit;
  max-width: 100%;
  padding: 11px 12px;
}

textarea {
  min-height: 140px;
  width: 100%;
}

.site-footer {
  background: #0b1729;
  color: #cfd9e6;
  padding: 38px 0;
}

.footer-inner {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: space-between;
}

.site-footer a {
  color: #fff;
}

.footer-note {
  color: #9fb0c2;
  font-size: 0.94rem;
  margin: 0;
}

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  height: 1px;
  overflow: hidden;
  position: absolute;
  width: 1px;
}

@media (max-width: 860px) {
  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    align-items: stretch;
    background: #fff;
    border-bottom: 1px solid var(--line);
    display: none;
    left: 0;
    padding: 12px 24px 18px;
    position: absolute;
    right: 0;
    top: 76px;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    align-items: stretch;
    display: grid;
  }

  .site-nav a {
    display: block;
  }

  .hero-grid,
  .grid.three,
  .grid.two,
  .post-list {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 54px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .wrap {
    padding: 0 18px;
  }

  .brand-logo,
  .brand .custom-logo {
    height: 44px;
    max-width: 168px;
  }

  body {
    font-size: 16px;
  }

  .section {
    padding: 52px 0;
  }
}
