/* =========================
   RESET
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #f7f4ee;
    color: #252525;
    font-family: "DM Sans", sans-serif;
    overflow-x: hidden;
}

img {
    width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}


/* =========================
   VARIABLES
========================= */

:root {
    --cream: #f7f4ee;
    --white: #ffffff;
    --olive: #344238;
    --sage: #a8b5a0;
    --terracotta: #c98268;
    --dark: #252525;
    --gray: #77736d;
}


/* =========================
   NAVBAR
========================= */

.navbar {
    position: fixed;
    top: 0;
    left: 0;

    width: 100%;
    height: 85px;

    padding: 0 5%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    background: rgba(247, 244, 238, 0.9);

    backdrop-filter: blur(12px);

    z-index: 1000;

    border-bottom: 1px solid rgba(37, 37, 37, 0.08);
}

.logo {
    font-family: "Playfair Display", serif;

    font-size: 25px;

    letter-spacing: 3px;

    font-weight: 600;
}

.logo span {
    color: var(--terracotta);
}

.nav-links {
    display: flex;
    gap: 35px;
}

.nav-links a {
    font-size: 14px;

    position: relative;

    transition: 0.3s;
}

.nav-links a::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: -6px;

    width: 0;
    height: 1px;

    background: var(--terracotta);

    transition: 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-btn {
    padding: 12px 22px;

    border: 1px solid var(--dark);

    border-radius: 30px;

    font-size: 14px;

    transition: 0.3s;
}

.nav-btn:hover {
    background: var(--olive);
    color: white;
}

.menu-btn {
    display: none;

    background: none;
    border: none;

    font-size: 25px;

    cursor: pointer;
}


/* =========================
   MOBILE MENU
========================= */

.mobile-menu {
    position: fixed;

    top: 85px;
    left: 0;

    width: 100%;

    padding: 30px;

    background: var(--olive);

    display: none;
    flex-direction: column;

    gap: 25px;

    z-index: 999;
}

.mobile-menu a {
    color: white;

    font-family: "Playfair Display", serif;

    font-size: 25px;
}


/* =========================
   HERO
========================= */

.hero {
    position: relative;

    height: 100vh;
    min-height: 650px;

    display: flex;
    align-items: center;

    overflow: hidden;
}

.hero-image {
    position: absolute;

    inset: 0;

    background-image: url(
        "https://images.unsplash.com/photo-1600210492486-724fe5c67fb0?auto=format&fit=crop&w=2000&q=90"
    );

    background-size: cover;
    background-position: center;

    animation: heroZoom 10s ease-out forwards;
}

@keyframes heroZoom {

    from {
        transform: scale(1.12);
    }

    to {
        transform: scale(1);
    }

}

.hero-overlay {
    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(20, 25, 21, 0.75),
            rgba(20, 25, 21, 0.25)
        );
}

.hero-content {
    position: relative;

    z-index: 2;

    max-width: 750px;

    margin-left: 8%;

    color: white;
}

.small-title {
    font-size: 12px;

    letter-spacing: 4px;

    margin-bottom: 25px;
}

.hero-title {
    font-family: "Playfair Display", serif;

    font-size: clamp(55px, 7vw, 100px);

    font-weight: 400;

    line-height: 0.95;

    margin-bottom: 30px;
}

.hero-title span {
    display: block;

    color: #d7dfd2;

    font-style: italic;
}

.hero-description {
    max-width: 450px;

    font-size: 17px;

    line-height: 1.7;

    color: #e7e7e7;

    margin-bottom: 35px;
}

.hero-btn {
    display: inline-flex;

    align-items: center;

    gap: 30px;

    padding: 16px 25px;

    background: white;

    color: var(--dark);

    border-radius: 40px;

    transition: 0.4s;
}

.hero-btn span {
    font-size: 20px;

    transition: 0.4s;
}

.hero-btn:hover {
    background: var(--terracotta);

    color: white;

    transform: translateY(-4px);
}

.hero-btn:hover span {
    transform: rotate(45deg);
}

.scroll-down {
    position: absolute;

    bottom: 35px;
    right: 6%;

    color: white;

    font-size: 12px;

    display: flex;
    align-items: center;

    gap: 12px;

    letter-spacing: 1px;
}

.scroll-down span {
    width: 35px;
    height: 1px;

    background: white;
}


/* =========================
   COMMON SECTION
========================= */

.section {
    padding: 120px 8%;
}

.section-label {
    font-size: 11px;

    letter-spacing: 3px;

    color: var(--gray);

    margin-bottom: 25px;
}

h2 {
    font-family: "Playfair Display", serif;

    font-size: clamp(42px, 5vw, 72px);

    line-height: 1.05;

    font-weight: 400;
}

