:root {
    /* ShaftLok Color Palette */
    --federal-blue: #03045E;
    --honolulu-blue: #0077B6;
    --pacific-cyan: #00B4D8;
    --non-photo-blue: #90E0EF;
    --light-cyan: #CAF0F8;
    --text-color: #333;

    /* Font Sizes */
    --font-size-title: clamp(2rem, 4vw, 3.5rem);
    --font-size-subtitle: clamp(1.2rem, 2vw, 1.8rem);
    --font-size-icon: 1.5rem;
    --font-size-description: 1.2rem;
    --font-size-small: .9rem;
}
  
@font-face {
    font-family: 'DeVinneOrnamentDRegular';
    src: url('/assets/fonts/DeVinneOrnamentDRegular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
} 

*, *::before, *::after {
    box-sizing: border-box;
}

.shaftlok-font {
    font-family: 'DeVinneOrnamentDRegular', serif;
}

@media (max-width: 600px) {
    .hide {
      display: none !important;
    }
}

html, body {
    height: 100%;
    margin: 0;
    color: var(--text-color);
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* Header Styles */
header {
    background-color: white;
    border: 2px solid var(--federal-blue);
    border-radius: 50px;
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: 90%;
    max-width: 1200px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.header-container {
    padding: 0.75rem 1.5rem;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 2.5rem;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo-container img {
    height: 2.5rem;
    width: auto;
}

.nav-desktop {
    display: none;
}

@media (min-width: 768px) {
    .nav-desktop {
        display: flex;
        gap: 2rem;
    }
}

.nav-link {
    color: var(--federal-blue);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

.nav-link:hover {
    color: white;
    background-color: var(--federal-blue);
}

/* Product Styles */
.product-container {
    margin-top: 8rem;
    min-height: 100vh;
    background: linear-gradient(to bottom, var(--light-cyan), white);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.product-detail {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.product-card {
    background-color: white;
    border: 2px solid var(--federal-blue);
    border-radius: 15px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    animation: fadeIn 1s ease-out forwards;
    opacity: 0;
    position: relative;
}

.product-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
}

.product-header h1 {
    font-family: 'DeVinneOrnamentDRegular', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--federal-blue);
    margin: 0;
    animation: fadeIn 1s ease-out forwards;
}

.product-content {
    display: flex;
    gap: 2rem;
}

.product-image-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 600px;
}

.product-image {
    width: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.product-description {
    flex: 2;
    color: #333;
    line-height: 1.6;
    animation: fadeIn 1s ease-out 0.5s forwards;
    opacity: 0;
    height: 600px;
    display: flex;
    flex-direction: column;
}

.product-description p {
    margin-bottom: 1rem;
}

.product-description p.features-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--federal-blue);
    margin: 1.5rem 0 0;
    position: relative;
    display: inline-block;
}

.product-description p.features-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--federal-blue), transparent);
}

.product-description ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem 1rem;
}

.product-description li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
    color: #333;
}

.product-description li::before {
    content: '✓';
    color: var(--honolulu-blue);
    position: absolute;
    left: 0;
}

.product-description .details-text {
    flex: 1;
    overflow-y: auto;
    padding-right: 1rem;
    margin-top: 1rem;
    color: #333;
    line-height: 1.6;
}

.product-description .details-text::-webkit-scrollbar {
    width: 8px;
}

.product-description .details-text::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

.product-description .details-text::-webkit-scrollbar-thumb {
    background: var(--honolulu-blue);
    border-radius: 4px;
}

.product-description .details-text::-webkit-scrollbar-thumb:hover {
    background: var(--federal-blue);
}

/* Feature Cards */
.feature-cards {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.feature-card {
    background-color: rgba(255, 255, 255, 0.9);
    border: 2px solid var(--federal-blue);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    animation: fadeIn 1s ease-out forwards;
    opacity: 0;
    backdrop-filter: blur(5px);
}

.feature-card:nth-child(1) { animation-delay: 0.2s; }
.feature-card:nth-child(2) { animation-delay: 0.4s; }
.feature-card:nth-child(3) { animation-delay: 0.6s; }
.feature-card:nth-child(4) { animation-delay: 0.8s; }
.feature-card:nth-child(5) { animation-delay: 1.0s; }

.feature-card h2 {
    font-size: 1.75rem;
    font-weight: bold;
    color: var(--federal-blue);
    margin: 0 0 1rem 0;
    position: relative;
    display: inline-block;
}

.feature-card h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--federal-blue), transparent);
}

