/* margin: (top) (right) (bottom) (left) */
/* padding: (top AND bottom) (right AND left) */

/* Brand Colours & Bootstrap Overrides
----------------------------------------------------------------------------- */
:root{
    --ce-primary: #70675b;
    --ce-secondary: #555555;
    --ce-grey: #4c4c4c;
    --ce-blue: #296daa;
    --bs-light: #f7f2ee;
    --bs-dark: #03201F;
    /* --bs-link-color-rgb: #c2b19e;*/
    --brand1: #2e2927;
    --brand2: #3a3532;
    --brand3: #453f3b;
    --brand4: #5a4e47;
    --brand5: #70675b;
    --brand6: #8c7b6e;
    --brand7: #ab9a8c;
    --brand8: #c2b19e;
    --brand9: #d7c9b1;
    --brand10: #efe6dc;
    --brand11: #f7f2ee;
    --brand12: #e7daca;
}

.bg-ce-primary{
    background-color:var(--ce-primary)
}

.bg-ce-secondary{
    background-color:var(--ce-secondary)
}

.bg-ce-light{
    background-color:var(--bs-light)
}


/*** Buttons ***/
.btn {
    transition: .5s;
}
.btn-square {
    width: 38px;
    height: 38px;
}
.btn-sm-square {
    width: 32px;
    height: 32px;
}
.btn-lg-square {
    width: 48px;
    height: 48px;
}
.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}

/*** PRIMARY BUTTON OVERRIDES ***/
.btn-ce-primary,
.btn-ce-primary:focus,
.btn-ce-primary:focus-visible,
.btn-ce-primary:active,
.btn-ce-primary.active,
.show > .btn-ce-primary.dropdown-toggle,
.btn-check:checked + .btn-ce-primary,
.btn-check:active + .btn-ce-primary {
    color: #fff;
    background-color: var(--ce-primary); /* main color */
    border-color: var(--ce-primary);
    box-shadow: none; /* removes default blue focus outline */
    transition: background-color 0.3s ease;
}

.btn-ce-primary:hover {
    color: #fff;
    background-color: var(--brand7); /* hover color */
    border-color: var(--brand8);
}

.btn-ce-primary:disabled,
.btn-ce-primary.disabled {
    color: #fff;
    background-color: var(--ce-primary);
    border-color: var(--ce-primary);
    box-shadow: none;
}

/*** OUTLINE PRIMARY BUTTON ***/
.btn-outline-ce-primary,
.btn-outline-ce-primary:focus,
.btn-outline-ce-primary:focus-visible,
.btn-outline-ce-primary:active,
.btn-outline-ce-primary.active,
.show > .btn-outline-ce-primary.dropdown-toggle,
.btn-check:checked + .btn-outline-ce-primary,
.btn-check:active + .btn-outline-ce-primary {
    color: var(--ce-primary);
    border-color: var(--ce-primary);
    background-color: transparent;
    box-shadow: none;
    transition: background-color 0.3s ease;
}

.btn-outline-ce-primary:hover {
    color: #fff;
    background-color: var(--brand7); /* match primary hover */
    border-color: var(--brand8);   /* optional: match primary border hover */
}

.btn-outline-ce-primary:disabled,
.btn-outline-ce-primary.disabled {
    color: var(--ce-primary);
    background-color: transparent;
    border-color: var(--ce-primary);
    box-shadow: none;
}


/*** BASKET BUTTON ***/
.btn-ce-blue {
    color: #fff;
    background-color: var(--ce-blue);
    border-color: var(--ce-blue);
    transition: background-color 0.3s ease, border-color 0.3s ease;
    font-family: "Inter", sans-serif;
    font-weight: 500;
}

/* Hover state */
.btn-ce-blue:hover {
    background-color: #1f5690; /* slightly darker for hover */
    border-color: #1f5690;
    color: #fff;
}

/* Focus state */
.btn-ce-blue:focus, 
.btn-ce-blue:focus-visible {
    outline: none;
    box-shadow: 0 0 0 0.25rem rgba(41, 109, 170, 0.5);
}

/* Active / pressed state */
.btn-ce-blue:active,
.btn-ce-blue.active,
.btn-ce-blue:checked {
    background-color: #174773; /* even darker for click/active */
    border-color: #174773;
    color: #fff;
}

/* Disabled state */
.btn-ce-blue:disabled,
.btn-ce-blue.disabled {
    background-color: #7fa3d1; /* lighter / muted */
    border-color: #7fa3d1;
    color: #e0e0e0;
    cursor: not-allowed;
}

