:root {
    --navy: #000b2b;
    --grey: #e6e4e1;
    --white: #f5f5f5;
    --text: #111111;
}

* {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    font-family: 'Lato', sans-serif;
    background: var(--navy);
    color: var(--white);
}

/* Navigation */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--grey);
    transition: transform 0.3s ease-in-out;
}

.site-header.nav-hidden {
    transform: translateY(-100%);
}

.navbar {
    max-width: 1200px;
    margin: auto;
    padding: 5px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.nav-logo img {
    width: 150px;
    height: auto;
    display: block;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-size: 15px;
}

.nav-links a:hover {
    opacity: 0.6;
}

/* General sections */

.section {
    padding: 65px 24px;
}

.section h2 {
    font-size: 30px;
    font-weight: 400;
    text-align: center;
    margin: 0 0 45px;
    font-family: 'Playfair Display', serif;
}

/* Home */

.hero {
    min-height: 520px;
    padding: 50px 24px 70px;

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

.hero-logo img {
    display: block;
    width: min(600px, 90vw);
    height: auto;
}

.hero h1 {
    font-size: clamp(36px, 6vw, 72px);
    font-weight: 400;
    margin: 25px 0;
    font-family: 'Playfair Display', serif;
}

.hero p {
    max-width: 650px;
    font-size: 19px;
    line-height: 1.5;
}

/* About */

.about-card {
    background: var(--grey);
    color: var(--text);
    border-radius: 16px;
    max-width: 1000px;
    margin: auto;
    padding: 45px;
}

.about-card h2 {
    margin-bottom: 30px;
    font-family: 'Playfair Display', serif;
}

.about-card p {
    font-size: 17px;
    line-height: 1.6;
    margin-bottom: 22px;
}

/* Services */

.services {
    max-width: 1100px;
    margin: auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px 55px;
}



/* Services Cards - Slide Up Animation */

.services-card {
    position: relative;
    height: 280px;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    outline-offset: 5px;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Front of card */

.card-front {
    position: absolute;
    inset: 0;
    background: var(--grey);
    color: var(--text);
    border-radius: 16px;
    padding: 30px;

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

.card-front h3 {
    font-size: 24px;
    font-weight: 400;
    line-height: 1.35;
    font-family: 'Playfair Display', serif;
}

/* Sliding description */

.card-back {
    position: absolute;
    inset: 0;
    background: #bfc8d6;
    color: var(--text);
    border-radius: 16px;
    padding: 30px;

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

    transform: translateY(100%);
    transition: transform 0.5s ease;
}

.card-back p {
    font-size: 16px;
    line-height: 1.5;
    margin: 0;
    font-family: 'Lato', sans-serif;
}


/* Contact */

.contact {
    padding-bottom: 100px;
}

.contact-details {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--white);
    text-decoration: none;
    font-size: 17px;
    transition: transform 0.3s ease, color 0.3s ease;
}

.contact-item i {
    font-size: 24px;
}

.contact-item:hover {
    transform: translateY(-4px);
    color: #8bbcff;
}

/* Mobile */

@media (max-width: 700px) {

    .navbar {
        padding: 12px 16px;
    }

    .nav-links {
        gap: 12px;
    }

    .nav-links a {
        font-size: 12px;
    }

    .hero {
        min-height: 450px;
    }

    .hero p {
        font-size: 16px;
    }

    .about-card {
        padding: 25px;
    }

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

    .contact-details {
        flex-direction: column;
        gap: 25px;
    }

    .contact-item {
        font-size: 15px;
    }
}

/* Slide up on hover */

@media (hover: hover) {
    .services-card:hover .card-back {
        transform: translateY(0);
    }
}

/* Slide up on click */

.services-card.is-flipped .card-back {
    transform: translateY(0);
}

/* Mobile */

@media (max-width: 700px) {
    .services-card {
        height: 300px;
    }

    .card-front h3 {
        font-size: 21px;
    }

    .card-back p {
        font-size: 15px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .card-back {
        transition: none;
    }
}