/* =========================================
   TOLAB CONSTRUCTION
   THE ENGINEERING EXPERIENCE
   ========================================= */


/* 01. DESIGN SYSTEM
========================================= */

:root {
    --navy: #071522;
    --navy-light: #102638;
    --steel: #183B56;
    --gold: #C5A46D;
    --gold-light: #DDC69D;
    --white: #FFFFFF;
    --warm-white: #F4F2ED;
    --graphite: #24282D;
    --grey: #929BA4;
    --border-light: rgba(255,255,255,0.12);
    --border-dark: rgba(7,21,34,0.12);

    --font-main: "DM Sans", sans-serif;
    --font-heading: "Manrope", sans-serif;

    --container: 1240px;
}


/* 02. RESET
========================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: var(--font-main);
    background: var(--navy);
    color: var(--white);
    overflow-x: hidden;
}

body.intro-active {
    overflow: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font: inherit;
}

button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 5px;
}

img {
    max-width: 100%;
    display: block;
}

::selection {
    background: var(--gold);
    color: var(--navy);
}

.section-container {
    width: min(90%, var(--container));
    margin: auto;
}

.section-light {
    background: var(--warm-white);
    color: var(--navy);
}


/* 03. INTRO EXPERIENCE
========================================= */

.intro-screen {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background:
        radial-gradient(
            ellipse at 50% 45%,
            rgba(24,59,86,0.55),
            transparent 60%
        ),
        var(--navy);

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    transition:
        opacity 1s ease,
        visibility 1s ease;
}

.intro-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.intro-grid {
    position: absolute;
    inset: 0;

    background-image:
        linear-gradient(
            rgba(255,255,255,0.035) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255,255,255,0.035) 1px,
            transparent 1px
        );

    background-size: 70px 70px;

    mask-image:
        radial-gradient(
            ellipse,
            black 15%,
            transparent 75%
        );

    animation: gridReveal 2s ease forwards;
}

.intro-content {
    position: relative;
    text-align: center;
    z-index: 2;

    animation: introReveal 1.5s ease both;
}

.intro-overline {
    display: block;
    color: var(--gold);
    font-size: 10px;
    letter-spacing: 4px;
    margin-bottom: 25px;
}

/* TOLAB BRAND TRANSFORMATION */

.intro-brand {
    display: grid;
    place-items: center;
    margin: 10px auto 0;
    min-height: 155px;
    position: relative;
}

.intro-wordmark,
.intro-monogram {
    grid-area: 1 / 1;
}

.intro-wordmark {
    font-family: var(--font-heading);
    font-size: clamp(75px, 14vw, 125px);
    font-weight: 800;
    letter-spacing: 5px;
    color: var(--white);
    line-height: 1;
    white-space: nowrap;
}

.intro-word-t,
.intro-word-rest {
    display: inline-block;
}

/* OLAB fades away first */

.intro-word-rest {
    animation: lettersFade 1.5s 2.1s ease-in-out both;
}

/* The original T remains briefly, then fades */

.intro-word-t {
    animation: initialTFade 0.9s 4.1s ease-in-out both;
}

/* Architectural SVG */

.intro-monogram {
    display: block;
    width: clamp(150px, 22vw, 190px);
    height: auto;
    max-height: 135px;
    overflow: visible;
}

/* Navy structural cap */

