/* ================================================================
   styles.css — Shared styles across all pages
   ================================================================ */

/* ── Reset ── */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* ── Navigation ── */
nav {
    background-color: #fff;
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 200;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.logo {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    text-transform: none;
    letter-spacing: normal;
}

/* nav ul for index/illustration/about; .nav-links for projects/project pages */
nav ul,
.nav-links {
    list-style: none;
    display: flex;
    gap: 40px;
}

nav a,
.nav-links a {
    font-family: inherit;
    text-decoration: none;
    color: #666;
    font-size: 12px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
}

nav a:hover,
nav a.active,
.nav-links a:hover,
.nav-links a.active {
    color: #4a7c6f;
}

/* .nav-icons for index/illustration/about; .social-icons for projects/project pages */
.nav-icons,
.social-icons {
    display: flex;
    gap: 20px;
}

.nav-icons a,
.social-icons a {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #666;
    text-decoration: none;
}

.nav-icons a:hover,
.social-icons a:hover {
    color: #4a7c6f;
}

/* ── Burger ── */
.burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 200;
}

.burger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #333;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
}

.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile Nav ── */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #fff;
    z-index: 190;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-nav.is-open {
    opacity: 1;
    pointer-events: all;
}

.mobile-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    width: 100%;
}

.mobile-nav ul li a {
    display: block;
    padding: 18px 40px;
    text-decoration: none;
    color: #333;
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: color 0.3s;
    text-align: center;
}

.mobile-nav ul li a:hover,
.mobile-nav ul li a.active {
    color: #4a7c6f;
}

.mobile-nav-icons {
    display: flex;
    gap: 24px;
    margin-top: 32px;
}

.mobile-nav-icons a {
    font-size: 24px;
    text-decoration: none;
    color: #000000;
}

body.nav-is-open {
    overflow: hidden;
}

/* ── Responsive: hide desktop nav, show burger ── */
@media (max-width: 1024px) {
    nav ul,
    .nav-links,
    .nav-icons,
    .social-icons {
        display: none;
    }

    .burger {
        display: flex;
    }

    .mobile-nav {
        display: flex;
    }
}

/* ================================================================
   Shared page styles (index / about / illustration)
   ================================================================ */

/* ── Body ── */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #333;
    background-color: #f9f7f4;
    line-height: 1.6;
}

/* ── Button ── */
.btn {
    display: inline-block;
    padding: 14px 32px;
    background-color: #4a7c6f;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background-color 0.3s;
    border: none;
    cursor: pointer;
    font-weight: 600;
}

.btn:hover {
    background-color: #3a6b5f;
}

/* ── Footer ── */
footer {
    background-color: #f9f7f4;
    padding: 20px 50px;
    border-top: 1px solid #e8dcc8;
}

.footer-cta {
    text-align: center;
    margin-bottom: 20px;
    padding: 32px;
    background-color: #fff;
    border: 1px solid #e8dcc8;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.footer-cta h3 {
    font-size: 24px;
    margin-bottom: 12px;
    color: #333;
    font-weight: 700;
}

.footer-contacts {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
    padding: 20px;
    background-color: #fff;
    border-radius: 12px;
    flex-wrap: wrap;
}

.footer-contacts a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-contacts a:hover {
    color: #4a7c6f;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #e8dcc8;
    color: #999;
    font-size: 12px;
}

@media (max-width: 768px) {
    footer {
        padding: 20px 20px;
    }

    .footer-contacts {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }
}
