@font-face {
    font-family: 'Typographica';
    src: url('../fonts/TypoGraphica400.woff2') format('woff2'),
         url('../fonts/TypoGraphica400.woff') format('woff'),
         url('../fonts/TypoGraphica400.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}



.container-header {
    z-index: 10;
    background-color: #000000;
    background-image: none;
    position: relative;
    box-shadow: inset 0 5px 5px #00000008;
}
.container-topbar, .container-below-top {
    color: #000000;
}


/* Service menu hover underline */
.dj-megamenu li a:hover,
.dj-megamenu li a:focus {
  border-bottom: 2px solid #00a8d6; /* SS Blue */
  padding-bottom: 2px; /* keeps text from jumping */
  transition: border-color 0.3s ease;
}
.breadcrumb {
    background-color: #000;
    margin-bottom: 0;
}
body {
    font-family: var(--body-font-family);
    font-size: var(--body-font-size);
    font-weight: var(--body-font-weight);
    line-height: var(--body-line-height);
    color: rgba(0, 182, 241, 1);
    text-align: var(--body-text-align);
    background-color: #000000;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: #0000;
    margin: 0;
}
.card {
    --card-spacer-y: 1rem;
    --card-spacer-x: 1rem;
    --card-title-spacer-y: .5rem;
    --card-title-color: ;
    --card-subtitle-color: ;
    --card-border-width: var(--border-width);
    --card-border-color: none;
    --card-border-radius: var(--border-radius);
    --card-box-shadow: ;
    --card-inner-border-radius: calc(var(--border-radius) - (var(--border-width)));
    --card-cap-padding-y: .5rem;
    --card-cap-padding-x: 1rem;
    --card-cap-bg: #000000;
    --card-cap-color: ;
    --card-height: ;
    --card-color: ;
    --card-bg: #000000;
    --card-img-overlay-padding: 1rem;
    --card-group-margin: .5em;
    min-width: 0;
    height: var(--card-height);
    color: var(--body-color);
    word-wrap: break-word;
    background-color: var(--card-bg);
    border: var(--card-border-width)solid var(--card-border-color);
    border-radius: 0.5px;
    background-clip: border-box;
    flex-direction: column;
    display: flex;
    position: relative;
}
.breadcrumb-item.active {
    color: #fff;
}
.container-component>:first-child, .container-sidebar-left>:first-child, .container-sidebar-right>:first-child, .container-component>*+*, .container-sidebar-left>*+*, .container-sidebar-right>*+* {
    margin-top: auto;
}
h1, .h1 {
    font-size: 20px;
}
h6, .h6, h5, .h5, h4, .h4, h3, .h3, h2, .h2, h1, .h1 {
    color: var(--heading-color);
    margin-top: 0;
    margin-bottom: 0px;
    font-weight: 500;
    line-height: 1.2;
}
#footer {
  clear: both;       /* stops floating madness */
  width: 100%;       /* force full width */
  text-align: center;
}
.footer {
    color: #fff;
    background-color: #000000;
    background-image: none;
    margin-top: 0em;
    border-color: #00a8d6;
    border: 0.5px;
}
a {
    color: #00a8d6;
}
.uk-card-default, .uk-card-primary, .uk-card-secondary {
    background-color: #000000;
    color: rgba(0, 182, 241, 1);
    box-shadow: 0 5px 15px rgba(0,0,0,.08);
}
.uk-button-default.uk-active, .uk-button-default:active {
    background-color: transparent;
    color: #00a8d6;
    border-color: #00a8d6;
}
.uk-button-default {
    background-color: transparent;
    color: #00a8d6;
    border: 1px solid #00a8d6;
}
:root {
    --hue: 214;
    --template-bg-light: #000000;
    --template-text-dark: #00a8d6;
    --template-text-light: #ffffff;
    --template-link-color: #00a8d6;
    --template-special-color: #000000;
}
.uk-dropdown {
    display: none;
    position: absolute;
    z-index: 1020;
    --uk-position-offset: 10px;
    --uk-position-viewport-offset: 15px;
    box-sizing: border-box;
    min-width: 200px;
    padding: 25px;
    background: #000000;
    color: #00a8d6;
    box-shadow: 0 5px 12px rgba(0,0,0,.15);
}
.resp-sharing-button__link {
    text-decoration: none;
    color: #00a8d6;
    margin: 0 0 .3em;
}
.resp-sharing-button--facebook {
    background-color: #000000;
    border-color: #00a8d6;
}
.text-muted {
    --text-opacity: 1;
    color: #c3c3c4bf  !important;
}
a {
    color: #00a8d6;
}
.uk-card-default, .uk-card-primary, .uk-card-secondary {
    background-color: rgba(0, 0, 0, 1);
    color: #00a8d6;
    box-shadow: 0 5px 15px rgba(0,0,0,.08);
}
a:hover {
    color: rgba(0, 182, 241, 1);
}
.uk-input:focus, .uk-select:focus, .uk-textarea:focus {
    outline: 0;
    background-color: #000000;
    color: #00a8d6;
    border-color: #00a8d6;
}
.uk-input, .uk-select, .uk-textarea {
    max-width: 100%;
    width: 100%;
    padding: 0 10px;
    background: #000000;
    color: #00a8d6;
    border: 0.5px solid #00a8d6;
    transition: .2s ease-in-out;
    transition-property: color,background-color,border;
}
.card-body {
    padding: unset;
    color: var(--card-color);
    flex: auto;
}
/* ----------------------------------------
   FERRARI PARALLAX BACKGROUND SECTION
   ---------------------------------------- */
.cid-ferrari-section {
  position: relative;
  width: 100%;
  }

.cid-ferrari-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55); /* dark overlay so Ferrari peeks through */
  z-index: 1;
}