.monogram-cap {
    opacity: 0;
    transform: translateY(8px);
    transform-box: fill-box;
    transform-origin: center;
    animation: capReveal 0.9s 3.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Gold columns rise individually */

.monogram-column {
    opacity: 0;
    transform: scaleY(0.7) translateY(15px);
    transform-box: fill-box;
    transform-origin: center bottom;
}

.column-one {
    animation: columnReveal 0.9s 3.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.column-two {
    animation: columnReveal 0.9s 3.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.column-three {
    animation: columnReveal 0.9s 4.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Company descriptor */

.intro-company-name {
    display: block;
    color: rgba(255,255,255,0.65);
    font-size: 9px;
    letter-spacing: 3px;
    margin-top: 12px;
    animation: companyNameReveal 1.5s 1s ease both;
}

/* ANIMATION KEYFRAMES */

@keyframes lettersFade {
    0% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }

    100% {
        opacity: 0;
        transform: translateY(-8px);
        filter: blur(2px);
    }
}

@keyframes initialTFade {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(-5px);
    }
}

@keyframes capReveal {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes columnReveal {
    from {
        opacity: 0;
        transform: scaleY(0.7) translateY(15px);
    }

    to {
        opacity: 1;
        transform: scaleY(1) translateY(0);
    }
}

@keyframes companyNameReveal {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.intro-description {
    color: rgba(255,255,255,0.65);
    font-size: 13px;
    letter-spacing: 2px;
    margin-top: 25px;
}

.intro-line {
    width: 0;
    height: 2px;
    background: var(--gold);
    margin: 35px auto 0;
    animation: lineExpand 1.5s 0.5s ease forwards;
}

.skip-intro {
    position: absolute;
    right: 6%;
    bottom: 7%;

    border: 1px solid rgba(255,255,255,0.3);
    background: transparent;
    color: white;

    padding: 13px 20px;
    font-size: 10px;
    letter-spacing: 2px;

    cursor: pointer;
    transition: 0.3s;
}

.skip-intro:hover {
    background: var(--gold);
    color: var(--navy);
    border-color: var(--gold);
}

.skip-intro span {
    margin-left: 10px;
}


/* 04. HEADER
========================================= */

.site-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;

    padding: 0 6%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    z-index: 100;

    border-bottom: 1px solid rgba(255,255,255,0.13);
}

.brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
}

.brand-logo {
    display: block;
    width: 190px;
    height: auto;
    max-height: 58px;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

.brand:hover .brand-logo {
    opacity: 0.85;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 38px;
}

.nav-link {
    font-size: 12px;
    color: rgba(255,255,255,0.72);
    transition: 0.3s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--gold);
}

.nav-contact {
    border: 1px solid var(--gold);
    padding: 13px 19px;
    font-size: 11px;
    color: var(--gold);
    transition: 0.3s;
}

.nav-contact:hover {
    background: var(--gold);
    color: var(--navy);
}

.nav-contact span {
    margin-left: 12px;
}

.menu-toggle {
    display: none;
    background: transparent;
    border: 0;
    cursor: pointer;
}


/* 05. HERO SECTION
========================================= */

.hero {
    position: relative;
    min-height: 760px;
    height: 100svh;
    max-height: 1050px;

    display: flex;
    align-items: center;

    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    background: #102638;
}

.hero-image {
    position: absolute;
    inset: 0;

    opacity: 0;
    transition: opacity 1.2s ease;

    background-size: cover;
    background-position: center;
}

.hero-image.active {
    opacity: 1;
}

/*
   TEMPORARY VISUAL BACKGROUNDS

   Replace these with approved photographs
   in assets/images before final presentation.
*/

.hero-image-one {
    background-image:
        linear-gradient(90deg, rgba(7,21,34,0.7), rgba(7,21,34,0.1)),
        url("https://images.unsplash.com/photo-1511818966892-d7d671e672a2?auto=format&fit=crop&w=2000&q=85");
}

.hero-image-two {
    background-image:
        linear-gradient(90deg, rgba(7,21,34,0.7), rgba(7,21,34,0.1)),
        url("https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=2000&q=85");
}

.hero-image-three {
    background-image:
        linear-gradient(90deg, rgba(7,21,34,0.7), rgba(7,21,34,0.1)),
        url("https://images.unsplash.com/photo-1541888946425-d81bb19240f5?auto=format&fit=crop&w=2000&q=85");
}

.hero-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(7,21,34,0.96) 0%,
            rgba(7,21,34,0.78) 40%,
            rgba(7,21,34,0.2) 100%
        ),
        linear-gradient(
            0deg,
            rgba(7,21,34,0.65),
            transparent 35%
        );
}

.hero-content {
    position: relative;
    z-index: 2;

    width: min(90%, var(--container));
    margin: auto;

    padding-top: 80px;

    animation: heroReveal 1s 0.3s both;
}

.hero-eyebrow,
.eyebrow-gold {
    color: var(--gold);
    font-size: 10px;
    letter-spacing: 3px;
    font-weight: 600;
}

.eyebrow-line {
    display: inline-block;
    width: 38px;
    height: 1px;
    background: var(--gold);
    margin-right: 12px;
    vertical-align: middle;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(58px, 8vw, 112px);
    font-weight: 700;
    line-height: 1.04;
    letter-spacing: -5px;

    max-width: 950px;
    margin: 35px 0 25px;
}

.hero h1 span {
    display: block;
    color: var(--gold-light);
}

.hero-description {
    color: rgba(255,255,255,0.75);
    font-size: 15px;
    line-height: 1.9;
    max-width: 480px;
}

.hero-actions {
    display: flex;
    gap: 15px;
    margin-top: 40px;
}

.button-primary,
.button-secondary,
.button-dark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 25px;

    padding: 17px 23px;
    font-size: 11px;
    transition: 0.3s;
}

.button-primary {
    background: var(--gold);
    color: var(--navy);
}

.button-primary:hover {
    background: var(--gold-light);
    transform: translateY(-3px);
}

.button-secondary {
    border: 1px solid rgba(255,255,255,0.45);
    color: white;
}

.button-secondary:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.hero-controls {
    position: absolute;
    z-index: 3;

    right: 6%;
    bottom: 125px;

    display: flex;
    align-items: center;
    gap: 45px;
}

.hero-counter {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
}

