/********** Cooling and Power Integrated Systems Limited - brand theme **********/
/* Palette taken from the Cooling Point logo: cyan accent on deep navy.
   Bootstrap's compiled colours are overridden here instead of in the vendor file. */
:root {
    --primary: #0E7CB8;
    --cyan: #29ABE2;
    --secondary: #0B2A5B;
    --light: #F2F7FB;
    --dark: #061B3A;
}

.bg-primary { background-color: var(--primary) !important; }
.bg-secondary { background-color: var(--secondary) !important; }
.bg-dark { background-color: var(--dark) !important; }
.bg-light { background-color: var(--light) !important; }
.bg-cyan { background-color: var(--cyan) !important; }
.text-primary { color: var(--primary) !important; }
.text-secondary { color: var(--secondary) !important; }
.text-cyan { color: var(--cyan) !important; }
.border-primary { border-color: var(--primary) !important; }

a { color: var(--primary); }
a:hover { color: var(--secondary); }

.btn.btn-primary,
.btn.btn-primary:disabled {
    background: var(--primary);
    border-color: var(--primary);
}

.btn.btn-primary:hover,
.btn.btn-primary:focus,
.btn.btn-primary:active {
    background: var(--secondary);
    border-color: var(--secondary);
}

.btn.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
}

.btn.btn-outline-primary:hover,
.btn.btn-outline-primary:focus,
.btn.btn-outline-primary:active {
    background: var(--primary);
    border-color: var(--primary);
    color: #FFFFFF;
}

.btn.btn-light {
    background: #FFFFFF;
    border-color: #FFFFFF;
    color: var(--secondary);
}

.btn.btn-light:hover {
    background: var(--cyan);
    border-color: var(--cyan);
    color: #FFFFFF;
}

.btn:focus,
.btn:active,
.form-control:focus,
.form-select:focus {
    box-shadow: 0 0 0 .25rem rgba(41, 171, 226, .3);
    border-color: var(--primary);
    outline: none;
}

::selection { background: var(--cyan); color: #FFFFFF; }


/*** Typography helpers ***/
.section-label {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--primary);
    font-family: "Roboto Slab", serif;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-size: 14px;
}

.bg-dark .section-label,
.bg-secondary .section-label { color: var(--cyan); }

/* Section anchors clear the sticky navbar */
section[id] { scroll-margin-top: 90px; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}


/*** Topbar ***/
.topbar a:hover { color: #FFFFFF !important; }


/*** Navbar brand ***/
.navbar .navbar-brand { white-space: normal; }

.navbar .navbar-brand .brand-logo {
    max-height: 54px;
    width: auto;
}

@media (max-width: 991.98px) {
    .navbar .navbar-brand .brand-logo { max-height: 42px; }
}

/* Text wordmark, kept as a fallback for pages that do not carry the logo image */
.navbar .navbar-brand .brand-mark {
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--cyan), var(--primary));
    color: #FFFFFF;
    font-size: 22px;
}

.navbar .navbar-brand .brand-name {
    display: block;
    margin: 0;
    font-family: "Roboto Slab", serif;
    font-weight: 800;
    font-size: 23px;
    line-height: 1.1;
    color: var(--secondary);
    text-transform: uppercase;
}

.navbar .navbar-brand .brand-name span { color: var(--primary); }

.navbar .navbar-brand .brand-sub {
    display: block;
    font-size: 10.5px;
    letter-spacing: 2.2px;
    text-transform: uppercase;
    color: #6C7A90;
}

.navbar .navbar-nav .nav-link { margin-left: 20px; }

/* Eight items have to fit between the logo and the call-to-action */
@media (min-width: 992px) and (max-width: 1399.98px) {
    .navbar .navbar-nav .nav-link { margin-left: 13px; font-size: 15px; }
    .navbar .navbar-brand .brand-logo { max-height: 46px; }
}

