/* --- CORE VARIABLES --- */
:root {
    --earthy-bg: #3a2a22; 
    --harvard-crimson: #A51C30;
    --accent-gold: #d4a373;
    --text-main: #f4f1ee;
    --nav-footer-dark: #1a1816; 
    --error-red: #ff6b6b;
}

/* RESET & BOX SIZING */
* { box-sizing: border-box; outline: none; }

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--earthy-bg);
    color: var(--text-main);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* --- HEADER & NAV --- */
nav {
    position: fixed; 
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 15px 5%;
    display: flex; justify-content: space-between; align-items: center; 
    background: var(--nav-footer-dark); 
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(212, 163, 115, 0.2); 
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.logo { 
    font-family: 'Playfair Display', serif; font-size: 1.4rem; color: var(--accent-gold); 
    text-decoration: none; font-weight: 700; 
    opacity: 0; transition: opacity 0.8s ease; 
}

.nav-menu { display: flex; gap: 30px; align-items: center; }

.header-link {
    font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1.5px; font-weight: 600;
    color: var(--accent-gold); text-decoration: none; cursor: pointer; position: relative;
    opacity: 0; transition: opacity 0.4s ease; 
}

.header-link:hover, .header-link.active-page {
    color: #fff; text-shadow: 0 0 10px rgba(212, 163, 115, 0.5);
}

.reveal-active { opacity: 1 !important; }

/* --- MOBILE DRAWER --- */
.menu-icon { display: none; font-size: 1.5rem; color: var(--accent-gold); cursor: pointer; z-index: 1001; }

.side-drawer {
    position: fixed; top: 0; left: -100%; width: 280px; height: 100%;
    background: var(--nav-footer-dark); backdrop-filter: blur(15px); z-index: 2000;
    padding: 80px 30px; display: flex; flex-direction: column; gap: 25px;
    transition: 0.5s; border-right: 1px solid var(--accent-gold);
}

.header-title { color: var(--accent-gold); cursor: pointer; font-weight: 600; text-decoration: none; display: block; transition: color 0.3s ease; }
.header-title:hover { color: #fff; }
.side-drawer.open { left: 0; }

.menu-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.7); z-index: 1999; display: none; }
.menu-overlay.active { display: block; }

@media (max-width: 992px) {
    .menu-icon { display: block; } .nav-menu { display: none; } 
}

/* --- LAYOUT ADJUSTMENTS --- */
.page-header-spacer { height: 75px; width: 100%; }

.page-title-block {
    text-align: center;
    margin-bottom: 20px; 
    padding: 0 15px;
    opacity: 0; transition: opacity 0.8s ease 0.2s; 
}

.page-title-block h1 {
    font-family: 'Playfair Display', serif; color: var(--accent-gold); 
    font-size: 2.2rem;
    margin-bottom: 5px;
    margin-top: 10px;
}
.page-title-block p { margin: 0; font-size: 0.95rem; }

.container { 
    max-width: 1300px; 
    width: 100%; 
    margin: 0 auto 30px auto; 
    padding: 0 20px; 
    position: relative; z-index: 10; flex: 1; 
}

/* --- CONTACT GRID LAYOUT --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr; 
    gap: 30px;
    align-items: start;
    width: 100%;
}

/* --- GLASS STYLE --- */
.section-glass {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 30px 35px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    opacity: 0; 
    transition: opacity 1s ease;
    width: 100%;
}

.section-glass.active { opacity: 1; }

.section-title {
    color: var(--accent-gold); text-transform: uppercase; font-size: 1.3rem;
    border-bottom: 2px solid rgba(212, 163, 115, 0.2); padding-bottom: 10px; margin: 0 0 25px 0;
    font-family: 'Playfair Display', serif;
}

/* --- LEFT COLUMN: CONTACT INFO --- */
.contact-info-item { display: flex; align-items: flex-start; gap: 20px; margin-bottom: 30px; }