h2 em {
    color: var(--terracotta);

    font-style: italic;
}


/* =========================
   INTRO
========================= */

.intro {
    display: grid;

    grid-template-columns: 30% 70%;

    gap: 40px;

    background: var(--cream);
}

.intro-right {
    max-width: 800px;
}

.intro-right h2 {
    margin-bottom: 35px;
}

.intro-right p {
    max-width: 650px;

    color: var(--gray);

    line-height: 1.8;

    font-size: 17px;

    margin-bottom: 30px;
}

.text-link {
    display: inline-block;

    border-bottom: 1px solid var(--dark);

    padding-bottom: 5px;

    font-size: 14px;

    transition: 0.3s;
}

.text-link:hover {
    color: var(--terracotta);

    border-color: var(--terracotta);
}


/* =========================
   ABOUT IMAGE
========================= */

.about-image {
    padding-top: 0;
}

.about-image-container {
    position: relative;

    height: 650px;

    overflow: hidden;
}

.about-image-container img {
    height: 100%;

    object-fit: cover;

    transition: transform 1.2s ease;
}

.about-image-container:hover img {
    transform: scale(1.05);
}

.image-caption {
    position: absolute;

    bottom: 30px;
    left: 30px;
    right: 30px;

    display: flex;
    justify-content: space-between;

    color: white;

    font-size: 14px;
}


/* =========================
   SERVICES
========================= */

.services {
    background: #e7ebe4;
}

.section-heading {
    display: grid;

    grid-template-columns: 30% 70%;

    margin-bottom: 70px;
}

.services-grid {
    display: grid;

    grid-template-columns: repeat(2, 1fr);
}

.service-card {
    position: relative;

    min-height: 300px;

    padding: 45px;

    border-top: 1px solid rgba(37, 37, 37, 0.2);

    transition: 0.5s;

    overflow: hidden;
}

.service-card:nth-child(odd) {
    border-right: 1px solid rgba(37, 37, 37, 0.2);
}

.service-number {
    font-size: 12px;

    color: var(--gray);
}

.service-card h3 {
    font-family: "Playfair Display", serif;

    font-size: 38px;

    font-weight: 400;

    max-width: 350px;

    margin-top: 45px;

    transition: 0.4s;
}

.service-card p {
    max-width: 400px;

    color: var(--gray);

    line-height: 1.7;

    margin-top: 20px;
}

.service-arrow {
    position: absolute;

    right: 40px;
    top: 40px;

    font-size: 25px;

    transition: 0.4s;
}

.service-card:hover {
    background: var(--olive);

    color: white;

    transform: translateY(-5px);
}

.service-card:hover p,
.service-card:hover .service-number {
    color: #d0d7cd;
}

.service-card:hover .service-arrow {
    transform: rotate(45deg);
}


/* =========================
   PROJECTS
========================= */

.projects {
    background: var(--cream);
}

.projects-heading {
    display: flex;

    align-items: end;

    justify-content: space-between;

    margin-bottom: 70px;
}

.project-grid {
    display: grid;

    grid-template-columns: 1.4fr 1fr;

    gap: 70px 35px;
}

.project-card:nth-child(3) {
    grid-column: 2;
}

.project-image {
    position: relative;

    height: 550px;

    overflow: hidden;
}

.project-card:not(.project-large) .project-image {
    height: 420px;
}

.project-image img {
    height: 100%;

    object-fit: cover;

    transition: transform 0.8s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.07);
}

.project-overlay {
    position: absolute;

    inset: 0;

    display: flex;

    justify-content: center;
    align-items: center;

    background: rgba(52, 66, 56, 0.75);

    color: white;

    font-size: 17px;

    opacity: 0;

    transition: 0.5s;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-info {
    display: flex;

    justify-content: space-between;

    padding-top: 20px;
}

.project-info h3 {
    font-family: "Playfair Display", serif;

    font-size: 28px;

    font-weight: 400;
}

.project-info p,
.project-info span {
    color: var(--gray);

    font-size: 13px;

    margin-top: 6px;
}


/* =========================
   STATS
========================= */

.stats {
    background: var(--olive);

    color: white;

    display: grid;

    grid-template-columns: 40% 60%;

    gap: 50px;
}

.stats .section-label {
    color: #c4cec2;
}

.stats h2 {
    max-width: 450px;
}

.stats-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    align-items: center;
}

.stat {
    border-left: 1px solid rgba(255,255,255,0.2);

    padding-left: 35px;
}

.stat strong {
    display: block;

    font-family: "Playfair Display", serif;

    font-size: 70px;

    font-weight: 400;
}

.stat strong::after {
    content: "+";
}

