/*
Theme Name: IT Baseline
Theme URI: https://itbaseline.com/
Author: INDIGO IT Ltd
Author URI: https://indigo-it.com/
Description: Marketing theme for IT Baseline, a vCIO and technical account management workspace built for MSPs. Ships with a home page, features, pricing, beta/demo enquiry page and six dedicated feature pages. Pages, nav menu and front-page setting are created automatically on activation.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: it-baseline
Tags: business, custom-logo, custom-menu, one-column, full-width-template, featured-images
*/

/* ==========================================================================
   IT Baseline brand styles
   Primary green:  #088732
   Ink/charcoal:   #2d353d
   ========================================================================== */

:root {
  --green: #088732;
  --green-dark: #066b27;
  --green-light: #e6f4ea;
  --ink: #2d353d;
  --ink-soft: #5a636b;
  --paper: #ffffff;
  --paper-alt: #f6f8f7;
  --border: #e3e7e5;
  --radius: 10px;
  --shadow: 0 4px 20px rgba(45, 53, 61, 0.06);
  --max-width: 1160px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-dark); }

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

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 16px; color: var(--ink); font-weight: 700; }
h1 { font-size: clamp(2.1rem, 4vw, 3rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 16px; color: var(--ink-soft); }
.lead { font-size: 1.15rem; color: var(--ink-soft); }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
  background: var(--green-light);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease, color 0.12s ease;
}
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); color: #fff; transform: translateY(-1px); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--ink); color: var(--ink); }
.btn-block { width: 100%; }
.btn-lg { padding: 15px 30px; font-size: 1.02rem; }

/* ---------- top nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.nav-logo img { height: 32px; width: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav-links a {
  color: var(--ink);
  font-weight: 500;
  font-size: 0.96rem;
}
.nav-links a.active { color: var(--green); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.btn-login {
  background: transparent;
  color: var(--green);
  border-color: var(--green);
  padding: 10px 20px;
}
.btn-login:hover { background: var(--green); color: #fff; }
.beta-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--ink);
  color: #fff;
  padding: 4px 10px;
  border-radius: 999px;
}
.beta-pill span.dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--green);
  display: inline-block;
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--ink);
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 18px 24px;
    gap: 16px;
  }
  .nav-toggle { display: block; }
  .nav-cta .btn-secondary { display: none; }
}

/* ---------- hero ---------- */
.hero {
  padding: 76px 0 60px;
  background:
    radial-gradient(650px 320px at 85% -10%, var(--green-light), transparent 60%),
    var(--paper);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 26px 0 18px; }
.hero-note { font-size: 0.88rem; color: var(--ink-soft); }
.hero-note strong { color: var(--ink); }

.hero-visual {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 28px;
}
.hero-visual .icon-badge img { width: 56px; height: 56px; margin-bottom: 18px; }
.baseline-bars {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 140px;
  margin: 18px 0 8px;
  border-bottom: 2px dashed var(--border);
  padding-bottom: 0;
}
.baseline-bars .bar { flex: 1; border-radius: 6px 6px 0 0; background: var(--ink); opacity: 0.85; }
.baseline-bars .bar.hi { background: var(--green); }
.baseline-caption { display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--ink-soft); margin-top: 8px; }

/* ---------- sections ---------- */
section { padding: 64px 0; }
.section-alt { background: var(--paper-alt); }
.section-head { max-width: 620px; margin: 0 auto 40px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 860px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.card .icon-box {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--green-light);
  color: var(--green);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.1rem;
  margin-bottom: 16px;
}

.steps { counter-reset: step; }
.step { display: flex; gap: 18px; margin-bottom: 28px; }
.step:last-child { margin-bottom: 0; }
.step-num {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
}
.step h3 { margin-bottom: 6px; }
.step p { margin-bottom: 0; }

