/* --- GLOBAL STYLES --- */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8fafc; 
    color: #1e293b;
    line-height: 1.5;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* =====================================================
   --- HEADER ENTRANCE & SOFT UNDER-HEADER BLEND ---
===================================================== */
.header-row {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 12px 0;
    background-color: #F2F7FF; /* Sunken depth tone */
    box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.08), inset 0 -2px 4px rgba(255, 255, 255, 0.7);
    justify-content: flex-start;
    animation: headerSlideDown 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes headerSlideDown {
    from {
        opacity: 0;
        transform: translateY(-12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo-container {
    padding-left: 20px; 
}

#site-logo {
	 width: 140px;       
    height: auto;
    display: block;
}

/* --- ANCHORED COMPACT BLACK MENU BAR --- */
.menu-ribbon {
    display: flex;
    justify-content: flex-start;  
    margin-left: 40px;            
}

.menu-ribbon nav {
    background-color: #000000;
    color: #ffffff;
    margin: 0 10px;                
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    display: inline-block;        
}

.menu-ribbon nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

.menu-ribbon nav ul li {
    position: relative;
}

.menu-ribbon nav ul li a {
    display: block;
    padding: 14px 20px;
    color: #ffffff;
    text-decoration: none;
    font-family: sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1.2px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.menu-ribbon nav ul li a:hover {
    background-color: #333333;
    color: #00d4ff;
}

.menu-ribbon nav ul li a.active {
    background-color: #333333;
    color: #ffffff;
}

/* Soft color bridge under header (inlcudes sharp 3D separator) */

.header-blend-divider {
    position: relative;
    width: 100%;
    height: 35px;
    background: linear-gradient(
        to bottom,
        #F2F7FF 0%,
        #f5f8fc 40%,
        #f8fafc 100%
    );
    pointer-events: none;
}

.header-blend-divider::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: #e2e8f0;
    border-bottom: 1px solid #f8fafc;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* ===========================
   --- HERO TITLE SECTION --- 
   ===========================*/
.hero-section-wrapper {
    width: 100%;
    background-color: #f8fafc;
    padding: 60px 20px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-three-column-container {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

/* Side Images */
.hero-side-image-wrapper {
    flex: 0 1 280px;
    max-width: 320px;
}

.hero-side-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    box-shadow: 0 4px 3px rgba(0, 0, 0, 0.05);
    display: block;
}

/* --- BOXED CENTER TEXT CONTAINER --- */
.hero-form-offset {
    flex: 1 1 600px;
    max-width: 750px;
    margin: 0; 
    padding: 40px;
    background-color: #ffffff;
    border: 1px solid #cbd5e1;    
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);        
/*  text-align: center; */
    text-align: left;
    box-sizing: border-box;
}

/* add 18 pixels of empty space below any element that has the */
/* hero-paragraph-spaced class, pushing whatever comes after it (such as your */
/* second <p> paragraph) down by 18px.*/
.hero-paragraph-spaced {
    margin-bottom: 18px;
}


.hero-title-section {
    padding: 0;
}

.hero-title {
    font-size: 28px;
    font-weight: 700;
    color: #0f172a;
    margin-top: 0;
    margin-bottom: 14px;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 20px;
    font-weight: 400;
    color: #475569;
    margin: 0;
    line-height: 1.5;
}

/* --- MOBILE RESPONSIVE STACKING --- */
@media (max-width: 900px) {
    .hero-three-column-container {
        flex-direction: column;
        align-items: center;
    }

    .hero-side-image-wrapper, 
    .hero-form-offset {
        width: 100%;
        max-width: 500px;

        /* Nope! */
        /* add here for mobile to align w/ desktop */
        /*text-align: left;*/
    }

    /* Add a separate rule right underneath it inside @media (max-width: 900px) 
       for the child text elements:
    */
    .hero-form-offset,
    .hero-form-offset h2,
    .hero-form-offset p {
        text-align: left;
    }

    .hero-side-img {
        height: auto;
        max-height: 240px;
    }
}

/* =====================================================
   --- ENHANCED SCROLL FADE-IN ANIMATIONS ---
===================================================== */
.fade-in-section {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 1s cubic-bezier(0.22, 1, 0.36, 1), 
                transform 1s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .fade-in-section {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* =====================================================
   --- ULTRA-SMOOTH COLOR STOP GRADIENT DIVIDERS ---
===================================================== */
.fade-divider {
    width: 100%;
    height: 80px;
    margin: 0;
    padding: 0;
    pointer-events: none;
    display: block;
}

/* Multi-stop easing from Light Body (#f8fafc) to Grey Section (#E3E3E8) */
.fade-light-to-grey {
    background: linear-gradient(
        to bottom, 
        #f8fafc 0%, 
        #f5f5fa 30%, 
        #ebebf0 65%, 
        #E3E3E8 100%
    );
}

/* Multi-stop easing from Grey Section (#E3E3E8) to Light Body (#f8fafc) */
.fade-grey-to-light {
    background: linear-gradient(
        to bottom, 
        #E3E3E8 0%, 
        #ebebf0 35%, 
        #f5f5fa 70%, 
        #f8fafc 100%
    );
}

/* Fades smooth from Light Body (#f8fafc) to Footer (#F2F7FF) */
.fade-light-to-footer {
    width: 100%;
    height: 70px;
    background: linear-gradient(
        to bottom,
        #f8fafc 0%,
        #f4f7fc 40%,
        #f2f6ff 80%,
        #F2F7FF 100%
    );
    pointer-events: none;
}

/* Fades smooth from Grey Section (#E3E3E8) to Footer (#F2F7FF) */
.fade-grey-to-footer {
    width: 100%;
    height: 70px;
    background: linear-gradient(
        to bottom,
        #E3E3E8 0%,
        #e9edee 30%,
        #eef2f8 70%,
        #F2F7FF 100%
    );
    pointer-events: none;
}

/* 
    ====================
   --- GREY SECTION ---
    ====================
*/
.darkgrey-section {
    text-align: center;
    padding: 60px 20px;
    background-color: #E3E3E8;
}

.darkgrey-section h3 {
    font-size: 26px;
    font-weight: 600;
    color: #0f172a;
    margin-top: 0;
    margin-bottom: 15px;
    letter-spacing: -0.02em;
}

.darkgrey-section p {
    font-size: 20px;
    color: #475569;
    line-height: 1.6;
    margin-top: 0;
    margin-bottom: 25px;
}

/* =====================================================
   --- 3D INTERACTIVE FLIP CARDS & HOVER HINTS ---
===================================================== */
.multicard-wrapper {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

.multicard-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.multi-card {
    flex: 1 1 300px;
    max-width: 500px;
    padding: 25px;
    background-color: transparent;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    box-sizing: border-box;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s ease;
}

.multi-card:hover {
    border-color: #0272b8;
    transform: translateY(-4px);
}

.multi-card h3 {
    font-size: 24px;
    font-weight: 600;
    color: #0f172a;
    margin-top: 0;
    margin-bottom: 12px;
    text-align: center;
}

.multi-card p {
    color: #475569;
    font-size: 18px;
    line-height: 1.6;
    margin: 0;
} 

/* Card Container & Perspective */
.flip-card {
    background-color: transparent;
    width: 350px;
    height: 480px;
    perspective: 1200px;
    cursor: pointer;
}

/* Inner Wrapper managing 3D Transform */
.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: left;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner:not(.is-flipped) {
    transform: rotateY(15deg);
}

.flip-card-inner.is-flipped {
    transform: rotateY(180deg) !important;
}

.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
	 -webkit-backface-visibility: hidden; /* Safari support */
    backface-visibility: hidden;        /* Standard */
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    box-sizing: border-box;
    background-color: #ffffff;
}
/* Front Side Face */
.flip-card-front {
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    padding: 25px;
    justify-content: space-between;
    transform: rotateY(0deg);
}

/* Back Side Face (Pre-rotated 180deg so it faces forward when parent flips) */
.flip-card-back {
    background-color: #f8fafc;
    color: #0f172a;
    transform: rotateY(180deg);
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* --- TOOLTIP / FLIP HINT BADGE --- */
.tooltip-container {
    position: absolute;
    top: 12px;
    right: 15px;
    z-index: 2;
}

.flip-hint-badge {
    background-color: #0272b8;
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid #02609a;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.flip-card:hover .flip-hint-badge {
    opacity: 1;
    visibility: visible;
}


.flip-card-back {
    background-color: #f8fafc;
    color: #0f172a;
    transform: rotateY(180deg);
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.back-content h3 {
    font-size: 20px;
    color: #0f172a;
    margin-top: 0;
    margin-bottom: 12px;
    font-weight: 600;
}

.back-content p {
    font-size: 14px;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 20px;
}

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

.specs-list li {
    font-size: 14px;
    color: #1e293b;
    padding: 6px 0;
    border-bottom: 1px solid #e2e8f0;
}

.specs-list li strong {
    color: #0272b8;
}

.flip-card-front h3 {
    font-size: 22px;
    font-weight: 600;
    color: #0f172a;
    margin-top: 10px;
    margin-bottom: 10px;
}

.card-image-container {
    width: 100%;
    margin: 10px 0;
    border-radius: 4px;
    overflow: hidden;
    background-color: #e2e8f0;
}

.card-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    border-radius: 4px;
}

.card-caption {
    font-size: 0.85rem;
    color: #64748b;
    margin-top: auto;
    font-style: italic;
    text-align: center;
}

/* =======================
   --- INQUIRY SECTION --- 
   ======================= */

.inquiry-container {
    max-width: 650px;
    margin: 0 0 0 80px;        
    padding: 0;
    background-color: #f8fafc; 
    border: none;
}

.inquiry-form-offset {
    max-width: 460px;
    margin-top: 35px;              
    margin-left: 200px;            
    padding: 30px;                
    background-color: #f8fafc;
    border: 1px solid #cbd5e1;    
    border-radius: 4px;
/*   TBD: Investigate box shadow, not visible currently */
/*    box-shadow: 0 4px 2px rgba(0, 0, 0, 0.05);        */
}

h2 {
    font-size: 22px;
    font-weight: 600;
    color: #0f172a;
    margin-top: 0;
    margin-bottom: 24px;
    letter-spacing: -0.025em;
    text-align: center;
}

input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    max-width: 400px;
    padding: 10px;
    margin-top: 4px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
    box-sizing: border-box;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: #0272b8;
    box-shadow: 0 0 5px #0272b8;
}

.char-counter {
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 4px;
}

button {
    padding: 10px 18px;
    cursor: pointer;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    transition: background-color 0.2s ease;
}

#submit-btn {
    background-color: #0272b8;
    color: white;
}

#submit-btn:hover {
    background-color: #118bd6;
}

.tooltip-wrapper {
    position: relative;
    display: inline-block;
}

.tooltip-wrapper .tooltip-text {
    visibility: hidden;
    width: 140px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 4px;
    padding: 6px;
    position: absolute;
    z-index: 1;
    bottom: -100%;
    left: 70%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    font-size: 12px;
}

.tooltip-wrapper:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

#cancel-btn {
    background-color: #8C8C8C;
    color: white;
    margin-left: 10px;
}

#cancel-btn:hover {
    background-color: #6E6E6E;
}

.btn-primary {
    display: inline-block;
    background-color: #244F16;
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.2s ease;
}

.btn-primary:hover {
    background-color: #439E26;
}

/* ================================
   --- FOOTER / LEGAL STYLES ---
================================ */
.footer {
    background-color: #F2F7FF; 
    color: #1e293b;            
    padding: 2.5rem 0 1.5rem 0;
    margin-top: 0 !important;           
    box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.8), inset 0 -3px 6px rgba(0, 0, 0, 0.05);
    font-family: sans-serif;   
    border-top: none;          
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.footer-bottom {
    display: flex;
    background-color: transparent;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding-top: 1rem;
    font-size: 0.85rem;
    color: #64748b;
}

.legal-links a {
    color: #64748b;
    text-decoration: none;
    margin-left: 1.5rem;
    transition: color 0.2s ease;
}

.legal-links a:hover {
    color: #00d4ff;
}

/* =====================================================
   --- MOBILE RESPONSIVE LAYOUT ENHANCEMENTS ---
===================================================== */
@media (max-width: 768px) {
    /* Stack header items vertically on small screens */
    .header-row {
        flex-direction: column;
        align-items: center;
        padding: 16px 10px;
        gap: 15px;
    }

    .logo-container {
        padding-left: 0;
        text-align: center;
    }

    #site-logo {
        margin: 0 auto;
        width: 160px;
    }

    .menu-ribbon {
        margin-left: 0;
        width: 100%;
        justify-content: center;
    }

    .menu-ribbon nav {
        width: 100%;
        margin: 0;
    }

    .menu-ribbon nav ul {
        flex-direction: column;
        width: 100%;
    }

    .menu-ribbon nav ul li {
        width: 100%;
        text-align: center;
    }

    .menu-ribbon nav ul li a {
        padding: 12px 15px;
        font-size: 16px; /* Scales down font for mobile screens */
    }
    
    .inquiry-container {
        margin: 0 auto !important;
        padding: 0 15px !important;
        width: 100% !important;
        box-sizing: border-box;
    }

    .inquiry-form-offset {
        margin-top: 20px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }

    /* Ensure inputs and textareas fill the container cleanly on mobile */
    input[type="text"],
    input[type="email"],
    textarea {
        max-width: 100% !important;
        width: 100% !important;
    }

    /* Stack multicards and adjust padding */
    .multicard-grid {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .flip-card, .multi-card {
        width: 100%;
        max-width: 100%;
    }

    /* Footer adjustments */
    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .legal-links a {
        margin-left: 0.75rem;
        margin-right: 0.75rem;
    }
}