/* ========== Category Grid (Index Page) ========== */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin: 2rem auto;
    max-width: 1100px;
}

.category-card {
    background: #f8f8f8;
    border-radius: 10px;
    padding: 1.5rem 1.5rem 1rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: box-shadow 0.2s;
}

.category-card:hover {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);

}

.category-link {
    text-decoration: none;
    color: #222;
    margin-bottom: 1rem;
    transition: color 0.2s;
}

.category-link h2 {
    margin: 0 0 0.5rem 0;
    font-size: 2rem;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    letter-spacing: 1px;
}

.category-link:hover,
.category-link:focus {
    color: #ff9800;
}

.category-card img {
    width: auto;
    height: auto;
    max-width: 350px;
    max-height: 200px;
    object-fit: scale-down;
    border-radius: 6px;
}

body {
    margin: 0;
    font-family: "Playfair Display", serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    background: #f8f8f8;
    color: #222;
}

main {
    max-width: 1400px;
    margin: 2rem auto 100px auto;
    padding: 0 1rem;
}

#home-hello {
    text-align: center;
    margin: 2rem 0;
    font-style: italic;
    font-size: 50px;
}

/* ========== Header & Nav ========== */
header {
    /* background: #EEE; */
    color: #222;
    padding: 1.5rem 0 1rem 0;
    width: 95%;
    border-radius: 15px;
    margin: 5px 0 0 2.5%;
}

.header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1300px;
    margin: 0 auto;
    position: relative;
    padding: 0 1rem;
}

header h1 {
    font-family: "Staatliches", sans-serif;
    font-weight: 500;
    font-style: normal;
    margin: 0;
    font-size: 2.5rem;
    letter-spacing: 2px;
    flex-shrink: 0;
}

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

nav a {
    color: #222;
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.2s;
}

nav a:hover {
    color: #ff9800;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    margin-left: 1rem;
    z-index: 10;
}

.hamburger span {
    display: block;
    width: 26px;
    height: 3px;
    margin: 4px 0;
    background: #222;
    border-radius: 2px;
    transition: 0.3s;
}

#main-nav li {
    padding: 10px;
    border-radius: 15px;
}

header h1 a {
    color: inherit;
    text-decoration: inherit;
    pointer-events: auto;
    font: inherit;
    font-style: inherit;
    font-weight: inherit;
    letter-spacing: inherit;
    transition: none;
}

header h1 a:hover,
header h1 a:focus {
    color: inherit;
    text-decoration: inherit;
}

@media (max-width: 700px) {
    .header-row {
        flex-wrap: wrap;
    }

    nav ul {
        flex-direction: column;
        position: absolute;
        top: 100%;
        right: 0;
        background: #F8F8F8;
        width: 140px;
        gap: 0;
        display: none;
        z-index: 9;
        border-radius: 10px;
        text-align: center;
    }

    nav ul.open {
        display: flex;
    }

    .hamburger {
        display: flex;
    }

    .about-content {
        flex-direction: column;
        align-items: center;
        padding: 1rem;
        gap: 1rem;
    }
}

/* ========== Footer ========== */
.footer-ig {
    display: block;
    text-align: center;
    margin: 2rem 0 1rem 0;
    font-style: italic;
    color: #666;
}

.footer-ig-link {
    color: #666;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-ig-link:hover,
.footer-ig-link:focus {
    color: #ff9800;
}

/* ========== About Page ========== */
.about-section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    max-width: 900px;
}

.about-img {
    width: 220px;
    height: 220px;
    object-fit: cover;
    border-radius: 30px;
}

.about-text {
    max-width: 500px;
}

.about-text h1 {
    margin-top: 0;
    font-family: "Staatliches", sans-serif;
    font-weight: 500;
    font-style: normal;
    font-size: 2.5rem;
}

.contact-button {
  display: inline-block;
  text-decoration: none;
  font-weight: bold;
  color: inherit;
}

.contact-button:hover {
    color: #ff9800;
}

/* ========== Masonry Gallery ========== */
.masonry {
    column-count: 3;
    column-gap: 1rem;
    padding: 1rem;
}

.masonry img {
    width: 100%;
    display: block;
    margin-bottom: 1rem;
    border-radius: 2px;
    transition: transform 0.3s ease;
}

@media (max-width: 1024px) {
    .masonry {
        column-count: 2;
    }
}

@media (max-width: 600px) {
    .masonry {
        column-count: 1;
    }
}