@charset "UTF-8";

/* --- 1. FONTS & VARIABLES --- */
@font-face {
  font-family: 'A Day Without Sun Text Bold';
  src: url('assets/fonts/A_Day_Without_Sun_Text_Bold.otf') format('opentype');
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

:root {
  --bs-blue: #343a40;
  --bs-indigo: #6610f2;
  --bs-purple: #6f42c1;
  --bs-pink: #d63384;
  --bs-red: #dc3545;
  --bs-orange: #fd7e14;
  --bs-yellow: #ecb807;
  --bs-green: #198754;
  --bs-teal: #20c997;
  --bs-cyan: #0dcaf0;
  --bs-black: #000;
  --bs-white: #fff;
  --bs-gray: #6c757d;
  --bs-gray-dark: #343a40;
  --bs-gray-100: #f8f9fa;
  --bs-gray-200: #e9ecef;
  --bs-gray-300: #dee2e6;
  --bs-gray-400: #ced4da;
  --bs-gray-500: #adb5bd;
  --bs-gray-600: #6c757d;
  --bs-gray-700: #495057;
  --bs-gray-800: #343a40;
  --bs-gray-900: #212529;
  --bs-primary: #343a40;
  --bs-secondary: #6c757d;
  --bs-success: #198754;
  --bs-info: #0dcaf0;
  --bs-warning: #ecb807;
  --bs-danger: #dc3545;
  --bs-light: #f8f9fa;
  --bs-dark: #212529;
  --bs-body-font-family: Source Sans Pro, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, sans-serif;
  --bs-body-font-size: 1.05rem;
  --bs-body-font-weight: 400;
  --bs-body-line-height: 1.5;
  --bs-body-color: #6c757d;
  --bs-body-bg: #fff;
  --bs-border-radius: 0.375rem;
  --bs-link-color: #343a40;
  --bs-link-hover-color: #000;
}

body, html { width: 100%; height: 100%; }
body { padding-top: 0; }

h1, h2, h3, h4, h5, h6 {
  color: #212529;
  font-family: 'A Day Without Sun Text Bold', cursive;
}

/* --- 2. GLOBAL HEADER & NAV --- */
.global-header {
  position: sticky; top: 0; left: 0; width: 100%;
  background-color: #fff; border-bottom: 1px solid #dee2e6;
  z-index: 1000; height: 110px;
}
.global-header::after {
  content: ''; position: absolute; top: 55px; left: 0;
  width: 100%; height: 1px; background-color: #dee2e6; z-index: 1001;
}
.global-header .container-fluid {
  display: flex; flex-direction: column; justify-content: space-between;
  align-items: center; height: 100%; padding-left: 15px; padding-right: 15px;
}
.global-header-top-row {
  display: flex; justify-content: space-between; align-items: center;
  width: 100%; height: 55px; padding: 0;
}

/* Logo Sizes (Mobile Default) */
.global-header-logo img { height: 40px; width: auto; display: block; transition: all 0.2s ease-in-out; }
.global-header-logo:hover img { transform: scale(1.05); opacity: 0.8; }

.clayday-logo-right { height: 35px; width: auto; transition: all 0.2s ease-in-out; }
.clayday-logo-right:hover { transform: scale(1.05); opacity: 0.8; }

/* Nav Wrapper (Mobile Default) */
.global-header-nav-wrapper {
  min-width: 0; text-align: center; width: 100%; padding-top: 0;
  border-top: none; height: 55px; display: flex;
  align-items: center; justify-content: center;
}

/* Bubble Links */
.series-bubble-link {
  text-decoration: none; color: #212529; transition: all 0.2s ease-in-out;
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; text-align: center; height: 100%; min-height: 0; padding: 0;
}
.series-bubble-link:hover { opacity: 0.7; transform: scale(1.05); }

.series-bubble-title {
  text-align: center; width: 100%; margin-top: 2px; margin-bottom: 0; display: none;
}
.series-bubble-image {
  margin-left: auto; margin-right: auto; display: block;
  width: 66px; height: 40px; object-fit: contain; background-color: #ffffff;
}

/* --- 3. HEADER DESKTOP OVERRIDES (Min-width 768px) --- */
@media (min-width: 768px) {
  body { padding-top: 0; }
  .global-header { height: 90px; }
  .global-header::after { display: none; }

  .global-header .container-fluid {
    flex-direction: row; justify-content: space-between; align-items: center;
  }
  .global-header-top-row { display: contents; height: auto; padding: 0; }

  .global-header-logo img { height: 55px; }
  .clayday-logo-right { height: 45px; }

  .global-header-nav-wrapper {
    position: static; transform: none; width: auto; flex-grow: 1;
    display: flex; justify-content: center; height: auto; padding-top: 0; border-top: none;
  }

  .series-bubble-title { display: block; font-size: 0.85rem; }
  .series-bubble-image { width: 85px; height: 53px; }
  .series-bubble-link { min-height: 70px; padding: 0; }
}

/* --- 4. NAV ACTIVE STATES --- */
body.page-clay .series-bubble-link[href="https://clay.day"],
body.page-paint .series-bubble-link[href="paint.html"],
body.page-diamond .series-bubble-link[href="diamond.html"],
body.page-plaster .series-bubble-link[href="plaster.html"],
body.page-licensed .series-bubble-link[href="licensed.html"] {
    opacity: 1; transform: scale(1.05); cursor: default;
}

body.page-clay .series-bubble-link:not([href="https://clay.day"]),
body.page-paint .series-bubble-link:not([href="paint.html"]),
body.page-diamond .series-bubble-link:not([href="diamond.html"]),
body.page-plaster .series-bubble-link:not([href="plaster.html"]),
body.page-licensed .series-bubble-link:not([href="licensed.html"]) {
    opacity: 0.5;
}

body.page-clay .series-bubble-link:not([href="https://clay.day"]):hover,
body.page-paint .series-bubble-link:not([href="paint.html"]):hover,
body.page-diamond .series-bubble-link:not([href="diamond.html"]):hover,
body.page-plaster .series-bubble-link:not([href="plaster.html"]):hover,
body.page-licensed .series-bubble-link:not([href="licensed.html"]):hover {
    opacity: 0.8; transform: scale(1.05);
}

/* --- 5. GENERAL COMPONENTS --- */
.btn {
  font-family: 'A Day Without Sun Text Bold', cursive;
  font-size: 1.25rem; transition: all 0.2s ease-in-out; border-radius: 0.75rem;
}
.btn:hover { transform: scale(1.05); }
.btn-xl { padding: 1rem 2.5rem; font-size: 1.35rem; }

.card { border: none; }
.card .card-title { font-family: 'A Day Without Sun Text Bold', cursive; font-size: 1.35rem; }
.card .card-img-top {
  background-color: #ffffff; object-fit: contain; height: 180px; width: 100%; aspect-ratio: 1/1;
}

.content-section { padding-top: 3.5rem; padding-bottom: 3.5rem; }
.content-section-heading h2 { font-size: 2.25rem; }
.content-section-heading h3 {
  font-size: 1rem; text-transform: uppercase;
  font-family: var(--bs-body-font-family); font-weight: 700;
}

footer.footer { padding-top: 3.5rem; padding-bottom: 3.5rem; }
footer.footer .small { font-size: 0.8rem; }

/* --- 6. HOMEPAGE SPECIFIC (Index.html) --- */
.masthead { padding-top: 1.5rem; background-color: #fff; }
.masthead-text-col .p-5-custom { padding: 1.5rem 0; }
.masthead-text-col h1 { font-size: 2.25rem; }
.masthead-text-col .lead { font-size: 0.95rem; font-weight: 400; margin-bottom: 1.5rem !important; }
.masthead-image-col img { width: 100%; height: auto; display: block; }

@media (min-width: 992px) {
  .masthead .row { margin-top: 0 !important; }
  .masthead-text-col .p-5-custom { padding: 4rem; }
  .masthead-text-col h1 { font-size: 3.25rem; }
  .masthead-text-col .lead { font-size: 1.15rem; margin-bottom: 2rem !important; }
}

#collections .card { transition: transform 0.3s ease, box-shadow 0.3s ease; border-radius: 1rem; }
#collections .card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px -10px rgba(0,0,0,0.15); }

.clayday-highlight-card {
  background-color: #212529 !important; color: #fff !important;
  border: 1px solid #000 !important; overflow: hidden;
}
.clayday-highlight-card .card-title, .clayday-highlight-card .card-text { color: #fff !important; }
.clayday-btn-logo {
  height: 24px; width: auto; vertical-align: middle;
  mix-blend-mode: multiply; transition: opacity 0.2s ease-in-out;
}
.btn-white:hover .clayday-btn-logo { opacity: 0.75; }
.btn-white {
  background-color: #fff; color: #212529; border: none;
  font-family: 'A Day Without Sun Text Bold', cursive, sans-serif;
  font-size: 1.25rem; border-radius: 0.75rem; padding: 0.5rem 1.5rem;
  transition: all 0.2s ease-in-out; display: inline-block; text-align: center; text-decoration: none;
}
.btn-white:hover { background-color: #e2e6ea; color: #000; transform: scale(1.05); }

#about { padding-top: 4.5rem !important; padding-bottom: 4.5rem !important; }
#about h4 { font-size: 1.75rem; margin-bottom: 1rem; }
#about .text-faded { font-size: 1.15rem; }
#about .service-icon {
  height: 16rem; width: 100%; max-width: 24rem;
  margin-bottom: 2rem !important; border-radius: 1rem; overflow: hidden;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  background-color: #fff; display: block; margin-left: auto; margin-right: auto;
}
#about .service-icon img { object-fit: cover; width: 100%; height: 100%; }

/* --- 7. PRODUCT PAGES --- */
.grid-item-card {
  cursor: pointer; transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: none; border-radius: 0.5rem; overflow: hidden; background: #fff;
  height: 100%; padding-bottom: 10px;
}
.grid-item-card:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.grid-item-img { width: 100%; aspect-ratio: 1/1; object-fit: contain; padding: 10px; }
.grid-item-title {
  font-family: 'A Day Without Sun Text Bold', cursive; font-size: 0.9rem;
  text-align: center; margin: 0; color: #212529;
}

.carousel-wrapper { position: relative; width: 100%; padding: 0; box-sizing: border-box; }
.carousel-container { overflow: hidden; width: 100%; }
.carousel-track { display: flex; transition: transform 0.5s ease-in-out; padding: 1rem 0; }

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-6px); }
    100% { transform: translateY(0px); }
}

