/* --- FONTS --- */
@font-face { font-family: 'Cinzel'; src: url('brand-font-main.ttf') format('truetype'); font-weight: normal; font-style: normal; }
@font-face { font-family: 'Philosopher'; src: url('brand-font-subtitle.ttf') format('truetype'); font-weight: normal; font-style: normal; }
@font-face { font-family: 'Montserrat'; src: url('brand-font-secondary.ttf') format('truetype'); font-weight: normal; font-style: normal; }

/* --- BRAND VARIABLES --- */
:root {
    --brand-red: #a80c11;     
    --brand-dark: #373742;    
    --text-dark: #1A202C;
    --text-light: #FFFFFF;
    
    --bg-main: #F4F6F8;       
    --bg-card: #FFFFFF;       
    
    --font-heading: 'Cinzel', serif;
    --font-subtitle: 'Philosopher', sans-serif;
    --font-body: 'Montserrat', sans-serif;
}

/* --- BASE STYLES --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { 
    font-family: var(--font-body); 
    color: var(--text-dark); 
    background-color: var(--bg-main); 
    line-height: 1.6; 
}
h1 { font-family: var(--font-heading); margin-bottom: 1rem; color: var(--text-light); }
h2 { font-family: var(--font-subtitle); margin-bottom: 1rem; color: var(--brand-dark); font-size: 2.5rem; }
h3 { font-family: var(--font-subtitle); color: var(--brand-dark); }
.section { padding: 6rem 10%; text-align: center; }
.container { max-width: 1200px; margin: 0 auto; }
p { margin-bottom: 1rem; color: #4A5568; }
.text-link { color: var(--brand-red); font-weight: bold; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.bg-light { background-color: var(--bg-main); } 

/* --- FLOATING NAVIGATION --- */
.navbar {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0 3%; /* Handled manually by logo top/bottom padding */
    background: rgba(255, 255, 255, 0.95); 
    backdrop-filter: blur(10px); 
    box-shadow: 0 10px 30px rgba(0,0,0,0.08); 
    position: sticky; top: 1.5rem; z-index: 1000;
    margin: 0 3%; 
    border-radius: 12px; 
}
.logo { 
    height: 60px; 
    display: block; /* Removes inline image baseline gap underneath */
    padding-top: 10px; /* Equal manual padding top & bottom */
    padding-bottom: 10px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}
.nav-links { list-style: none; display: flex; align-items: center; gap: 2rem; }
.nav-links a { 
    text-decoration: none; color: var(--text-dark); 
    font-family: var(--font-body); font-weight: 600; font-size: 1rem;
    transition: all 0.3s ease; 
}
.nav-links a:hover { color: var(--brand-red); }
.nav-buttons { display: flex; gap: 1rem; }

/* Mobile Hamburger Menu */
.menu-toggle {
    display: none; flex-direction: column; cursor: pointer; gap: 6px; padding: 0.5rem;
}
.menu-toggle .bar {
    width: 25px; height: 3px; background-color: var(--brand-dark); 
    transition: all 0.3s ease; border-radius: 2px;
}

/* --- ELEVATED BUTTONS --- */
.btn-primary, .btn-secondary {
    padding: 0.75rem 1.75rem; border: none; border-radius: 8px; 
    font-family: var(--font-body); font-weight: bold; font-size: 1rem;
    text-decoration: none; display: inline-block; 
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.3s ease; 
    color: var(--text-light) !important;
}
.btn-primary:hover, .btn-secondary:hover { 
    transform: translateY(-3px); 
    box-shadow: 0 10px 20px rgba(0,0,0,0.15); 
}
.btn-primary { background: var(--brand-dark); } 
.btn-secondary { background: var(--brand-red); } 

