/* ESPAI HOME - Design System */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;700&family=Outfit:wght@300;400;600;700;800&display=swap');

:root {
    --primary-color: #1a1a1a;
    --secondary-color: #ffffff;
    --accent-color: #c9a35d;
    /* Elegant Gold */
    --text-color: #333333;
    --text-light: #ffffff;
    --bg-light: #ffffff;
    --bg-alt: #f8f9fa;
    --glass: rgba(0, 0, 0, 0.03);
    --glass-border: rgba(0, 0, 0, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-light);
    line-height: 1.7;
    overflow-x: hidden;
}

header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
}

.logo img {
    height: 45px;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 2.5rem;
}

nav ul li a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.8rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.7;
}

nav ul li a:hover,
nav ul li a.active {
    opacity: 1;
    color: var(--accent-color);
}

.hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 12rem 10% 8rem;
    background: var(--bg-light);
    overflow: hidden;
}

.hero h1 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: clamp(2.5rem, 6vw, 4rem);
    line-height: 1.1;
    margin-bottom: 2rem;
    color: var(--primary-color);
    animation: fadeInUp 1.2s ease-out;
    text-transform: none;
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.1rem;
    max-width: 600px;
    color: var(--text-color);
    margin-bottom: 3rem;
    animation: fadeInUp 1.2s ease-out 0.2s backwards;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    font-weight: 700;
    transition: all 0.4s;
    background: transparent;
    animation: fadeInUp 1.2s ease-out 0.4s backwards;
}

.btn:hover {
    background: var(--accent-color);
    color: var(--secondary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(201, 163, 93, 0.3);
}

section {
    padding: 8rem 10%;
}

h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 3rem;
    letter-spacing: -1px;
    color: var(--primary-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 5%;
    max-width: 1400px;
    margin: 0 auto 5rem;
}

.hero-images-grid {
    margin-top: 4rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    width: 100%;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.hero-images-grid div {
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.hero-images-grid img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.step-num {
    font-size: 3rem;
    font-weight: 700;
    color: #eee;
    margin-bottom: -1.5rem;
    position: relative;
    z-index: 1;
}

.instagram-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    max-width: 1000px;
    margin: 0 auto;
}

.instagram-grid div {
    aspect-ratio: 1/1;
    background: #f0f0f0;
}

.gallery-img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.project-card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.project-card:hover .gallery-img {
    transform: scale(1.05);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-title {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-align: center;
    padding: 0 1rem;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.project-card:hover .project-title {
    transform: translateY(0);
}

.service-card {
    background: var(--bg-alt);
    border: 1px solid var(--glass-border);
    padding: 3rem;
    transition: all 0.4s;
}

.service-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-10px);
    background: var(--bg-light);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

footer {
    background: #111;
    color: #fff;
    padding: 3rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    border-top: none;
}

.footer-left a {
    color: #fff;
    text-decoration: underline;
    font-size: 1.8rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 400;
}

.footer-center {
    text-align: center;
    line-height: 1.5;
}

.footer-center p {
    margin: 0;
    opacity: 0.9;
}

.footer-center .email {
    font-weight: 700;
    margin: 0.2rem 0;
    opacity: 1;
}

.footer-right a {
    color: #fff;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer-right a:hover {
    opacity: 1;
}

/* Page titles */
.page-title {
    padding-top: 12rem;
    padding-bottom: 5rem;
    background: var(--bg-alt);
    color: var(--primary-color);
    text-align: center;
}

.page-title h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.team-member {
    text-align: center;
}

.team-member img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.5rem;
    filter: grayscale(100%);
    transition: all 0.4s;
    border: 3px solid transparent;
}

.team-member:hover img {
    filter: grayscale(0%);
    border-color: var(--accent-color);
}

.team-member h3 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.team-member p {
    color: var(--accent-color);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* --- Responsive Design (Bootstrap Style Logic) --- */

@media (max-width: 991px) {
    header {
        padding: 1rem 5%;
        flex-direction: column;
        gap: 1rem;
    }

    nav ul li {
        margin-left: 1rem;
        margin-right: 1rem;
    }

    .hero {
        padding-top: 10rem;
    }

    .hero h1 {
        font-size: 3rem;
    }

    section {
        padding: 5rem 5%;
    }

    h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 767px) {
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }

    nav ul li {
        margin: 0.5rem;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .page-title {
        padding-top: 10rem;
    }

    /* Grids become stacking */
    .services-grid,
    .hero-images-grid,
    .steps-grid,
    .team-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem;
    }

    footer {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .instagram-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .service-card {
        padding: 2rem;
    }

    .gallery-img {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .logo img {
        height: 35px;
    }

    nav ul li a {
        font-size: 0.7rem;
        letter-spacing: 1px;
    }

    .hero h1 {
        font-size: 1.8rem;
    }
}