/* Inner container holding services */
.cid-ferrari-inner {
  position: relative;
  z-index: 2;
  width: 90%;
  max-width: 1500px;
  margin: 0 auto;
  text-align: center;
  color: #fff;
}



/* ----------------------------------------
   VERTICAL HERO SERVICE BLOCKS
   ---------------------------------------- */
.cid-services-vertical {
  display: flex;
  flex-direction: column;
  gap: 50px;
  padding: 40px 0;
  width: 90%;
  max-width: 1500px;
  margin: 0 auto;
}

/* Each big hero section */
.cid-hero-block {
  position: relative;
  width: 100%;
  height: 350px;              /* height of each service hero */
  border-radius: 12px;
  overflow: hidden;
  background: #111;
}




/* Text overlay */
.cid-hero-content {
  position: absolute;
  bottom: 30px;
  left: 40px;
  z-index: 3;
  color: white;
  text-align: left;
}

.cid-hero-content h3 {
  font-size: 2.2rem;
  margin: 0 0 10px 0;
  font-weight: 700;
}

.cid-hero-content p {
  margin-bottom: 15px;
  font-size: 1.1rem;
}

/* CTA button */
.cid-btn {
  display: inline-block;
  padding: 10px 24px;
  background: #00a8d6;
  color: #000;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
}
/* HERO BLOCK 1 – Premium Valet */
.cid-services-vertical .cid-hero-block:nth-child(1) .cid-hero-image {
  background-image: url('/images/hero/premium_valet.webp');
}

/* HERO BLOCK 2 – Paint Correction */
.cid-services-vertical .cid-hero-block:nth-child(2) .cid-hero-image {
  background-image: url('/images/hero/paint_correction.webp');
}

/* HERO BLOCK 3 – Ceramic Coating */
.cid-services-vertical .cid-hero-block:nth-child(3) .cid-hero-image {
  background-image: url('/images/hero/ceramic_coating.webp');
}

/* HERO BLOCK 4 – Signature Detail */
.cid-services-vertical .cid-hero-block:nth-child(4) .cid-hero-image {
  background-image: url('/images/hero/signature_detail.webp');
}

/* Shared hero image styling */
.cid-hero-image {
  height: 100%;
  width: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}


/* Make your uploaded hero images behave EXACTLY as intended */
.cid-hero-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 25px; /* keep your nice rounded corners */
}
/* ================================
   CLEAN HERO IMAGE SYSTEM (Option B)
   ================================ */

/* Ferrari section stays untouched */
.cid-ferrari-section {
    position: relative;
    width: 100%;
    
    background: url('https://cleanindetail.co.uk/images/ferrari-placeholder.webp') center center / cover no-repeat fixed;
}
.cid-ferrari-section::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 1;
}
.cid-ferrari-inner {
    position: relative;
    z-index: 2;
    width: 90%;
    max-width: 1500px;
    margin: 0 auto;
}

/* === HERO VERTICAL STACK === */
.cid-services-vertical {
    display: flex;
    flex-direction: column;
    gap: 50px;
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    padding: 40px 0;
}

/* Each hero block */
.cid-hero-block {
    position: relative;
    width: 90%;
    margin: 0 auto;
    border-radius: 25px;
    overflow: hidden;
    background: rgba(0,0,0,0.5); /* subtler than solid black */
}

/* The actual hero image */
.cid-hero-img {
    display: block;
    width: 100%;
    height: auto;  /* THIS is the magic: literal Photoshop crop */
    border-radius: 25px;
}

