/* ============================================================
   CarCalculator.info — Main Stylesheet
   Font: Sora | Primary: #E8401C | Secondary: #FCA97E | Navy: #1a2b4a
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body.cc-page {
    font-family: 'Sora', sans-serif;
    background: #f5f6fa;
    color: #222;
    line-height: 1.6;
}

/* ── Hide default WordPress / Kadence chrome ── */
body.cc-page .site-header,
body.cc-page .site-footer,
body.cc-page #wpadminbar + * > header,
body.cc-page .wp-site-blocks > header,
body.cc-page .wp-site-blocks > footer { display: none !important; }

/* ────────────────────────────────────────────
   LAYOUT SHELL
──────────────────────────────────────────── */
.cc-wrap          { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.cc-wrap-wide     { max-width: 1400px; margin: 0 auto; padding: 0 20px; }

/* ────────────────────────────────────────────
   HEADER
──────────────────────────────────────────── */
.cc-header {
    background: #1a2b4a;
    padding: 0 20px;
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 2px 12px rgba(0,0,0,.25);
}
.cc-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    gap: 20px;
}
.cc-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}
.cc-logo-icon {
    width: 40px;
    height: 40px;
}
.cc-logo-text {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -.5px;
    line-height: 1;
}
.cc-logo-text span:first-child { color: #E8401C; }
.cc-logo-text span:last-child  { color: #FCA97E; }

/* Nav */
.cc-nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.cc-nav a {
    color: rgba(255,255,255,.8);
    text-decoration: none;
    font-size: .85rem;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 6px;
    transition: background .2s, color .2s;
}
.cc-nav a:hover { background: rgba(255,255,255,.12); color: #fff; }
.cc-nav a.active { background: #E8401C; color: #fff; }

/* ────────────────────────────────────────────
   BREADCRUMB
──────────────────────────────────────────── */
.cc-breadcrumb {
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 10px 20px;
    font-size: .82rem;
    color: #888;
}
.cc-breadcrumb .cc-wrap { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.cc-breadcrumb a { color: #E8401C; text-decoration: none; font-weight: 500; }
.cc-breadcrumb a:hover { text-decoration: underline; }
.cc-breadcrumb .sep { color: #ccc; }

/* ────────────────────────────────────────────
   HERO SECTIONS
──────────────────────────────────────────── */
.cc-hero {
    background: linear-gradient(135deg, #1a2b4a 0%, #243555 60%, #E8401C22 100%);
    color: #fff;
    padding: 60px 20px;
    text-align: center;
}
.cc-hero h1 {
    font-size: clamp(1.6rem, 4vw, 2.8rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 14px;
}
.cc-hero h1 span { color: #FCA97E; }
.cc-hero p {
    font-size: 1.05rem;
    opacity: .85;
    max-width: 640px;
    margin: 0 auto 24px;
}

/* Fuel badge pills */
.cc-fuel-badges { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 16px; }
.cc-fuel-badge {
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.3);
    color: #fff;
    padding: 4px 14px;
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .5px;
}
.cc-fuel-badge.petrol  { border-color: #4CAF50; color: #4CAF50; }
.cc-fuel-badge.diesel  { border-color: #2196F3; color: #2196F3; }
.cc-fuel-badge.hybrid  { border-color: #FCA97E; color: #FCA97E; }
.cc-fuel-badge.electric{ border-color: #9C27B0; color: #9C27B0; }

/* ────────────────────────────────────────────
   HOMEPAGE HERO
──────────────────────────────────────────── */
.cc-home-hero {
    background: linear-gradient(135deg, #1a2b4a 0%, #243a5e 50%, #2d1f3d 100%);
    color: #fff;
    padding: 80px 20px 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cc-home-hero::before {
    content: '';
    position: absolute;
    width: 600px; height: 600px;
    background: radial-gradient(circle, #E8401C22 0%, transparent 70%);
    top: -200px; right: -100px;
    pointer-events: none;
}
.cc-home-hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
}
.cc-home-hero h1 .red   { color: #E8401C; }
.cc-home-hero h1 .orange{ color: #FCA97E; }
.cc-home-hero .subtitle {
    font-size: 1.1rem;
    opacity: .8;
    max-width: 560px;
    margin: 0 auto 36px;
}

/* Stats bar */
.cc-stats-bar {
    display: flex;
    gap: 0;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 40px;
    background: rgba(255,255,255,.07);
    border-radius: 16px;
    padding: 24px 0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
.cc-stat {
    flex: 1;
    min-width: 150px;
    text-align: center;
    padding: 10px 20px;
    border-right: 1px solid rgba(255,255,255,.12);
}
.cc-stat:last-child { border-right: none; }
.cc-stat .num {
    font-size: 2.2rem;
    font-weight: 800;
    color: #FCA97E;
    line-height: 1;
}
.cc-stat .lbl { font-size: .82rem; opacity: .7; margin-top: 4px; }

/* ────────────────────────────────────────────
   SEARCH BOX
──────────────────────────────────────────── */
.cc-search-box {
    display: flex;
    max-width: 560px;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,.25);
}
.cc-search-box input {
    flex: 1;
    border: none;
    outline: none;
    padding: 16px 20px;
    font-size: 1rem;
    font-family: 'Sora', sans-serif;
    color: #222;
}
.cc-search-box button {
    background: #E8401C;
    color: #fff;
    border: none;
    padding: 0 28px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Sora', sans-serif;
    transition: background .2s;
}
.cc-search-box button:hover { background: #c73518; }

/* ────────────────────────────────────────────
   SECTION TITLES
──────────────────────────────────────────── */
.cc-section { padding: 60px 20px; }
.cc-section-title {
    text-align: center;
    margin-bottom: 40px;
}
.cc-section-title h2 {
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 800;
    color: #1a2b4a;
    margin-bottom: 8px;
}
.cc-section-title p { color: #666; font-size: .95rem; }
.cc-section-title .accent { color: #E8401C; }

/* ────────────────────────────────────────────
   BRAND GRID
──────────────────────────────────────────── */
.cc-brand-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
}
.cc-brand-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px 16px;
    text-align: center;
    text-decoration: none;
    color: #1a2b4a;
    font-weight: 700;
    font-size: .9rem;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
    transition: transform .2s, box-shadow .2s, border-color .2s;
    border: 2px solid transparent;
}
.cc-brand-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(232,64,28,.15);
    border-color: #E8401C;
    color: #E8401C;
}
.cc-brand-card .count {
    display: block;
    font-size: .75rem;
    font-weight: 400;
    color: #999;
    margin-top: 4px;
}

/* ────────────────────────────────────────────
   MODEL GRID (brand page)
──────────────────────────────────────────── */
.cc-model-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}
.cc-model-card {
    background: #fff;
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,.07);
    border: 2px solid transparent;
    transition: border-color .2s, box-shadow .2s;
    text-decoration: none;
    color: inherit;
    display: block;
}
.cc-model-card:hover {
    border-color: #E8401C;
    box-shadow: 0 6px 24px rgba(232,64,28,.12);
}
.cc-model-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a2b4a;
    margin-bottom: 10px;
}
.cc-model-card .cc-fuel-badges { justify-content: flex-start; margin: 0 0 14px; }
.cc-model-card .cc-fuel-badge {
    font-size: .72rem;
    padding: 3px 10px;
    background: #f5f6fa;
    color: #555;
    border: 1px solid #ddd;
}
.cc-model-card .quick-links { display: flex; flex-wrap: wrap; gap: 6px; }
.cc-model-card .quick-links a {
    background: #f5f6fa;
    color: #E8401C;
    text-decoration: none;
    font-size: .75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid #fce0d8;
    transition: background .15s;
}
.cc-model-card .quick-links a:hover { background: #E8401C; color: #fff; }

/* ────────────────────────────────────────────
   CALCULATOR CARD
──────────────────────────────────────────── */
.cc-calc-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    align-items: start;
}
@media (max-width: 900px) {
    .cc-calc-layout { grid-template-columns: 1fr; }
}

.cc-calc-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(0,0,0,.09);
    overflow: hidden;
}

/* Fuel tabs */
.cc-tabs {
    display: flex;
    border-bottom: 2px solid #f0f0f0;
    background: #fafafa;
}
.cc-tab {
    flex: 1;
    padding: 14px 10px;
    text-align: center;
    font-size: .85rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    background: transparent;
    color: #888;
    font-family: 'Sora', sans-serif;
    transition: color .2s, border-bottom .2s;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
}
.cc-tab:hover { color: #E8401C; }
.cc-tab.active { color: #E8401C; border-bottom-color: #E8401C; background: #fff; }

/* Calculator panel */
.cc-calc-panel { display: none; padding: 30px; }
.cc-calc-panel.active { display: block; }

.cc-field { margin-bottom: 20px; }
.cc-field label {
    display: block;
    font-size: .85rem;
    font-weight: 600;
    color: #555;
    margin-bottom: 6px;
}
.cc-field input, .cc-field select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    font-size: 1rem;
    font-family: 'Sora', sans-serif;
    color: #222;
    outline: none;
    transition: border-color .2s;
}
.cc-field input:focus, .cc-field select:focus { border-color: #E8401C; }

.cc-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.cc-btn-calc {
    width: 100%;
    background: linear-gradient(135deg, #E8401C, #c73518);
    color: #fff;
    border: none;
    padding: 15px;
    border-radius: 10px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Sora', sans-serif;
    transition: opacity .2s, transform .15s;
    margin-bottom: 12px;
}
.cc-btn-calc:hover { opacity: .9; transform: translateY(-1px); }

.cc-btn-reset {
    width: 100%;
    background: #f5f6fa;
    color: #666;
    border: 2px solid #e8e8e8;
    padding: 10px;
    border-radius: 10px;
    font-size: .9rem;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Sora', sans-serif;
    transition: background .2s;
}
.cc-btn-reset:hover { background: #e8e8e8; }

/* Result panel */
.cc-result {
    background: linear-gradient(135deg, #1a2b4a, #243555);
    color: #fff;
    border-radius: 12px;
    padding: 24px;
    margin-top: 20px;
    display: none;
    animation: cc-fadeIn .4s ease;
}
.cc-result.show { display: block; }
.cc-result .main-result {
    font-size: 2rem;
    font-weight: 800;
    color: #FCA97E;
    margin-bottom: 16px;
    line-height: 1.1;
}
.cc-result .main-result small {
    font-size: 1rem;
    color: rgba(255,255,255,.6);
    display: block;
    margin-bottom: 4px;
    font-weight: 400;
}
.cc-breakdown { border-top: 1px solid rgba(255,255,255,.15); margin-top: 14px; padding-top: 14px; }
.cc-breakdown-row {
    display: flex;
    justify-content: space-between;
    font-size: .85rem;
    padding: 4px 0;
    color: rgba(255,255,255,.75);
}
.cc-breakdown-row strong { color: #fff; }

@keyframes cc-fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ────────────────────────────────────────────
   SIDEBAR
──────────────────────────────────────────── */
.cc-sidebar { display: flex; flex-direction: column; gap: 20px; }

.cc-sidebar-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0,0,0,.07);
    overflow: hidden;
}
.cc-sidebar-card h4 {
    background: #1a2b4a;
    color: #fff;
    padding: 14px 18px;
    font-size: .9rem;
    font-weight: 700;
    margin: 0;
}
.cc-sidebar-links { padding: 12px; display: flex; flex-direction: column; gap: 4px; }
.cc-sidebar-links a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    font-size: .83rem;
    font-weight: 500;
    transition: background .15s, color .15s;
}
.cc-sidebar-links a:hover { background: #fff5f3; color: #E8401C; }
.cc-sidebar-links a.active { background: #E8401C; color: #fff; font-weight: 700; }
.cc-sidebar-links .cat-label {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #bbb;
    padding: 8px 10px 2px;
}

/* ────────────────────────────────────────────
   SEO CONTENT SECTIONS
──────────────────────────────────────────── */
.cc-seo-section {
    background: #fff;
    max-width: 900px;
    margin: 0 auto 30px;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.cc-seo-section h2 {
    font-size: 1.35rem;
    font-weight: 800;
    color: #1a2b4a;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.cc-seo-section h2::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 22px;
    background: #E8401C;
    border-radius: 2px;
}
.cc-seo-section p { color: #555; line-height: 1.75; font-size: .95rem; }

/* ────────────────────────────────────────────
   FAQ
──────────────────────────────────────────── */
.cc-faq-section {
    max-width: 900px;
    margin: 0 auto 40px;
    padding: 0 20px;
}
.cc-faq-section h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1a2b4a;
    margin-bottom: 20px;
    text-align: center;
}
.cc-faq-item {
    background: #fff;
    border-radius: 12px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
    overflow: hidden;
    border: 2px solid transparent;
    transition: border-color .2s;
}
.cc-faq-item.open { border-color: #E8401C22; }
.cc-faq-q {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 22px;
    cursor: pointer;
    font-weight: 600;
    font-size: .95rem;
    color: #1a2b4a;
    gap: 12px;
}
.cc-faq-q:hover { color: #E8401C; }
.cc-faq-q .icon { font-size: 1.2rem; flex-shrink: 0; transition: transform .2s; }
.cc-faq-item.open .cc-faq-q .icon { transform: rotate(45deg); }
.cc-faq-a {
    display: none;
    padding: 0 22px 18px;
    color: #555;
    font-size: .9rem;
    line-height: 1.7;
}
.cc-faq-item.open .cc-faq-a { display: block; }

/* ────────────────────────────────────────────
   CALC CATEGORY GRID (model page)
──────────────────────────────────────────── */
.cc-calc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 10px;
}
.cc-calc-link {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 2px solid #eee;
    border-radius: 10px;
    padding: 12px 14px;
    text-decoration: none;
    color: #333;
    font-size: .83rem;
    font-weight: 600;
    transition: all .2s;
}
.cc-calc-link:hover {
    border-color: #E8401C;
    color: #E8401C;
    background: #fff5f3;
    transform: translateY(-2px);
}
.cc-calc-link .icon { font-size: 1rem; }

/* ────────────────────────────────────────────
   CATEGORY SECTION HEADING
──────────────────────────────────────────── */
.cc-cat-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    font-weight: 700;
    color: #1a2b4a;
    margin: 28px 0 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #f0f0f0;
}
.cc-cat-heading span { font-size: 1.1rem; }

/* ────────────────────────────────────────────
   HOMEPAGE — CATEGORY CARDS
──────────────────────────────────────────── */
.cc-cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}
.cc-cat-card {
    background: #fff;
    border-radius: 14px;
    padding: 24px 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all .2s;
    text-decoration: none;
    color: inherit;
    display: block;
}
.cc-cat-card:hover {
    border-color: #E8401C;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(232,64,28,.12);
}
.cc-cat-card .cat-icon { font-size: 2rem; margin-bottom: 10px; }
.cc-cat-card h3 { font-size: .95rem; font-weight: 700; color: #1a2b4a; margin-bottom: 4px; }
.cc-cat-card p  { font-size: .78rem; color: #888; }

/* ────────────────────────────────────────────
   FOOTER
──────────────────────────────────────────── */
.cc-footer {
    background: #1a2b4a;
    color: rgba(255,255,255,.7);
    padding: 50px 20px 30px;
    margin-top: 60px;
}
.cc-footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
@media (max-width: 768px) { .cc-footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .cc-footer-grid { grid-template-columns: 1fr; } }

.cc-footer h4 { color: #fff; font-size: .95rem; font-weight: 700; margin-bottom: 14px; }
.cc-footer a  { display: block; color: rgba(255,255,255,.65); text-decoration: none; font-size: .85rem; margin-bottom: 8px; transition: color .2s; }
.cc-footer a:hover { color: #FCA97E; }
.cc-footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: .82rem;
}

/* ────────────────────────────────────────────
   UTILITY
──────────────────────────────────────────── */
.cc-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 700;
}
.cc-badge-red    { background: #E8401C22; color: #E8401C; }
.cc-badge-navy   { background: #1a2b4a22; color: #1a2b4a; }
.cc-badge-orange { background: #FCA97E33; color: #c47830; }

.cc-divider { height: 2px; background: linear-gradient(90deg, #E8401C, #FCA97E, transparent); border: none; margin: 40px 0; }

/* Gray background sections */
.cc-section-gray { background: #f5f6fa; }
.cc-section-white { background: #fff; }
.cc-section-navy { background: #1a2b4a; color: #fff; }

/* Alert / info box */
.cc-info-box {
    background: #fff5f3;
    border-left: 4px solid #E8401C;
    border-radius: 8px;
    padding: 14px 18px;
    font-size: .88rem;
    color: #555;
    margin: 16px 0;
}

/* ────────────────────────────────────────────
   RESPONSIVE
──────────────────────────────────────────── */
@media (max-width: 768px) {
    .cc-header-inner { height: 56px; }
    .cc-nav { display: none; }
    .cc-home-hero { padding: 50px 16px 40px; }
    .cc-calc-layout { padding: 20px 16px; gap: 20px; }
    .cc-calc-panel { padding: 20px; }
    .cc-seo-section { padding: 24px 18px; }
    .cc-field-row { grid-template-columns: 1fr; }
    .cc-stats-bar { gap: 0; }
    .cc-stat { min-width: 50%; border-right: none; border-bottom: 1px solid rgba(255,255,255,.12); }
}