@media (max-width: 575.98px) {
    .navbar .navbar-brand .brand-name { font-size: 18px; }
    .navbar .navbar-brand .brand-sub { font-size: 9px; letter-spacing: 1.4px; }
}


/*** Carousel ***/
#header-carousel .carousel-item {
    position: relative;
    height: 620px;
}

#header-carousel .carousel-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-caption {
    background: linear-gradient(90deg, rgba(6, 27, 58, .93) 0%, rgba(6, 27, 58, .76) 100%);
}

@media (max-width: 768px) {
    #header-carousel .carousel-item { height: 540px; }
}


/*** Guarantee bar ***/
.guarantee-bar .guarantee-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.guarantee-bar .guarantee-item i {
    font-size: 30px;
    color: var(--cyan);
    line-height: 1;
}

.guarantee-bar .guarantee-item h5 { color: #FFFFFF; margin-bottom: 2px; }
.guarantee-bar .guarantee-item small { color: rgba(255, 255, 255, .7); }


/*** Cards ***/
.product-card,
.sector-card,
.step-card,
.showroom-card,
.brand-group {
    height: 100%;
    background: #FFFFFF;
    border: 1px solid #E4EBF2;
    border-radius: 6px;
    transition: .4s;
}

.product-card { overflow: hidden; }

.product-card:hover,
.sector-card:hover,
.step-card:hover,
.showroom-card:hover,
.brand-group:hover {
    border-color: var(--primary);
    box-shadow: 0 16px 36px rgba(6, 27, 58, .12);
    transform: translateY(-4px);
}

.product-media {
    height: 230px;
    background: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #E4EBF2;
}

.product-media img { width: 100%; height: 100%; }

/* Studio cut-outs sit inside the frame, site photographs fill it */
.product-media--contain img { object-fit: contain; padding: 18px; }
.product-media--cover img { object-fit: cover; }

.product-card .product-body { padding: 26px; }

.product-card ul,
.sector-card ul,
.brand-group ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.product-card ul li,
.sector-card ul li,
.brand-group ul li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 8px;
    color: #5B6472;
}

.product-card ul li::before,
.sector-card ul li::before,
.brand-group ul li::before {
    position: absolute;
    left: 0;
    top: 1px;
    content: "\f00c";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 12px;
    color: var(--primary);
}

.sector-card,
.step-card,
.brand-group { padding: 30px; }

.step-card .step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    margin-bottom: 20px;
    border-radius: 50%;
    background: var(--light);
    color: var(--primary);
    font-family: "Roboto Slab", serif;
    font-weight: 600;
    font-size: 20px;
}

.sector-card .sector-icon,
.brand-group .brand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    margin-bottom: 20px;
    border-radius: 6px;
    background: var(--light);
    color: var(--primary);
    font-size: 24px;
}

.showroom-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 22px 24px;
}

.showroom-card i { font-size: 26px; color: var(--primary); }
.showroom-card h5 { margin: 0; }
.showroom-card small { color: #6C7A90; }


/*** Why choose us ***/
.reason-item { display: flex; margin-bottom: 34px; }
.reason-item:last-child { margin-bottom: 0; }

.reason-item .reason-icon {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--primary);
    color: #FFFFFF;
    font-size: 28px;
}


/*** About ***/
.vision-quote {
    border-left: 4px solid var(--cyan);
    background: var(--light);
    padding: 24px 28px;
    font-size: 18px;
    color: var(--secondary);
}

.about-collage img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

.about-collage .collage-tall { height: 476px; }
.about-collage .collage-short { height: 230px; }

@media (max-width: 575.98px) {
    .about-collage .collage-tall { height: 376px; }
    .about-collage .collage-short { height: 180px; }
}

.parent-logo {
    max-width: 220px;
    width: 100%;
    height: auto;
}


/*** Contact ***/
.contact-line {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px 0;
    border-bottom: 1px solid #E4EBF2;
}

.contact-line:last-child { border-bottom: 0; }

.contact-line .contact-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--light);
    color: var(--primary);
    font-size: 20px;
}