/*** BASKET BUTTON OUTLINE ***/
.btn-outline-ce-blue {
    color: var(--ce-blue);
    background-color: transparent;
    border-color: var(--ce-blue);
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
    font-family: "Inter", sans-serif;
    font-weight: 500;
}
/* Hover state */
.btn-outline-ce-blue:hover {
    background-color: var(--ce-blue);
    border-color: var(--ce-blue);
    color: #fff;
}
/* Focus state */
.btn-outline-ce-blue:focus,
.btn-outline-ce-blue:focus-visible {
    outline: none;
    box-shadow: 0 0 0 0.25rem rgba(41, 109, 170, 0.5);
}
/* Active / pressed state */
.btn-outline-ce-blue:active,
.btn-outline-ce-blue.active,
.btn-outline-ce-blue:checked {
    background-color: #174773;
    border-color: #174773;
    color: #fff;
}
/* Disabled state */
.btn-outline-ce-blue:disabled,
.btn-outline-ce-blue.disabled {
    background-color: transparent;
    border-color: #7fa3d1;
    color: #7fa3d1;
    cursor: not-allowed;
}

/*** BUTTON TEXT STYLE ***/
.btn-text-style {
    font-family: "Inter", sans-serif;
    font-size: 1rem;
    font-weight: 400;
}

/*** HEADINGS & TEXT ***/
h6,.h6,h5,.h5,h4,.h4,h3,.h3,h2,.h2,h1,.h1{
    font-family: 'Inter', sans-serif;
    color: var(--ce-grey);
}

.art-h1 {
    font-size: 3rem;
    font-weight: 500;
}

.art-h2 {
    font-size: 1.75rem;
    font-weight: 400;
}

.text-primary{
    color:var(--ce-primary) !important;
}

.form-text, small, p, label {
    color: var(--ce-grey);
}

.card-title {
    color: var(--ce-grey) !important;
}

body {
  font-family: "Inter", sans-serif;
}

p {
  font-family: "Inter", sans-serif;
  font-weight: 400;
}

.text-brand7 {
    color: var(--brand7);
}

.helper-text {
    font-size: 0.75rem;
    color: #777;
}

/*** Borders ***/
.border-primary{
    border-color:var(--ce-primary) !important;
}
.border-secondary{
    border-color:var(--ce-secondary) !important;
}

.border-brand6{
    border-color:var(--brand6);
}

/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}

