/* ============================================================
   SIMU Engineering – Main Stylesheet (Multi-page)
   ============================================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
    --color-navy:       #1b1f4b;
    --color-navy-dark:  #12153a;
    --color-blue:       #002f87;
    --color-blue-light: #4fc3f7;
    --color-cyan:       #00e5ff;
    --color-white:      #ffffff;
    --color-text:       #1b1f4b;
    --color-text-light: #f0f0f0;
    --color-border:     #e4e4e8;

    --font-heading: 'Montserrat', sans-serif;
    --font-body:    'Open Sans', sans-serif;

    --header-height:          170px;
    --header-height-scrolled: 80px;
    --logo-size:              130px;
    --logo-size-scrolled:     60px;
    --max-width:              1440px;
    --section-pad:            80px;
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background: var(--color-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.25s;
}

ul { list-style: none; }

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================================
   HEADER / NAVIGATION
   ============================================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: var(--color-white);
    z-index: 1000;
    transition: height 0.35s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.header.scrolled {
    height: var(--header-height-scrolled);
}

.nav {
    display: flex;
    align-items: center;
    height: 100%;
}

/* ---------- Left group: logo + menu together ---------- */
.nav__left {
    display: flex;
    align-items: center;
    gap: 24px;
    width: 100%;
}

.nav__logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.nav__logo-img {
    height: var(--logo-size);
    width: auto;
    object-fit: contain;
    transition: height 0.35s ease;
}

.header.scrolled .nav__logo-img {
    height: var(--logo-size-scrolled);
}

.nav__menu {
    display: flex;
    gap: 4px;
    align-items: center;
}

.nav__link {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    color: var(--color-navy);
    padding: 10px 16px;
    transition: color 0.25s;
    white-space: nowrap;
}

.nav__link:hover {
    color: var(--color-blue);
}

.nav__link.active {
    color: #1565c0;
    text-decoration: underline;
    text-decoration-color: black;
    text-underline-offset: 4px;
}

/* Mobile toggle */
.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    margin-left: auto;
}

.nav__toggle-bar {
    display: block;
    width: 26px;
    height: 3px;
    background: var(--color-navy);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

/* ============================================================
   PAGE WRAPPER  (all non-hero pages)
   ============================================================ */
.page {
    margin-top: var(--header-height);
    padding: var(--section-pad) 0;
    flex: 1;
}

/* ============================================================
   HERO SECTION  (Home page – split panel)
   ============================================================ */
.hero {
    margin-top: var(--header-height);
    display: flex;
    min-height: 620px;
    max-height: 720px;
}

.hero__text {
    flex: 0 0 48%;
    background: var(--color-navy);
    display: flex;
    align-items: center;
    padding: 80px 60px;
}

.hero__text-inner {
    max-width: 520px;
}

.hero__title {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 2.6rem;
    line-height: 1.2;
    color: var(--color-white);
    margin-bottom: 32px;
}

.hero__subtitle {
    font-family: var(--font-body);
    font-size: 1.15rem;
    color: var(--color-text-light);
    opacity: 0.85;
    margin-bottom: 10px;
}

.hero__image {
    flex: 1;
    overflow: hidden;
}

.hero__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 18%;
}

/* ============================================================
   HOME – WHAT WE DO
   ============================================================ */
.section-whatwedo {
    padding: 80px 0;
    background: var(--color-white);
}

.section-whatwedo .section__text {
    font-weight: 700;
    font-size: 1.15rem;
}

.section__text--center {
    text-align: center;
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================================
   HOME – WHY CLIENTS CHOOSE SIMU
   ============================================================ */
.section-whychoose {
    padding: 40px 0 80px;
    background: var(--color-white);
}

.whychoose-list {
    max-width: 1050px;
    margin: 0 auto;
}

.whychoose-item {
    margin-bottom: 32px;
}

.whychoose-item h3 {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.12rem;
    color: var(--color-text);
    margin-bottom: 4px;
}

.whychoose-item p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--color-text);
}

/* ============================================================
   HOME – FEATURES GRID
   ============================================================ */
.section-features {
    padding: 40px 0;
    background: var(--color-white);
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.feature-card {
    padding: 48px;
}

.feature-card h3 {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.15rem;
    color: var(--color-navy);
    margin-bottom: 20px;
    text-transform: uppercase;
}

.feature-card p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--color-text);
}

/* ============================================================
   HOME – CONTACT SECTION
   ============================================================ */
.section-contact-home {
    background: var(--color-navy);
    padding: 0;
}

