/* ============================================
   SUPERPRO 2025 BRAND REFRESH

   This file overrides the existing site styles
   with the new SuperPro branding. To revert,
   simply remove the <link> to this file in
   includes/header.cfm.

   Brand Fonts:
     Body:      Poppins
     Headings:  Poppins (Magistral available but not currently used)
   Brand Colors:
     Primary Blue:  #004990
     Dark Navy:     #003366
     Yellow:        #FFCB05
     Dark Yellow:   #CCA100
   ============================================ */

/* --- Poppins (body + heading font) --- */
@font-face { font-family: 'Poppins'; src: url('../fonts/poppins/Poppins-Light.otf') format('opentype'); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('../fonts/poppins/Poppins-Regular.otf') format('opentype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('../fonts/poppins/Poppins-Italic.otf') format('opentype'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('../fonts/poppins/Poppins-Medium.otf') format('opentype'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('../fonts/poppins/Poppins-MediumItalic.otf') format('opentype'); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('../fonts/poppins/Poppins-SemiBold.otf') format('opentype'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('../fonts/poppins/Poppins-SemiBoldItalic.otf') format('opentype'); font-weight: 600; font-style: italic; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('../fonts/poppins/Poppins-Bold.otf') format('opentype'); font-weight: 700; font-style: normal; font-display: swap; }

/* --- Magistral (available for future use) --- */
@font-face { font-family: 'Magistral'; src: url('../fonts/magistral/Magistral Book.otf') format('opentype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Magistral'; src: url('../fonts/magistral/Magistral Book Italic.otf') format('opentype'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Magistral'; src: url('../fonts/magistral/Magistral Medium.otf') format('opentype'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Magistral'; src: url('../fonts/magistral/Magistral Medium Italic.otf') format('opentype'); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: 'Magistral'; src: url('../fonts/magistral/Magistral Bold.otf') format('opentype'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Magistral'; src: url('../fonts/magistral/Magistral Bold Italic.otf') format('opentype'); font-weight: 700; font-style: italic; font-display: swap; }


/* ============================================
   FONTS - override all font-family references
   ============================================ */

body,
.column-block,
.info-notice,
p {
    font-family: 'Poppins', Arial, Helvetica, sans-serif;
}

h1, h2, h3, h4, h5, h6,
#mainNav ul li,
.quote-position h4,
.quote-position h5,
#copyright-container {
    font-family: 'Poppins', sans-serif;
}

.footer-column-section,
.footer-column-section h3 {
    font-family: 'Poppins', Arial, Helvetica, sans-serif;
}

/* Spread footer columns across full width using flexbox */
#footer-container .fixedwidth {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}
.footer-column-section {
    flex: 1 1 0;
    width: auto;
    min-width: 200px;
    margin: 0;
    float: none;
}
.footer-column-section ul li {
    margin-bottom: 6px;
}
.footer-column-section:first-child {
    margin-top: 0;
}
.footer-column-section:last-child {
    margin-bottom: 0;
}
#footer-divider {
    width: 100%;
    margin: 20px 0;
    flex-basis: 100%;
}
#copyright-container {
    width: auto;
    margin: 0;
    float: none;
}
#footer-social-container {
    width: auto;
    margin: 0;
    float: none;
    margin-left: auto;
    margin-right: 60px;
    display: flex;
    gap: 12px;
    align-items: center;
}
#footer-social-container .social-icon {
    display: inline-block;
    width: 28px;
    height: 28px;
    opacity: 0.6;
    transition: opacity 0.15s ease;
    float: none;
    margin: 0;
}
#footer-social-container .social-icon:hover {
    opacity: 1;
}
#footer-social-container .social-icon svg {
    width: 100%;
    height: 100%;
    fill: #fff;
}


/* ============================================
   COLORS - override old palette
   Old gold #f1c621 -> New yellow #FFCB05
   Old navy #163b79 -> New blue #004990
   Old dark #131025 -> New navy #003366
   ============================================ */

/* --- Header --- */

#header {
    border-top-color: #FFCB05;
    padding-top: 12px;
}

/* --- Logo --- */

#superpro-logo {
    margin-top: 8px;
}

@media only screen and (min-width: 1090px) {
    #header {
        display: flex;
        align-items: center;
        flex-wrap: nowrap;
        padding-top: 1.5%;
    }
    #logo {
        float: none;
        flex-shrink: 0;
    }
    #mainNav {
        float: none;
        margin-left: auto;
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        justify-content: flex-end;
    }
    #superpro-logo {
        margin-top: 0;
    }
}