/* ---------- feature detail blocks ---------- */
.feature-block {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
  padding: 56px 0;
  border-bottom: 1px solid var(--border);
}
.feature-block:last-child { border-bottom: none; }
.feature-block.reverse { direction: rtl; }
.feature-block.reverse > * { direction: ltr; }
@media (max-width: 900px) {
  .feature-block, .feature-block.reverse { grid-template-columns: 1fr; direction: ltr; }
}
.feature-list { list-style: none; margin: 20px 0 0; padding: 0; }
.feature-list li {
  display: flex; gap: 10px; align-items: flex-start;
  margin-bottom: 12px; color: var(--ink-soft);
}
.feature-list li::before {
  content: "";
  flex-shrink: 0;
  width: 18px; height: 18px;
  margin-top: 3px;
  border-radius: 50%;
  background: var(--green);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='white'%3E%3Cpath d='M8 13.4 4.6 10l-1.4 1.4L8 16.2 17 7.2l-1.4-1.4z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='white'%3E%3Cpath d='M8 13.4 4.6 10l-1.4 1.4L8 16.2 17 7.2l-1.4-1.4z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.feature-visual {
  background: var(--paper-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}
.tag-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.tag {
  font-size: 0.78rem;
  font-weight: 600;
  background: var(--paper-alt);
  border: 1px solid var(--border);
  padding: 5px 11px;
  border-radius: 999px;
  color: var(--ink-soft);
}

/* ---------- pricing ---------- */
.pricing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 44px;
  font-weight: 600;
}
.switch {
  position: relative;
  width: 50px; height: 28px;
  background: var(--border);
  border-radius: 999px;
  cursor: pointer;
  border: none;
  flex-shrink: 0;
}
.switch::after {
  content: "";
  position: absolute;
  top: 3px; left: 3px;
  width: 22px; height: 22px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.15s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.25);
}
.switch.on { background: var(--green); }
.switch.on::after { transform: translateX(22px); }
.save-badge {
  font-size: 0.75rem;
  background: var(--green-light);
  color: var(--green-dark);
  padding: 3px 9px;
  border-radius: 999px;
  font-weight: 700;
}

.price-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
}
.price-card.highlight {
  border-color: var(--green);
  box-shadow: var(--shadow);
  position: relative;
}
.price-card.highlight::before {
  content: "Most MSPs start here";
  position: absolute;
  top: -13px; left: 26px;
  background: var(--green);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}
.price-amount { display: flex; align-items: baseline; gap: 6px; margin: 12px 0 4px; }
.price-amount .num { font-size: 2.3rem; font-weight: 700; }
.price-amount .unit { color: var(--ink-soft); font-size: 0.92rem; }
.price-card .price-desc { font-size: 0.9rem; margin-bottom: 20px; }
.price-card ul { list-style: none; padding: 0; margin: 0 0 24px; flex-grow: 1; }
.price-card ul li {
  padding: 9px 0;
  border-top: 1px solid var(--border);
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.price-card ul li:first-child { border-top: none; }

.band-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.band-table th, .band-table td {
  padding: 14px 18px;
  text-align: left;
  font-size: 0.94rem;
  border-bottom: 1px solid var(--border);
}
.band-table th {
  background: var(--paper-alt);
  font-weight: 700;
  color: var(--ink);
}
.band-table tr:last-child td { border-bottom: none; }
.band-table td.num { font-variant-numeric: tabular-nums; }

.disclaimer-box {
  margin-top: 28px;
  background: #fff8ea;
  border: 1px solid #f0dfae;
  border-radius: var(--radius);
  padding: 18px 22px;
  font-size: 0.9rem;
  color: #6b5620;
}
.disclaimer-box strong { color: #4d3e14; }

/* ---------- FAQ ---------- */
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}
.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
}
.faq-q .plus { font-size: 1.3rem; color: var(--green); transition: transform 0.15s ease; }
.faq-item.open .plus { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.2s ease;
}
.faq-item.open .faq-a { max-height: 300px; }
.faq-a p { padding-top: 12px; margin-bottom: 0; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--ink);
  color: #fff;
  border-radius: 16px;
  padding: 48px 40px;
  text-align: center;
}
.cta-band h2, .cta-band p { color: #fff; }
.cta-band p { color: #c7cdd2; }

/* ---------- forms ---------- */
.form-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 700px) { .form-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
}
.field .hint { font-weight: 400; color: var(--ink-soft); font-size: 0.8rem; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: var(--font);
  font-size: 0.96rem;
  color: var(--ink);
  background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-light);
}
.radio-group { display: flex; gap: 18px; flex-wrap: wrap; }
.radio-group label { display: flex; align-items: center; gap: 8px; font-weight: 500; font-size: 0.94rem; white-space: nowrap; }
.form-success {
  display: none;
  text-align: center;
  padding: 40px 20px;
}
.form-success.show { display: block; }
.form-success .tick {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--green-light);
  color: var(--green);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
  font-size: 1.6rem;
}

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 28px;
  background: var(--paper-alt);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
