/*
Theme Name: OceanWP Child Theme
Theme URI: https://oceanwp.org/
Description: OceanWP WordPress theme. Sample child theme.
Author: OceanWP
Author URI: https://oceanwp.org/
Template: oceanwp
Version: 1.0
*/

/* Parent stylesheet should be loaded from functions.php not using @import */


/* CUSTOM CODE STARTS HERE */

/*

-> STYLES THAT EXISTS IN HERE ARE GLOBAL STYLES ACROSS THE WEBSITE. <-

*/


/* =========================================
   CarDudes Global Design System
   ========================================= */

:root{
  --cd-purple: #8B1FFF;

  /* Typography */
  --cd-font: "Poppins", system-ui, -apple-system, sans-serif;

  /* Layout */
  --cd-container: 1200px;
  --cd-pad-x: 16px;

  --cd-section-y: 48px;
  --cd-section-y-lg: 72px;

  /* Spacing scale */
  --cd-gap-1: 8px;
  --cd-gap-2: 16px;
  --cd-gap-3: 24px;
  --cd-gap-4: 32px;

  --cd-radius: 18px;
  --cd-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

body{
  font-family: var(--cd-font);
}

/* Container */
.cd-container{
  max-width: var(--cd-container);
  margin-inline: auto;
  padding-inline: var(--cd-pad-x);
}

/* Section spacing */
.cd-section{
  padding-block: var(--cd-section-y);
}

@media (min-width: 900px){
  :root{ --cd-pad-x: 24px; }
  .cd-section{ padding-block: var(--cd-section-y-lg); }
}

/* Buttons */
.cd-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: all .2s ease;
  cursor: pointer;
}

.cd-btn--primary{
  background: var(--cd-purple);
  color: #fff;
}

.cd-btn--primary:hover{

background:transparent;
color:#8b1fff;
  border:1px solid #8b1fff;

      border-color: rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
}


.cd-btn--ghost{
  border: 1px solid #fff;
  color: #fff;
  background: transparent;
}

/* =========================================
   Template Isolation Layer
   Applies to custom templates only
   ========================================= */

.cd-template #content-wrap,
.cd-template .container,
.cd-template .content-area {
  width: 100% !important;
  max-width: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.cd-template .site-content,
.cd-template #primary,
.cd-template #content {
  padding: 0 !important;
  margin: 0 !important;
}



/* FOOTER */

/* ==============================
   Footer Social Icons
============================== */

.cd-footer__social{
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.cd-footer__icon{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0,0,0,.12);
  color: #8B1FFF;
  text-decoration: none !important;
  transition: all .2s ease;
}

.cd-footer__icon i{
  font-size: 20px;   /* Bigger icon */
  line-height: 1;
}

.cd-footer__icon:hover{
/*   background: #8B1FFF; */
  color: #ffffff !important;   /* Force white on hover */
  border-color: #8B1FFF;
}

/* Remove OceanWP blue hover override */
.cd-footer a:hover{
  color: #8B1FFF !important;
}

/* Disabled social icon */
.cd-footer__icon--disabled{
  opacity: .4;
  pointer-events: none;
}

/* Contact rows as block */
.cd-footer__contactRow{
  display: flex;              /* Force block layout */
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  text-decoration: none !important;
  color: rgba(0,0,0,.75);
  width: 100%;                /* Full width */
  transition: color .2s ease;
}

.cd-footer__contactRow i{
  font-size: 16px;
  color: #8B1FFF;
  min-width: 20px;
}

.cd-footer__contactRow:hover{
  color: #8B1FFF !important;
}

/* Prevent inline behavior */
.cd-footer__contact{
  display: flex;
  flex-direction: column;
  gap: 4px;
}
/* =========================
   Car Dudes Footer (GLOBAL)
   ========================= */
