/*
Theme Styles
*/

:root {
    --color-primary: #FF5A00;
    /* Vibrant Orange */
    --color-secondary: #00877A;
    --color-bg-gray: #E0E6EA;
    /* Footer/Backgrounds */
    --font-main: 'Exo 2.0', sans-serif;
    --container-width: 1440px;
    /* Reset to 1440px as per new request */
    --border-radius: 0px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-main);
    color: var(--color-text-main);
    background-color: #fff;
    overflow-x: hidden;
    /* Prevent horizontal scroll */
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0;
    /* Removing padding to let Swiper and Grid be exactly 1420px */
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

/* Button */
.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 16px;
    text-align: center;
    border: none;
    cursor: pointer;
    line-height: 1.2;
}

.btn-primary {
    background: var(--color-primary);
    color: #fff;
    box-shadow: 0 4px 15px rgba(255, 90, 0, 0.3);
}

.btn-primary:hover {
    background: #e04e00;
    transform: translateY(-2px);
}

/* HEADER */
.site-header {
    padding: 20px 0;
    position: sticky;
    top: 0;
    background: #fff;
    /* White background for header */
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title {
    margin: 0;
    font-size: 24px;
    font-weight: 800;
    color: var(--color-text-main);
    display: flex;
    align-items: center;
    gap: 10px;
}

.site-title a {
    text-decoration: none;
    color: inherit;
}

/* Custom logo styling to mimic 'ArtBioTech' text from image if no img */
.site-branding span {
    color: var(--color-primary);
}

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.main-navigation a {
    font-weight: 500;
    font-size: 1.375rem;
    /* 22px in rem */
    color: #333;
    position: relative;
    /* For Pseudo-element underline */
    padding-bottom: 5px;
}

.main-navigation a::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--color-primary);
    transform-origin: bottom right;
    transition: transform 0.25s ease-out;
}

.main-navigation a:hover {
    color: var(--color-primary);
}

.main-navigation a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* HERO SECTION SLIDER */
.hero-section-slider {
    margin-bottom: 0;
    /* No margin, separator handles spacing */
    overflow: hidden;
    /* Keep hidden for Swiper */
    position: relative;
    border: 1px solid #999;
    z-index: 10;
}

/* Gray-blue separator bar */
.section-separator {
    width: 100vw;
    /* Full viewport width */
    height: 3.125rem;
    /* 50px */
    background-color: #9ab4bd;
    margin-left: calc(-50vw + 50%);
    /* Break out of container */
    margin-right: calc(-50vw + 50%);
    margin-bottom: 0;
    /* No gap, grid handles spacing */
    box-shadow: inset 0 10px 20px rgba(0, 0, 0, 0.15);
    /* Inner shadow */
}

.gray-frame {
    background: #e0e0e0 !important;
    /* Explicit gray */
    border: 1px solid #999;
    min-height: 200px;
    /* Default min height for grid items */
}


/* WIREFRAME MODE STYLES */
/* Validating requests: "all sections starting from banner should be simple blocks with outline and dimensions" */
.hero-section,
.bento-grid,
.grid-card {
    border: 1px solid #000;
    position: relative;
    background: #fff;
    /* Reset backgrounds to white for wireframe look */
}

/* Add dimensions hint */
.hero-section::after,
.grid-card::after {
    content: "Block";
    position: absolute;
    top: 5px;
    left: 5px;
    background: yellow;
    font-size: 10px;
    color: #000;
    padding: 2px 4px;
    border: 1px solid #000;
}

/* Override specifics for wireframe clarity */
.grid-card {
    border-radius: 0;
    box-shadow: none;
}

/* BENTO GRID */
.bento-grid {
    display: grid;
    grid-template-columns: 35% 1fr;
    gap: 0.625rem;
    /* 10px */
    margin-top: 3.125rem;
    /* 50px in rem */
    margin-bottom: 5rem;
    margin-left: auto;
    margin-right: auto;
    max-width: 1420px;
    width: 100%;
    background: #fff;
    /* White background */
}

.grid-card {
    border: 1px solid #000;
    padding: 1.875rem;
    /* 30px */
    background: #e0e0e0;
    min-width: 0;
    /* Critical for Swiper */
    box-sizing: border-box;
    /* Ensure padding doesn't break width */
}

