/* Base Styles and Variables */
:root {
    --primary-color: #4e8cbe;
    --secondary-color: #5ca0d3;
    --accent-color: #f7aa57;
    --text-color: #333333;
    --light-text: #777777;
    --bg-color: #ffffff;
    --light-bg: #f7f9fc;
    --medium-bg: #e9eff5;
    --border-color: #e0e7ef;
    --success-color: #5cb85c;
    --warning-color: #f0ad4e;
    --error-color: #d9534f;
    --font-main: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
}

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

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

img {
    max-width: 100%;
    height: auto;
}

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

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

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    color: white;
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-tertiary {
    background-color: transparent;
    color: var(--light-text);
    border: 1px solid var(--border-color);
}

.btn-tertiary:hover {
    background-color: var(--medium-bg);
}

/* Header Styles */
header {
    background-color: var(--bg-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo img {
    height: 50px;
    width: auto;
}

.nav-links {
    display: flex;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: var(--text-color);
    font-weight: 500;
    position: relative;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a.active {
    color: var(--primary-color);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
}

/* Hero Sections */
.hero, .page-hero {
    background-color: var(--light-bg);
    padding: 80px 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.page-hero {
    text-align: center;
    justify-content: center;
    padding: 60px 5%;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-image {
    flex: 1;
    text-align: center;
}

.hero-image img {
    max-height: 400px;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
}

.hero h1, .page-hero h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    color: var(--text-color);
}

.hero p, .page-hero p {
    font-size: 1.2rem;
    color: var(--light-text);
    margin-bottom: 30px;
}

/* Blog Posts Grid */
.blog-posts {
    padding: 80px 5%;
}

.blog-posts h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.2rem;
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.post-card {
    background-color: var(--bg-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.post-image {
    height: 200px;
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.post-card:hover .post-image img {
    transform: scale(1.05);
}

.post-content {
    padding: 20px;
}

.post-content h3 {
    margin-bottom: 10px;
}

.post-content h3 a {
    color: var(--text-color);
}

.post-content h3 a:hover {
    color: var(--primary-color);
}

.post-meta {
    color: var(--light-text);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.read-more {
    display: inline-block;
    margin-top: 15px;
    font-weight: 600;
    color: var(--primary-color);
}

.read-more:hover {
    color: var(--secondary-color);
}

/* Custom Checklist */
.insurance-checklist {
    padding: 60px 5%;
    background-color: var(--light-bg);
    text-align: center;
}

.insurance-checklist h2 {
    margin-bottom: 20px;
}

.insurance-checklist p {
    margin-bottom: 30px;
}

.custom-checklist {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    text-align: left;
}

.custom-checklist li {
    position: relative;
    padding-left: 30px;
}

.custom-checklist li::before {
    content: '';
    position: absolute;
    top: 4px;
    left: 0;
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%234e8cbe' d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z'/%3E%3C/svg%3E");
    background-size: contain;
}

/* About Page */
.about-content {
    padding: 60px 5%;
}

.about-story, .about-mission {
    max-width: 1000px;
    margin: 0 auto 60px;
}

.about-story h2, .about-mission h2, .team-section h2 {
    margin-bottom: 30px;
    text-align: center;
    font-size: 2rem;
}

.about-story p {
    margin-bottom: 20px;
}

.mission-values {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.mission-box, .values-box {
    padding: 30px;
    background-color: var(--light-bg);
    border-radius: 8px;
    box-shadow: var(--box-shadow);
}

.mission-box h3, .values-box h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.team-section {
    max-width: 1200px;
    margin: 0 auto;
}

.team-section > p {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 30px;
}

.team-member {
    background-color: var(--bg-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition);
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.team-member img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.team-member h3 {
    margin: 15px 0 5px;
}

.team-member p {
    padding: 0 15px;
    margin-bottom: 15px;
}

.team-member p:nth-of-type(1) {
    color: var(--primary-color);
    font-weight: 600;
}

.team-member .social-links {
    padding: 10px 0 20px;
}

.custom-list {
    padding-left: 0;
}

.custom-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 15px;
}

.custom-list li::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 0;
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%234e8cbe' d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z'/%3E%3C/svg%3E");
    background-size: contain;
}

/* Services Page */
.services-intro {
    padding: 60px 5%;
    text-align: center;
}

.services-intro p {
    max-width: 800px;
    margin: 0 auto 20px;
}

.services-grid {
    padding: 40px 5% 80px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--light-bg);
    border-radius: 8px;
    padding: 30px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.service-icon {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.service-icon svg {
    fill: var(--primary-color);
}

.service-card h3 {
    margin-bottom: 15px;
    text-align: center;
}

.service-card p {
    margin-bottom: 20px;
}

.service-features {
    margin: 0 0 20px 20px;
    flex-grow: 1;
}

.service-features li {
    position: relative;
    margin-bottom: 10px;
    padding-left: 20px;
}

.service-features li::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 0;
    width: 12px;
    height: 12px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%235ca0d3' d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z'/%3E%3C/svg%3E");
    background-size: contain;
}

.service-card .btn {
    align-self: center;
}

.why-choose-us {
    padding: 80px 5% 60px;
    background-color: var(--light-bg);
}

.why-choose-us h2 {
    text-align: center;
    margin-bottom: 50px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.benefit-card {
    background-color: var(--bg-color);
    border-radius: 8px;
    padding: 30px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    text-align: center;
}

.benefit-card:hover {
    transform: translateY(-5px);
}

.benefit-icon {
    margin-bottom: 20px;
}

.benefit-icon svg {
    fill: var(--primary-color);
}

.benefit-card h3 {
    margin-bottom: 15px;
}

/* Contact Page */
.contact-content {
    padding: 60px 5%;
}

.contact-intro {
    max-width: 800px;
    margin: 0 auto 60px;
    text-align: center;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.contact-method {
    background-color: var(--light-bg);
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    box-shadow: var(--box-shadow);
}

.contact-icon {
    margin-bottom: 15px;
}

.contact-icon svg {
    fill: var(--primary-color);
}

.contact-method h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.contact-method p {
    margin-bottom: 5px;
}

.social-contact {
    grid-column: span 2;
    background-color: var(--light-bg);
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    box-shadow: var(--box-shadow);
}

.social-contact h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

.social-links svg {
    fill: white;
}

.contact-form-container {
    background-color: var(--light-bg);
    border-radius: 8px;
    padding: 40px;
    box-shadow: var(--box-shadow);
}

.contact-form-container h2 {
    margin-bottom: 30px;
    text-align: center;
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 5px;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: var(--font-main);
    font-size: 1rem;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group.checkbox {
    display: flex;
    align-items: flex-start;
    grid-column: span 2;
}

.form-group.checkbox input {
    width: auto;
    margin-right: 10px;
    margin-top: 5px;
}

.contact-form button {
    grid-column: span 2;
    padding: 12px;
    font-size: 1.1rem;
    margin-top: 20px;
}

.map-container {
    max-width: 1200px;
    margin: 60px auto 0;
}

.map-container h2 {
    text-align: center;
    margin-bottom: 30px;
}

.map {
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.map img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: white;
    padding: 40px;
    border-radius: 8px;
    max-width: 500px;
    text-align: center;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
}

.modal-icon {
    margin-bottom: 20px;
}

.modal-icon svg {
    fill: var(--success-color);
}

.modal h2 {
    margin-bottom: 15px;
}

.modal p {
    margin-bottom: 30px;
}

.modal button {
    min-width: 120px;
}

/* Cookie Banner */
.cookie-banner {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--bg-color);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 999;
    padding: 15px 20px;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

.cookie-content p {
    flex: 1 1 500px;
    margin-right: 20px;
    margin-bottom: 10px;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cookie-link {
    flex-basis: 100%;
    font-size: 0.9rem;
    margin-top: 10px;
}

/* Footer */
footer {
    background-color: #2a2f35;
    color: white;
    padding: 60px 5% 20px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-col h4 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-col p, .footer-col address {
    color: #b8b9bb;
    margin-bottom: 10px;
    font-style: normal;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #b8b9bb;
}

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

.footer-col .social-links {
    margin-top: 15px;
}

.footer-col .social-links a {
    background-color: rgba(255, 255, 255, 0.1);
}

.footer-col .social-links a:hover {
    background-color: var(--primary-color);
}

.copyright {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #b8b9bb;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content {
        margin-bottom: 40px;
    }
    
    .mission-values {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
    }
    
    .logo {
        margin-bottom: 15px;
    }
    
    .nav-links li {
        margin: 0 15px;
    }
    
    .hero h1, .page-hero h1 {
        font-size: 2.2rem;
    }
    
    .custom-checklist {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
    }
    
    .social-contact {
        grid-column: span 1;
    }
    
    .contact-form {
        grid-template-columns: 1fr;
    }
    
    .form-group.full-width {
        grid-column: span 1;
    }
    
    .form-group.checkbox {
        grid-column: span 1;
    }
    
    .contact-form button {
        grid-column: span 1;
    }
    
    .cookie-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cookie-content p {
        margin-right: 0;
        margin-bottom: 15px;
    }
}

@media (max-width: 576px) {
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-links li {
        margin: 5px 10px;
    }
    
    .service-card, .post-card, .benefit-card {
        padding: 20px;
    }
    
    .contact-form-container {
        padding: 25px;
    }
}
