:root {
    /* Branding Colors */
    --navy-blue: #004d66;
    --teal-acc: #008b8b;
    --dark-navy: #003344;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
}

/* Custom Text/Bg Utils */
.text-navy {
    color: var(--navy-blue) !important;
}

.text-teal {
    color: var(--teal-acc) !important;
}

.bg-navy {
    background-color: var(--navy-blue) !important;
}

.bg-teal {
    background-color: var(--teal-acc) !important;
}

.text-warning {
    color: #ffd700 !important;
}

/* Gold checks for dark bg */

/* Buttons */
.btn-teal {
    background-color: var(--teal-acc);
    border: none;
    transition: background 0.3s;
}

.btn-teal:hover {
    background-color: var(--navy-blue);
    color: white;
}

.btn-navy {
    background-color: var(--navy-blue);
    border: none;
    transition: background 0.3s;
}

.btn-navy:hover {
    background-color: var(--teal-acc);
}

/* Hero Section */
.hero-section {
    position: relative;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.4)),
        url('https://images.unsplash.com/photo-1576091160399-112ba8d25d1d?ixlib=rb-4.0.3&auto=format&fit=crop&w=1600&q=80');
    background-size: cover;
    background-position: center top;
    height: 85vh;
}

/* Cards & Hover Effects */
.hover-card,
.service-card,
.process-step {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-card:hover,
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

/* Process Section */
.process-line {
    position: absolute;
    top: 50px;
    left: 15%;
    width: 70%;
    height: 2px;
    background-color: var(--navy-blue);
    z-index: 0;
}

.process-step {
    position: relative;
    z-index: 1;
}

/* Reports / Carousel Section */
#interactiveReports {
    transition: background-color 0.5s ease;
    min-height: 500px;
}

.carousel-item {
    transition: transform 0.6s ease-in-out;
}

.object-fit-cover {
    object-fit: cover;
}

/* Mobile Fix for Carousel Images */
@media (max-width: 768px) {
    .position-absolute.d-md-block {
        position: relative !important;
        width: 100% !important;
        height: 250px !important;
    }
}

/* --- Flip Card Expertise Section --- */
.flip-card {
    background-color: transparent;
    width: 100%;
    height: 320px;
    perspective: 1000px;
    cursor: pointer;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 10px;
}

.flip-card-front {
    background-color: #f8f9fa;
    color: black;
    border: 1px solid #eee;
}