:root{ --cd-purple:#8B1FFF; }

.cd-footer{
  padding-block: var(--cd-section-y);
  border-top: 1px solid rgba(0,0,0,.08);
  background: #fff;
}

.cd-footer__grid{
  display: grid;
  gap: 28px;
}

.cd-footer__brand{
  display: grid;
  gap: 14px;
}

/* ✅ This is the main missing piece that prevents the SVG/logo from exploding */
.cd-footer__logo img{
  display: block;
  width: min(240px, 70vw);
  max-width: 240px;
  height: auto;
}

/* Tagline */
.cd-footer__tagline{
  margin: 0;
  max-width: 36ch;
  color: rgba(0,0,0,.65);
  line-height: 1.6;
}

/* Titles */
.cd-footer__title{
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 800;
  color: rgba(0,0,0,.90);
}
.cd-footer__title--spaced{ margin-top: 18px; }

/* ✅ This removes the bullets (missing on your broken pages) */
.cd-footer__list{
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.cd-footer__list a{
  text-decoration: none;
  color: rgba(0,0,0,.70);
}
.cd-footer__list a:hover{
  color: var(--cd-purple) !important;
}

/* Social Icons */
.cd-footer__social{
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.cd-footer__icon{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0,0,0,.12);
  color: var(--cd-purple);
  text-decoration: none !important;
  transition: all .2s ease;
}

.cd-footer__icon i{
  font-size: 20px;
  line-height: 1;
}

.cd-footer__icon:hover{
  background: var(--cd-purple);
  color: #fff !important;
  border-color: var(--cd-purple);
}

.cd-footer__icon--disabled{
  opacity: .4;
  pointer-events: none;
}

/* Contact */
.cd-footer__contact{ 
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 16px;
}

.cd-footer__contactRow{
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  text-decoration: none !important;
  color: rgba(0,0,0,.75);
  width: 100%;
  transition: color .2s ease;
}

.cd-footer__contactRow i{
  font-size: 16px;
  color: var(--cd-purple);
  min-width: 20px;
}

.cd-footer__contactRow:hover{
  color: var(--cd-purple) !important;
}

.cd-footer__hours{
  margin: 12px 0 0;
  color: rgba(0,0,0,.55);
  line-height: 1.6;
  font-size: 14px;
}

/* Bottom */
.cd-footer__bottom{
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(0,0,0,.08);
  color: rgba(0,0,0,.55);
  font-size: 14px;
}

/* Desktop layout */
@media (min-width: 960px){
  .cd-footer{
    padding-block: var(--cd-section-y-lg);
  }
  .cd-footer__grid{
    grid-template-columns: 1.3fr 1fr 1fr 1.2fr;
    gap: 40px;
    align-items: start;
  }
}





/* =========================
   Blog Page
   ========================= */

.cd-blog-hero{
  text-align: center;
}

.cd-blog-hero h1{
  font-size: 32px;
  margin-bottom: 10px;
}

.cd-blog-hero p{
  max-width: 600px;
  margin: 0 auto;
  color: rgba(0,0,0,.65);
}

.cd-blog-grid{
  display: grid;
  gap: 28px;
}

.cd-blog-card{
  padding: 24px;
  border-radius: 18px;
  border: 1px solid rgba(0,0,0,.08);
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cd-blog-title{
  margin: 0;
  font-size: 20px;
}

.cd-blog-title a{
  text-decoration: none;
  color: #000;
}

.cd-blog-title a:hover{
  color: #8B1FFF;
}

.cd-blog-excerpt{
  color: rgba(0,0,0,.65);
  line-height: 1.6;
}

/* Desktop Grid */
@media (min-width: 960px){
  .cd-blog-grid{
    grid-template-columns: repeat(3, 1fr);
  }
}

/* CTA Section */
.cd-blog-cta{
  text-align: center;
}




/* =========================
   Single Blog Post
   ========================= */

.cd-single-container{
  max-width: 760px;
  margin: 0 auto;
}

.cd-single-header h1{
  font-size: 34px;
  margin-bottom: 12px;
}

.cd-single-meta{
  font-size: 14px;
  color: rgba(0,0,0,.55);
  margin-bottom: 24px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.cd-single-content{
  line-height: 1.8;
  font-size: 17px;
}

.cd-single-content h2{
  margin-top: 36px;
  margin-bottom: 14px;
  font-size: 24px;
}

.cd-single-content h3{
  margin-top: 28px;
  margin-bottom: 12px;
  font-size: 20px;
}

.cd-single-content p{
  margin-bottom: 18px;
}

.cd-blog-inline-cta{
  margin-top: 40px;
  padding: 28px;
  border-radius: 18px;
  background: rgba(139,31,255,.05);
  border: 1px solid rgba(139,31,255,.15);
  text-align: center;
}

.cd-blog-inline-cta h3{
  margin-bottom: 8px;
}

.cd-blog-inline-cta p{
  margin-bottom: 18px;
}

/* Floating WhatsApp — sitewide */
.cd-wa-float{
  position: fixed;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 999999;

  width: 64px;
  height: 64px;

  display: grid;
  place-items: center;

  background: transparent;
  text-decoration: none;
  padding: 0;
  overflow: hidden;

  /* Keep it “floating” above everything */
  pointer-events: auto;
}

.cd-wa-float:hover{
  filter: brightness(0.95);
}

.cd-wa-float__img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* Mobile: smaller + a bit more breathing room */
@media (max-width: 480px){
  .cd-wa-float{
    right: 14px;
    bottom: calc(14px + env(safe-area-inset-bottom));
    width: 54px;
    height: 54px;
  }
}





/* CUSTOM CODE ENDS HERE */