/*
Theme Name: CarCheck Clean Theme
Theme URI: https://carcheck.lv/
Author: CarCheck
Description: Clean CarCheck frontend theme designed for the carcheck-wordpress-bridge plugin.
Version: 1.0.2
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: carcheck-clean-theme
*/

:root {
  --cc-ink: #07111f;
  --cc-muted: #647084;
  --cc-soft: #f5f8fc;
  --cc-line: #dbe3ee;
  --cc-blue: #075ff0;
  --cc-blue-2: #0a7bff;
  --cc-green: #07664c;
  --cc-red: #dc2626;
  --cc-radius: 8px;
  --cc-shadow: 0 22px 70px rgba(15, 33, 57, 0.11);
  --cc-font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.carcheck-page {
  margin: 0;
  color: var(--cc-ink);
  background: #ffffff;
  font-family: var(--cc-font);
  line-height: 1.5;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.cc-page a {
  color: inherit;
  text-decoration: none;
}

.cc-shell {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.cc-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid #e8edf4;
  backdrop-filter: blur(16px);
}

.cc-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 24px;
}

.cc-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 22px;
  font-weight: 850;
  letter-spacing: 0;
}

.cc-logo {
  width: 54px;
  height: 38px;
  color: var(--cc-blue);
  flex: 0 0 auto;
}

.cc-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  padding: 0;
  margin: 0;
  list-style: none;
  font-size: 15px;
  font-weight: 650;
}

.cc-actions {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  white-space: nowrap;
}

.cc-lang {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #111827;
  font-weight: 650;
}

.cc-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}

.cc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--cc-button-min-height, 44px);
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: var(--cc-blue);
  color: #ffffff;
  font-weight: 760;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(7, 95, 240, 0.26);
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.cc-btn:hover {
  background: #064fcb;
  transform: translateY(-1px);
  box-shadow: 0 15px 34px rgba(7, 95, 240, 0.32);
}

.cc-btn-secondary {
  min-height: 40px;
  padding: 0 16px;
  border-color: #d9e3f2;
  background: #ffffff;
  color: var(--cc-blue);
  box-shadow: none;
}

.cc-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background:
    linear-gradient(90deg, rgba(3, 9, 17, 0.98) 0%, rgba(3, 9, 17, 0.92) 35%, rgba(3, 9, 17, 0.38) 58%, rgba(3, 9, 17, 0.10) 100%),
    linear-gradient(180deg, rgba(3, 9, 17, 0.24) 0%, rgba(3, 9, 17, 0.06) 46%, rgba(3, 9, 17, 0.44) 100%),
    url("assets/carcheck-hero.webp");
  background-color: #07101b;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}
.cc-hero::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  content: "";
  background:
    radial-gradient(circle at 76% 49%, rgba(15, 106, 255, 0.13), transparent 34%),
    linear-gradient(90deg, rgba(1, 6, 13, 0.12), transparent 56%);
  pointer-events: none;
}
.cc-hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(420px, 1.02fr);
  align-items: center;
  min-height: var(--cc-hero-min-height, 620px);
  gap: 36px;
  padding: 74px 0 54px;
}

.cc-hero-copy {
  position: relative;
  z-index: 2;
  max-width: 590px;
}

.cc-hero h1 {
  max-width: 560px;
  margin: 0 0 22px;
  font-size: clamp(42px, 6vw, 64px);
  line-height: 1.08;
  letter-spacing: 0;
  font-weight: 850;
}

.cc-hero p {
  max-width: 560px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
}

.cc-search {
  display: flex;
  align-items: center;
  max-width: var(--cc-search-max-width, 560px);
  margin-bottom: 58px;
  padding: var(--cc-search-padding, 10px);
  gap: 10px;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.25);
}

.cc-search-field {
  display: flex;
  align-items: center;
  min-width: 0;
  flex: 1;
  gap: 12px;
  color: #6c7482;
  padding-left: 12px;
}

.cc-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: #172033;
  font: inherit;
}

.cc-search input::placeholder {
  color: #8a94a5;
}

.cc-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  max-width: 590px;
  margin-top: 0;
}

