/*
Theme Name: ChangeCar Theme
Theme URI: https://changecar.com
Author: Your Name
Version: 1.2
Description: Custom Bootstrap 5 theme for ChangeCar with tool-focused layout.
Text Domain: changecar-theme
*/

/* ---------- Base ---------- */
:root{
  --cc-blue:#0b63ff;
  --cc-blue-2:#0a56e6;
  --cc-ink:#0b1b33;
  --cc-muted:#6b778c;
  --cc-sky-1:#2d8cff;
  --cc-sky-2:#0b63ff;
  --cc-card:#ffffff;
  --cc-border: rgba(15, 23, 42, .10);
  --cc-shadow: 0 12px 30px rgba(2, 6, 23, .12);
}

body{
  color: var(--cc-ink);
  background: #f5f7fb;
}

.site-main{
  padding-bottom: 0;
}

.text-white-75{ color: rgba(255,255,255,.78) !important; }

/* Make Bootstrap buttons a touch chunkier like the mock */
.btn{
  border-radius: .55rem;
  font-weight: 600;
}
.btn-warning{
  box-shadow: 0 10px 20px rgba(245, 158, 11, .25);
}

/* ---------- Hero ---------- */
  /* HERO BACKGROUND */
    .hero {
      min-height: 70vh;
      background: linear-gradient(135deg, #e6f3ff, #f7fbff);
      display: flex;
      align-items: center;
    }

    /* NAVBAR */
    .navbar-brand {
      font-weight: 700;
      font-size: 1.4rem;
    }

    .nav-link {
      color: #1f2937 !important;
      font-weight: 500;
    }

    /* TEXT */
    .hero-title {
       font-size: clamp(1.9rem, 4.5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  color: #0f172a;
}


    .hero-text {
  max-width: 640px;
  margin-inline: auto;
  color: #334155;
  font-size: 1.05rem;
}

    /* BUTTONS */
    .btn-primary {
      background-color: #2563eb;
      border: none;
      padding: 0.75rem 1.5rem;
      font-weight: 600;
    }

    .btn-outline-primary {
      border-width: 2px;
      padding: 0.75rem 1.5rem;
      font-weight: 600;
    }

    /* HERO IMAGE MOCK */
    .hero-mock {
      background: #ffffff;
      border-radius: 16px;
      box-shadow: 0 20px 50px rgba(0,0,0,0.1);
      padding: 1rem;
      max-width: 620px;
    }

/* subtle “cloud” fade under the glass card on wide screens */
.cc-hero-fade{
  position: absolute;
  inset: auto 0 0 auto;
  width: 700px;
  height: 320px;
  transform: translate(140px, 100px);
  background: radial-gradient(circle at 20% 30%, rgba(255,255,255,.35), rgba(255,255,255,0) 60%);
  pointer-events:none;
}

/* ---------- Section framing ---------- */
.cc-section{
  padding: 2.5rem 0 3.2rem;
}

.cc-link{
  color: var(--cc-blue-2);
  font-weight: 700;
  text-decoration: none;
}
.cc-link:hover{ text-decoration: underline; }

/* ---------- Tool cards ---------- */
.cc-tool{
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--cc-border);
}

.cc-tool-media{
  height: 120px;
  background:
    radial-gradient(700px 140px at 20% 20%, rgba(255,255,255,.20), rgba(255,255,255,0) 60%),
    linear-gradient(180deg, #124a9b, #0b2b5e);
  position: relative;
}

.cc-tool-icon{
  position: absolute;
  left: 18px;
  bottom: 14px;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.22);
  color: #fff;
  font-size: 1.4rem;
}

.cc-tool-stat{
  font-weight: 900;
  font-size: 1.4rem;
}

/* ---------- How it works ---------- */
.cc-how{
  padding: 2.75rem 0;
  border-top: 1px solid rgba(15, 23, 42, .06);
  border-bottom: 1px solid rgba(15, 23, 42, .06);
  background: #ffffff;
}

.cc-step{
  display:flex;
  gap: 1rem;
  align-items:flex-start;
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  border: 1px solid rgba(15, 23, 42, .08);
  background: #f8fafc;
}

.cc-step-badge{
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display:grid;
  place-items:center;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(180deg, #1d76ff, #0b63ff);
  box-shadow: 0 10px 18px rgba(11, 99, 255, .25);
  flex: 0 0 auto;
}

/* ---------- CTA ---------- */
.cc-cta{
  position: relative;
  overflow: hidden;
  padding: 3.25rem 0;
  background:
    radial-gradient(900px 320px at 20% 0%, rgba(255,255,255,.12), rgba(255,255,255,0) 60%),
    linear-gradient(180deg, #0b2b5e, #061a38);
}

.cc-cta:before{
  content:'';
  position:absolute;
  inset:auto -10% -60% -10%;
  height: 420px;
  background: radial-gradient(circle at 50% 40%, rgba(255,255,255,.10), rgba(255,255,255,0) 65%);
  transform: rotate(-6deg);
  pointer-events:none;
}

/* ---------- Footer links ---------- */
footer a{
  color: rgba(15, 23, 42, .70);
  text-decoration: none;
}
footer a:hover{
  color: var(--cc-blue-2);
  text-decoration: underline;
}

/* ---------- Responsive tweaks ---------- */
@media (max-width: 991.98px){
  .cc-hero{ padding: 3.25rem 0 2.5rem; }
  .cc-hero-fade{ display:none; }
  .cc-glass{ max-width: 100%; }
}

/* ===== Header (tight + responsive like Autotrader) ===== */

.site-header{
  background:#fff;
  border-bottom:1px solid #e5e7eb; /* full-width HR */
}

/* Ensure header content isn't flush to viewport even if something overrides .container */
.site-header .container{
  padding-left: 16px;
  padding-right: 16px;
}
@media (min-width: 992px){
  .site-header .container{
    padding-left: 24px;
    padding-right: 24px;
  }
}

.site-navbar{
  padding: 10px 0;
  min-height: 60px;
  gap: 18px;
}

@media (min-width: 992px){
  .site-navbar{ flex-wrap: nowrap; }
}

/* Logo wrapper */
.site-brand{
  display:flex;
  align-items:center;
  flex: 0 0 auto;
  max-width: 260px;
}

.site-brand .custom-logo-link{
  display:flex;
  align-items:center;
  max-width: 260px;
}

/* Bulletproof logo sizing in header (prevents huge logo) */
.site-header .custom-logo{
  display:block;
  width:auto !important;
  height:40px !important;
  max-height:40px !important;
  max-width:260px !important;
  object-fit: contain;
}

.site-navbar .navbar-collapse{
  align-items:center;
}

/* Menu layout */
.site-nav{
  display:flex;
  align-items:center;
  gap: 18px;
}

/* Menu links */
.site-nav .nav-link{
  color:#111827;
  font-weight:600;
  text-decoration:none;
  padding: 8px 0;
  line-height:1;
  white-space:nowrap;
}

.site-nav .nav-link:hover{
  color:#0f172a;
  opacity:0.85;
}

/* Mobile collapse styling */
@media (max-width: 991.98px){
  .site-navbar{
    padding: 8px 0;
    min-height: 56px;
  }

  .site-header .custom-logo{
    height:32px !important;
    max-height:32px !important;
    max-width:200px !important;
  }

  .site-nav{
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 0 6px;
  }

  .site-nav .nav-item{
    width: 100%;
    border-top:1px solid #f1f5f9;
  }

  .site-nav .nav-link{
    display:block;
    padding: 12px 0;
  }
}

/* Desktop (default) */
.card-icon {
  object-fit: contain;
  max-height: 400px;
  padding: 1.25rem;
}

/* Tablets */
@media (max-width: 991.98px) {
  .card-icon {
    max-height: 300px;
  }
}

/* Phones */
@media (max-width: 575.98px) {
  .card-icon {
    max-height: 300px;
  }
}

.section-tools {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

/* Optional: tighter on mobile */
@media (max-width: 575.98px) {
  .section-tools {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }
}

/* === Fix navbar logo sizing (final override) === */
.site-header .navbar-brand {
  padding-top: 0;
  padding-bottom: 0;
  display: flex;
  align-items: center;
  line-height: 1;
}

.site-header .navbar-brand img,
.site-header .custom-logo {
  height: 40px !important;
  width: auto !important;
  max-height: 40px !important;
  max-width: 240px !important;
  display: block;
  object-fit: contain;
}

/* Smaller logo on mobile */
@media (max-width: 991.98px) {
  .site-header .navbar-brand img,
  .site-header .custom-logo {
    height: 32px !important;
    max-height: 32px !important;
    max-width: 200px !important;
  }
}



.hero-secondary {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: 40vh;
  border-top: 1px solid #e5edf7;
  border-bottom: 1px solid #e5edf7;
}

.hero-secondary::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;

  background-image:
    linear-gradient(
      to top,
      rgba(247,251,255,0.70),
      rgba(247,251,255,0.97)
    ),
    url("https://www.changecar.com/wp-content/uploads/2026/01/homepage-background.jpg");

  background-size: cover;
  background-position: bottom center; /* 👈 key change */
  background-repeat: no-repeat;

  pointer-events: none;
}

.hero-secondary .container {
  position: relative;
  z-index: 1;
}


/* Featured image credit (your custom div) */
.image-credit {
  margin-top: 0.25rem;
  text-align: center;
  font-size: 0.75rem;
  color: #6c757d;
  font-style: italic;
}

/* Gutenberg captions (single blog posts only) */
.single-post .wp-block-image figcaption,
.single-post .wp-block-gallery figcaption {
  text-align: center;
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: #6c757d;
}

/* Optional: if you wrap credit text in a span */
.single-post .wp-image-credit {
  font-style: italic;
}


.section-latest-articles .card-img-top {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

/* Archive + Latest Articles cards */
.card-img-top {
  width: 100%;
  height: 220px;
  object-fit: cover;
}