/* --- Global Styles & Variables --- */
:root {
    --primary-color: #2a818c; /* Teal */
    --secondary-color: #f2a640; /* Yellow */
    --text-color: #4a4a4a; /* Dark gray */
    --bg-color: #faf9f7; /* Soft off-white */
    --light-text: #ffffff;
    --font-main: 'Segoe UI', system-ui, Helvetica, Arial, sans-serif;
}

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

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

/* --- Typography --- */
h1, h2, h3, h4 { color: var(--primary-color); margin-bottom: 1rem; }
h1 { font-size: 2.5rem; line-height: 1.2; }
h2 { font-size: 2rem; border-bottom: 2px solid var(--secondary-color); padding-bottom: 0.5rem; display: inline-block; }
p { margin-bottom: 1rem; font-size: 1.1rem; }
a { text-decoration: none; color: var(--primary-color); font-weight: bold; }
a:hover { color: var(--secondary-color); }

/* --- Layout & Container --- */
.container { max-width: 1100px; margin: 0 auto; padding: 2rem; flex: 1; }
main { flex: 1; width: 100%; }

/* --- Navigation & Header --- */
header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    padding: 1rem 2rem;
    position: relative;
}

.logo-img {
    max-height: 60px;
    width: auto;
    display: block;
    transition: transform 0.3s ease;
}
.logo-img:hover { transform: scale(1.02); }

.nav-links { list-style: none; display: flex; gap: 1.5rem; align-items: center; }
.nav-links li a { color: var(--text-color); font-weight: 500; transition: color 0.3s; }
.nav-links li a:hover { color: var(--primary-color); }

/* Hamburger Menu Icon (Hidden on Desktop) */
.hamburger {
    display: none;
    cursor: pointer;
    border: none;
    background: transparent;
    flex-direction: column;
    gap: 5px;
    padding: 5px;
}
.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: var(--primary-color);
    color: var(--light-text);
    border-radius: 5px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
    text-align: center;
}
.btn:hover { background-color: #1e5e66; color: var(--light-text); }
.btn-secondary { background-color: var(--secondary-color); color: #fff; }
.btn-secondary:hover { background-color: #d99132; color: #fff; }

/* --- Hero Section (Home) --- */
.hero { background-color: var(--primary-color); color: var(--light-text); padding: 4rem 2rem; display: flex; align-items: center; justify-content: center; gap: 4rem; }
.hero-content { flex: 1; max-width: 600px; text-align: left; }
.hero-content h1 { color: var(--light-text); border: none; }
.hero-content h3 { color: var(--secondary-color); }
.hero-content p { font-size: 1.2rem; margin: 1.5rem 0 2rem; }
.hero-buttons { display: flex; gap: 1rem; justify-content: flex-start; }
.hero-image { flex: 1; max-width: 450px; display: flex; justify-content: center; }
.hero-image img { width: 100%; max-width: 400px; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 50%; border: 8px solid rgba(255, 255, 255, 0.1); box-shadow: 0 10px 30px rgba(0,0,0,0.15); }

/* --- Grids & Cards --- */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; margin-top: 2rem; }
.card { background: #fff; padding: 2rem; border-radius: 8px; box-shadow: 0 4px 6px rgba(0,0,0,0.05); border-top: 4px solid var(--secondary-color); }
.card h3 { margin-bottom: 0.5rem; }

/* --- Values & Lists --- */
.values-list, .features-list { list-style: none; padding-left: 0; }
.values-list li, .features-list li { background: #fff; margin-bottom: 0.5rem; padding: 1rem; border-left: 4px solid var(--secondary-color); box-shadow: 0 2px 4px rgba(0,0,0,0.05); }

/* --- Team Section --- */
.team-member { margin-bottom: 2rem; background: #fff; padding: 1.5rem; border-radius: 8px; border-left: 4px solid var(--primary-color); }

/* --- Forms & Tabs --- */
.tabs-header { display: flex; gap: 1rem; margin-bottom: 1.5rem; border-bottom: 2px solid #ddd; padding-bottom: 0; }
.tab-btn { background: none; border: none; font-size: 1.1rem; font-weight: bold; color: var(--text-color); cursor: pointer; padding: 0.8rem 1rem; opacity: 0.5; transition: all 0.3s ease; border-bottom: 3px solid transparent; margin-bottom: -2px; }
.tab-btn:hover { opacity: 1; color: var(--primary-color); }
.tab-btn.active { opacity: 1; color: var(--primary-color); border-bottom: 3px solid var(--primary-color); }
.tab-content { display: none; animation: fadeIn 0.4s ease; }
.tab-content.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

form { display: flex; flex-direction: column; gap: 1rem; width: 100%; }
input, textarea { width: 100%; padding: 0.8rem; border: 1px solid #ccc; border-radius: 4px; font-family: inherit; font-size: 1rem; }
textarea { resize: vertical; min-height: 150px; }
input:focus, textarea:focus { outline: 2px solid var(--primary-color); border-color: transparent; }

/* --- NEW: Refined Footer --- */
footer {
    background-color: var(--text-color);
    color: #e0e0e0;
    padding: 4rem 2rem 1rem;
    margin-top: 4rem;
    width: 100%;
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    color: var(--light-text);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    border-bottom: 2px solid var(--secondary-color);
    display: inline-block;
    padding-bottom: 0.5rem;
}

.footer-col p { font-size: 1rem; margin-bottom: 0.5rem; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.8rem; }
.footer-col ul li a { color: #e0e0e0; font-weight: normal; transition: color 0.3s ease; }
.footer-col ul li a:hover { color: var(--secondary-color); text-decoration: underline; }
.footer-col a.email-link { color: var(--secondary-color); font-weight: bold; }

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    nav { flex-wrap: wrap; position: relative; }
    
    /* Hamburger Icon Container */
    .hamburger { 
        display: flex; 
        z-index: 1001; 
    }
    
    /* Hamburger Animation to 'X' */
    .hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active span:nth-child(2) { opacity: 0; }
    .hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
    
    /* Mobile Dropdown Menu (Overlays the page) */
    .nav-links { 
        display: none; 
        position: absolute;
        top: 100%; /* Puts it directly below the white header */
        left: 0;
        width: 100%; 
        flex-direction: column; 
        background-color: #fff;
        padding: 1rem 0;
        border-top: 3px solid var(--primary-color);
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        z-index: 1000;
    }
    
    /* Active state for mobile menu */
    .nav-links.active { display: flex; }
    .nav-links li { width: 100%; text-align: center; }
    .nav-links li a { display: block; width: 100%; padding: 1rem 0; font-size: 1.1rem; }

    /* Hero Fixes */
    .hero { flex-direction: column-reverse; text-align: center; gap: 2rem; padding: 3rem 1.5rem; }
    .hero-content { text-align: center; }
    .hero-buttons { flex-direction: column; }
    .hero-image img { max-width: 250px; border-width: 5px; }
    .logo-img { max-height: 50px; }
    
    /* Tab Fixes */
    .tabs-header { flex-direction: column; border-bottom: none; gap: 0; }
    .tab-btn { border-bottom: 2px solid #ddd; margin-bottom: 0; }
    .tab-btn.active { border-bottom: 2px solid var(--primary-color); }
    
    /* Footer Fixes */
    .footer-container { gap: 2rem; text-align: center; }
    .footer-col h4 { border-bottom: none; }
}