.carousel-item {
  display: block; flex: 0 0 60%; max-width: 60%;
  margin: 0 15px; border: none; border-radius: 0.375rem;
  transform: scale(0.85); opacity: 0.3; filter: blur(3px) grayscale(100%);
  transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1); cursor: pointer; background-color: #fff;
}
.carousel-item.active {
  opacity: 1; filter: blur(0) grayscale(0%); transform: scale(1.1); z-index: 10; cursor: default;
}
.carousel-item.active img { animation: float 4s ease-in-out infinite; }
.carousel-item:not(.active):hover {
    opacity: 0.6; filter: blur(1px) grayscale(50%); transform: scale(0.9);
}

@media (min-width: 768px) { .carousel-item { flex: 0 0 30%; max-width: 30%; } }
@media (min-width: 992px) { .carousel-item { flex: 0 0 20%; max-width: 20%; } }
@media (max-width: 767px) { .carousel-item { flex: 0 0 60%; max-width: 60%; } }
@media (max-width: 575px) { .carousel-item { flex: 0 0 70%; max-width: 70%; } }

.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.8); border: 1px solid #ddd; border-radius: 50%;
  width: 45px; height: 45px; z-index: 10; cursor: pointer;
  font-size: 1rem; color: #333; transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.carousel-btn:hover { background: #fff; transform: translateY(-50%) scale(1.1); }