@media only screen and (max-width: 1089px) {
    #logo {
        width: 30%;
    }
    #superpro-logo {
        /* Vertically align with centre of 46px menu button at top:14px */
        margin-top: 18px;
        margin-left: 5%;
    }
}

@media only screen and (max-width: 600px) {
    #logo {
        width: 45%;
    }
}

/* --- Menu button --- */

.menu-link {
    background-color: #004990;
    top: 14px;
}
#mainNav.light .menu-link,
#mainNav.open .menu-link,
#mainNav.light.open .menu-link {
    background-color: #FFCB05;
}
#mainNav.open .menu-link {
    position: fixed;
    top: 14px;
    right: 5%;
}
#menu-circle {
    background-color: #004990;
}

/* --- Menu lines --- */

#mainNav.light .menu-line {
    background-color: #004990;
}
#mainNav.open .menu-line,
#mainNav.light.open .menu-line {
    background-color: #004990;
}

/* --- Nav links --- */

#mainNav ul li a,
#mainNav ul li a:visited {
    color: #004990;
}
#mainNav ul li a:hover,
#mainNav ul li a:active,
#mainNav ul li a.selected {
    background-color: #FFCB05;
}

#mainNav.light ul li a,
#mainNav.light ul li a:visited {
    color: #FFF;
}
#mainNav.light.open ul li a,
#mainNav.light.open ul li a:visited {
    color: #004990;
}
#mainNav.light ul li a:hover,
#mainNav.light ul li a:active,
#mainNav.light ul li a.selected {
    background-color: #FFCB05;
    color: #003366;
}

/* --- Full screen overlay menu --- */

.overlay {
    border-top-color: #FFCB05;
}

/* --- Banner --- */

#banner {
    border-bottom-color: #004990;
    position: relative;
    float: none !important;
    margin-bottom: -40px;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: auto !important;
    padding-bottom: 50px;
}

#banner > .clr {
    display: none !important;
}

#bannerContent,
#banner #bannerContent,
#banner > #bannerContent {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    text-align: center;
    width: 90%;
    max-width: 1232px;
    align-self: center !important;
    position: relative;
    z-index: 2;
}

.clarify {
    position: absolute !important;
    pointer-events: none;
    height: calc(100% + 40px) !important;
}

/* Banner vignette overlay for text readability */
.clarify {
    background:
        linear-gradient(to bottom, rgba(0,15,40,0.85) 0%, rgba(0,15,40,0.5) 8%, rgba(0,15,40,0.25) 20%, transparent 35%),
        radial-gradient(ellipse 65% 40% at 50% 45%, rgba(0,15,40,0.7) 0%, transparent 100%),
        radial-gradient(ellipse at 0% 0%, rgba(0,0,0,0.55) 0%, transparent 40%),
        radial-gradient(ellipse at 100% 0%, rgba(0,0,0,0.55) 0%, transparent 40%);
}

/* --- Quote strip --- */

.quote-container {
    margin-top: -40px;
    position: relative;
    z-index: 3;
}

.st0 {
    fill: #FFCB05;
}
.quote-bg {
    background-color: #FFCB05;
}
.quote-position h4 {
    color: #003366;
}
.quote-position h5 {
    color: #003366;
}

/* --- Headings --- */

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    line-height: 1.25;
    font-weight: 600;
}

h1 {
    font-size: clamp(1.4rem, 2.5vw + 0.5rem, 2.4rem);
    border-bottom: 3px solid #FFCB05;
    padding-bottom: 6px;
    margin-bottom: 20px;
}

h2 {
    font-size: clamp(1.2rem, 2vw + 0.4rem, 2rem);
    margin-bottom: 15px;
}

h3 {
    font-size: clamp(1.05rem, 1.5vw + 0.3rem, 1.5rem);
    margin-bottom: 12px;
}

h4 {
    font-size: clamp(1rem, 1.2vw + 0.3rem, 1.3rem);
    margin-bottom: 10px;
}

h5 {
    font-size: clamp(0.9rem, 1vw + 0.2rem, 1.1rem);
    margin-bottom: 8px;
}

h6 {
    font-size: clamp(0.85rem, 0.8vw + 0.2rem, 1rem);
    margin-bottom: 8px;
}

/* --- Breadcrumb --- */

.breadcrumb {
    text-align: center;
}
.breadcrumb ul li {
    float: none;
    display: inline;
}
.breadcrumb ul li a,
.breadcrumb ul li a:visited {
    color: #555;
}
.breadcrumb ul li a:active,
.breadcrumb ul li a:hover {
    color: #FFCB05;
}

