/*
Theme Name: CheckCarCost
Author: CheckCarCost
Description: Lightweight, accessible theme for practical calculator websites.
Version: 0.8.0
Requires at least: 6.6
Requires PHP: 8.1
License: GPL-2.0-or-later
Text Domain: smart-money-tools
*/

:root {
  --ink: #13243a;
  --muted: #5b6878;
  --line: #dce3ea;
  --brand: #233b7a;
  --brand-dark: #172033;
  --brand-bright: #4f6fb3;
  --soft: #eef3fa;
  --warm: #f8f5ef;
  --white: #fff;
  --page: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: #fff; color: var(--ink); font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 17px; line-height: 1.65; margin: 0; }
a { color: var(--brand-dark); text-underline-offset: .18em; }
a:hover { color: var(--brand); }
img { height: auto; max-width: 100%; }
.smt-container { margin-inline: auto; max-width: var(--page); padding-inline: clamp(1rem, 4vw, 2rem); }
.smt-skip { background: var(--ink); color: #fff; left: 1rem; padding: .7rem 1rem; position: fixed; top: -10rem; z-index: 9999; }
.smt-skip:focus { top: 1rem; }
.smt-header { background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 100; }
.admin-bar .smt-header { top: 32px; }
.smt-header__inner { align-items: center; display: flex; gap: 2rem; justify-content: space-between; min-height: 72px; }
.smt-brand { align-items: center; color: var(--ink); display: inline-flex; font-size: 1.05rem; font-weight: 850; gap: .62rem; letter-spacing: -.02em; line-height: 1.05; text-decoration: none; }
.smt-brand__mark { flex: 0 0 auto; height: 46px; object-fit: contain; width: 46px; }
.smt-brand__text { display: inline-block; }
.smt-brand span { color: var(--brand); }
.smt-nav ul { align-items: center; display: flex; gap: 1.4rem; list-style: none; margin: 0; padding: 0; }
.smt-nav a { color: var(--ink); font-size: .92rem; font-weight: 700; text-decoration: none; }
.smt-nav a:hover, .smt-nav .current-menu-item > a { color: var(--brand); }
.smt-nav__dealer { background: var(--soft); border: 1px solid #b9d9ce; border-radius: 999px; color: var(--brand-dark) !important; padding: .5rem .8rem; }
.smt-main { min-height: 65vh; }
.smt-hero { background: radial-gradient(circle at 85% 20%,rgba(116,203,174,.32),transparent 34%), linear-gradient(135deg,#f1faf6 0%,#fff 62%); border-bottom: 1px solid #dcece6; overflow: hidden; padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.smt-hero__grid { align-items: center; display: grid; gap: clamp(2rem,5vw,5rem); grid-template-columns: minmax(0,.9fr) minmax(420px,1.1fr); }
.smt-hero__copy { position: relative; z-index: 2; }
.smt-eyebrow { color: var(--brand); font-size: .78rem; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.smt-hero h1 { font-size: clamp(2.65rem, 6vw, 4.8rem); letter-spacing: -.055em; line-height: 1.02; margin: .6rem 0 1.2rem; max-width: 760px; }
.smt-hero__lead { color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.3rem); margin: 0 0 2rem; max-width: 650px; }
.smt-search { display: flex; margin: 0; max-width: 620px; position: relative; }
.smt-search label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.smt-search input { border: 1px solid #aab9b3; border-radius: 14px 0 0 14px; font: inherit; min-height: 58px; padding: .8rem 1rem; width: 100%; }
.smt-search button, .smt-cta { background: var(--brand); border: 0; color: #fff; cursor: pointer; font: inherit; font-weight: 800; padding: .8rem 1.3rem; text-decoration: none; }
.smt-search button { border-radius: 0 14px 14px 0; }
.smt-hero__trust { color: var(--muted); display: flex; flex-wrap: wrap; font-size: .82rem; font-weight: 750; gap: .55rem 1rem; list-style: none; margin: 1.1rem 0 0; padding: 0; }
.smt-hero__trust li::before { color: var(--brand); content: '✓'; margin-right: .35rem; }
.smt-hero__visual { margin: 0; position: relative; }
.smt-hero__visual::before { background: var(--brand); border-radius: 24px; content: ''; inset: 1rem -1rem -1rem 1rem; opacity: .12; position: absolute; transform: rotate(2deg); }
.smt-hero__visual img { aspect-ratio: 1.874 / 1; border: 1px solid rgba(19,36,58,.1); border-radius: 24px; box-shadow: 0 30px 70px rgba(19,36,58,.18); display: block; object-fit: cover; position: relative; width: 100%; }
.smt-search input:focus, .smt-search button:focus-visible, .smt-cta:focus-visible, .smt-nav a:focus-visible { outline: 3px solid rgba(11,122,101,.28); outline-offset: 3px; }
.smt-section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.smt-section--soft { background: #f7f9fa; border-block: 1px solid var(--line); }
.smt-section__head { margin-bottom: 2rem; max-width: 700px; }
.smt-section h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); letter-spacing: -.035em; line-height: 1.15; margin: 0 0 .7rem; }
.smt-section__head p { color: var(--muted); margin: 0; }
.smt-grid { display: grid; gap: 1rem; }
.smt-grid--four { grid-template-columns: repeat(4, minmax(0,1fr)); }
.smt-grid--three { grid-template-columns: repeat(3, minmax(0,1fr)); }
.smt-card { background: linear-gradient(145deg,#fff,#fbfdfc); border: 1px solid var(--line); border-radius: 18px; color: inherit; display: block; overflow: hidden; padding: 1.5rem; position: relative; text-decoration: none; }
.smt-card::before { background: linear-gradient(90deg,var(--brand),var(--brand-bright)); content: ''; height: 3px; left: 0; opacity: 0; position: absolute; right: 0; top: 0; transition: opacity .2s ease; }
.smt-card:hover { border-color: #8fc8b6; box-shadow: 0 12px 28px rgba(19,36,58,.08); color: inherit; transform: translateY(-2px); }
.smt-card:hover::before { opacity: 1; }
.smt-card h3 { font-size: 1.1rem; margin: .7rem 0 .35rem; }
.smt-card p { color: var(--muted); font-size: .92rem; margin: 0; }
.smt-card__icon { align-items: center; background: var(--soft); border-radius: 10px; color: var(--brand); display: inline-flex; font-size: 1rem; font-weight: 900; height: 40px; justify-content: center; width: 40px; }
.smt-card--soon { opacity: .62; }
.smt-badge { background: var(--warm); border-radius: 99px; color: #705b33; display: inline-block; font-size: .7rem; font-weight: 800; margin-top: .8rem; padding: .2rem .55rem; text-transform: uppercase; }
.smt-benefits { display: grid; gap: 1rem; grid-template-columns: repeat(5,minmax(0,1fr)); list-style: none; margin: 0; padding: 0; }
.smt-benefits li { border-left: 3px solid var(--brand); font-weight: 750; padding: .45rem .7rem; }
.smt-content { margin-inline: auto; max-width: 920px; padding: clamp(2.5rem, 6vw, 5rem) clamp(1rem, 4vw, 2rem); }
.smt-content > h1 { font-size: clamp(2.2rem, 6vw, 4rem); letter-spacing: -.05em; line-height: 1.05; margin: 0 0 2rem; }
.smt-content .entry-content > *:not(.smc-calculator) { max-width: 760px; }
.smt-footer { background: var(--ink); color: #dbe3ec; padding: 3rem 0; }
.smt-footer__inner { display: grid; gap: 2rem; grid-template-columns: 1.5fr 2fr; }
.smt-footer a { color: #fff; }
.smt-footer nav { display: flex; flex-wrap: wrap; gap: .7rem 1.3rem; }
.smt-footer p { color: #b8c3d0; font-size: .88rem; margin: .7rem 0 0; }
.smt-cookie-settings { background: none; border: 0; color: #fff; cursor: pointer; font: inherit; padding: 0; text-decoration: underline; }
.smt-cookie-banner { background: #fff; border: 1px solid #b9d9ce; border-radius: 18px; bottom: 1rem; box-shadow: 0 20px 60px rgba(19,36,58,.22); color: var(--ink); left: 50%; max-width: 900px; padding: 1.25rem; position: fixed; transform: translateX(-50%); width: calc(100% - 2rem); z-index: 1000; }
.smt-cookie-banner[hidden] { display: none; }
.smt-cookie-banner__inner { align-items: center; display: grid; gap: 1.2rem; grid-template-columns: minmax(0,1fr) auto; }
.smt-cookie-banner h2 { font-size: 1.12rem; margin: 0 0 .4rem; }
.smt-cookie-banner p { color: var(--muted); font-size: .9rem; line-height: 1.55; margin: 0; }
.smt-cookie-banner a { color: var(--brand-dark); font-weight: 700; }
.smt-cookie-banner__actions { display: flex; flex-wrap: wrap; gap: .65rem; }
.smt-consent-button { border: 1px solid var(--brand); border-radius: 10px; cursor: pointer; font: inherit; font-size: .88rem; font-weight: 800; min-height: 44px; padding: .7rem 1rem; }
.smt-consent-button--reject { background: #fff; color: var(--brand-dark); }
.smt-consent-button--accept { background: var(--brand); color: #fff; }
.smt-consent-button:focus-visible, .smt-cookie-settings:focus-visible { outline: 3px solid rgba(47,169,133,.45); outline-offset: 3px; }
.smt-prose { max-width: 820px; }
.smt-prose h1 { margin-top: 0; }
.smt-prose h2 { margin: 2rem 0 .65rem; }
.smt-prose p { color: var(--muted); line-height: 1.75; }

@media (max-width: 850px) {
  .smt-hero__grid { grid-template-columns: 1fr; }
  .smt-hero__copy { max-width: 720px; }
  .smt-hero__visual { margin-inline: auto; max-width: 720px; }
  .smt-grid--four, .smt-grid--three { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .smt-benefits { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .smt-nav ul { gap: .8rem; }
  .smt-nav li:nth-child(n+5) { display: none; }
}
@media (max-width: 600px) {
  .admin-bar .smt-header { top: 0; }
  .smt-header__inner { min-height: 62px; }
  .smt-brand { font-size: .92rem; gap: .45rem; }
  .smt-brand__mark { height: 39px; width: 39px; }
  .smt-nav li { display: none; }
  .smt-nav li:nth-child(2), .smt-nav li:nth-child(3) { display: list-item; }
  .smt-grid--four, .smt-grid--three, .smt-benefits, .smt-footer__inner { grid-template-columns: 1fr; }
  .smt-search { display: block; }
  .smt-search input, .smt-search button { border-radius: 12px; width: 100%; }
  .smt-search button { margin-top: .6rem; min-height: 52px; }
  .smt-hero { padding-top: 3rem; }
  .smt-cookie-banner__inner { grid-template-columns: 1fr; }
  .smt-cookie-banner__actions { display: grid; grid-template-columns: 1fr; }
  .smt-hero__visual::before { inset: .6rem -.4rem -.6rem .4rem; }
  .smt-hero__visual img { border-radius: 18px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* CheckCarCost brand audit: decorative/interactive greens become navy; semantic success green remains in calculator notices. */
.smt-nav__dealer, .smt-cookie-banner { border-color: #c9d5ec; }
.smt-hero { background: radial-gradient(circle at 85% 20%,rgba(79,111,179,.22),transparent 34%),linear-gradient(135deg,#eef3fa 0%,#fff 62%); border-bottom-color: #d8e1f1; }
.smt-search input:focus, .smt-search button:focus-visible, .smt-cta:focus-visible, .smt-nav a:focus-visible { outline-color: rgba(35,59,122,.28); }
.smt-card:hover { border-color: #9db5e8; }
.smt-consent-button:focus-visible, .smt-cookie-settings:focus-visible { outline-color: rgba(79,111,179,.45); }