.section-contact-home__inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    align-items: center;
    padding: 0 24px;
}

.section-contact-home__info {
    padding: 100px 60px;
}

.section-contact-home__info h2 {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 2.4rem;
    color: var(--color-white);
    margin-bottom: 32px;
}

.section-contact-home__email a,
.section-contact-home__phone a {
    font-size: 1.15rem;
    color: var(--color-text-light);
    display: block;
    margin-bottom: 20px;
    transition: color 0.25s;
}

.section-contact-home__email a:hover,
.section-contact-home__phone a:hover {
    color: var(--color-cyan);
}

.section-contact-home__image {
    overflow: hidden;
    padding: 40px 0;
}

.section-contact-home__image img {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    display: block;
    border-radius: 0;
}

/* ============================================================
   CONTENT BLOCKS
   ============================================================ */
.content-block {
    background: var(--color-white);
    padding: 48px 0;
}

.section__title {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 2.6rem;
    color: var(--color-blue);
    margin-bottom: 28px;
}

.section__title--center {
    text-align: center;
}

.section__subtitle {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--color-navy);
    margin-top: 28px;
    margin-bottom: 16px;
}

.section__text {
    font-size: 1.25rem;
    line-height: 1.7;
    margin-bottom: 12px;
    color: var(--color-text);
}

.section__text--italic {
    font-style: italic;
}

.section__list {
    list-style: disc;
    padding-left: 24px;
    margin-bottom: 16px;
}

.section__list li {
    font-size: 1.22rem;
    line-height: 1.7;
    margin-bottom: 8px;
    color: var(--color-text);
}

/* ============================================================
   PROCESS LIST  (How We Work)
   ============================================================ */
.process-list {
    list-style: disc;
    padding-left: 24px;
}

.process-list li {
    font-size: 1.25rem;
    line-height: 1.8;
    margin-bottom: 12px;
    color: var(--color-text);
}

.process-list li strong {
    font-family: var(--font-heading);
    font-weight: 800;
}

/* ============================================================
   GALLERY
   ============================================================ */
.gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    margin-top: 40px;
}

.gallery__item {
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    display: block;
    text-decoration: none;
    cursor: pointer;
}

.gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 1 / 1;
    transition: transform 0.35s;
}

.gallery__item:hover img {
    transform: scale(1.05);
}

.gallery__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.55);
    color: var(--color-white);
    padding: 20px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    opacity: 0;
    transition: opacity 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.gallery__item:hover .gallery__overlay {
    opacity: 1;
}

/* ============================================================
   PROJECT GALLERY PAGE
   ============================================================ */
.project-gallery__title {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 2.4rem;
    color: var(--color-blue);
    margin-bottom: 40px;
}

.project-gallery__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    margin-bottom: 40px;
}

.project-gallery__grid img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.3s;
}

.project-gallery__grid img:hover {
    transform: scale(1.03);
}

.project-gallery__back {
    display: inline-block;
    background: var(--color-navy);
    color: var(--color-white);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    padding: 12px 32px;
    text-decoration: none;
    border-radius: 2px;
    transition: background 0.25s;
    margin-bottom: 40px;
}

.project-gallery__back:hover {
    background: var(--color-blue);
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox__img {
    max-width: 85%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 4px;
}

.lightbox__close {
    position: absolute;
    top: 16px;
    right: 24px;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    background: none;
    border: none;
    z-index: 10000;
    line-height: 1;
}

.lightbox__close:hover {
    color: #ccc;
}

.lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    background: none;
    border: none;
    padding: 8px 16px;
    z-index: 10000;
    user-select: none;
}

.lightbox__nav:hover {
    color: #ccc;
}

.lightbox__nav--prev {
    left: 16px;
}

.lightbox__nav--next {
    right: 16px;
}

.lightbox__counter {
    position: absolute;
    top: 16px;
    left: 20px;
    color: white;
    font-size: 0.95rem;
    font-family: var(--font-body);
}

/* ============================================================
   CONTACTS
   ============================================================ */
.contact-cta {
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    outline: none;
    padding: 56px 0;
    text-align: center;
    margin-bottom: 60px;
}

.contact-cta__title {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 2.8rem;
    color: var(--color-blue);
    margin-bottom: 12px;
}

.contact-cta__subtitle {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 32px;
}

.contact-cta__info {
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--color-navy);
    margin-bottom: 10px;
}

.contact-cta__link {
    color: var(--color-blue) !important;
    font-weight: 700;
    font-size: 1.45rem;
}

.contact-cta__link:hover {
    color: var(--color-cyan) !important;
}