/*** Back-To-Top ***/
.back-to-top {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 9999;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

/*** Navbar ***/
[id] {
  scroll-margin-top: 60px;
}

.navbar-brand {
  position: relative;
}

.navbar-brand .logo {
  height: 60px;           /* Increase this to your liking */
  width: auto;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

/* Reduce font size on lg to xl screens */
@media (min-width: 992px) and (max-width: 1200px) {
    .art-h1 {
        font-size: 2rem;
    }
    .art-h2 {
        font-size: 1.5rem;
    }
}

.sticky-top {
    top: -150px;
    transition: .5s;
}

.navbar {
    padding: 15px 0;
    font-size: 18px;
}

.logo {
    height: 50px;
    width: auto;
}

.navbar .navbar-nav .nav-link {
    margin-left: 30px;
    padding: 0;
    outline: none;
    color: var(--bs-dark);
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--ce-primary)
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
    color: inherit;
}

.navbar .dropdown-menu .dropdown-item:hover,
.navbar .dropdown-menu .dropdown-item.active {
    color: var(--bs-white);
    background: var(--ce-primary);
}

@media (max-width: 991.98px) {
    .navbar .navbar-nav .nav-link  {
        margin-left: 0;
        padding: 10px 0;
    }
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 150%;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}

.nav-link .fa-basket-shopping {
    transition: transform 0.2s ease;
}

.nav-link:hover .fa-basket-shopping {
    transform: scale(1.1);
}

/*** Header ***/
.breadcrumb-item+.breadcrumb-item::before {
    color: var(--ce-blue);
}

.breadcrumb-item a {
    color: var(--ce-blue);
}

/*** Header Carousel ***/
.header-carousel {
    position: relative;
    padding: 45px 90px 45px 0;
}

.header-carousel::before {
    position: absolute;
    content: "";
    top: 0;
    right: 0;
    width: calc(50% + 45px);
    height: 100%;
    background: var(--bs-light);
    z-index: -1;
    border-radius: 6px;
}

.header-carousel .owl-dots {
    position: absolute;
    top: 50%;
    right: 38px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.header-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 5px 0;
    width: 15px;
    height: 15px;
    border: 2px solid var(--bs-white);
    transition: .5s;
}

.header-carousel .owl-dot.active {
    height: 30px;
    background: var(--bs-white);
}

.owl-stage-outer {
    border-radius: 6px;
}


/*** Forms ***/
.work-email {
    display: none;
}


/*** Material Links ***/
.circle-link > div {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.circle-link:hover > div {
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.circle-link {
  display: inline-block;
}

.circle-link:hover h5 {
  text-decoration: underline;
}

/*** About ***/
.about-img {
    position: relative;
    overflow: hidden;
}

.about-img::after {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: url("/static/img/bg-about-img.png") top left no-repeat;
    background-size: contain;
}

/*** Footer ***/
.footer .btn.btn-link {
    display: block;
    margin-bottom: 10px;
    padding: 0;
    text-align: left;
    color: rgba(255,255,255,.5);
    font-weight: normal;
    transition: .3s;
}

.footer .btn.btn-link:hover {
    color: var(--bs-white);
    letter-spacing: 1px;
    box-shadow: none;
}

.footer .copyright {
    padding: 25px 0;
    font-size: 14px;
    border-top: 1px solid rgba(256, 256, 256, .1);
}

.footer .copyright a {
    color: rgba(255,255,255,.5);
}

.footer .copyright a:hover {
    color: var(--bs-white);
}

.footer .footer-menu a {
    margin-right: 15px;
    padding-right: 15px;
    border-right: 1px solid rgba(255, 255, 255, .1);
}

.footer .footer-menu a:last-child {
    margin-right: 0;
    padding-right: 0;
    border-right: none;
}


/*** Materials Page ***/
.material-badge{
    background-color: var(--brand6);
}
.moisture{
    color: rgba(41, 109, 170, 1);
}
.heat{
    color: rgba(245, 141, 66, 1);
}
.carcass{
    color: var(--brand6);
}
.material-features i {
    font-size: 1.2rem;      /* make icons slightly bigger */
    cursor: default;         /* pointer not needed for hover tooltip */
}
.product-description {
    display: block;
    max-height: 5em; /* approx 3 lines */
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.card-text.expanded .product-description {
    max-height: 1000px; /* arbitrary large number for full expansion */
}

.btn-toggle-description {
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    color: #555;
    font-size: 0.9rem;
    display: flex;
    align-items: flex-end; /* ensures icon aligns with last line */
}

/*** DataTables ***/
table.table.dataTable > tbody > tr.selected > *,
table.table.dataTable > tbody > tr.selected:hover > * {
    background-color: var(--ce-blue) !important;
    box-shadow: none !important;
}

.dt-paging-button.active > .page-link {
    background-color: var(--ce-blue) !important;
    border-color: var(--ce-blue) !important;
}

.dt-paging-button > .page-link {
    color: var(--ce-blue) !important;
}

.dt-paging-button.active > .page-link {
    color: #fff !important;
}

/* Icon on the left */
table.dataTable thead th.dt-icon-start div.dt-column-header {
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 0.5em;
}

/* Icon on the right */
table.dataTable thead th.dt-icon-end div.dt-column-header {
    flex-direction: row;
    justify-content: space-between;
    gap: 0.5em;
}

table.dataTable tbody td.dt-icon-start {
    padding-left: 30px !important;
}

table.dataTable tbody td.dt-icon-end {
    padding-right: 30px !important;
}

.col-truncate { max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }


/*** Product Page ***/

/* ===== Board preview layout ===== */
.board-wrapper {
    max-width: 500px;
    max-height: 700px;
    margin: 0 auto;
}

#board-viewport {
    position: relative;
    overflow: hidden;
    margin: 0 auto;
    border: 1px solid #ddd;
    background: #f8f8f8;
    cursor: grab;
}

#board-image {
    position: absolute;
    top: 0;
    left: 0;
    transform-origin: top left;
}

/* Labels */
.measure-label {
    position: absolute;
    font-size: 0.85rem;
    background: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    display: none;
    z-index: 10;
    white-space: nowrap;
}

.length-label {
    left: -20px;
    top: 50%;
    transform: translateY(-50%) rotate(-90deg);
    transform-origin: center;
}

.width-label {
    bottom: 1px;
    left: 50%;
    transform: translateX(-50%);
}

/* Edge highlights */
.edge {
    position: absolute;
    background: rgba(255, 0, 0, 0.4);
    /* background: rgba(41, 109, 170, 1); */
    display: none;
    z-index: 5;
}

.edge-top, .edge-bottom {
    height: 6px;
    left: 0;
    right: 0;
}

.edge-left, .edge-right {
    width: 6px;
    top: 0;
    bottom: 0;
}

.edge-top { top: 0; }
.edge-bottom { bottom: 0; }
.edge-left { left: 0; }
.edge-right { right: 0; }

/*** Tooltip ***/
.tooltip .tooltip-inner {
    max-width: unset;
    white-space: nowrap;
    text-align: left;
}


/*** Contact Form ***/
.contact_form_h {
    position: absolute;
    left: -9999px;
    top: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}


/*** FAQs Page ***/
.faq-panel > .faq-panel-heading {
    padding: 0;
    outline: none;
    border: none;
    border-radius: 0;
    width: 100%;
}

.faq-panel-heading a {
    font-weight: 500;
    padding: 17px 35px 17px 15px;
    display: inline-block;
    width: 100%;
    background-color: #ffffff;
    color: #333333;
    position: relative;
    text-decoration: none;
    border: 1px solid #000000;
    box-shadow: none;
    transition: all 0.5s ease;
}

.faq-panel-heading a:not(.collapsed) {
    box-shadow: 0 0 0 3px var(--brand11);
}

.faq-panel-heading a::after {
    font-family: "Font Awesome 5 Free";
    content: "\f146";
    position: absolute;
    right: 15px;
    font-size: 14px;
    font-weight: 300;
    top: 50%;
    line-height: 1;
    margin-top: -7px;
}

.faq-panel-heading a.collapsed::after {
    content: "\f0fe";
}

.faq-panel-heading a:hover {
    text-decoration: none;
    background-color: var(--ce-primary);
    color: #ffffff;
}

.faq-panel-title a i {
    padding-right: 10px;
    font-size: 16px;
}


/*** Project
.project-item img {
    transition: .5s;
}
  
.project-item:hover img {
    transform: scale(1.2);
}
  
.project-overlay {
    position: absolute;
    padding: 25px;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    background: linear-gradient(rgba(255, 255, 255, .1) 50%, var(--bs-dark));
    z-index: 1;
}
 Project ***/


/*** Service ***/
.service-item {
    position: relative;
    padding: 30px 25px;
    transition: .5s;
}

.service-item.bg-ce-primary:hover {
    background: var(--bs-light);
}

.service-item.bg-ce-primary p {
    color: var(--bs-light);
    transition: .5s;
}

.service-item.bg-ce-primary:hover p {
    color: var(--ce-secondary);
}

.service-item.bg-ce-light:hover {
    background: var(--ce-primary);
}

.service-item.bg-ce-light p {
    color: var(--ce-secondary);
    transition: .5s;
}

.service-item.bg-ce-light:hover p {
    color: var(--bs-light);
}

.service-item .service-img h3 {
    position: absolute;
    top: 0;
    left: 0;
    padding: 0 12px 7px 0;
}

.service-item.bg-ce-primary .service-img h3 {
    background: var(--ce-primary);
    color: var(--bs-white);
    transition: .5s;
}

.service-item.bg-ce-primary:hover .service-img h3 {
    background: var(--bs-light);
    color: var(--ce-primary);
}

.service-item.bg-ce-light .service-img h3 {
    background: var(--bs-light);
    color: var(--ce-primary);
    transition: .5s;
}

.service-item.bg-ce-light:hover .service-img h3 {
    background: var(--ce-primary);
    color: var(--bs-white);
}


/*** Testimonial ***/
.testimonial-img {
    position: relative;
    padding: 45px 0 45px 90px;
}

.testimonial-img::before {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    width: calc(50% + 45px);
    height: 100%;
    background: var(--bs-light);
    z-index: -1;
}

.testimonial-text h5 {
    position: relative;
    padding-left: 45px;
}

.testimonial-text h5::before {
    position: absolute;
    content: "";
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 40px;
    height: 2px;
    background: var(--ce-primary);
}

.testimonial-carousel .owl-dots {
    position: absolute;
    height: 17px;
    bottom: 0;
    right: 0;
    left: auto;
}

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin-left: 10px;
    width: 15px;
    height: 15px;
    background: var(--bs-white);
    border: 2px solid var(--ce-primary);
    transition: .5s;
}

.testimonial-carousel .owl-dot.active {
    width: 30px;
    background: var(--ce-primary);
}

@media (max-width: 768px) {
    .testimonial-carousel .owl-dots {
        left: 0;
        right: auto;
    }

    .testimonial-carousel .owl-dot {
        margin-right: 10px;
        margin-left: 0;
    }
}
