/**
 * bagpdx theme - Bright Auto Glass PDX
 * Olivero-inspired municipal/services theme. Forest green + sand.
 */

:root {
  --accent: #0f5132;
  --accent-deep: #0a3a24;
  --accent-bright: #2f9e6b;
  --ink: #1b211e;
  --ink-soft: #45504a;
  --muted: #6d7873;
  --line: #dfe5e0;
  --sand: #f4f1e9;
  --sand-deep: #ece6d8;
  --paper: #ffffff;
  --gold: #c8893a;
  --radius: 6px;
  --radius-lg: 14px;
  --maxw: 1180px;
  --shadow-sm: 0 1px 2px rgba(16, 32, 24, .06), 0 4px 14px rgba(16, 32, 24, .05);
  --shadow-md: 0 10px 34px rgba(12, 48, 32, .14);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body, system-ui, sans-serif);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-deep); text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--head, Georgia, serif); color: var(--ink); line-height: 1.2; font-weight: 600; }

.layout-container { max-width: var(--maxw); margin: 0 auto; padding-left: 26px; padding-right: 26px; }
.layout-container--narrow { max-width: 640px; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--accent); color: #fff; padding: 10px 16px; z-index: 999; }
.skip-link:focus { left: 8px; top: 8px; }

/* ===== Header ===== */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 78px;
}
.site-branding__logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.site-branding__logo:hover { text-decoration: none; }
.site-branding__mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--accent); color: #fff; flex: 0 0 auto;
}
.site-branding__name {
  font-family: var(--head, serif);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -.01em;
  color: var(--ink);
}

.primary-nav { display: flex; align-items: center; }
.primary-nav__toggle-cb, .primary-nav__toggle { display: none; }
.primary-nav__menu {
  list-style: none; margin: 0; padding: 0;
  display: flex; align-items: center; gap: 6px;
}
.primary-nav__item > a {
  display: inline-block;
  padding: 9px 13px;
  border-radius: var(--radius);
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ink-soft);
}
.primary-nav__item > a:hover { color: var(--accent-deep); background: var(--sand); text-decoration: none; }
.primary-nav__item.is-active > a { color: var(--accent-deep); box-shadow: inset 0 -3px 0 var(--accent-bright); border-radius: 0; }
.primary-nav__item--cta > a {
  background: var(--accent); color: #fff;
  padding: 10px 18px; border-radius: 999px;
}
.primary-nav__item--cta > a:hover { background: var(--accent-deep); color: #fff; }
.primary-nav__item--phone > a { color: var(--accent); font-weight: 700; }

/* ===== Hero ===== */
.hero {
  background:
    radial-gradient(900px 420px at 88% -10%, rgba(47,158,107,.20), transparent 60%),
    linear-gradient(180deg, var(--sand) 0%, var(--sand-deep) 100%);
  border-bottom: 1px solid var(--sand-deep);
}
.hero__inner { padding: 76px 0 70px; }
.hero__text { max-width: 760px; }
.hero__eyebrow {
  text-transform: uppercase; letter-spacing: .14em; font-size: 13px;
  font-weight: 700; color: var(--accent); margin: 0 0 14px;
}
.hero__title { font-size: clamp(36px, 6vw, 58px); margin: 0 0 16px; letter-spacing: -.02em; }
.hero__lede { font-size: 21px; color: var(--ink-soft); margin: 0 0 28px; max-width: 640px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }
.hero__points {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 10px 26px;
}
.hero__points li { position: relative; padding-left: 26px; font-weight: 600; color: var(--ink-soft); font-size: 15.5px; }
.hero__points li::before {
  content: ""; position: absolute; left: 0; top: 6px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--accent-bright);
  box-shadow: inset 0 0 0 4px rgba(255,255,255,.85);
}

