/* --- Base Variables & Reset --- */
:root {
    --primary-font: 'Newsreader', serif;
    --secondary-font: 'Instrument Serif', serif;
    --text-color: #333333;
    --bg-color: #ebe5d5; 
    --header-bg: #ebe5d5; 
    --header-text: #1d2631; 
}

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

body {
    font-family: var(--primary-font);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

/* --- Header & Nav --- */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 4vw;
    background-color: var(--header-bg); 
    color: var(--header-text);
    position: relative;
    width: 100%;
    z-index: 100;
}

.logo a {
    font-family: var(--secondary-font);
    font-size: 1.5rem;
    letter-spacing: 0.5px;
}

.desktop-nav ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.desktop-nav a {
    font-size: 1rem;
    transition: opacity 0.3s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active {
    opacity: 0.6;
    border-bottom: 1px solid var(--header-text);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--header-text); 
    transition: all 0.3s ease;
}

/* --- Contact Page Layout --- */
.contact-page {
    padding: 4vw 4vw 8vw 4vw;
    background-color: var(--bg-color);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    max-width: 1100px;
    margin: 0 auto;
    align-items: center;
}

.contact-content h2 {
    font-family: var(--secondary-font);
    font-size: 3.5rem;
    font-weight: 400;
    margin-bottom: 1rem;
    color: var(--header-text);
}

.contact-intro {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.contact-info {
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.contact-info p {
    margin-bottom: 0.5rem;
}

.contact-info a {
    text-decoration: underline;
}

/* --- Form Styling --- */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.9rem;
    color: var(--header-text);
}

.form-group label span {
    color: #888;
    font-size: 0.8rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    background-color: transparent;
    border: 1px solid #ccc;
    border-radius: 25px; /* Pill shape for inputs */
    font-family: var(--primary-font);
    font-size: 1rem;
    color: var(--text-color);
    outline: none;
    transition: border-color 0.3s ease;
}

.form-group textarea {
    border-radius: 15px; /* Slightly different radius for the big text box */
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--header-text);
}

.btn {
    display: inline-block;
    align-self: flex-start;
    background-color: var(--header-text);
    color: var(--header-bg);
    padding: 1rem 3rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-family: var(--primary-font);
    cursor: pointer;
    transition: opacity 0.3s ease, transform 0.2s ease;
}

.btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* --- Image Styling --- */
.contact-image img {
    width: 100%;
    border-radius: 4px;
    object-fit: cover;
    aspect-ratio: 4 / 5; /* Keeps the portrait crop looking nice */
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    .desktop-nav { display: none; }
    .mobile-menu-btn { display: flex; }
    
    .contact-container {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .contact-content h2 {
        font-size: 3rem;
    }
    
    /* Move image to the top on mobile */
    .contact-image {
        order: -1; 
    }
}