.cc-proof-item {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 14px;
  padding: 0 20px;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.cc-proof-item:first-child {
  padding-left: 0;
  border-left: 0;
}

.cc-proof .cc-icon {
  width: 25px;
  height: 25px;
}

.cc-proof strong {
  display: block;
  color: #ffffff;
  font-size: 17px;
  line-height: 1.22;
}

.cc-proof span {
  display: block;
  color: rgba(255, 255, 255, 0.67);
  font-size: 13.5px;
  line-height: 1.35;
}

.cc-hero-media {
  position: relative;
  min-height: 420px;
}
.cc-section {
  padding: 48px 0;
}

.cc-section-title {
  margin: 0 0 28px;
  text-align: center;
  color: #0c1424;
  font-size: 30px;
  line-height: 1.2;
}

.cc-features {
  display: grid;
  grid-template-columns: repeat(var(--cc-feature-columns, 6), minmax(0, 1fr));
  gap: var(--cc-feature-gap, 10px);
}

.cc-feature {
  min-height: var(--cc-feature-min-height, 210px);
  padding: var(--cc-feature-padding-y, 28px) var(--cc-feature-padding-x, 18px);
  border: 1px solid var(--cc-line);
  border-radius: 8px;
  background: #ffffff;
  text-align: center;
  box-shadow: 0 10px 35px rgba(15, 23, 42, 0.05);
}

.cc-feature .cc-icon-wrap {
  display: grid;
  place-items: center;
  width: var(--cc-feature-icon-size, 52px);
  height: var(--cc-feature-icon-size, 52px);
  margin: 0 auto 18px;
  border-radius: 50%;
  color: var(--cc-blue);
  background: #edf4ff;
}

.cc-feature .cc-icon {
  width: var(--cc-feature-icon-image-size, 28px);
  height: var(--cc-feature-icon-image-size, 28px);
}

.cc-feature-icon-img {
  display: block;
  width: var(--cc-feature-icon-image-size, 28px);
  height: var(--cc-feature-icon-image-size, 28px);
  object-fit: contain;
}

.cc-feature h3 {
  margin: 0 0 8px;
  font-size: 15px;
  line-height: 1.25;
}

.cc-feature p {
  margin: 0;
  color: #344054;
  font-size: 13px;
}

.cc-example {
  padding-top: 20px;
}

.cc-example-band {
  padding: var(--cc-example-padding, 32px);
  border: 1px solid #e4eaf3;
  border-radius: 8px;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
  box-shadow: var(--cc-shadow);
}

.cc-example-heading {
  margin-bottom: 22px;
}

.cc-example-heading h2 {
  margin: 0 0 4px;
  font-size: 26px;
}

.cc-example-heading p {
  margin: 0;
  color: var(--cc-muted);
}

.cc-report {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 22px;
}

.cc-vehicle {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cc-vehicle-image {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 7px;
  background:
    linear-gradient(135deg, rgba(190, 33, 45, 0.96), rgba(124, 16, 29, 0.98)),
    #991b1b;
  color: #ffffff;
}

.cc-vehicle-image > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cc-car-mark {
  width: 78%;
  height: auto;
}

.cc-vehicle-title {
  margin: 0;
  font-weight: 780;
}

.cc-vehicle-sub {
  margin: 2px 0 0;
  color: #313b4d;
  font-size: 14px;
}

.cc-vehicle-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 16px;
}

.cc-fact {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 4px;
  font-size: 13px;
}

.cc-fact strong {
  display: block;
}

.cc-fact span {
  display: block;
  color: #344054;
}

.cc-analysis {
  border: 1px solid var(--cc-line);
  border-radius: 8px;
  background: #ffffff;
}

.cc-analysis-inner {
  padding: 24px;
}

.cc-analysis h3 {
  margin: 0 0 20px;
  font-size: 18px;
}

.cc-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-bottom: 24px;
}

.cc-metric {
  padding: 0 18px;
  border-left: 1px solid #e4eaf3;
}

.cc-metric:first-child {
  padding-left: 0;
  border-left: 0;
}

.cc-metric small {
  display: block;
  margin-bottom: 8px;
  color: #152034;
  font-weight: 780;
}

.cc-metric strong {
  display: block;
  color: var(--cc-green);
  font-size: 26px;
  line-height: 1.1;
}

.cc-metric span {
  display: block;
  margin-top: 5px;
  color: #344054;
  font-size: 13px;
}

.cc-metric-danger strong {
  color: #101828;
}

.cc-metric-danger em {
  display: block;
  margin-top: 6px;
  color: var(--cc-red);
  font-size: 13px;
  font-style: normal;
  font-weight: 750;
}

.cc-recommendation {
  padding-top: 20px;
  border-top: 1px solid #e4eaf3;
}

.cc-recommendation h4 {
  margin: 0 0 10px;
  font-size: 16px;
}

.cc-recommendation p {
  margin: 0 0 18px;
  color: #243044;
}

.cc-info {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  margin-top: 18px;
  padding: 20px 26px;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: #eff6ff;
}

.cc-info h3 {
  margin: 0 0 2px;
  color: var(--cc-blue);
  font-size: 20px;
}

.cc-info p {
  margin: 0;
  color: #40506a;
}

.cc-footer {
  color: rgba(255, 255, 255, 0.72);
  background: #07111f;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.cc-footer .cc-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 64px;
  font-size: 13px;
}

