/*
Theme Name: PageSpeed Child
Theme URI: https://pagespeed.fit
Description: Lightweight GeneratePress child theme for PageSpeed — San Luis Obispo County web design, hosting and SEO.
Author: PageSpeed
Template: generatepress
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: pagespeed-child
*/

:root {
  --ink: #0a0f1c;
  --ink-soft: #1c2536;
  --body: #333d4f;
  --muted: #5b6779;
  --line: #e2e7ee;
  --wash: #f5f7fa;
  --accent: #047857;
  --accent-bright: #10b981;
  --white: #ffffff;
  --radius: 10px;
  --wrap: 1120px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--body);
  font-size: 17px;
  line-height: 1.65;
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.02em; }
h1 { font-size: clamp(2rem, 5vw, 3.05rem); }
h2 { font-size: clamp(1.55rem, 3.4vw, 2.15rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1.1em; }
a { color: var(--accent); }
img { max-width: 100%; height: auto; }

.ps-wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.ps-section { padding: 68px 0; }
.ps-section--wash { background: var(--wash); }
.ps-lede { font-size: 1.12rem; color: var(--muted); max-width: 62ch; }
.ps-eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 14px;
}

/* ---- Buttons ---- */
.ps-btn {
  display: inline-block; padding: 14px 26px; border-radius: var(--radius);
  font-weight: 650; text-decoration: none; font-size: 1.02rem; border: 2px solid transparent;
}
.ps-btn--primary { background: var(--accent); color: var(--white); }
.ps-btn--primary:hover { background: #036249; color: var(--white); }
.ps-btn--ghost { border-color: rgba(255,255,255,.5); color: var(--white); }
.ps-btn--ghost:hover { border-color: var(--white); background: rgba(255,255,255,.1); color: var(--white); }
.ps-btn--outline { border-color: var(--line); color: var(--ink); background: var(--white); }
.ps-btn--outline:hover { border-color: var(--accent); color: var(--accent); }
.ps-btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

/* ---- Hero ---- */
.ps-hero { background: var(--ink); color: #dfe5ee; padding: 76px 0 84px; }
.ps-hero h1 { color: var(--white); margin-bottom: 20px; }
.ps-hero__grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 52px; align-items: center; }
.ps-hero__lede { font-size: 1.16rem; color: #b9c4d4; max-width: 54ch; margin-bottom: 0; }
.ps-hero__media img { border-radius: 14px; display: block; }
.ps-hero__note { margin-top: 22px; font-size: .93rem; color: #8e9cb0; }
.ps-hero__note strong { color: var(--accent-bright); }

/* ---- Service cards ---- */
.ps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 40px; }
.ps-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; display: flex; flex-direction: column;
}
.ps-card h3 { margin-bottom: 10px; }
.ps-card p { color: var(--muted); font-size: .98rem; flex-grow: 1; }
.ps-card a { font-weight: 650; text-decoration: none; }
.ps-card a:hover { text-decoration: underline; }
.ps-card__num {
  font-size: .8rem; font-weight: 700; color: var(--accent); letter-spacing: .08em; margin-bottom: 12px;
}

/* ---- Areas ---- */
.ps-areas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; padding: 0; list-style: none; }
.ps-areas li {
  background: var(--white); border: 1px solid var(--line); border-radius: 999px;
  padding: 9px 20px; font-weight: 600; color: var(--ink-soft); font-size: .97rem;
}

/* ---- Trust ---- */
.ps-trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; margin-top: 38px; }
.ps-trust__item strong { display: block; font-size: 2.1rem; color: var(--ink); line-height: 1.1; letter-spacing: -.03em; }
.ps-trust__item span { color: var(--muted); font-size: .97rem; }

/* ---- Content prose ---- */
.ps-prose { max-width: 72ch; }
.ps-prose ul { padding-left: 22px; margin: 0 0 1.3em; }
.ps-prose li { margin-bottom: .5em; }
.ps-prose h2 { margin-top: 1.6em; }

/* ---- Split ---- */
.ps-split { display: grid; grid-template-columns: 1.15fr .85fr; gap: 52px; align-items: start; }