#currentSlide {
    color: var(--gold);
    font-size: 18px;
}

.counter-divider {
    width: 35px;
    height: 1px;
    background: rgba(255,255,255,0.5);
}

.hero-navigation {
    display: flex;
    gap: 8px;
}

.hero-navigation button {
    width: 43px;
    height: 43px;

    background: transparent;
    border: 1px solid rgba(255,255,255,0.4);

    color: white;
    cursor: pointer;
    transition: 0.3s;
}

.hero-navigation button:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--navy);
}

.hero-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;

    min-height: 65px;
    padding: 0 6%;

    display: flex;
    justify-content: space-between;
    align-items: center;

    border-top: 1px solid rgba(255,255,255,0.16);

    color: rgba(255,255,255,0.65);
    font-size: 9px;
    letter-spacing: 1.5px;
}

.hero-bottom a {
    color: var(--gold);
}


/* 06. SECTION LABELS
========================================= */

.section-label {
    display: flex;
    justify-content: space-between;

    padding-bottom: 22px;
    border-bottom: 1px solid var(--border-dark);

    font-size: 9px;
    letter-spacing: 2px;
    color: #697783;
}

.section-label-dark {
    color: rgba(255,255,255,0.55);
    border-color: var(--border-light);
}


/* 07. ABOUT SECTION
========================================= */

.about-section {
    padding: 125px 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 100px;

    padding-top: 85px;
}

.eyebrow-dark {
    color: #92764D;
    font-size: 10px;
    letter-spacing: 3px;
    font-weight: 700;
}

.about-heading h2,
.services-heading h2,
.projects-heading h2,
.approach-content h2,
.contact-content h2 {
    font-family: var(--font-heading);
    font-size: clamp(38px, 5vw, 64px);
    line-height: 1.17;
    letter-spacing: -2px;
    margin-top: 25px;
}

.about-heading h2 span,
.projects-heading h2 span,
.contact-content h2 span {
    display: block;
    color: #8E969B;
}

.about-description {
    padding-top: 25px;
}

.about-description p {
    color: #606B74;
    font-size: 14px;
    line-height: 2;
    margin-bottom: 22px;
}

.text-link {
    display: inline-block;
    margin-top: 18px;

    color: var(--navy);
    border-bottom: 1px solid var(--gold);

    padding-bottom: 8px;
    font-size: 12px;
    font-weight: 700;
}

.text-link span {
    margin-left: 12px;
    color: #92764D;
}


/* 08. SERVICES SECTION
========================================= */

.services-section {
    padding: 125px 0;
    background: var(--navy);
}

.services-heading {
    max-width: 750px;
    margin: 75px 0 60px;
}

.services-heading h2 {
    color: white;
}

.services-heading h2 span {
    display: block;
    color: var(--gold-light);
}

.services-heading p {
    color: rgba(255,255,255,0.55);
    margin-top: 20px;
    font-size: 13px;
    line-height: 1.8;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--border-light);
    border-left: 1px solid var(--border-light);
}

.service-card {
    min-height: 285px;
    padding: 35px;

    position: relative;

    border-right: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);

    transition: background 0.4s;
}

.service-card:hover {
    background: var(--navy-light);
}

.service-number {
    color: var(--gold);
    font-size: 11px;
    letter-spacing: 2px;
}

.service-icon {
    color: var(--gold);
    font-size: 35px;
    margin: 35px 0 20px;
}

.service-card h3 {
    font-family: var(--font-heading);
    font-size: 19px;
    font-weight: 600;
}

.service-card p {
    color: rgba(255,255,255,0.52);
    font-size: 12px;
    line-height: 1.8;
    margin-top: 12px;
}

.service-card a {
    display: inline-block;
    margin-top: 25px;
    color: var(--gold);
    font-size: 10px;
}


/* 09. PROJECTS SECTION
========================================= */

.projects-section {
    padding: 125px 0;
}

.projects-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 60px;

    padding: 75px 0 55px;
}

.projects-heading > p {
    max-width: 300px;
    color: #737E87;
    font-size: 13px;
    line-height: 1.9;
}

.projects-placeholder {
    min-height: 430px;

    background:
        linear-gradient(
            120deg,
            rgba(7,21,34,0.95),
            rgba(24,59,86,0.75)
        );

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;
    padding: 30px;
    color: white;
}

.projects-placeholder > span {
    color: var(--gold);
    font-size: 10px;
    letter-spacing: 3px;
}

.projects-placeholder h3 {
    font-family: var(--font-heading);
    font-size: clamp(32px, 5vw, 60px);
    margin: 25px 0 15px;
}

.projects-placeholder h3 span {
    color: var(--gold-light);
}

.projects-placeholder p {
    color: rgba(255,255,255,0.6);
    font-size: 12px;
}


/* 10. APPROACH SECTION
========================================= */