.contact-line a { color: var(--secondary); text-decoration: none; font-weight: 500; }
.contact-line a:hover { color: var(--primary); }

#form-notice { display: none; }


/*** Footer ***/
.footer h5 { font-family: "Roboto Slab", serif; }

.footer .footer-brand {
    font-family: "Roboto Slab", serif;
    font-weight: 800;
    font-size: 26px;
    text-transform: uppercase;
    color: #FFFFFF;
    line-height: 1.15;
}

.footer .footer-brand span { color: var(--cyan); }

.footer .footer-logo {
    max-width: 170px;
    background: #FFFFFF;
    border-radius: 6px;
    padding: 10px;
}

.footer a.footer-plain { color: #7F8499; text-decoration: none; }
.footer a.footer-plain:hover { color: var(--primary); }

.footer .footer-logo-parent { max-width: 130px; }


/*** WhatsApp ***/
.btn.btn-whatsapp {
    background: #25D366;
    border-color: #25D366;
    color: #FFFFFF;
}

.btn.btn-whatsapp:hover,
.btn.btn-whatsapp:focus,
.btn.btn-whatsapp:active {
    background: #1DA851;
    border-color: #1DA851;
    color: #FFFFFF;
}

.whatsapp-float {
    position: fixed;
    right: 30px;
    bottom: 88px;
    z-index: 99;
    box-shadow: 0 6px 18px rgba(6, 27, 58, .25);
}

@media (max-width: 575.98px) {
    .whatsapp-float { right: 20px; bottom: 80px; }
}


/*** Cooling Point page ***/
.page-header {
    background: linear-gradient(90deg, rgba(6, 27, 58, .95) 0%, rgba(11, 42, 91, .88) 100%), url("../img/gallery/storefront-sign.jpeg") center center / cover no-repeat;
}

.page-header .logo-plate {
    display: inline-block;
    background: #FFFFFF;
    border-radius: 8px;
    padding: 20px 26px;
}

.page-header .logo-plate img {
    max-width: 240px;
    width: 100%;
    height: auto;
}

.structure-card {
    position: relative;
    background: #FFFFFF;
    border: 1px solid #E4EBF2;
    border-radius: 6px;
    padding: 36px 30px 30px;
    text-align: center;
    transition: .4s;
}

.structure-card:hover {
    border-color: var(--primary);
    box-shadow: 0 16px 36px rgba(6, 27, 58, .12);
    transform: translateY(-4px);
}

.structure-card .structure-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 18px;
    border-radius: 20px;
    background: var(--secondary);
    color: #FFFFFF;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.structure-card .structure-badge--sub { background: var(--primary); }

.structure-card .structure-logo {
    max-width: 190px;
    width: 100%;
    height: auto;
    margin: 10px 0 24px;
}

.structure-arrow {
    font-size: 40px;
    color: var(--primary);
}

.stat-card {
    height: 100%;
    background: var(--light);
    border-radius: 6px;
    padding: 24px;
    text-align: center;
}

.stat-card h2 {
    font-family: "Roboto Slab", serif;
    font-weight: 800;
    color: var(--primary);
}

.stat-card span {
    font-size: 14px;
    color: #5B6472;
}

.cta-panel {
    background: #FFFFFF;
    border-radius: 6px;
    padding: 30px;
}


/*** Head office panel and map ***/
.office-panel {
    background: #FFFFFF;
    border: 1px solid #E4EBF2;
    border-left: 4px solid var(--cyan);
    border-radius: 6px;
    padding: 30px;
}

.map-frame {
    border: 1px solid #E4EBF2;
    border-radius: 6px;
    overflow: hidden;
    min-height: 340px;
}

.map-frame iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 340px;
}


/*** Service areas ***/
.areas-panel {
    background: var(--light);
    border-radius: 6px;
    padding: 34px;
}

.area-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.area-pill {
    background: #FFFFFF;
    border: 1px solid #D8E3ED;
    border-radius: 20px;
    padding: 6px 16px;
    font-size: 15px;
    color: var(--secondary);
}