/* ---- CTA band ---- */
.ps-cta { background: var(--ink); color: #cdd6e2; text-align: center; padding: 62px 0; }
.ps-cta h2 { color: var(--white); }
.ps-cta p { max-width: 54ch; margin: 0 auto 4px; }
.ps-cta .ps-btn-row { justify-content: center; }

/* ---- Contact ---- */
.ps-nap { list-style: none; padding: 0; margin: 0; }
.ps-nap li { margin-bottom: 14px; }
.ps-nap strong { display: block; color: var(--ink); font-size: .82rem; text-transform: uppercase; letter-spacing: .07em; }
.ps-nap a { text-decoration: none; font-weight: 600; }

/* ---- Site header ---- */
.ps-header { border-bottom: 1px solid var(--line); background: var(--white); }
.ps-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 16px 24px; max-width: var(--wrap); margin: 0 auto; }
.ps-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; color: var(--ink); font-size: 1.22rem; letter-spacing: -.02em; }
.ps-logo svg { display: block; }
.ps-nav__list { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; }
.ps-nav a { color: var(--ink-soft); text-decoration: none; font-weight: 600; font-size: .97rem; white-space: nowrap; }
.ps-nav a:hover, .ps-nav .current-menu-item > a { color: var(--accent); }
.ps-header__call { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--accent); text-decoration: none; white-space: nowrap; }

/* ---- Footer ---- */
.ps-footer { background: var(--ink); color: #97a3b6; padding: 54px 0 30px; font-size: .95rem; }
.ps-footer a { color: #cbd5e1; text-decoration: none; }
.ps-footer a:hover { color: var(--white); text-decoration: underline; }
.ps-footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; }
.ps-footer h3 { color: var(--white); font-size: .84rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; }
.ps-footer ul { list-style: none; padding: 0; margin: 0; }
.ps-footer li { margin-bottom: 9px; }
.ps-footer__brand { color: var(--white); font-weight: 700; font-size: 1.15rem; margin-bottom: 10px; letter-spacing: -.02em; }
.ps-footer__bar { border-top: 1px solid rgba(255,255,255,.1); margin-top: 38px; padding-top: 20px; font-size: .87rem; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }

/* ---- Forms ---- */
.ps-formwrap { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.ff-el-input--label label, .ps-formwrap label { font-weight: 650; color: var(--ink); }
.ps-formwrap input[type=text], .ps-formwrap input[type=email], .ps-formwrap input[type=tel], .ps-formwrap textarea, .ps-formwrap select {
  width: 100%; padding: 11px 13px; border: 1px solid #c9d2de; border-radius: 8px; font-size: 1rem; font-family: inherit;
}
.ps-formwrap button, .ps-formwrap input[type=submit] {
  background: var(--accent); color: var(--white); border: 0; padding: 13px 28px;
  border-radius: var(--radius); font-weight: 650; font-size: 1.02rem; cursor: pointer;
}

/* ---- GeneratePress container reset ----
   Our sections manage their own full-bleed backgrounds and inner width,
   so GP's article/container chrome has to get out of the way. */
.site-content, .content-area, .site-main, .entry-content { width: 100%; margin: 0; padding: 0; }
.container.grid-container { max-width: 100%; padding: 0; width: 100%; }
.separate-containers .inside-article,
.separate-containers .site-main { padding: 0; margin: 0; }
.separate-containers .inside-article > *:last-child { margin-bottom: 0; }
.entry-content > *:first-child { margin-top: 0; }
.no-sidebar .site-content .content-area { width: 100%; }
.site-content { display: block; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .ps-hero__grid, .ps-split { grid-template-columns: 1fr; gap: 36px; }
  .ps-grid, .ps-trust, .ps-footer__grid { grid-template-columns: 1fr; }
  .ps-trust { gap: 24px; }
  .ps-section { padding: 52px 0; }
  .ps-hero { padding: 54px 0 60px; }

  /* Nav drops to its own scrollable row rather than a hamburger — every
     link stays reachable and the page still ships zero JavaScript. */
  .ps-header__inner { flex-wrap: wrap; gap: 12px 20px; }
  .ps-nav {
    order: 3; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch;
    border-top: 1px solid var(--line); padding-top: 11px;
    scrollbar-width: none;
  }
  .ps-nav::-webkit-scrollbar { display: none; }
  .ps-nav__list { gap: 20px; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .ps-btn { width: 100%; text-align: center; }
  .ps-header__inner { padding: 13px 18px; }
  .ps-logo { font-size: 1.08rem; }
}