.carousel-btn { left: calc(50% - 200px); }
.carousel-btn.next { left: auto; right: calc(50% - 200px); }

@media (max-width: 991px) {
  .carousel-btn { left: calc(50% - 180px); }
  .carousel-btn.next { right: calc(50% - 180px); }
}
@media (max-width: 767px) {
  .carousel-btn { left: 10px; }
  .carousel-btn.next { right: 10px; left: auto; }
}

/* Details Area */
.kit-details-container { margin-top: 1.5rem; padding: 3rem 0; background-color: #ffffff; transition: opacity 0.3s ease-in-out; }
.kit-details-text { text-align: center; margin-bottom: 2rem; }
.kit-details-text h2 { font-size: 2.25rem; font-weight: 700; margin-bottom: 1rem; }
.kit-details-text p { font-size: 1.1rem; line-height: 1.7; margin-bottom: 0; }

.img-detail-trio {
    width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: contain;
    object-position: bottom; border-radius: 0.375rem; background-color: #fff;
    margin-top: 1rem;
}

.kit-contents-list {
  display: inline-block; text-align: left; font-size: 1.1rem; line-height: 1.8; padding-left: 0;
}
.kit-contents-list li { font-family: 'Source Sans Pro', sans-serif; margin-bottom: 0.2rem; }
.kit-contents-list li i { color: var(--bs-secondary); margin-left: 0.5rem; }

@media (min-width: 992px) {
  .kit-details-text h2 { font-size: 2.75rem; }
  .kit-details-text { text-align: left; margin-bottom: 0; }
  .kit-details-title-block { text-align: center; }
  .kit-details-title-block h2 { max-width: 80%; margin-left: auto; margin-right: auto; }
  .kit-details-desc-block p { margin-top: 0; }
  .kit-details-list-block { text-align: left; margin-top: -2.2rem; }
}

/* FAQ */
.faq-item { margin-bottom: 0.5rem; text-align: left; border-bottom: 1px solid #dee2e6; }
.faq-item:last-child { border-bottom: none; }
.faq-button {
  display: block; width: 100%; background: none; border: none;
  padding: 1.25rem 0.5rem; text-align: left; font-family: 'A Day Without Sun Text Bold', cursive;
  font-size: 1.35rem; color: #212529; cursor: pointer; display: flex;
  justify-content: space-between; align-items: center; transition: background-color 0.2s ease;
}
.faq-button:hover { background-color: #f8f9fa; }
.faq-icon {
  font-family: var(--bs-body-font-family); font-size: 2rem;
  font-weight: 300; color: #6c757d; margin-left: 1rem;
}
.faq-content { max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out; background-color: #fff; }
.faq-answer {
  font-family: var(--bs-body-font-family); color: #6c757d;
  line-height: 1.6; padding: 0 0.5rem 1.5rem 0.5rem;
}

/* Fair Banner */
.fair-banner {
    font-family: var(--bs-body-font-family); font-size: 0.95rem; letter-spacing: 0.5px;
    z-index: 999; background-color: #000 !important; color: #fff !important; border: none;
}
.fair-link { color: #fff; text-decoration: underline; font-weight: 700; transition: opacity 0.2s; }
.fair-link:hover { color: #fff; opacity: 0.8; }
@media (max-width: 768px) { .fair-banner { font-size: 0.85rem; } }

/* --- MOBILE PRODUCT DETAILS REORDERING (FIXED WITH FLEX ORDER) --- */
@media (max-width: 767px) {
    /* 1. Force the row to behave as a single column flex container */
    #kitDetails .row.gy-4 {
        display: flex;
        flex-direction: column;
    }

    /* 2. Unwrap the Bootstrap columns so children are direct flex items.
       IMPORTANT: We must use !important to override Bootstrap's .d-flex class
       which otherwise forces display:flex on the column itself. */
    #kitDetails .col-lg-4.col-md-4 {
        display: contents !important;
    }

    /* 3. Text Blocks First (Explicit Order 1-3) */
    .kit-details-title-block { order: 1; width: 100%; margin-bottom: 0.5rem; text-align: center; }
    .kit-details-desc-block  { order: 2; width: 100%; margin-bottom: 0.5rem; text-align: center; }
    .kit-details-list-block  { order: 3; width: 100%; margin-bottom: 2rem;   }

    /* 4. Images Next (Explicit Order 11-16) to ensure sequence 1-6
       This fixes the "interleaved" column order of the DOM. */
    #kitImg1 { order: 11; }
    #kitImg2 { order: 12; }
    #kitImg3 { order: 13; }
    #kitImg4 { order: 14; }
    #kitImg5 { order: 15; }
    #kitImg6 { order: 16; }

    /* 5. General Image Styling */
    .img-detail-trio {
        width: 100%;
        margin-top: 0 !important; /* Override desktop margins */
        margin-bottom: 1rem;
    }

    /* 6. List alignment corrections */
    .kit-details-list-block { display: flex; justify-content: center; }
    .kit-details-list-block-content { width: fit-content; max-width: 90%; text-align: right; }
    .kit-contents-list { text-align: right; padding-right: 0; }
    .kit-details-list-block h4 { text-align: center; }
}

/* Global right alignment override for the list contents (Desktop + Mobile) */
.kit-details-list-block, .kit-details-list-block-content { text-align: right; }
.kit-contents-list { display: block; width: 100%; text-align: right; padding-right: 0; }

/* --- TRUST & PARTNERS SECTION --- */

.cert-img {
    max-height: 90px;
    width: auto;
}

.logo-slider {
    height: 150px;
    margin: auto;
    overflow: hidden;
    position: relative;
    width: 100%;
    background-color: #fff;
}

.logo-slider::before,
.logo-slider::after {
    background: linear-gradient(to right, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
    content: "";
    height: 150px;
    position: absolute;
    width: 120px;
    z-index: 2;
    pointer-events: none;
}

.logo-slider::after { right: 0; top: 0; transform: rotateZ(180deg); }
.logo-slider::before { left: 0; top: 0; }

/* --- Find this section near the bottom of template.css --- */

.logo-slide-track {
    display: flex;
    align-items: center;
    /* MATH UPDATE:
       4 Narrow (160px) + 6 Wide (260px) = 2200px per set.
       Total Track Width = 2200px * 2 = 4400px.
    */
    width: 4400px; /* Changed from 4600px */
    animation: scroll 40s linear infinite;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    /* Scroll exactly the width of ONE set (2200px) */
    100% { transform: translateX(-2200px); } /* Changed from -2300px */
}

/* Base Slide Styling */
.slide {
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 30px;
    flex-shrink: 0;
}

/* INTELLIGENT SIZING */
.slide-narrow { width: 160px; }
.slide-wide   { width: 260px; }

.slide img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100px;
    object-fit: contain;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    /* Scroll exactly the width of ONE set (2300px) */
    100% { transform: translateX(-2300px); }
}