/* --- HERO SECTION --- */
.hero {
    height: 85vh; margin-top: -6rem; 
    background: linear-gradient(to right, rgba(26, 32, 44, 0.9) 0%, rgba(26, 32, 44, 0.5) 50%, rgba(26, 32, 44, 0.1) 100%), url('hero-background.jpg') center/cover;
    display: flex; align-items: center; justify-content: flex-start; 
    padding: 0 10%; text-align: left; 
}
.hero-content { max-width: 600px; padding-top: 5rem; }
.hero h1 { font-size: 4.5rem; line-height: 1.1; }
.hero p { font-family: var(--font-subtitle); font-size: 1.6rem; color: #E2E8F0; margin: 1rem 0 2.5rem 0; }

/* --- DIMENSIONAL ABOUT SECTION --- */
.about-container {
    display: flex; gap: 4rem; align-items: center; 
    max-width: 1100px; margin: 0 auto; text-align: left;
}
.about-img {
    width: 45%; border-radius: 12px; 
    box-shadow: 0 20px 40px rgba(0,0,0,0.15); 
}
.about-text { width: 55%; }
.pillars-title { margin-top: 2rem; margin-bottom: 0.5rem; }
.pillars-subtitle { font-size: 0.95rem; color: #718096; margin-bottom: 1.5rem; }
.pillars-list {
    list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
}
.pillars-list li {
    background: var(--bg-card);
    padding: 1rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    color: var(--text-dark); 
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    font-size: 0.95rem;
    border-left: 4px solid var(--brand-red);
}

/* --- PROJECTS SECTION --- */
.projects-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2.5rem; margin: 3rem 0;
}
.project-card {
    background: var(--bg-card); padding: 0 0 2rem 0;
    border-radius: 12px; text-align: center;
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}
.project-card:hover { transform: translateY(-5px); }
.img-wrapper { padding: 1.5rem; }
.project-img {
    width: 100%; height: 200px; object-fit: cover;
    border-radius: 8px; 
    box-shadow: 0 15px 25px rgba(0,0,0,0.15); 
    transform: translateY(-1rem); 
}
.project-card h3 { margin: 0 1.5rem 0.5rem 1.5rem; font-size: 1.5rem; }
.project-card p { margin: 0 1.5rem; font-size: 0.95rem; }
.projects-note { font-weight: bold; color: var(--brand-red); margin-top: 2rem; }

/* --- TEAM SECTION --- */
#team { background: #FFFFFF; }
.team-term { font-weight: bold; color: var(--brand-red); margin-bottom: 3rem; }
.team-grid {
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    max-width: 1000px; 
    margin: 0 auto; 
    gap: 2rem;
}
.team-member {
    background: var(--bg-main); padding: 2rem; border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.03); border: 1px solid #E2E8F0;
}
.team-member h3 { margin-bottom: 0.25rem; font-size: 1.25rem; }
.team-member p { margin-bottom: 0; font-size: 0.9rem; font-weight: 600; color: #718096;}

/* --- FLOATING FORMS & CARDS --- */
.card-container {
    background: var(--bg-card); padding: 4rem 3rem; border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.05); 
    max-width: 800px; margin: 0 auto;
}
.custom-form { 
    display: flex; flex-direction: column; gap: 1.25rem; 
    max-width: 600px; margin: 2rem auto 0 auto;
}
.custom-form input, .custom-form textarea {
    padding: 1.1rem; border: 1px solid #E2E8F0; border-radius: 8px; width: 100%;
    font-family: var(--font-body); font-size: 1rem; background-color: var(--bg-main);
    transition: all 0.3s ease;
}
.custom-form input:focus, .custom-form textarea:focus {
    outline: none; border-color: var(--brand-red); box-shadow: 0 0 0 3px rgba(168, 12, 17, 0.1);
}

/* --- FOOTER --- */
footer { background: var(--brand-dark); color: var(--text-light); text-align: center; padding: 3rem 2rem; }
.footer-logo { height: 50px; margin-bottom: 1.5rem; filter: brightness(0) invert(1); }

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 1024px) {
    .nav-menu { gap: 1rem; }
    .nav-links { gap: 1rem; }
}

@media (max-width: 900px) {
    .menu-toggle { display: flex; }
    .nav-menu {
        display: none; flex-direction: column;
        position: absolute; top: 110%; left: 0; right: 0;
        background: rgba(255, 255, 255, 0.98); padding: 2rem;
        border-radius: 12px; box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    }
    .nav-menu.active { display: flex; }
    .nav-links { flex-direction: column; width: 100%; margin-bottom: 1.5rem; }
    .nav-buttons { flex-direction: column; width: 100%; }
    .nav-buttons a { text-align: center; width: 100%; }
    
    .navbar { 
        margin: 1rem; 
        top: 1rem; /* Ensures sticky navbar leaves a gap at top of mobile screens */
    }
    .hero {
        background: linear-gradient(rgba(26, 32, 44, 0.8), rgba(26, 32, 44, 0.8)), url('hero-background.jpg') center/cover;
        justify-content: center; text-align: center; padding: 0 5%;
    }
    .hero-content { max-width: 100%; }
    .about-container { flex-direction: column; text-align: center; }
    .about-img, .about-text { width: 100%; }
    .hero h1 { font-size: 3rem; }
    .card-container { padding: 2rem 1.5rem; }
    .pillars-list { grid-template-columns: 1fr; }
    
    .team-grid { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
}