/*** FAQ ***/
.faq-card {
    height: 100%;
    background: #FFFFFF;
    border: 1px solid #E4EBF2;
    border-left: 4px solid var(--cyan);
    border-radius: 6px;
    padding: 28px;
    transition: .4s;
}

.faq-card:hover {
    box-shadow: 0 16px 36px rgba(6, 27, 58, .12);
    transform: translateY(-3px);
}

.faq-card h3 { color: var(--secondary); }
.faq-card p { color: #5B6472; margin-bottom: 0; }


/*** Breadcrumb ***/
.breadcrumb .breadcrumb-item a { color: var(--primary); text-decoration: none; }
.breadcrumb .breadcrumb-item a:hover { text-decoration: underline; }
.breadcrumb .breadcrumb-item.active { color: #6C7A90; }


/*** Responsive corrections ***/

/* Logos carry width/height attributes for layout stability. Any rule that caps
   their width must release the height, or the attribute height is used as-is
   and the image stretches. */
.footer .footer-logo,
.navbar .navbar-brand .brand-logo,
.parent-logo,
.structure-logo,
.page-header .logo-plate img { height: auto; }

/* The nav carries up to nine items; the buttons only fit from xl upwards, and
   the links wrap rather than overflow if a label is ever lengthened. */
@media (min-width: 992px) {
    .navbar .navbar-nav { flex-wrap: wrap; justify-content: center; }
}

/* Hero: display-4 headings and the longer captions overflow a fixed-height
   slide on phones, so both the type and the slide height are retuned. */
@media (max-width: 768px) {
    #header-carousel .carousel-item { height: 580px; }
    .carousel-caption .pt-5 { padding-top: 0 !important; }
    .carousel-caption .display-4 { font-size: 2.1rem; line-height: 1.25; }
    .carousel-caption .fs-5 { font-size: 1rem !important; }
    .carousel-caption .mx-sm-5 { margin-left: 0 !important; margin-right: 0 !important; }
    .carousel-caption .btn { padding: 12px 24px !important; font-size: 15px; }
    /* keep the prev/next hit areas clear of the centred buttons */
    .carousel-control-prev,
    .carousel-control-next { width: 12%; }
}

@media (max-width: 575.98px) {
    #header-carousel .carousel-item { height: 560px; }
    .carousel-caption .display-4 { font-size: 1.75rem; }
    .display-5 { font-size: 1.9rem; }
    .display-6 { font-size: 1.6rem; }
    .areas-panel,
    .office-panel,
    .cta-panel,
    .structure-card,
    .sector-card,
    .brand-group,
    .step-card,
    .faq-card { padding: 22px; }
    .product-card .product-body { padding: 22px; }
    .map-frame,
    .map-frame iframe { min-height: 280px; }
}

/* Touch screens have no hover, so the lift effects would stick after a tap. */
@media (hover: none) {
    .product-card:hover,
    .sector-card:hover,
    .step-card:hover,
    .showroom-card:hover,
    .brand-group:hover,
    .structure-card:hover {
        transform: none;
        box-shadow: none;
        border-color: #E4EBF2;
    }

    .faq-card:hover {
        transform: none;
        box-shadow: none;
    }
}

/* Honour a reduced-motion preference across the scroll reveals, the card
   lifts, the button transitions and the carousel. */
@media (prefers-reduced-motion: reduce) {
    .animated,
    .wow,
    [class*="animate__"] { animation: none !important; }

    .btn,
    .navbar.sticky-top,
    .product-card,
    .sector-card,
    .step-card,
    .showroom-card,
    .brand-group,
    .structure-card,
    .faq-card,
    #header-carousel .carousel-item { transition: none !important; }

    .product-card:hover,
    .sector-card:hover,
    .step-card:hover,
    .showroom-card:hover,
    .brand-group:hover,
    .structure-card:hover,
    .faq-card:hover { transform: none; }
}