.footer-grid img { height: 26px; margin-bottom: 12px; }
.footer-grid p { font-size: 0.88rem; }
.footer-col h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 14px; color: var(--ink-soft); }
.footer-col a { display: block; color: var(--ink-soft); font-size: 0.92rem; margin-bottom: 10px; }
.footer-col a:hover { color: var(--green); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--ink-soft);
}

/* ---------- page hero (inner pages) ---------- */
.page-hero { padding: 56px 0 40px; text-align: center; }
.page-hero .eyebrow { margin-bottom: 14px; }
.page-hero p.lead { max-width: 640px; margin: 0 auto; }

/* utility */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.small-note { font-size: 0.85rem; color: var(--ink-soft); }

/* ---------- report screenshot frames (feature pages) ---------- */
.report-shot-wrap {
  background: var(--paper-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
}
.report-shot {
  display: block;
  width: 100%;
  border-radius: 6px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.report-shot-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 700px) {
  .report-shot-pair { grid-template-columns: 1fr; }
}

/* ---------- flagship badge ---------- */
.flagship-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--ink);
  color: #fff;
  padding: 4px 11px;
  border-radius: 999px;
  margin-left: 10px;
  vertical-align: middle;
}

/* ---------- cross-feature link tags ---------- */
.tag-link {
  font-size: 0.78rem;
  font-weight: 600;
  background: var(--paper-alt);
  border: 1px solid var(--border);
  padding: 5px 11px;
  border-radius: 999px;
  color: var(--ink-soft);
  transition: border-color 0.12s ease, color 0.12s ease;
}
.tag-link:hover { border-color: var(--green); color: var(--green-dark); }
.tag-muted {
  font-size: 0.78rem;
  font-weight: 600;
  background: transparent;
  border: 1px dashed var(--border);
  padding: 5px 11px;
  border-radius: 999px;
  color: var(--ink-soft);
  opacity: 0.7;
}

/* ==========================================================================
   WordPress integration
   ========================================================================== */

/* Primary nav is a <ul> when rendered by wp_nav_menu */
.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links li { position: relative; }
.nav-links li.current-menu-item > a,
.nav-links li.current_page_item > a { color: var(--green); }
.nav-links .sub-menu { display: none; }

@media (max-width: 860px) {
  .nav-links.open { padding: 18px 24px; }
  .nav-links.open li { width: 100%; }
}

/* Admin bar offset for the sticky header */
body.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) {
  body.admin-bar .site-header { top: 46px; }
}

/* Accessibility helper (required by WordPress) */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}
.screen-reader-text:focus {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 0 2px 2px rgba(0,0,0,0.6);
  clip: auto !important;
  clip-path: none;
  color: var(--ink);
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  height: auto;
  left: 8px;
  line-height: normal;
  padding: 14px 20px;
  text-decoration: none;
  top: 8px;
  width: auto;
  z-index: 100000;
}

/* Core alignment + caption classes */
.alignleft { float: left; margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignwide { max-width: 1160px; margin-left: auto; margin-right: auto; }
.alignfull { width: 100%; }
.wp-caption { max-width: 100%; }
.wp-caption-text, .gallery-caption { font-size: 0.85rem; color: var(--ink-soft); }
.sticky, .bypostauthor { display: block; }

/* Generic page/post content (page.php, single.php fallbacks) */
.entry-content { max-width: 760px; margin: 0 auto; }
.entry-content > * + * { margin-top: 18px; }
.entry-content ul, .entry-content ol { padding-left: 22px; color: var(--ink-soft); }
.entry-content li { margin-bottom: 8px; }
.entry-content img { border-radius: var(--radius); }
.entry-content blockquote {
  border-left: 3px solid var(--green);
  padding-left: 18px;
  margin-left: 0;
  color: var(--ink-soft);
  font-style: italic;
}
.entry-content a { text-decoration: underline; }

/* Tagline shown in the header lockup */
.nav-tagline {
  font-size: 0.78rem;
  color: var(--ink-soft);
  border-left: 1px solid var(--border);
  padding-left: 12px;
  margin-left: 12px;
}
@media (max-width: 1040px) { .nav-tagline { display: none; } }
.nav-logo { display: flex; align-items: center; }

/* Notice shown to admins only (e.g. contact form not wired up) */
.itb-admin-notice {
  background: #fff8ea;
  border: 1px solid #f0dfae;
  border-radius: var(--radius);
  padding: 16px 20px;
  font-size: 0.9rem;
  color: #6b5620;
  margin-bottom: 24px;
}
.itb-admin-notice strong { color: #4d3e14; }
.itb-admin-notice code {
  background: rgba(0,0,0,0.05);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.85em;
}