.contact-icon-box {
    width: 45px; height: 45px; background: rgba(212, 163, 115, 0.1);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--accent-gold); color: var(--accent-gold); font-size: 1.1rem;
    flex-shrink: 0;
}

.contact-details { 
    word-break: break-word; 
    overflow-wrap: break-word;
    min-width: 0; 
}
.contact-details h4 { margin: 0 0 2px 0; color: #fff; font-size: 1.1rem; }
.contact-details p { margin: 0; color: #ccc; font-size: 0.95rem; }
.contact-details a { color: var(--accent-gold); text-decoration: none; transition: 0.3s; }
.contact-details a:hover { text-decoration: underline; }

/* --- RIGHT COLUMN: FORM STYLES --- */
.form-grid-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-bottom: 15px; }
.form-group { margin-bottom: 15px; width: 100%; }
.form-label { display: block; margin-bottom: 5px; color: var(--accent-gold); font-weight: 600; font-size: 0.85rem; }

.form-input {
    width: 100%; padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: #fff; font-family: 'Inter', sans-serif; font-size: 0.95rem;
    transition: all 0.3s ease;
}
.form-input:focus {
    border-color: var(--accent-gold); background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 15px rgba(212, 163, 115, 0.2);
}

/* --- VALIDATION STYLING --- */
/* This class is added by JS when user attempts to submit */
.was-validated .form-input:invalid {
    border-color: var(--error-red);
    box-shadow: 0 0 5px rgba(255, 107, 107, 0.4);
    background: rgba(255, 107, 107, 0.05);
}

/* If valid, we can optionally show green, or just default */
.was-validated .form-input:valid {
    border-color: rgba(255, 255, 255, 0.1);
}

textarea.form-input { resize: none; height: 100px; }

.submit-btn {
    width: 100%; padding: 12px;
    background: var(--accent-gold); color: var(--earthy-bg);
    border: none; border-radius: 6px;
    font-size: 0.95rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
    cursor: pointer; transition: all 0.3s ease; margin-top: 5px;
}
.submit-btn:hover {
    background: #eacda3; transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 163, 115, 0.4);
}

/* --- FOOTER --- */
footer {
    background-color: #1a1816;
    padding: 60px 5% 48px; 
    border-top: 1px solid rgba(212, 163, 115, 0.15);
    width: 100%; 
    position: relative; z-index: 100; margin-top: auto;
}

.footer-grid { display: flex; justify-content: space-between; max-width: 1200px; margin: 0 auto; width: 100%; }

.footer-reveal { opacity: 0; transition: opacity 0.6s ease; }
.footer-reveal.active { opacity: 1; }

.footer-col { flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; }
.footer-col h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--accent-gold); margin-bottom: 8px; }
.footer-col p { font-size: 0.85rem; color: #999; margin: 0; }

.footer-links { display: flex; flex-direction: column; gap: 5px; }
.footer-links a { text-decoration: none; color: #ffffff; font-size: 1rem; font-family: 'Playfair Display', serif; }

.social-icons { display: flex; gap: 10px; margin-top: 5px; justify-content: center; }
.social-icons a { text-decoration: none !important; color: #fff; width: 32px; height: 32px; border: 1px solid rgba(255, 255, 255, 0.15); border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: 0.3s ease; }
.social-icons a:hover { border-color: var(--accent-gold); }

.footer-bottom { text-align: center; margin-top: 15px; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, 0.05); font-size: 0.65rem; color: #444; }

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
    .container { padding: 0 15px; }
    .contact-grid { grid-template-columns: 1fr; gap: 25px; }
    .section-glass { padding: 25px 20px; }
    .form-grid-row { grid-template-columns: 1fr; }
    .page-title-block h1 { font-size: 1.8rem; }
    .menu-icon { display: block; } .nav-menu { display: none; } nav { padding: 20px 5%; }
    footer { padding: 15px 10px 10px; } .footer-grid { flex-direction: column; align-items: center; gap: 15px; }
}