.feature-card p {
    margin-bottom: 1rem;
    color: #333;
    line-height: 1.6;
    font-size: 1.1rem;
}

.feature-card ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.feature-card li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
    color: #333;
    font-size: 1.1rem;
}

.feature-card li::before {
    content: '✓';
    color: var(--honolulu-blue);
    position: absolute;
    left: 0;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .product-content {
        flex-direction: column;
    }
    
    .product-image-container {
        height: 400px;
    }
    
    .product-description {
        height: auto;
    }
    
    .product-description ul {
        grid-template-columns: 1fr;
    }
}











/* -------------------- Card Styling --------------------------------- */
.cards {
    /* position: relative; */
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    grid-auto-rows: minmax(200px, auto);
    row-gap: 2rem;
    column-gap: 1rem;
    margin: 1rem;
    padding: 2rem 1rem;
}
@media screen and (max-width: 600px) {
    .cards {
        grid-template-columns: 1fr;
    }
}
.card {
    display: flex;
    flex-direction: column;
    height: 100%;

    position: relative; /* for the overlay affect on Marine Control Cables */

    border: 2px solid #e7e7e7;
    border-radius: 5px;
    padding: .5rem;
    box-shadow: 0 2px 2px rgba(0, 0, 0, 0.5);
    color: #393939;
}
.card-content {
    flex-grow: 1;
}
.card-content > p {
    margin: 0;
}

.thumbnail img {
    display: block; /* allows img to appear in html */
    border: 0;
    width: 100%;
    height: 200px;
    padding: 0.5rem;
    fill: #c7c4c4;
    opacity: .85;
    object-fit: cover;
}

.category {
    margin-top: 0;
    text-align: center;
    color: #fff;
    padding: 10px 15px;
    font-size: 1.5em; /* was 14 */
    font-weight: 600;
    text-transform: uppercase;
}

/* -------------- Card: Expand / Collapse button -------------- */
/* Custom checkbox using a <label> elemement that activates the checkbox */
/* This helps Safari see and use the EXPAND button properly.             */
.custom-checkbox {
    position: relative;
    display:inline-block;
    margin-top: 10px;
    margin-bottom: 10px;
    /* appearance: none ; */
    border: 1px solid #000;
    padding: .5em;
    border-radius: .25em;
    cursor: pointer;
    margin-top: 1rem;
    /* line-height: 20px; */
}
.custom-checkbox:hover {
    background-color: #ccc;
}
.custom-checkbox input[type="checkbox"] + span::before {
    content: "Expand";
}
.custom-checkbox input[type="checkbox"]:checked + span::before {
    content: "Collapse";
}
.custom-checkbox input[type="checkbox"] {
    opacity: 0;
    z-index: -1;
    position: absolute;
}