/* --- Links --- */

a {
    color: #004990;
}
a:hover {
    color: #003366;
}

/* --- Footer --- */

#footer-container {
    background-color: #003366;
    background-image: none !important;
    border-top: 5px solid #004990;
    color: rgba(255,255,255,0.85);
    padding: 50px 0 40px;
}
#footer-container a,
#footer-container a:visited {
    color: rgba(255,255,255,0.75);
}
#footer-container a:hover,
#footer-container a:active {
    color: #FFCB05;
}

.footer-column-section h3 {
    color: #FFCB05;
    margin-bottom: 10px;
}

#footer-divider {
    background-color: rgba(255,255,255,0.15);
}

#copyright-container {
    color: rgba(255,255,255,0.5);
}

/* --- Product range links in overlay menu --- */

#product-range-links a {
    color: #004990;
}
#product-range-links a:hover {
    color: #003366;
    background-color: #FFCB05;
}

/* --- Footer responsive spacing --- */

@media only screen and (max-width: 1089px) {
    .footer-column-section ul li {
        margin-bottom: 6px;
    }
    .footer-column-section ul li a {
        padding: 4px 0;
    }
    #footer-social-container {
        margin-left: 0;
        margin-right: 0;
    }
}

@media only screen and (max-width: 600px) {
    .footer-column-section ul li {
        margin-bottom: 8px;
    }
    .footer-column-section ul li a {
        padding: 6px 0;
    }
    #footer-container .fixedwidth {
        width: 80%;
    }
    .footer-column-section {
        flex: 1 1 100%;
        min-width: 100%;
    }
    #footer-social-container {
        margin-left: 0;
    }
}

/* --- Buttons --- */

a.button, a.button:visited {
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    display: inline-block;
    padding: 10px 28px;
    background-color: #004990;
    color: #fff;
    border: 2px solid #004990;
    border-radius: 3px;
    text-align: center;
    transition: all 0.2s ease;
    line-height: normal;
}
a.button:hover, a.button:active {
    background-color: #FFCB05;
    border-color: #FFCB05;
    color: #003366;
}

#locator input[type=submit],
input[type=submit],
button[type=submit] {
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px 28px;
    background-color: #004990;
    color: #fff;
    border: 2px solid #004990;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.2s ease;
}
#locator input[type=submit]:hover,
input[type=submit]:hover,
button[type=submit]:hover {
    background-color: #FFCB05;
    border-color: #FFCB05;
    color: #003366;
}

/* --- Back to top button --- */

#back-to-top a {
    background-color: #004990;
}
#back-to-top a:hover,
#back-to-top a:active {
    background-color: #FFCB05;
}

/* --- Product containers --- */

.productcontainer {
    border-top: none;
}
.productcontainer:last-child {
    border-bottom: none;
}

/* --- "NEW" badges --- */

.new {
    color: #004990;
}

/* --- Major point numbers (Why SuperPro page) --- */

.majorpointnumber {
    color: #004990;
}

/* ============================================
   HEADER SEARCH BAR
   ============================================ */

/* --- Search container in nav --- */

#header-search {
    position: relative;
    display: flex;
    align-items: center;
    margin-left: 10px;
}

#header-search-form {
    display: flex;
    align-items: center;
    position: relative;
}

#header-search-form input[type="text"] {
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    padding: 7px 36px 7px 12px;
    border: 2px solid #ddd;
    border-radius: 3px;
    outline: none;
    width: 240px;
    transition: border-color 0.2s ease, width 0.2s ease;
    background: #fff;
    color: #333;
}
#header-search-form input[type="text"]:focus {
    border-color: #004990;
}
#header-search-form input[type="text"]::placeholder {
    color: #999;
    font-size: 0.8rem;
}

#header-search-form button[type="submit"] {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}
#header-search-form button[type="submit"] svg {
    width: 24px;
    height: 24px;
    fill: #004990;
    transition: fill 0.15s ease;
}
#header-search-form button[type="submit"]:hover svg {
    fill: #003366;
}
@media only screen and (max-width: 1089px) {
    #header-search-form button[type="submit"] {
        right: calc(5% + 10px);
        top: calc(50% + 6px);
    }
    #header-search-form button[type="submit"] svg {
        width: 30px;
        height: 30px;
    }
}

/* --- Mobile search toggle --- */

