/* assets/css/style.css */
:root {
    --primary-color: #1e3a8a;
    --secondary-color: #64748b;
    --accent-color: #f97316;
    --text-color: #1f2937;
    --bg-color: #f8fafc;
    --white: #ffffff;
    --border-color: #e2e8f0;
    --container-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    background: var(--white);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-bar {
    background: var(--primary-color);
    color: var(--white);
    padding: 10px 0;
    font-size: 0.9rem;
}

.top-bar .contact-info span {
    margin-right: 20px;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo a {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.logo strong {
    font-weight: 700;
}

.logo span {
    color: var(--accent-color);
    font-weight: 600;
}

/* Main Nav Container */
.main-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.main-nav ul {
    display: flex;
    gap: 20px;
    align-items: center;
    margin: 0;
    padding: 0;
}

.main-nav a {
    font-weight: 500;
    color: var(--text-color);
}

.main-nav a:hover {
    color: var(--primary-color);
}

.cta-button {
    background: var(--accent-color);
    color: var(--white) !important;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 700;
}

.cta-button:hover {
    background-color: #ea580c;
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--text-color);
    margin: 5px 0;
}

/* Dropdown */
.has-dropdown {
    position: relative;
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 220px;
    z-index: 1000;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);

    /* Hiding mechanism */
    display: none;
    visibility: hidden;
    opacity: 0;
    transition: all 0.2s ease;

    flex-direction: column;
    padding: 10px 0;
    gap: 0 !important;
    border-radius: 0 0 8px 8px;
    border: 1px solid var(--border-color);
    border-top: none;
}

.has-dropdown:hover .dropdown {
    display: flex;
    visibility: visible;
    opacity: 1;
}

.dropdown li a {
    display: block;
    padding: 10px 20px;
    font-size: 0.9rem;
}

.dropdown li a:hover {
    background: var(--bg-color);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(30, 58, 138, 0.9), rgba(30, 58, 138, 0.7)), url('../img/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 100px 0;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Content */
.section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary-color);
    font-size: 2rem;
}

/* Service Grid */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    text-align: center;
    border: 1px solid var(--border-color);
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.service-card h3 {
    margin: 15px 0;
    color: var(--primary-color);
}

/* Footer */
.site-footer {
    background: #1e293b;
    color: #cbd5e1;
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-col a:hover {
    color: var(--accent-color);
}

/* FAQ Accordion */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border: 1px solid var(--border-color);
    margin-bottom: 10px;
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    cursor: pointer;
    background: #f8fafc;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--primary-color);
}

.faq-item.active .faq-question::after {
    content: '-';
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: var(--white);
}

.faq-item.active .faq-answer {
    padding: 20px;
    max-height: 500px;
    /* Arbitrary large height */
}

/* Process Steps */
.process-steps {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 40px;
}

.process-step {
    flex: 1;
    min-width: 250px;
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    position: relative;
    border-top: 4px solid var(--accent-color);
}

.step-number {
    background: var(--primary-color);
    color: var(--white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-bottom: 20px;
}

/* Brands Grid Static */
.brand-grid-static {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.brand-item {
    background: var(--white);
    padding: 15px;
    text-align: center;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-weight: 600;
    transition: transform 0.2s, border-color 0.2s;
}

.brand-item:hover {
    transform: translateY(-3px);
    border-color: var(--accent-color);
    color: var(--accent-color);
}

/* Content Text Styles */
.content-section p {
    margin-bottom: 20px;
    font-size: 1.05rem;
    color: #4b5563;
}

.content-section h3 {
    color: var(--primary-color);
    margin: 30px 0 15px;
    font-size: 1.4rem;
}

.content-section ul {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 20px;
}

.content-section li {
    margin-bottom: 10px;
}

/* Footer Bottom */
.footer-bottom {
    text-align: center;
    border-top: 1px solid #334155;
    padding-top: 20px;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .main-nav {
        display: none;
        /* JS will toggle */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    }

    .main-nav ul {
        flex-direction: column;
        width: 100%;
    }

    .hero h1 {
        font-size: 2rem;
    }
}

/* Service Detail Layout */
.service-wrapper {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.service-main {
    flex: 2;
    min-width: 0;
    /* Prevents flex item from overflowing */
}

.service-sidebar {
    flex: 1;
    min-width: 300px;
}

/* Responsive adjustment for sidebar */
@media (max-width: 900px) {
    .service-sidebar {
        min-width: 100%;
        margin-top: 30px;
    }
}

/* Ensure content images don't overflow */
.content-body img {
    max-width: 100%;
    height: auto;
}

.service-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 15px;
}

/* Typography Improvements */
.content-body {
    font-size: 1.125rem;
    /* 18px for better readability */
    color: #374151;
    /* Gray-700 */
    line-height: 1.8;
}

.content-body p {
    margin-bottom: 1.5rem;
}

.content-body h2,
.content-body h3 {
    color: var(--primary-color);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.content-body ul,
.content-body ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.content-body li {
    margin-bottom: 0.5rem;
}

/* Ensure content images don't overflow */
.content-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    /* Soften edges */
    margin: 1rem 0;
}

/* Responsive adjustment */
@media (max-width: 900px) {
    .service-sidebar {
        min-width: 100%;
        margin-top: 40px;
    }

    .container {
        padding: 0 25px;
        /* Increase side padding for mobile breathing room */
    }

    .hero {
        padding: 60px 0;
        /* Reduce hero height on mobile */
    }

    .hero h1 {
        font-size: 2rem;
    }
}