/* Base Styles */
:root {
    --primary-color: #1a365d;
    --accent-color: #2b6cb0;
    --bg-light: #f9f9f9;
    --text-color: #333;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    color: var(--text-color);
    background-color: var(--bg-light);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1, h2, h3, h4 { color: var(--primary-color); }
a { text-decoration: none; color: var(--accent-color); }
a:hover { text-decoration: underline; }

/* Navigation */
header {
    background: var(--primary-color);
    color: #fff;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.nav-container {
    width: 85%;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
}
.nav-links a {
    color: #fff;
    margin-left: 20px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background 0.3s;
}
.nav-links a:hover, .nav-links a.active {
    background: rgba(255, 255, 255, 0.2);
    text-decoration: none;
}

/* Page System (Hides all pages except the active one) */
.page {
    display: none;
    animation: fadeIn 0.4s ease-in-out;
    flex: 1;
}
.page.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Layout Container */
.container {
    width: 85%;
    margin: 40px auto;
    max-width: 1200px;
}

/* Reusable Card Style */
.card {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

/* Buttons */
.btn {
    display: inline-block;
    background: var(--accent-color);
    color: #fff;
    padding: 12px 24px;
    border-radius: 5px;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}
.btn:hover { background: #3182ce; text-decoration: none; }

/* Page 1: Home Specifics - THIS IS WHERE THE BACKGROUND PHOTO LIVES */
.hero {
    background: linear-gradient(rgba(26, 54, 93, 0.7), rgba(26, 54, 93, 0.7)), url('https://images.unsplash.com/photo-1454165804606-c3d57bc86b40?auto=format&fit=crop&q=80&w=1200') center/cover;
    color: #fff;
    text-align: center;
    padding: 120px 20px;
    border-radius: 8px;
    margin-top: 20px;
}
.hero h1 { color: #fff; font-size: 3rem; margin-bottom: 10px; }
.hero p { font-size: 1.2rem; max-width: 700px; margin: 0 auto 30px; }

/* Shared Grid Specifics */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}
.service-card {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    border-top: 4px solid var(--accent-color);
}
.service-card h4 {
    margin-top: 0;
    font-size: 1.2rem;
    margin-bottom: 10px;
}
#about .service-card p {
    text-align: justify;
}

/* Profile Image Style */
.profile-img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    display: block;
    margin: 0 auto 15px;
    border: 3px solid var(--accent-color);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.center-text {
    text-align: center;
}

/* Owner Section Styles */
.owner-flex {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    margin-top: 20px;
    margin-bottom: 30px;
}
.owner-img-container {
    flex: 0 0 300px;
}
.owner-img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    border: 3px solid var(--accent-color);
}
.owner-text {
    flex: 1;
    text-align: justify;
}
.owner-text h4 {
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 1.2rem;
    color: var(--primary-color);
}
.owner-text p {
    margin-top: 0;
    margin-bottom: 15px;
}
.owner-text ul {
    margin-bottom: 15px;
    padding-left: 20px;
}

/* Page 4: Contact Specifics */
.contact-flex {
    display: flex;
    justify-content: space-between;
    gap: 30px;
}
.contact-info, .contact-form {
    flex: 1;
}
.contact-info p { margin-bottom: 15px; font-size: 1.1rem; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: bold; }
.form-group input, .form-group textarea {
    width: 100%; padding: 12px; border: 1px solid #ccc;
    border-radius: 4px; box-sizing: border-box; font-family: inherit;
}

/* Footer */
footer {
    background: var(--primary-color);
    color: #fff;
    text-align: center;
    padding: 20px 0;
    margin-top: auto;
}

/* Responsive */
@media(max-width: 768px) {
    .nav-container { flex-direction: column; }
    .nav-links { margin-top: 15px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
    .nav-links a { margin: 0; }
    .contact-flex { flex-direction: column; }
    .owner-flex {
        flex-direction: column;
        align-items: center;
    }
    .owner-img-container {
        flex: 0 0 auto;
        width: 80%;
        max-width: 300px;
        margin-bottom: 20px;
    }
}
