:root {
    --bg-color: #fcfbf4;
    --text-color: #2c2c2c;
    --accent-color: #555;
    --font-heading: 'Mazius Display', 'Cormorant Garamond', 'Times New Roman', Times, serif;
    --font-body: 'Mazius Display', 'Times New Roman', 'Cormorant Garamond', Times, serif;
    --spacing-unit: 1.5rem;
    --header-height: 80px;
}

@font-face {
    font-family: 'Cormorant Garamond';
    src: url('../assets/fonts/CormorantGaramond.woff2');
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Mazius Display';
    src: url('../assets/fonts/MaziusDisplay-Regular.woff2');
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Mazius Display';
    src: url('../assets/fonts/MaziusDisplay-Extraitalic.woff2');
    font-style: italic;
    font-display: swap;
}

.title {
    font-size: 4rem;
    text-align: center;
}

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

body {
    font-family: var(--font-body);
    color: var(--text-color);
    background-color: var(--bg-color);
    background-image: url('../assets/textures/paper.webp');
    background-size: auto;
    background-repeat: repeat;
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s;
}

a:hover {
    opacity: 0.7;
}

body>header {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(5px);
    z-index: 1000;
}



.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 100px;
    width: auto;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav ul li {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    position: fixed;
    top: 40px;
    transform: translateY(-50%);
    right: 5%;
    z-index: 1002;
}

.hamburger div {
    width: 30px;
    height: 2px;
    background-color: var(--text-color);
    transition: 0.3s;
}

.mobile-nav {
    display: block;
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    height: 100vh;
    background: #f8f8f8;
    padding: 6rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    transform: translateX(100%);
    transition: transform 0.4s ease-in-out;
}

.mobile-nav.active {
    transform: translateX(0);
}

.mobile-nav a {
    font-family: var(--font-heading);
    font-size: 1.5rem;
}

@media (max-width: 1024px) {
    nav ul {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .mobile-nav {
        display: flex;
    }
}

main {
    padding-top: var(--header-height);
}

#hero {
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0;
    width: 100%;
}

#hero .hero-content {
    width: 100%;
}

#hero h1,
#hero p,
#hero .btn,
#hero button,
.page-header h1,
.page-header p,
.page-header .btn,
.page-header button {
    position: relative;
    z-index: 10;
}

#hero h1 {
    font-size: clamp(2.5rem, 7vw, 6rem);
    max-width: 800px;
    margin: 0 auto 2rem;
}

#hero p {
    font-size: 1.2rem;
    letter-spacing: 0.05em;
    color: var(--accent-color);
    max-width: 600px;
    margin: 0 auto;
}

button,
.btn {
    padding: 1rem 2.5rem;
    font-family: inherit;
    font-size: 0.9rem;
    background: transparent;
    border: 1px solid var(--text-color);
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.2rem;
    margin: 2rem 0;
    font-weight: 500;
}

button:hover,
.btn:hover {
    background: var(--text-color);
    color: var(--bg-color);
    opacity: 1;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="search"],
textarea {
    width: 100%;
    padding: 0.8rem 1.2rem;
    font-family: var(--font-body);
    font-size: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 0;
    transition: all 0.3s ease;
    outline: none;
    color: var(--text-color);
    -webkit-appearance: none;
    appearance: none;
}

input:focus,
textarea:focus {
    border-color: var(--text-color);
}

input:hover:not(:focus),
textarea:hover:not(:focus) {
    border-color: rgba(0, 0, 0, 0.3);
}

input::placeholder {
    color: #666;
    font-style: italic;
    opacity: 0.7;
}

.form-message {
    margin-top: 1.5rem;
    font-size: 0.95rem;
    font-style: italic;
    min-height: 1.5em;
    transition: all 0.3s ease;
    text-align: center;
    width: 100%;
}

.form-message.success {
    color: #4a6741;
}

.form-message.error {
    color: #a34a4a;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 1px;
    background-color: var(--text-color);
}

footer {
    padding: 2rem;
    text-align: center;
    font-size: 0.8rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--accent-color);
}

.page-header {
    height: 92vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.02);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.page-header [data-us-project] {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    z-index: 1;
}



.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--bg-color);
    margin: 3% auto;
    padding: 4rem;
    border: 1px solid #888;
    width: 95%;
    max-width: 1300px;
    position: relative;
    animation: fadeIn 0.4s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

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

@media (max-width: 1024px) {
    .modal-content {
        padding: 3rem 2rem;
        margin: 5% auto;
        width: 100%;
        border-left: none;
        border-right: none;
    }

    .modal-header h2 {
        font-size: 1.8rem;
    }

    .modal-gallery {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 1rem;
    }
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 1.5rem;
    top: 1rem;
    z-index: 10;
}

.close-modal:hover,
.close-modal:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.modal-header {
    text-align: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 2rem;
}

.modal-header h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.modal-header h3 {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    font-style: italic;
}

.modal-body {
    font-size: 1.2rem;
    line-height: 1.8;
}

.modal-gallery {
    margin-top: 3rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.modal-gallery-item {
    width: 100%;
    aspect-ratio: 1;
    background-color: #eee;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #999;
}

img.modal-gallery-item {
    object-fit: contain;
    background-color: transparent;
    display: block;
}

.current {
    color: #666;
    font-style: italic;
}