.approach-section {
    padding: 125px 0;
    background:
        radial-gradient(
            ellipse at 80% 50%,
            rgba(24,59,86,0.6),
            transparent 60%
        ),
        var(--navy-light);
}

.approach-content {
    max-width: 850px;
    padding: 100px 0 35px;
}

.approach-content h2 {
    font-size: clamp(45px, 6vw, 80px);
    color: white;
}

.approach-content h2 span {
    display: block;
    color: var(--gold-light);
}

.approach-content p {
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    line-height: 1.9;
    margin-top: 30px;
    max-width: 480px;
}


/* 11. CONTACT SECTION
========================================= */

.contact-section {
    padding: 125px 0;
}

.contact-content {
    max-width: 850px;
    padding: 90px 0 20px;
}

.contact-content h2 {
    font-size: clamp(48px, 7vw, 85px);
}

.contact-content > p {
    color: #727C84;
    font-size: 14px;
    line-height: 1.9;
    margin-top: 25px;
    max-width: 430px;
}

.button-dark {
    margin-top: 35px;
    background: var(--navy);
    color: white;
}

.button-dark:hover {
    background: var(--gold);
    color: var(--navy);
    transform: translateY(-3px);
}


/* 12. FOOTER
========================================= */

.site-footer {
    padding: 65px 6% 25px;
    background: #040D15;
}

.footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 50px;
}

.footer-brand {
    font-family: var(--font-heading);
    font-size: 55px;
    font-weight: 800;
    letter-spacing: -3px;
}

.footer-brand span {
    color: var(--gold);
}

.footer-top p {
    color: rgba(255,255,255,0.45);
    font-size: 9px;
    letter-spacing: 2px;
}

.footer-bottom {
    border-top: 1px solid var(--border-light);
    padding-top: 25px;

    display: flex;
    justify-content: space-between;

    color: rgba(255,255,255,0.45);
    font-size: 9px;
    letter-spacing: 1px;
}

.footer-bottom a {
    color: var(--gold);
}


/* 13. ANIMATIONS
========================================= */

@keyframes introReveal {
    from {
        opacity: 0;
        transform: translateY(25px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes lineExpand {
    to {
        width: 120px;
    }
}

@keyframes gridReveal {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes heroReveal {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* 14. RESPONSIVE DESIGN
========================================= */

@media (max-width: 1000px) {

    .main-nav {
        gap: 20px;
    }

    .about-content {
        gap: 50px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .projects-heading {
        align-items: start;
        flex-direction: column;
        gap: 25px;
    }

}


@media (max-width: 700px) {

    .site-header {
        height: 80px;
        padding: 0 5%;
    }

    .brand-symbol {
        width: 37px;
        height: 37px;
        font-size: 21px;
    }

    .brand-name {
        font-size: 16px;
    }

    .brand-name small {
        font-size: 6px;
    }

    .menu-toggle {
        display: flex;
        flex-direction: column;
        gap: 7px;
        padding: 10px;
    }

    .menu-toggle span {
        width: 25px;
        height: 1px;
        background: white;
        transition: 0.3s;
    }

    .main-nav {
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;

        padding: 25px 6% 35px;

        background: #071522;

        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 25px;

        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);

        transition: 0.3s;
    }

    .main-nav.open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .hero {
        min-height: 760px;
        height: 100svh;
    }

    .hero-content {
        padding-top: 80px;
    }

    .hero h1 {
        font-size: clamp(48px, 12vw, 75px);
        letter-spacing: -3px;
    }

    .hero-description {
        font-size: 13px;
        max-width: 350px;
    }

    .hero-actions {
        flex-wrap: wrap;
    }

    .hero-controls {
        right: 6%;
        bottom: 105px;
        gap: 20px;
    }

    .hero-bottom {
        min-height: 65px;
        font-size: 7px;
        padding: 0 5%;
    }

    .hero-bottom span:nth-child(2) {
        display: none;
    }

    .about-section,
    .services-section,
    .projects-section,
    .approach-section,
    .contact-section {
        padding: 85px 0;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 25px;
        padding-top: 60px;
    }

    .services-heading {
        margin: 60px 0 40px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        min-height: 250px;
    }

    .projects-heading {
        padding: 60px 0 40px;
    }

    .projects-placeholder {
        min-height: 330px;
    }

    .approach-content,
    .contact-content {
        padding-top: 70px;
    }

    .footer-top {
        align-items: flex-start;
        flex-direction: column;
        gap: 15px;
    }

    .footer-brand {
        font-size: 45px;
    }

    .footer-bottom {
        gap: 20px;
        flex-direction: column;
        line-height: 1.8;
    }

    .intro-overline {
        font-size: 8px;
        letter-spacing: 2px;
    }

    .intro-logo {
        letter-spacing: -5px;
    }

}


@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

}