/* Text overlay */
.cid-hero-content {
    position: absolute;
    bottom: 25px;
    left: 40px;
    color: white;
    text-align: left;
}
.cid-hero-content h3 {
    margin: 0 0 10px;
    font-size: 2.4rem;
    font-weight: 700;
}
.cid-hero-content p {
    font-size: 1.1rem;
    margin-bottom: 12px;
}

/* Button */
.cid-btn {
    display: inline-block;
    background: #00a8d6;
    padding: 10px 24px;
    border-radius: 8px;
    color: #000;
    font-weight: bold;
    text-decoration: none;
}

/* MOBILE TWEAK */
@media(max-width: 900px) {
    .cid-hero-content {
        bottom: 15px;
        left: 20px;
    }
    .cid-hero-content h3 {
        font-size: 1.8rem;
    }
}
/* Ferrari Parallax */
.cid-ferrari-section {
  position: relative;
  width: 100%;
  
  background: none;
}
.cid-ferrari-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 1;
}
.cid-ferrari-inner {
  position: relative;
  z-index: 2;
  width: 90%;
  max-width: 1500px;
  margin: 0 auto;
}

/* Vertical stack of hero blocks */
.cid-services-vertical {
  display: flex;
  flex-direction: column;
  gap: 50px;
  padding: 40px 0;
  width: 90%;
  max-width: 1500px;
  margin: 0 auto;
}

/* Each hero block */
.cid-hero-block {
  position: relative;
  width: 100%;
  height: 350px;
  border-radius: 12px;
  overflow: hidden;
  background: #111;
}

/* Hero background image (real image assigned via nth-child rules) */
.cid-hero-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

/* Assign the real images */
.cid-hero-block:nth-child(1) .cid-hero-image {
  background-image: url('/images/hero/premium_valet.webp');
}
.cid-hero-block:nth-child(2) .cid-hero-image {
  background-image: url('/images/hero/paint_correction.webp');
}
.cid-hero-block:nth-child(3) .cid-hero-image {
  background-image: url('/images/hero/ceramic_coating.webp');
}
.cid-hero-block:nth-child(4) .cid-hero-image {
  background-image: url('/images/hero/signature_detail.webp');
}

/* Text overlay */
.cid-hero-content {
  position: absolute;
  bottom: 30px;
  left: 40px;
  color: #fff;
  z-index: 3;
}
.cid-hero-content h3 {
  font-size: 2.2rem;
  margin-bottom: 10px;
  font-weight: 700;
}
.cid-hero-content p {
  margin-bottom: 15px;
  font-size: 1.1rem;
}
.cid-btn {
  display: inline-block;
  padding: 10px 24px;
  background: #00a8d6;
  color: #000;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
}
.cid-services-vertical .cid-hero-block {
    height: 350px;
}

@media (max-width:900px) {
    .cid-services-vertical .cid-hero-block {
        height: 200px;
    }
}

@media (max-width: 900px) {
    .cid-services-vertical .cid-hero-content {
        left: 20px;
        bottom: 20px;
    }
}
#cid-review-strip {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 20px 0;
    margin: 30px 0;
    background: linear-gradient(to right, rgba(0,0,0,0.4), rgba(0,0,0,0.6));
}

/* === Review Track Styles === */
#cid-review-track {
    display: flex;
    gap: 40px;
    white-space: nowrap;
    will-change: transform;
}

.cid-review-card {
    display: inline-block;
    min-width: 350px;
    max-width: 420px;
    padding: 20px;
    background: #000000;
    border-radius: 12px;
    border: 1px solid #00a8d6;
    color: #fff;
    font-size: 1rem;
    line-height: 1.4;
}

.cid-review-stars {
    color: #fbbc04;
    margin-bottom: 8px;
    font-size: 1.3rem;
    letter-spacing: 1px;
}

.cid-review-author {
    margin-top: 10px;
    opacity: 0.8;
    font-size: 0.9rem;
}

/* === Intro Block === */
.cid-intro-block {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 25px;
    color: #ffffff;
    text-align: left;
    position: relative;
    z-index: 2;

    /* Animation */
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.cid-intro-block.reveal {
    opacity: 1;
    transform: translateY(0);
}

.cid-intro-block h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.cid-intro-block p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 18px;
}

/* Highlighted keywords */
.cid-key {
    border-bottom: 2px solid #00a8d6;
    padding-bottom: 2px;
}

/* Strong (white text) */
.cid-intro-block strong {
    color: #ffffff;
}

/* Hide Joomla metadata */
.item-page .article-info {
    display: none;
}

.item-page {
    margin-top: -30px;
}
/* === Intro Block === */
.cid-intro-block {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 25px;
    color: #ffffff;
    text-align: left;
    position: relative;
    z-index: 2;

    /* Animation */
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.cid-intro-block.reveal {
    opacity: 1;
    transform: translateY(0);
}

.cid-intro-block h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.cid-intro-block p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 18px;
}