.stat span {
    color: #c4cec2;

    font-size: 14px;
}


/* =========================
   TESTIMONIAL
========================= */

.testimonial {
    text-align: center;

    max-width: 1000px;

    margin: auto;
}

.quote-mark {
    font-family: "Playfair Display", serif;

    font-size: 100px;

    color: var(--terracotta);

    line-height: 0.5;
}

blockquote {
    font-family: "Playfair Display", serif;

    font-size: clamp(32px, 4vw, 55px);

    line-height: 1.2;

    margin: 45px 0;
}

.client {
    display: flex;

    align-items: center;

    justify-content: center;

    gap: 15px;
}

.client-line {
    width: 40px;
    height: 1px;

    background: var(--terracotta);
}

.client strong {
    font-size: 14px;
}

.client p {
    font-size: 12px;

    color: var(--gray);

    margin-top: 4px;
}


/* =========================
   CTA
========================= */

.cta {
    background: var(--terracotta);

    color: white;

    text-align: center;

    min-height: 600px;

    display: flex;

    align-items: center;
    justify-content: center;
}

.cta .section-label {
    color: #f4ddd5;
}

.cta h2 {
    max-width: 800px;

    margin: auto auto 45px;
}

.cta h2 em {
    color: var(--cream);
}

.cta-btn {
    display: inline-flex;

    align-items: center;

    gap: 30px;

    padding: 17px 28px;

    background: white;

    color: var(--dark);

    border-radius: 40px;

    transition: 0.4s;
}

.cta-btn:hover {
    background: var(--olive);

    color: white;

    transform: translateY(-4px);
}


/* =========================
   FOOTER
========================= */

footer {
    background: #202820;

    color: white;

    padding: 80px 8% 30px;
}

.footer-top {
    display: flex;

    justify-content: space-between;

    padding-bottom: 70px;
}

.footer-brand p {
    max-width: 250px;

    color: #aeb6ae;

    line-height: 1.6;

    margin-top: 20px;
}

.footer-links {
    display: flex;

    gap: 100px;
}

.footer-links div {
    display: flex;

    flex-direction: column;

    gap: 12px;
}

.footer-links h4 {
    font-size: 13px;

    margin-bottom: 10px;

    color: #aeb6ae;
}

.footer-links a {
    font-size: 14px;

    transition: 0.3s;
}

.footer-links a:hover {
    color: var(--terracotta);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.15);

    padding-top: 25px;

    display: flex;

    justify-content: space-between;

    color: #8d968d;

    font-size: 12px;
}


/* =========================
   SCROLL REVEAL
========================= */

.reveal {
    opacity: 0;

    transform: translateY(50px);

    transition:
        opacity 0.9s ease,
        transform 0.9s ease;
}

.reveal.active {
    opacity: 1;

    transform: translateY(0);
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 900px) {

    .nav-links,
    .nav-btn {
        display: none;
    }

    .menu-btn {
        display: block;
    }

    .mobile-menu.active {
        display: flex;
    }

    .hero-content {
        margin-left: 6%;
        margin-right: 6%;
    }

    .intro,
    .section-heading,
    .stats {
        grid-template-columns: 1fr;
    }

    .intro-left {
        margin-bottom: 20px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card:nth-child(odd) {
        border-right: none;
    }

    .project-grid {
        grid-template-columns: 1fr;
    }

    .project-card:nth-child(3) {
        grid-column: auto;
    }

    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }

}


@media (max-width: 600px) {

    .navbar {
        height: 70px;

        padding: 0 6%;
    }

    .mobile-menu {
        top: 70px;
    }

    .hero {
        min-height: 650px;
    }

    .hero-title {
        font-size: 52px;
    }

    .hero-description {
        font-size: 15px;
    }

    .section {
        padding: 80px 6%;
    }

    .about-image-container {
        height: 450px;
    }

    .section-heading {
        margin-bottom: 45px;
    }

    .service-card {
        min-height: 280px;

        padding: 30px;
    }

    .service-card h3 {
        font-size: 32px;

        margin-top: 35px;
    }

    .projects-heading {
        flex-direction: column;

        align-items: start;

        gap: 25px;
    }

    .project-image,
    .project-card:not(.project-large) .project-image {
        height: 400px;
    }

    .stats-grid {
        grid-template-columns: 1fr;

        gap: 35px;
    }

    .stat {
        border-left: none;

        border-top: 1px solid rgba(255,255,255,0.2);

        padding: 25px 0 0;
    }

    .stat strong {
        font-size: 55px;
    }

    .footer-top {
        flex-direction: column;

        gap: 50px;
    }

    .footer-links {
        gap: 60px;
    }

    .footer-bottom {
        flex-direction: column;

        gap: 10px;
    }

}