.cc-footer-links {
  display: flex;
  gap: 24px;
}

.cc-subhero {
  color: #ffffff;
  background:
    linear-gradient(90deg, rgba(4, 11, 20, 0.98), rgba(7, 24, 47, 0.92)),
    #07111f;
}

.cc-subhero .cc-shell {
  padding: 82px 0 74px;
}

.cc-eyebrow {
  margin: 0 0 14px;
  color: #70a8ff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cc-subhero h1 {
  max-width: 760px;
  margin: 0 0 18px;
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.04;
  letter-spacing: 0;
}

.cc-subhero p {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 19px;
}

.cc-page-section {
  padding: 64px 0;
  background: #ffffff;
}

.cc-step-grid,
.cc-price-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.cc-step-card,
.cc-price-card {
  min-height: 220px;
  padding: 26px;
  border: 1px solid #dce5f0;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 55px rgba(15, 33, 57, 0.08);
}

.cc-step-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 22px;
  border-radius: 50%;
  background: #edf4ff;
  color: var(--cc-blue);
  font-weight: 850;
}

.cc-step-card h2,
.cc-price-card h2,
.cc-detail-band h2,
.cc-two-col h2,
.cc-contact-form h2 {
  margin: 0 0 12px;
  color: #07111f;
  font-size: 24px;
  line-height: 1.2;
}

/* The bridge replaces this legacy URL form with the contact form. Keep it
   hidden during that very short enhancement window so old UI never flashes. */
.cc-contact-form:has(input[type="url"]) {
  visibility: hidden;
}

.cc-step-card p,
.cc-price-card p,
.cc-two-col p {
  margin: 0;
  color: #536173;
}