/* Highlighted keywords */
.cid-key {
    border-bottom: 2px solid #00a8d6;
    padding-bottom: 2px;
}

/* Strong (white text) */
.cid-intro-block strong {
    color: #ffffff;
}

/* Hide Joomla metadata */
.item-page .article-info {
    display: none;
}

.item-page {
    margin-top: -30px;
}
/* === Intro Watermark (Clean + Correct) === */
.cid-intro-block {
    position: relative;
}

.cid-intro-block::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 900px;
    height: 500px;
    background: url("/templates/cassiopeia/images/logo-xmas-webp.webp") no-repeat center center;

    background-size: contain;
    opacity: 0.30;
    pointer-events: none;
    z-index: 1;
    
}
/* MOBILE HERO LOGO RESIZE */
@media (max-width: 900px) {
    .cid-intro-block::before {
        width: 500px !important;
        height: 250px !important;
        top: 65% !important;
        left: 50%;
        transform: translate(-50%, -50%);
        opacity: 0.28;
    }
}

@media (max-width: 600px) {
    .cid-intro-block::before {
        width: 380px !important;
        height: 190px !important;
        top: 70% !important;
        opacity: 0.26;
    }
}

@media (max-width: 420px) {
    .cid-intro-block::before {
        width: 320px !important;
        height: 160px !important;
        top: 72% !important;
        opacity: 0.25;
    }
}

/* Keep actual text above watermark */
.cid-intro-block > * {
    position: relative;
    z-index: 2;
}
/* === FOOTER WRAPPER === */
#cid-footer {
    width: 100%;
    background: url('/images/footer-car.avif') center center / cover no-repeat!important;
    position: relative;
    padding: 60px 20px 30px;
}

/* dark overlay */
#cid-footer::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.75);
    z-index: 1;
}

#cid-footer > * {
    position: relative;
    z-index: 2;
}

/* === LAYOUT === */
.cid-footer-sections {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 100%;         /* was max-width */
    gap: 40px;
    margin: 0 auto 40px;
}


.cid-footer-col {
    flex: 1;
    min-width: 300px;
    color: #fff;
}


.cid-footer-col h4 {
    color: #00a8d6;
    margin-bottom: 12px;
}

/* === SOCIAL ICONS === */
.cid-footer-social {
    text-align: center;
    margin-bottom: 20px;
}

.cid-footer-social a {
    color: #00a8d6;
    font-size: 1.6rem;
    margin: 0 12px;
    text-decoration: none;
}

.cid-footer-social a:hover {
    color: #fff;
}

/* === COPYRIGHT === */
.cid-footer-bottom {
    text-align: center;
    font-size: 0.9rem;
    color: #ccc;
}

.cid-footer-bottom a {
    color: #00a8d6;
}
.cid-footer-col iframe {
    border-radius: 12px;
    overflow: hidden;
}
#cid-footer {
    text-align: center;        /* centre text in columns */
}

.cid-footer-sections {
    justify-content: center !important;  /* centre the flex group */
}

.cid-footer-col {
    text-align: left;          /* set text back to left inside each column */
    padding: 0 20px;
}
/* Force footer content to sit in the absolute dead centre */
.cid-footer-sections {
    max-width: 1600px;          /* gives enough breathing room */
    margin-left: auto !important;
    margin-right: auto !important;
    justify-content: space-between;
}
#cid-footer {
    display: block;
    width: 100%;
    overflow: hidden; /* stops strange left padding leaks */
}
/* Override Joomla container alignment */
#cid-footer {
    width: 100%;
    max-width: 100%;
    padding: 60px 0 30px;
    box-sizing: border-box;
}
.cid-footer-sections {
    display: flex;
    justify-content: center !important;
    gap: 60px;
    width: 100%;
}

.cid-footer-col {
    min-width: 280px;
    text-align: left;
}
/* Apply Typographica to all headings site-wide */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Typographica', sans-serif;
    letter-spacing: 2px;
}
/* FULL top bar as a clean flex container */
.site-topbar,
#top-bar,
#topbar,
.container-topbar {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 0 20px !important;
    height: 85px !important; /* adjust if Nick wants taller */
    background: #000 !important;
    z-index: 9999 !important;
}

/* Left side menu (MegaMenu) */
#top-bar .mod-menu,
#topbar .mod-menu,
.container-topbar .mod-menu {
    display: flex !important;
    align-items: center !important;
}

/* Logo module on the RIGHT */
.cid-logo-module {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    margin-left: auto !important;
}

/* Logo image */
.cid-logo-module img {
    height: 60px !important;   /* your chosen height */
    width: auto !important;
    display: block !important;
    padding: 5px 0 !important;
}