/* Left Column Card */
.card-intro-girl.card-1 {
    height: auto;
    min-height: 56.56rem;
    /* 905px */
}

/* Row 2 */
/* DESKTOP GRID DEFINITION */
.grid-right-column {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    grid-template-rows: repeat(3, 1fr) !important;
    gap: 0.625rem !important;
    /* 10px in REM */
}

/* Row 1: Small Left, Big Right */
.card-2 {
    grid-column: 1 / 2;
    /* Span 1 column */
    grid-row: 1;
    height: 18.4375rem;
}

.card-3 {
    grid-column: 2 / 4;
    /* Span 2 columns */
    grid-row: 1;
    height: 18.4375rem;
}

/* Row 2: Full Width */
.card-4 {
    grid-column: 1 / 4;
    /* Span 3 columns (Full width) */
    grid-row: 2;
    width: 100%;
    height: 18.4375rem;
}

/* Row 3: Big Slider Left, Small Right (Vice Versa) */
.card-5 {
    grid-column: 1 / 3;
    /* Span 2 columns (Left) */
    grid-row: 3;
    width: 100%;
    height: 18.4375rem;
    min-width: 0;
    overflow: hidden;
    position: relative;
    display: flex;
}

.card-6 {
    grid-column: 3 / 4;
    /* Span 1 column (Right) */
    grid-row: 3;
    width: 100%;
    display: block;
    height: 18.4375rem;
}



/* Product & Tags row */
.card-product {
    background: #eef2f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-tags {
    background: url('assets/molecules.png') no-repeat center/cover, #cad8de;
    position: relative;
}

/* Stats Row */
.card-stats {
    grid-column: span 2;
    background: #fff5f0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 40px;
    text-align: center;
}

.stat-item strong {
    display: block;
    font-size: 36px;
    color: var(--color-primary);
    font-weight: 800;
}

.stat-item span {
    font-size: 14px;
    color: #666;
}

.stats-desc {
    grid-column: span 2;
    text-align: center;
    font-size: 14px;
    color: #888;
    margin-top: -10px;
    padding-bottom: 20px;
}

/* Bottom row: Reliability & feedback */
.card-reliability {
    background: #9ab4bd;
    color: #fff;
    display: flex;
    align-items: center;
}

.card-feedback {
    background: #fff;
    border: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feedback-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 2px solid var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    font-weight: bold;
}

/* Responsive Media Query */
@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: 1fr;
        margin-bottom: 3rem;
    }

    /* Forced Layout Reset */
    .grid-right-column {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        grid-template-rows: repeat(3, 1fr) !important;
        gap: 0.625rem !important;
    }

    .hero-section-slider .swiper-slide {
        height: 18.75rem !important;
        /* 300px */
    }

    .card-intro-girl.card-1 {
        min-height: 31.25rem;
        /* 500px */
        height: auto;
    }

    /* Stack everything */
    .card-2,
    .card-3,
    .card-4,
    .card-5,
    .card-6 {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .card-tags {
        background: url('assets/molecules.png') no-repeat center/cover, #cad8de;
        position: relative;
    }

    /* Stats Row */
    .card-stats {
        grid-column: span 2;
        background: #fff5f0;
        display: flex;
        justify-content: space-around;
        align-items: center;
        padding: 40px;
        text-align: center;
    }

    .stat-item strong {
        display: block;
        font-size: 36px;
        color: var(--color-primary);
        font-weight: 800;
    }

    .stat-item span {
        font-size: 14px;
        color: #666;
    }

    .stats-desc {
        grid-column: span 2;
        text-align: center;
        font-size: 14px;
        color: #888;
        margin-top: -10px;
        padding-bottom: 20px;
    }

    /* Bottom row: Reliability & feedback */
    .card-reliability {
        background: #9ab4bd;
        color: #fff;
        display: flex;
        align-items: center;
    }

    .card-feedback {
        background: #fff;
        border: 1px solid #eee;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .feedback-circle {
        width: 100px;
        height: 100px;
        border-radius: 50%;
        border: 2px solid var(--color-primary);
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--color-primary);
        font-weight: bold;
    }

    /* Responsive Media Query */
    @media (max-width: 1024px) {
        .bento-grid {
            grid-template-columns: 1fr;
            margin-bottom: 3rem;
        }

        .grid-right-column {
            display: flex;
            /* Use flex for column stacking */
            flex-direction: column;
            gap: 1rem;
        }

        .hero-section-slider .swiper-slide {
            height: 18.75rem !important;
            /* 300px */
        }

        .card-intro-girl.card-1 {
            min-height: 31.25rem;
            /* 500px */
            height: auto;
        }

        /* Stack everything */
        .card-2,
        .card-3,
        .card-4,
        .card-5,
        .card-6 {
            width: 100% !important;
            grid-column: auto !important;
            grid-row: auto !important;
            min-height: 18.75rem;
            /* 300px min height for blocks */
        }
    }
}