#header-search-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    align-items: center;
    justify-content: center;
}
#header-search-toggle svg {
    width: 30px;
    height: 30px;
    fill: #004990;
}
#mainNav.light #header-search-toggle svg {
    fill: #fff;
}

/* --- Desktop: search bar always visible --- */

@media only screen and (min-width: 1090px) {
    #header-search-toggle {
        display: none !important;
    }
    #header-search-form {
        display: flex !important;
    }
    #mainNav ul {
        display: flex;
        align-items: center;
        margin: 0;
        float: none;
        order: 2;
        padding-top: 0;
    }
    #header-search {
        flex-shrink: 0;
        order: 1;
        margin-right: 18px;
    }
}

/* --- Mobile/Tablet: toggle icon, expandable bar --- */

@media only screen and (max-width: 1089px) {
    #header-search {
        position: absolute;
        right: calc(5% + 60px);
        top: 18px;
        margin-left: 0;
        z-index: 9998;
    }
    #header-search-toggle {
        display: flex;
    }
    #header-search-form {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 10000;
        background: #004990;
        padding: 26px 5% 14px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        align-items: center;
    }
    #header-search.search-open #header-search-form {
        display: flex;
    }
    #header-search-form input[type="text"] {
        width: 100%;
        font-size: 1rem;
        padding: 10px 50px 10px 14px;
    }
}

@media only screen and (max-width: 600px) {
    #header-search {
        right: calc(5% + 55px);
    }
}

/* --- Autocomplete dropdown --- */

#header-search-results {
    display: none;
    position: fixed;
    min-width: 320px;
    background: #fff;
    border: 1px solid #ddd;
    border-top: 3px solid #004990;
    border-radius: 0 0 3px 3px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    z-index: 10001;
    max-height: 70vh;
    overflow-y: auto;
}

@media only screen and (max-width: 1089px) {
    #header-search-results {
        position: fixed;
        top: 58px !important;
        left: 0 !important;
        right: 0;
        min-width: 0;
        width: 100% !important;
        max-height: calc(100vh - 58px);
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
}

.search-cat-heading {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #004990;
    padding: 8px 14px;
    background: #f5f7fa;
    border-bottom: 2px solid #FFCB05;
    margin: 0;
}

a.search-result-item,
a.search-result-item:visited {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    color: #333;
    transition: background-color 0.12s ease;
}
a.search-result-item:hover,
a.search-result-item:active,
a.search-result-item.active {
    background-color: #FFF8DC;
    color: #003366;
}
.search-result-item img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 2px;
}
.search-result-item .sr-text {
    flex: 1;
    min-width: 0;
}
.search-result-item .sr-label {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 0.85rem;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.search-result-item .sr-desc {
    font-size: 0.78rem;
    color: #777;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.search-result-item .sr-type {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #fff;
    background: #004990;
    padding: 2px 6px;
    border-radius: 2px;
    flex-shrink: 0;
    letter-spacing: 0.3px;
}

.search-no-results {
    padding: 20px 14px;
    text-align: center;
    color: #999;
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
}

.search-view-all {
    display: block;
    padding: 10px 14px;
    text-align: center;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.8rem;
    color: #004990;
    text-decoration: none;
    border-top: 1px solid #eee;
    background: #f9f9f9;
    transition: background-color 0.15s ease;
}
.search-view-all:hover {
    background-color: #FFCB05;
    color: #003366;
}

/* ============================================
   SEARCH RESULTS PAGE (search.cfm)
   ============================================ */

.search-results-page h1 {
    border-bottom: 3px solid #FFCB05;
    padding-bottom: 6px;
}

.search-results-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.search-results-category {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #004990;
    padding: 12px 0 6px;
    border-bottom: 2px solid #FFCB05;
    margin: 25px 0 0;
}
.search-results-category:first-child {
    margin-top: 0;
}

.search-results-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 14px 0;
    border-bottom: 1px solid #eee;
}
.search-results-list li a {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: #333;
    flex: 1;
}
.search-results-list li a:hover {
    color: #004990;
}
.search-results-list li img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 3px;
    background: #f5f5f5;
    padding: 4px;
}
.search-results-list .sr-page-text {
    flex: 1;
}
.search-results-list .sr-page-label {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    display: block;
    color: #003366;
}
.search-results-list .sr-page-desc {
    font-size: 0.85rem;
    color: #777;
    display: block;
    margin-top: 2px;
}
.search-results-list .sr-page-type {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #fff;
    background: #004990;
    padding: 3px 8px;
    border-radius: 2px;
    flex-shrink: 0;
}
