/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@700&family=Open+Sans:wght@400;600&display=swap');

/* --- CSS Variables --- */
:root {
    --primary-color: #0A2647; /* Navy Blue */
    --secondary-color: #FFD700; /* Gold */
    --text-color-light: #FFFFFF;
    --text-color-dark: #333333;
    --background-light: #F5F5F5;
    --header-height: 80px;
    --font-heading: 'Merriweather', serif;
    --font-body: 'Open Sans', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--text-color-dark);
    background-color: var(--text-color-light);
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    line-height: 1.3;
}

h1 { font-size: 2.8rem; color: var(--text-color-light); }
h2 { font-size: 2.2rem; text-align: center; margin-bottom: 1rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; }

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 5.5rem 0;
}

.section-subtitle {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem auto;
    font-size: 1.1rem;
    color: #666;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.contact-btn {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* --- Header --- */
#header {
    width: 100%;
    height: var(--header-height);
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
}

#header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
}

.logo img {
    height: 45px;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-menu a {
    font-weight: 600;
    padding: 0.5rem 0;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px 0;
    background-color: var(--primary-color);
    transition: all 0.3s ease-in-out;
}

/* --- Hero Section --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-color-light);
    position: relative;
    padding-top: var(--header-height);
    background: url('hero-bg.png') no-repeat center center/cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    opacity: 0.8;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
}

.hero h1 {
    margin-bottom: 1rem;
    max-width: 800px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    color: rgba(255, 255, 255, 0.9);
}

/* --- About Section --- */
.about {
    background-color: var(--background-light);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 2.5rem;
    align-items: center;
    text-align: left;
}

.about-item h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.about-text {
    display: grid;
    gap: 1.25rem;
}

/* --- Services Section --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--text-color-light);
    padding: 2.5rem 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.service-card img {
    height: 60px;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    margin-bottom: 1rem;
}

/* --- How We Help Section --- */
.how-we-help {
    background-color: var(--primary-color);
}

.how-we-help h2, .how-we-help .section-subtitle, .how-we-help h4 {
    color: var(--text-color-light);
}

.how-we-help p {
    color: #ccc;
}

.help-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    text-align: center;
}

.step img {
    height: 50px;
    margin-bottom: 1rem;
}

/* --- Testimonials Section --- */
.testimonials {
    background-color: var(--background-light);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: var(--text-color-light);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.testimonial-card p {
    font-style: italic;
    color: #555;
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

.testimonial-card h4 {
    margin: 0 0 0.2rem 0;
}

.testimonial-card span {
    font-size: 0.9rem;
    color: #777;
}

/* --- Contact Section --- */
.contact {
    text-align: center;
}

.contact .container {
    max-width: 800px;
}

.contact p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.btn-icon {
    width: 24px;
    height: 24px;
}

/* --- Footer --- */
#footer {
    background-color: var(--primary-color);
    color: var(--text-color-light);
    padding: 4rem 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    align-items: start;
}

.footer-logo {
    color: var(--text-color-light);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-logo img {
    height: 40px;
}

.footer-about p {
    color: #ccc;
    font-size: 0.9rem;
}

.footer-links h4, .footer-contact h4 {
    font-family: var(--font-heading);
    color: var(--text-color-light);
    margin-bottom: 1rem;
}

.footer-links ul li {
    margin-bottom: 0.5rem;
}

.footer-links a, .footer-contact a {
    color: #ccc;
    transition: color 0.3s ease;
}

.footer-links a:hover, .footer-contact a:hover {
    color: var(--secondary-color);
}

.footer-contact p {
    color: #ccc;
    margin-bottom: 0.5rem;
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .about-text { text-align: left; }
}

@media (max-width: 768px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    section { padding: 4rem 0; }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: var(--header-height);
        flex-direction: column;
        background-color: #fff;
        width: 100%;
        height: calc(100vh - var(--header-height));
        text-align: center;
        transition: 0.3s;
        gap: 2rem;
        padding-top: 2rem;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: block;
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    .hero {
        height: 80vh;
    }
}

.hero-photo,
.about-photo,
.contact-photo {
    display: block;
    max-width: 100%;
    width: clamp(160px, 30vw, 360px);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    margin: 1.25rem auto 1.75rem;
    border: 3px solid var(--secondary-color);
}

.about-photo-wrap { 
    text-align: center;
    justify-self: end;
}

[role="region"]:focus {
    outline: 3px solid rgba(13, 37, 71, 0.15);
    outline-offset: 6px;
}

#ai-chat { position: fixed; right: 20px; bottom: 20px; z-index: 2000; font-family: var(--font-body); }
#chat-toggle { width:56px; height:56px; border-radius:999px; border:none; background:var(--secondary-color); display:flex; align-items:center; justify-content:center; box-shadow:0 8px 28px rgba(10,38,71,0.12); cursor:pointer; }
#chat-toggle img { width:28px; height:28px; }
#chat-panel { width:360px; max-width:calc(100vw - 40px); height:520px; background:#fff; border-radius:12px; box-shadow:0 20px 50px rgba(0,0,0,0.15); overflow:hidden; display:none; flex-direction:column; }
#chat-panel.open { display:flex; flex-direction:column; }
.chat-header { display:flex; justify-content:space-between; align-items:center; padding:1rem; background:var(--primary-color); color:var(--text-color-light); }
.chat-messages { padding:1rem; overflow:auto; flex:1; background:#f9f9fb; }
.message { max-width:82%; margin:0.5rem 0; padding:0.6rem 0.9rem; border-radius:10px; }
.message.user { margin-left:auto; background:var(--secondary-color); color:var(--primary-color); font-weight:600; }
.message.bot { margin-right:auto; background:#fff; color:var(--text-color-dark); border:1px solid #e6e6ef; }
.chat-form { display:flex; gap:0.5rem; padding:0.75rem; border-top:1px solid #eee; }
.chat-form input { flex:1; padding:0.75rem 1rem; border-radius:999px; border:1px solid #ddd; font-size:0.95rem; }
.chat-actions { padding:0.75rem; display:flex; gap:0.5rem; justify-content:space-between; border-top:1px solid #eee; background:#fff; }

@media (max-width:480px) {
    #chat-panel { right:12px; left:12px; width:auto; bottom:90px; height:70vh; }
}