/* FOOTER */
.site-footer {
    background: #9ab4bd;
    color: #fff;
    padding: 4.5rem 0 3.5rem 0;
    /* 72px top, 56px bottom */
    font-size: 1.25rem;
    /* 20px body text */
}

.footer-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3rem;
    align-items: flex-start;
}

.footer-left {
    flex: 1;
}

.footer-logo {
    margin-bottom: 1.875rem;
    /* 30px */
}

.footer-logo img {
    filter: brightness(0) invert(1);
    /* Restore white inversion */
    max-height: 6.5rem;
    /* Increase logo size */
    width: auto;
}

.footer-company p {
    margin: 0.5rem 0;
    line-height: 1.6;
}

.footer-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    /* Push the whole block to the right */
    text-align: left;
    /* Keep text within the block aligned to the start */
}

.footer-contacts {
    width: fit-content;
    /* Ensure container only takes as much space as needed */
}

.footer-contacts h4 {
    margin: 0 0 1.5rem 0;
    font-size: 1.5rem;
    /* 24px */
    font-weight: 600;
}

.contacts-grid {
    display: grid;
    grid-template-columns: auto auto;
    gap: 1.25rem 4rem;
    /* Balanced gap between phones and departments */
    justify-content: end;
    margin-bottom: 2.5rem;
}

.contact-row {
    display: contents;
}

.contact-row .phone {
    font-weight: 400;
    /* Phones not bold */
    font-size: 1.375rem;
    /* 22px */
    text-align: left;
}

.contact-row .department {
    text-align: left;
    font-weight: 600;
    /* Departments bold */
}

.email-line {
    margin: 1.5rem 0 0 0;
    font-size: 1.25rem;
    /* 20px */
}

.footer-contacts a {
    color: #fff;
    text-decoration: none;
    transition: opacity 0.3s;
}

.footer-contacts a:hover {
    opacity: 0.8;
}

/* Footer Bottom on White Background */
.footer-bottom-white {
    background: #fff;
    padding: 3rem 0 5rem 0;
    /* Generous padding */
    border-top: 1px solid #f0f0f0;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.125rem;
    /* 18px */
    color: #666;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: #9ab4bd;
    /* Theme blue-gray */
    text-decoration: underline;
    /* Underlined as per prototype */
    transition: opacity 0.3s;
}

.footer-links a:hover {
    opacity: 0.8;
    color: #9ab4bd;
}

.footer-copyright {
    color: #9ab4bd;
    /* Theme blue-gray */
}

.footer-copyright p {
    margin: 0;
}

/* Footer Disclaimer */
.footer-disclaimer {
    margin-top: 4rem;
    /* More space */
    padding-top: 0;
    border-top: none;
    /* Removed border as requested */
    font-size: 1rem;
    /* 16px */
    color: #9ab4bd;
    /* Theme blue-gray */
    line-height: 1.8;
    text-align: center;
}

.footer-disclaimer p {
    margin: 0.75rem 0;
    color: #9ab4bd;
    /* Theme blue-gray for all paragraphs */
}

.footer-disclaimer p:first-child {
    font-weight: 600;
    color: #9ab4bd;
    font-size: 2rem;
    /* 32px - Large header disclaimer */
    margin-bottom: 2rem;
}