.flip-card-back {
    background-color: white;
    transform: rotateY(180deg);
    border: 1px solid var(--teal-acc);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* --- Contact Page Styles --- */

.bg-cream {
    background-color: #fdfbf7;
}

/* Customizing Input Fields to match design */
.form-control {
    border-radius: 5px;
    border: 1px solid #ced4da;
    padding: 12px 15px;
    /* Comfortable padding */
}

.form-control:focus {
    border-color: var(--navy-blue);
    box-shadow: 0 0 0 0.2rem rgba(0, 77, 102, 0.25);
}

/* Ensure labels have the Navy Blue brand color */
.form-label {
    color: var(--dark-navy);
}

/* Specific button tweak if needed */
.btn-lg {
    padding-top: 12px;
    padding-bottom: 12px;
}

/* --- About Us Page Specific Styles --- */

.border-top-teal {
    border-top: 5px solid var(--teal-acc) !important;
}

.bg-cream {
    background-color: #fcfbf9;
}

/* Specific styling for the separation line inside cards */
.border-teal {
    border-color: var(--teal-acc) !important;
    border-width: 3px;
    margin: 10px 0;
}

.border-navy {
    border-color: var(--navy-blue) !important;
}

/* --- Services Page List Item Styling --- */

/* Base style for the item (transparent by default) */
.service-list-item {
    transition: all 0.3s ease;
    border: 1px solid transparent;
    /* Keeps layout stable on hover */
    background-color: transparent;
}

/* Hover State - Creates the "Card" pop-up effect */
.service-list-item:hover {
    background-color: #fff;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
    border-color: #eee;
}

/* Icon Styling to match outline look in screenshot */
.icon-outline {
    /* Optional: If you want slightly thinner icons, you can't easily do it with FA solid (fas) 
       but standard styling works well here. We ensure color matches. */
    opacity: 0.9;
}

/* --- Specialties Page Styling --- */

/* Base Circle Style */
.specialty-circle {
    width: 130px;
    height: 130px;
    background-color: white;
    border-radius: 50%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0px 0px 15px rgba(0, 0, 0, 0.1), 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;

    /* Default Border Thickness */
    border: 5px solid;
}

/* Hover Effect for Circle */
.specialty-circle:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* Icon style adjustments */
.specialty-circle i {
    opacity: 0.6;
    /* Slight transparency to look more like the sketched icons in screenshot */
    color: #333 !important;
    /* Force icons to be dark grey/black */
}


/* --- Border Color Classes --- 
   Matching the specific colors shown in the screenshot 
*/

.border-dark-grey {
    border-color: #555555;
}

.border-red {
    border-color: #d32f2f;
}

.border-cyan {
    border-color: #00bcd4;
}

.border-navy {
    border-color: #1a237e;
}

.border-purple {
    border-color: #7b1fa2;
}

.border-gold {
    border-color: #fbc02d;
}

.border-black {
    border-color: #000000;
}

.border-green {
    border-color: #388e3c;
}

.border-blue {
    border-color: #1976d2;
}

.border-light-blue {
    border-color: #90caf9;
}

.border-grey {
    border-color: #9e9e9e;
}

.border-burgundy {
    border-color: #880e4f;
}

.border-peach {
    border-color: #ffcc80;
}

.border-navy-alt {
    border-color: #283593;
}

.border-dark-green {
    border-color: #1b5e20;
}

.border-orange {
    border-color: #ef6c00;
}

.border-orange-red {
    border-color: #ff5722;
}

.border-olive {
    border-color: #827717;
}

.border-light-green {
    border-color: #8bc34a;
}

.border-blue-alt {
    border-color: #448aff;
}

/* --- Product Page Styles --- */

/* Wrapper to force square/rectangular aspect ratio for images */
.img-wrapper {
    height: 250px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    overflow: hidden;
}

/* Ensure images contain themselves neatly */
.img-wrapper img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.text-truncate-3 {
    display: -webkit-box;
    /* -webkit-line-clamp: 3; */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card {
    transition: transform 0.2s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
}

/* --- Hero Animations --- */

/* 1. The definition of the movement (Start invisible & lower, end visible & normal) */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 2. The class to apply to elements */
.animate-up {
    opacity: 0;
    /* Initially hidden */
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

/* 3. Delay classes (Staggering effect) */
.delay-100 {
    animation-delay: 0.5s;
}

.delay-200 {
    animation-delay: 1s;
}

.delay-300 {
    animation-delay: 1.5s;
}

.delay-400 {
    animation-delay: 2s;
}

/* 4. Button Hover Animation (Bounce up slightly) */
.hero-section .btn {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-section .btn:hover {
    transform: translateY(-3px);
    /* Move up 3px */
    box-shadow: 0 10px 20px rgba(0, 77, 102, 0.2);
    /* Soft shadow */
}

/* --- Process Section Animations --- */

/* 1. Initial State (Hidden) */
#processLine {
    width: 0%;
    /* Starts with 0 width */
    transition: width 1.5s ease-out;
    /* Takes 1.5s to grow */
}

.step-item {
    opacity: 0;
    transform: translateY(20px) scale(0.9);
    transition: all 1s cubic-bezier(0.68, 0.4, 0.7, 0.9);
    /* Bouncy effect */
}

/* 2. Active State (Triggers when JS adds 'start-anim' class) */
#process.start-anim #processLine {
    width: 70%;
    /* Target width */
}

#process.start-anim .step-item {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* 3. Staggered Delays (1-2-3-4 sequence) */
#process.start-anim .step-item:nth-child(1) {
    transition-delay: 0s;
}

#process.start-anim .step-item:nth-child(2) {
    transition-delay: 0.5s;
}

