/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fafafa;
}

/* Color Variables */
:root {
    --primary-color: #2c5aa0;
    --secondary-color: #4a90e2;
    --accent-color: #ff6b35;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --background-light: #ffffff;
    --background-gray: #f8f9fa;
    --border-color: #e9ecef;
    --success-color: #27ae60;
    --shadow-light: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-medium: 0 4px 20px rgba(0,0,0,0.15);
    --shadow-heavy: 0 8px 30px rgba(0,0,0,0.2);
    --gradient-primary: linear-gradient(135deg, #2c5aa0 0%, #4a90e2 100%);
    --gradient-accent: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-weight: 600;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

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

a:hover {
    color: var(--secondary-color);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header and Navigation */
.header {
    background: var(--background-light);
    box-shadow: var(--shadow-light);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar {
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo h1 {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2rem;
    margin: 0;
    font-weight: 700;
}

.tagline {
    font-size: 0.9rem;
    color: var(--text-light);
    display: block;
    margin-top: -5px;
}

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

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    background: var(--gradient-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* Mobile Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    transition: 0.3s;
    border-radius: 2px;
}

/* Main Content */
.main-content {
    margin-top: 100px;
    min-height: calc(100vh - 100px);
}

/* Page Header */
.page-header {
    text-align: center;
    padding: 3rem 0;
    background: var(--gradient-primary);
    color: white;
    margin-bottom: 3rem;
}

.page-header h1 {
    color: white;
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.page-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin: 0;
}

/* Blog Article Styles */
.blog-article {
    background: var(--background-light);
    border-radius: 15px;
    box-shadow: var(--shadow-light);
    overflow: hidden;
    margin-bottom: 2rem;
}

.article-header {
    padding: 2rem;
    background: var(--gradient-primary);
    color: white;
    text-align: center;
}

.article-title {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    font-size: 0.9rem;
    opacity: 0.9;
    flex-wrap: wrap;
}

.article-content {
    padding: 2rem;
}

.article-content h2 {
    color: var(--primary-color);
    border-left: 4px solid var(--accent-color);
    padding-left: 1rem;
    margin: 2rem 0 1rem 0;
}

.article-content h3 {
    color: var(--secondary-color);
    margin: 1.5rem 0 1rem 0;
}

.article-content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-size: 1.1rem;
}

.article-content ul, .article-content ol {
    margin: 1rem 0 1.5rem 2rem;
}

.article-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.article-footer {
    padding: 1.5rem 2rem;
    background: var(--background-gray);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    background: var(--gradient-primary);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.share-btn {
    background: var(--gradient-accent);
    color: white;
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* Sidebar */
.sidebar {
    margin-left: 2rem;
    min-width: 300px;
}

.sidebar-widget {
    background: var(--background-light);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-light);
    transition: transform 0.3s ease;
}

.sidebar-widget:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.sidebar-widget h3 {
    color: var(--primary-color);
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.service-list, .benefits-list {
    list-style: none;
}

.service-list li, .benefits-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    padding-left: 1.5rem;
}

.service-list li:before, .benefits-list li:before {
    content: "✓";
    color: var(--success-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.cta-widget {
    background: var(--gradient-primary);
    color: white;
}

.cta-widget h3 {
    color: white;
    border-bottom-color: rgba(255,255,255,0.3);
}

.cta-widget p {
    color: rgba(255,255,255,0.9);
}

.cta-button {
    display: inline-block;
    background: var(--gradient-accent);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    color: white;
}

/* About Page Styles */
.about-content {
    background: var(--background-light);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--shadow-light);
}

.about-section {
    margin-bottom: 3rem;
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.expertise-item {
    background: var(--background-gray);
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid var(--accent-color);
    transition: transform 0.3s ease;
}

.expertise-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.commitment-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.commitment-item {
    background: var(--background-gray);
    padding: 1.5rem;
    border-radius: 10px;
    border-top: 4px solid var(--primary-color);
}

.cta-section {
    text-align: center;
    background: var(--gradient-primary);
    color: white;
    padding: 2rem;
    border-radius: 15px;
    margin-top: 2rem;
}

.cta-section h2 {
    color: white;
}

.cta-section p {
    color: rgba(255,255,255,0.9);
}

/* Contact Page Styles */
.contact-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.contact-form-section {
    background: var(--background-light);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-light);
}

.contact-form {
    display: grid;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.8rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(44, 90, 160, 0.1);
}

.checkbox-group {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.submit-btn {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.contact-info-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-info,
.why-choose-us,
.emergency-contact {
    background: var(--background-light);
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow-light);
}

.contact-item {
    margin-bottom: 1.5rem;
}

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

.contact-details {
    background: var(--background-gray);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
}

/* Privacy Page Styles */
.privacy-content {
    background: var(--background-light);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-light);
}

.privacy-section {
    margin-bottom: 2.5rem;
}

.privacy-section h2 {
    color: var(--primary-color);
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.privacy-section h3 {
    color: var(--secondary-color);
    margin: 1.5rem 0 1rem 0;
}

.privacy-section ul {
    margin: 1rem 0 1.5rem 2rem;
}

.privacy-section li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: white;
    margin-top: 3rem;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 3rem 0;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

.footer-section h3,
.footer-section h4 {
    color: white;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

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

.footer-section ul li a {
    color: rgba(255,255,255,0.8);
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.2);
    padding: 1.5rem 0;
    text-align: center;
    color: rgba(255,255,255,0.8);
}

/* Layout Adjustments */
.container {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
    align-items: start;
}

/* Single column pages */
.about-content,
.contact-content,
.privacy-content {
    grid-column: 1 / -1;
}

.contact-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        margin-left: 0;
        min-width: auto;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--background-light);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-medium);
        padding: 2rem 0;
    }

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

    .hamburger {
        display: flex;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .article-title {
        font-size: 1.8rem;
    }

    .article-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .article-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .expertise-grid,
    .commitment-list {
        grid-template-columns: 1fr;
    }

    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .nav-container {
        padding: 0 15px;
    }

    .page-header {
        padding: 2rem 0;
    }

    .article-content,
    .blog-article .article-header {
        padding: 1.5rem;
    }

    .sidebar-widget,
    .contact-form-section,
    .contact-info,
    .why-choose-us,
    .emergency-contact {
        padding: 1rem;
    }
}

/* Animation and Transitions */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.blog-article,
.sidebar-widget,
.about-section,
.contact-form-section,
.contact-info-section > div {
    animation: fadeInUp 0.6s ease-out;
}

/* Scroll animations */
@media (prefers-reduced-motion: no-preference) {
    .sidebar-widget:nth-child(1) { animation-delay: 0.1s; }
    .sidebar-widget:nth-child(2) { animation-delay: 0.2s; }
    .sidebar-widget:nth-child(3) { animation-delay: 0.3s; }
}

/* Focus styles for accessibility */
button:focus,
input:focus,
select:focus,
textarea:focus,
a:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .header,
    .sidebar,
    .footer,
    .nav-menu,
    .hamburger {
        display: none;
    }
    
    .main-content {
        margin-top: 0;
    }
    
    .container {
        grid-template-columns: 1fr;
    }
}