/* Cut off text when the Collapse button is clicked. */
.cutoff-text {
    --max-lines: 3;
    --line-height: 1.4;

    max-height: calc(var(--max-lines) * 1em * var(--line-height));
    line-height: var(--line-height);

    overflow: hidden;
    position: relative;
}
/* Remove transparent text effect at the bottom if checked. */
.cutoff-text:has(+ .custom-checkbox:not(:checked))::before {
    content: "";
    position: absolute;
    height: calc(1em * var(--line-height));
    width: 100%;
    bottom: 0;
    pointer-events: none;
    background: linear-gradient(to bottom, transparent, #fff);
}
/* Change height only if the checkbox is checked, '+' is next sibling selector */
.cutoff-text:has(+ .custom-checkbox input[type="checkbox"]:checked) {
    max-height: none;   /* Expand to show all text */
}
/* ------------- end Card: Expand / Collapse button ------------------------ */

/* --------------------------- Units of Measure ---------------------------- */
.bore-size {
    color: white;
    margin: 5px 0;
    text-align: center;
}
.units-of-measure {
    display: flex;
    justify-content:center;
    align-items: end;
    margin: 0px 15px;
    padding: 10px;
    height: 1.5rem; /* Adjust as needed */
}
hr {
    width: 15%;
    color: white;
}
.key, .value {
    color: white;
    font-size: 1rem;
    font-weight: 700;
}
/* -------------------- end Units of Measure ------------------------- */

/* -------------------- Installation --------------------------------- */
.general-text {
    line-height: 2rem;
    font-size: 1.25rem;
    font-family: Georgia, 'Times New Roman', Times, serif;
    text-align: left;
    max-width: 980px;
    padding: 1em 1em;
    margin: auto;
}

.general-text p {
    padding-bottom: .5em;
}

figure {
    color: #303262;
    padding-bottom: 2rem;
    text-align: center;
}
figure > img {
    display: block;
    margin: auto;
}
/* -------------------- end Installation ---------------------------------- */

/* -------------------- Contact Shaft Lok --------------------------------- */
.contact {
    max-width: 980px;
    text-align: center;
    margin: auto;
    padding: 2rem;
}

.contact > h2 {
    font-size: clamp(1rem, 2vw, 3rem); 
    font-weight: 700;
    letter-spacing: .25rem;
    margin-bottom: 1rem;
}

.contact-blocks {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    justify-content: center;
}

.contact-block-map {
    border: 5px solid #89847E;
}

.contact-block-info {
    text-align: left;
    font-size: 1.4rem;
    color: #89847E;
    line-height: 2rem;
    padding: 2rem;
}

.contact-block-info > p > i { /* gaps inbetween icon and paragraph */
    width: 2rem;
    font-size: 2rem;
    text-align: center;
    margin-right: 2rem;
}

.contact-block-note {
    margin: auto;
    width: 80%;
    font-size: 1.25rem;
    color: #89847E;
    text-align: center;
    text-wrap: balance;
}
.contact-block-note > p {
    padding: .5rem;
}
/* -------------------- end Contact Shaft Lok ----------------------------- */

/* -------------------- footer -------------------------------------------- */
.button {
    background-color: var(--federal-blue);
    border: none;
    color:  #fff;
    padding: 15px 32px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 0 auto;
    cursor: pointer;
}

footer {
    display: flex;
    flex-direction: column;

    color: #fff;
    background-color: var(--federal-blue);
    padding-top: 1em;
    padding-bottom: 1em;
}

footer > p {
    text-align: center;
    padding: 1rem;
}
/* -------------------- end footer ---------------------------------------- */

/* Breadcrumb Navigation Styles */
.breadcrumb-container {
    background-color: var(--federal-blue);
    border-radius: 25px;
    padding: 0.5rem 1rem;
    position: fixed;
    top: 5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
    width: fit-content;
    max-width: 90%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    animation: breadcrumbSlideDown 0.6s ease-out forwards;
    transform: translateX(-50%) translateY(-20px);
    opacity: 0;
    will-change: transform;
}

@keyframes breadcrumbSlideDown {
    from {
        transform: translateX(-50%) translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.25rem;
    font-size: 0.85em;
    color: var(--light-cyan);
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    gap: 0.25em;
}

.breadcrumb-item:not(:last-child)::after {
    content: '›';
    color: var(--light-cyan);
    font-weight: bold;
    margin-left: 0.25em;
    font-size: 1.1em;
}

.breadcrumb-link {
    color: var(--light-cyan);
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.25em 0.5em;
    border-radius: 15px;
    opacity: 0.8;
}

.breadcrumb-link:hover {
    color: white;
    background-color: rgba(255,255,255,0.2);
    opacity: 1;
}

.breadcrumb-current {
    color: white;
    font-weight: 600;
    padding: 0.25em 0.5em;
    border-radius: 15px;
    background-color: var(--honolulu-blue);
}

/* Mobile Responsive Breadcrumbs */
@media (max-width: 768px) {
    .breadcrumb-container {
        top: 4.5rem;
        padding: 0.4rem 0.8rem;
    }
    .breadcrumb {
        font-size: 0.75rem;
        gap: 0.2em;
    }
    .breadcrumb-item:not(:last-child)::after {
        margin-left: 0.2em;
    }
}