#process.start-anim .step-item:nth-child(3) {
    transition-delay: 0.8s;
}

#process.start-anim .step-item:nth-child(4) {
    transition-delay: 1s;
}

.payment-header.active-header {
    background-color: #f0f5ff;
    border-left: 3px solid #197bbd;
}


/* Layout Split */
.checkout-layout {
    display: flex;
    flex-wrap: wrap;
    min-height: 100vh;
}

.checkout-main {
    flex: 1 1 55%;
    padding: 40px 5%;
    border-right: 1px solid #e1e1e1;
}

.checkout-sidebar {
    flex: 1 1 45%;
    padding: 40px 5%;
    background-color: #fafafa;
}

/* Express Buttons */
.btn-shop {
    background-color: #5a31f4;
    color: white;
    transition: 0.3s;
}

.btn-shop:hover {
    background-color: #4824cf;
    color: white;
}

.btn-paypal {
    background-color: #ffc439;
    color: #111;
    transition: 0.3s;
}

.btn-paypal:hover {
    background-color: #f2ba36;
}

/* Form Styling to match Screenshot */
.form-floating>.form-control {
    height: 50px;
    min-height: 50px;
    border-radius: 5px;
    border-color: #d9d9d9;
}

.form-floating>label {
    padding-top: 0.85rem;
    color: #737373;
}

/* Payment Section Styling */
.payment-box {
    border: 1px solid #d9d9d9;
    border-radius: 5px;
    overflow: hidden;
}

.payment-header {
    background-color: #f0f5ff;
    border-bottom: 1px solid #d9d9d9;
    padding: 15px;
    cursor: pointer;
}

.payment-header.active {
    background-color: #f0f5ff;
    border-color: #197bbd;
}

.payment-header input {
    margin-right: 10px;
    accent-color: #197bbd;
    transform: scale(1.2);
}

.payment-icons {
    float: right;
    font-size: 1.2rem;
}

.payment-body {
    background-color: #fafafa;
    padding: 20px;
    border-top: 1px solid #d9d9d9;
    border-bottom: 1px solid #d9d9d9;
}

/* Credit Card Inputs group */
.cc-group input {
    border-radius: 0;
}

.cc-group input:first-child {
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}

.cc-group input:last-child {
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
}

.cc-middle {
    display: flex;
}

.cc-middle input:first-child {
    border-bottom-left-radius: 5px;
}

.cc-middle input:last-child {
    border-bottom-right-radius: 5px;
    border-left: 0;
}

/* Product Thumb */
.product-thumbnail {
    position: relative;
    width: 70px;
    height: 70px;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    background: #fff;
    padding: 5px;
}

.product-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 5px;
}

.qty-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #737373;
    color: white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

@media (max-width: 992px) {
    .checkout-layout {
        flex-direction: column-reverse;
    }

    /* Main form on top on mobile usually, or summary. Shopify does Sidebar Top in accordion. For simple view, lets stack naturally. */
    .checkout-sidebar {
        border-bottom: 1px solid #e1e1e1;
    }

    .checkout-main {
        border-right: none;
    }
}

#phoneHelpIcon {
    cursor: pointer;
    font-size: 0.85rem;
    z-index: 5;
}

/* Force select box and input box to have identical height in floating labels */
.form-floating>.form-control,
.form-floating>.form-select {
    height: 58px !important;
    /* Standard Bootstrap Floating height */
    line-height: 1.25;
}

/* Fixes label position for selects so they don't jump */
.form-floating>.form-select {
    padding-top: 1.625rem;
    padding-bottom: 0.625rem;
}