.cc-detail-band {
  margin-top: 24px;
  padding: 28px;
  border: 1px solid #dce7f5;
  border-radius: 8px;
  background: linear-gradient(135deg, #f2f7ff, #ffffff);
}

.cc-check-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.cc-check-list span {
  position: relative;
  padding: 12px 14px 12px 38px;
  border: 1px solid #d9e5f5;
  border-radius: 8px;
  background: #ffffff;
  color: #172033;
  font-weight: 650;
}

.cc-check-list span::before {
  position: absolute;
  left: 14px;
  top: 13px;
  content: "✓";
  color: var(--cc-blue);
  font-weight: 900;
}

.cc-page-report {
  align-items: stretch;
}

.cc-price-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cc-price-card strong {
  display: block;
  margin-bottom: 18px;
  color: var(--cc-blue);
  font-size: 20px;
}

.cc-price-card-featured {
  border-color: rgba(7, 95, 240, 0.42);
  background: linear-gradient(135deg, #f3f8ff, #ffffff);
  box-shadow: 0 24px 70px rgba(7, 95, 240, 0.14);
}

.cc-two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
  gap: 32px;
  align-items: start;
}

.cc-contact-list {
  display: grid;
  gap: 10px;
  margin-top: 22px;
  color: #536173;
}

.cc-contact-list a {
  color: var(--cc-blue);
  font-weight: 760;
}

.cc-contact-form {
  display: grid;
  gap: 16px;
  padding: 28px;
  border: 1px solid #dce5f0;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 55px rgba(15, 33, 57, 0.08);
}

.cc-contact-form label {
  display: grid;
  gap: 8px;
  color: #172033;
  font-weight: 700;
}

.cc-contact-form input {
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid #d7e2ef;
  border-radius: 7px;
  font: inherit;
}

.cc-wp-content {
  max-width: 860px;
}

@media (max-width: 1040px) {
  .cc-menu {
    display: none;
  }

  .cc-hero-inner {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .cc-hero-media {
    min-height: 320px;
  }

  .cc-hero-media::before {
  position: absolute;
  inset: 68px -120px 24px -30px;
  z-index: 0;
  content: "";
  background: radial-gradient(circle at 62% 50%, rgba(18, 104, 255, 0.34), rgba(18, 104, 255, 0.15) 34%, rgba(18, 104, 255, 0) 70%);
  filter: blur(16px);
  opacity: 0.85;
  pointer-events: none;
}
.cc-features {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cc-report {
    grid-template-columns: 1fr;
  }

  .cc-step-grid,
  .cc-price-grid,
  .cc-check-list,
  .cc-two-col {
    grid-template-columns: 1fr 1fr;
  }

}

@media (max-width: 720px) {
  .cc-shell {
    width: min(100% - 28px, 1180px);
  }

  .cc-nav {
    min-height: 64px;
  }

  .cc-actions .cc-lang {
    display: none;
  }

  .cc-btn {
    min-height: 42px;
    padding: 0 16px;
  }

  .cc-hero-inner {
    padding: 52px 0 38px;
  }

  .cc-hero h1 {
    font-size: 40px;
  }

  .cc-hero p {
    font-size: 16px;
  }

  .cc-search {
    flex-direction: column;
    align-items: stretch;
    margin-bottom: 38px;
  }

  .cc-search-field {
    min-height: 44px;
  }

  .cc-proof {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .cc-proof-item {
    padding: 0;
    border-left: 0;
  }

  .cc-hero-media {
    min-height: 260px;
  }

  .cc-hero-media::before {
  position: absolute;
  inset: 68px -120px 24px -30px;
  z-index: 0;
  content: "";
  background: radial-gradient(circle at 62% 50%, rgba(18, 104, 255, 0.34), rgba(18, 104, 255, 0.15) 34%, rgba(18, 104, 255, 0) 70%);
  filter: blur(16px);
  opacity: 0.85;
  pointer-events: none;
}
.cc-features {
    grid-template-columns: 1fr;
  }

  .cc-section-title {
    font-size: 25px;
  }

  .cc-example-band {
    padding: 22px;
  }

  .cc-vehicle-facts {
    grid-template-columns: 1fr;
  }

  .cc-metrics {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .cc-metric {
    padding: 0;
    border-left: 0;
  }

  .cc-info {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .cc-info .cc-btn-secondary {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .cc-footer .cc-shell {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 0;
  }

  .cc-footer-links {
    flex-wrap: wrap;
  }

  .cc-subhero .cc-shell {
    padding: 56px 0 48px;
  }

  .cc-subhero h1 {
    font-size: 38px;
  }

  .cc-subhero p {
    font-size: 16px;
  }

  .cc-page-section {
    padding: 42px 0;
  }

  .cc-step-grid,
  .cc-price-grid,
  .cc-check-list,
  .cc-two-col {
    grid-template-columns: 1fr;
  }

  .cc-step-card,
  .cc-price-card,
  .cc-detail-band,
  .cc-contact-form {
    padding: 22px;
  }
}


/* Shared guide links and a dated, illustrative price comparison. */
.cc-guide-related{max-width:820px;margin:12px auto 48px;padding:28px;border:1px solid #dce4ee;border-radius:18px;background:#f5f8fd;color:#18283f;font-size:17px;line-height:1.7}
.cc-guide-related h2{font:inherit;font-size:26px;font-weight:750;line-height:1.3;margin:0 0 12px;color:#101f35}
.cc-guide-related p{margin:0 0 14px}.cc-guide-related ul{margin:0;padding-left:22px}.cc-guide-related li{margin:8px 0}
.cc-guide-related a,.cc-price-case a{color:#0752ce;text-decoration:underline;text-underline-offset:3px}
.cc-price-case{margin:32px 0;padding:28px;border:1px solid #c8d9f5;border-radius:20px;background:#f0f5fd;scroll-margin-top:160px}
.cc-price-case-label{color:#0752ce;font-size:13px;line-height:1.5;font-weight:750;letter-spacing:.05em;text-transform:uppercase}
.cc-price-case-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:24px 0}
.cc-price-case-metrics>div{padding:18px 14px;border-radius:12px;background:white;border:1px solid #dce4ee}
.cc-price-case-metrics dt{font-size:13px;line-height:1.5;color:#536173}.cc-price-case-metrics dd{font-size:24px;line-height:1.3;font-weight:800;color:#101f35;margin:10px 0 0;font-variant-numeric:tabular-nums}
.cc-price-case-math{font-weight:650}.cc-guide h3{font-family:inherit;font-size:21px;line-height:1.4;color:#101f35;margin:26px 0 12px}
@media(min-width:783px){.cc-header .cc-menu{gap:18px;font-size:14px}.cc-header .cc-nav{gap:16px}.cc-header .cc-menu a{white-space:nowrap}}
@media(min-width:783px) and (max-width:1350px){.cc-header .cc-nav{flex-wrap:wrap;padding-top:12px;padding-bottom:12px;row-gap:10px}.cc-header .cc-nav>nav{order:3;flex:0 0 100%;width:100%}.cc-header .cc-menu{flex-wrap:wrap;gap:8px 20px}.cc-guide-step{scroll-margin-top:160px}}
@media(max-width:640px){.cc-price-case,.cc-guide-related{padding:22px 18px}.cc-price-case-metrics{grid-template-columns:1fr}.cc-price-case-metrics>div{display:flex;align-items:center;justify-content:space-between;gap:16px}.cc-price-case-metrics dd{margin:0;font-size:22px;white-space:nowrap}.cc-price-case-metrics dt{max-width:50%}.cc-guide-related{font-size:16px}.cc-guide-related h2{font-size:24px}}