.contact-cta__phone {
    color: var(--color-navy);
    font-weight: 800;
    font-size: 1.45rem;
}

/* Locations */
.locations__title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    text-align: center;
    color: var(--color-navy);
    margin-bottom: 40px;
}

.location {
    margin-bottom: 56px;
}

.location__name {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.6rem;
    color: var(--color-navy);
    margin-bottom: 12px;
}

.location__detail {
    font-size: 1.12rem;
    margin-bottom: 10px;
    color: var(--color-text);
}

.location__map {
    margin-top: 20px;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.location__map iframe {
    display: block;
    width: 100%;
    min-height: 400px;
}

/* ============================================================
   FOOTER (removed – white space only)
   ============================================================ */

/* ============================================================
   LOGO FALLBACK
   ============================================================ */
.logo-fallback {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--color-navy);
    color: var(--color-white);
    line-height: 1;
    width: var(--logo-size);
    height: var(--logo-size);
    transition: width 0.35s ease, height 0.35s ease;
}

.header.scrolled .logo-fallback {
    width: var(--logo-size-scrolled);
    height: var(--logo-size-scrolled);
}

.logo-fallback__icon {
    font-family: monospace;
    font-size: 0.9rem;
    letter-spacing: -1px;
    background: linear-gradient(180deg, var(--color-cyan), var(--color-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-fallback__text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.7rem;
    letter-spacing: 2px;
    margin-top: 1px;
}

/* ============================================================
   RESPONSIVE – Tablet
   ============================================================ */
@media (max-width: 1024px) {
    :root {
        --header-height:          130px;
        --logo-size:              90px;
    }

    .hero__title {
        font-size: 2.2rem;
    }

    .gallery {
        grid-template-columns: repeat(3, 1fr);
    }

    .nav__link {
        font-size: 0.78rem;
        padding: 8px 10px;
    }

    .section-contact-home__inner {
        grid-template-columns: 1fr;
    }

    .section-contact-home__image {
        max-height: 400px;
    }
}

/* ============================================================
   RESPONSIVE – Mobile
   ============================================================ */
@media (max-width: 768px) {
    :root {
        --header-height:          100px;
        --header-height-scrolled: 70px;
        --logo-size:              70px;
        --logo-size-scrolled:     45px;
        --section-pad:            48px;
    }

    .nav__toggle {
        display: flex;
    }

    .nav__menu {
        position: fixed;
        top: var(--header-height);
        right: -100%;
        width: 280px;
        height: calc(100vh - var(--header-height));
        flex-direction: column;
        background: var(--color-white);
        padding: 32px 24px;
        gap: 4px;
        box-shadow: -4px 0 16px rgba(0, 0, 0, 0.1);
        transition: right 0.35s ease;
        overflow-y: auto;
    }

    .header.scrolled .nav__menu {
        top: var(--header-height-scrolled);
        height: calc(100vh - var(--header-height-scrolled));
    }

    .nav__menu.show {
        right: 0;
    }

    .nav__link {
        display: block;
        padding: 12px 0;
        font-size: 1rem;
        border-bottom: 1px solid #eee;
    }

    .nav__toggle.active .nav__toggle-bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .nav__toggle.active .nav__toggle-bar:nth-child(2) {
        opacity: 0;
    }
    .nav__toggle.active .nav__toggle-bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Hero – stack on mobile */
    .hero {
        flex-direction: column;
        min-height: auto;
    }

    .hero__text {
        flex: none;
        width: 100%;
        padding: 48px 24px;
    }

    .hero__image {
        width: 100%;
        max-height: 400px;
    }

    .hero__title {
        font-size: 1.8rem;
    }

    /* Features – single column */
    .features-grid {
        grid-template-columns: 1fr;
    }

    /* Contact home – stack */
    .section-contact-home__inner {
        grid-template-columns: 1fr;
    }

    .section-contact-home__image {
        max-height: 350px;
    }

    .content-block {
        padding: 28px 20px;
    }

    .contact-cta {
        padding: 32px 20px;
    }

    .section__title {
        font-size: 1.7rem;
    }

    .contact-cta__title {
        font-size: 1.8rem;
    }

    .gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

}

/* ============================================================
   RESPONSIVE – Small phones
   ============================================================ */
@media (max-width: 480px) {
    .gallery {
        grid-template-columns: 1fr;
    }

    .hero__title {
        font-size: 1.5rem;
    }

    .section__title {
        font-size: 1.4rem;
    }

    .feature-card {
        padding: 28px 20px;
    }
}