/* ===== Buttons ===== */
.button {
  display: inline-block;
  font-family: var(--body, sans-serif);
  font-weight: 700; font-size: 16px;
  padding: 13px 26px; border-radius: 999px;
  border: 2px solid transparent; cursor: pointer;
  transition: transform .12s ease, background .15s ease, color .15s ease;
}
.button:hover { text-decoration: none; transform: translateY(-1px); }
.button--primary { background: var(--accent); color: #fff; }
.button--primary:hover { background: var(--accent-deep); color: #fff; }
.button--ghost { background: transparent; color: var(--accent-deep); border-color: var(--accent); }
.button--ghost:hover { background: var(--accent); color: #fff; }
.button--light { background: #fff; color: var(--accent-deep); }
.button--light:hover { background: var(--sand); color: var(--accent-deep); }

/* ===== Regions ===== */
.region { padding: 64px 0; }
.region-services { background: var(--paper); }
.region-content { background: var(--paper); padding-top: 52px; padding-bottom: 64px; }
.section-heading {
  font-size: clamp(26px, 4vw, 36px); margin: 0 0 8px;
  text-align: center; position: relative;
}
.section-heading::after {
  content: ""; display: block; width: 64px; height: 4px; border-radius: 4px;
  background: var(--gold); margin: 16px auto 36px;
}

/* ===== Card grid (services) ===== */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  position: relative;
  display: block;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 26px 26px;
  overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.card::before {
  content: ""; position: absolute; left: 0; top: 0; height: 100%; width: 6px;
  background: var(--accent);
}
.card--2::before { background: var(--accent-bright); }
.card--3::before { background: var(--gold); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; text-decoration: none; }
.card__index {
  font-family: var(--head, serif); font-size: 14px; font-weight: 700;
  color: var(--muted); letter-spacing: .12em;
}
.card__title { font-size: 21px; margin: 8px 0 14px; color: var(--ink); }
.card__link { font-weight: 700; color: var(--accent); font-size: 15px; }
.card:hover .card__link { color: var(--accent-deep); }

/* ===== Breadcrumb ===== */
.breadcrumb { margin: 0 0 18px; font-size: 14px; color: var(--muted); }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: var(--line); }

/* ===== Node / article ===== */
.node { max-width: 820px; margin: 0 auto; }
.node--page { background: transparent; }
.node__title { font-size: clamp(30px, 5vw, 44px); margin: 0 0 24px; letter-spacing: -.01em; }
.node__footer { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); }

/* ===== Prose ===== */
.prose { font-size: 18px; color: var(--ink-soft); }
.prose p { margin: 0 0 20px; }
.prose h2 {
  font-size: 27px; color: var(--ink); margin: 40px 0 14px; padding-top: 6px;
}
.prose h3 { font-size: 21px; color: var(--ink); margin: 28px 0 10px; }
.prose ul, .prose ol { margin: 0 0 22px; padding-left: 22px; }
.prose li { margin: 0 0 9px; }
.prose ul li::marker { color: var(--accent-bright); }
.prose a { font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.prose img {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  margin: 26px 0;
  box-shadow: var(--shadow-sm);
}

/* ===== CTA band ===== */
.cta-band { background: var(--accent-deep); color: #fff; }
.cta-band__inner {
  padding: 52px 0; display: flex; align-items: center; justify-content: space-between;
  gap: 28px; flex-wrap: wrap;
}
.cta-band__title { color: #fff; font-size: clamp(24px, 4vw, 32px); margin: 0 0 6px; }
.cta-band__text { color: rgba(255,255,255,.86); margin: 0; max-width: 560px; }

/* ===== Forms ===== */
.contact-form, .user-login-form { max-width: 560px; margin-top: 26px; }
.form-item { margin-bottom: 20px; }
.form-item label { display: block; font-weight: 700; color: var(--ink); margin-bottom: 7px; font-size: 15.5px; }
.form-item input[type=text],
.form-item input[type=email],
.form-item input[type=password],
.form-item textarea {
  width: 100%; padding: 12px 14px;
  border: 1.5px solid var(--line); border-radius: var(--radius);
  font: inherit; color: var(--ink); background: var(--paper);
}
.form-item input:focus, .form-item textarea:focus {
  outline: none; border-color: var(--accent-bright);
  box-shadow: 0 0 0 3px rgba(47,158,107,.18);
}
.form-item .description { font-size: 13px; color: var(--muted); margin-top: 6px; }
.form-item--hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.form-actions { margin-top: 8px; }
.form-required::after { content: " *"; color: #b3261e; }

.messages { padding: 14px 18px; border-radius: var(--radius); margin: 0 0 22px; font-weight: 600; }
.messages--status { background: #e7f4ec; color: #0a3a24; border: 1px solid #bfe3cd; }

.user-login-links { list-style: none; padding: 0; margin: 22px 0 0; }
.user-login-links a { font-weight: 600; }

/* ===== Footer ===== */
.site-footer { background: var(--ink); color: #c8d2cc; margin-top: 0; }
.site-footer__top {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px;
  padding: 56px 26px 44px;
}
.site-footer__brand { font-family: var(--head, serif); font-size: 22px; color: #fff; font-weight: 700; margin-bottom: 12px; }
.site-footer__tag { color: #aebbb4; margin: 0 0 10px; }
.site-footer__area { color: #8d9b93; font-size: 14.5px; margin: 0; max-width: 360px; }
.site-footer__heading { font-size: 15px; text-transform: uppercase; letter-spacing: .1em; color: #fff; margin: 0 0 16px; }
.site-footer__menu { list-style: none; padding: 0; margin: 0; }
.site-footer__menu li { margin-bottom: 10px; }
.site-footer__menu a { color: #c8d2cc; font-size: 15px; }
.site-footer__menu a:hover { color: #fff; }
.site-footer__bottom { border-top: 1px solid rgba(255,255,255,.10); }
.site-footer__bottom .layout-container { padding-top: 18px; padding-bottom: 18px; font-size: 14px; color: #8d9b93; }

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .card-grid { grid-template-columns: 1fr 1fr; }
  .site-footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 17px; }
  .primary-nav__toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; cursor: pointer;
  }
  .primary-nav__toggle span { display: block; height: 2.5px; width: 24px; background: var(--ink); border-radius: 2px; }
  .primary-nav__menu {
    position: absolute; left: 0; right: 0; top: 78px;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 12px 18px 18px; box-shadow: var(--shadow-md);
    max-height: 0; overflow: hidden; padding-top: 0; padding-bottom: 0; opacity: 0;
    transition: max-height .25s ease, opacity .2s ease, padding .25s ease;
  }
  .primary-nav__toggle-cb:checked ~ .primary-nav__menu {
    max-height: 620px; opacity: 1; padding-top: 12px; padding-bottom: 18px;
  }
  .primary-nav__item > a { display: block; padding: 12px 12px; }
  .primary-nav__item.is-active > a { box-shadow: inset 3px 0 0 var(--accent-bright); }
  .primary-nav__item--cta > a { text-align: center; margin-top: 6px; }
}
@media (max-width: 540px) {
  .card-grid { grid-template-columns: 1fr; }
  .site-footer__top { grid-template-columns: 1fr; gap: 28px; }
  .hero__inner { padding: 56px 0 50px; }
}
