/* KLM Insurance Solutions - Custom Theme */
/* Based on screenshot design */

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

body {
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #e8e8e8;
}

.home-page,
.interior-page,
.iframe-page {
    max-width: 1200px;
    margin: 0 auto;
    background: #fff;
}

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

.site-footer .container {
    background: transparent;
}

/* Header */
.site-header {
    background: #e8e8e8;
    padding: 10px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: relative;
    z-index: 10000;
}

.site-header .container {
    background: #fff;
    max-width: 1200px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
    margin: 0;
}

.main-nav a {
    color: #666;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    transition: color 0.3s;
}

.main-nav a:hover {
    color: #0099CC;
}

.mobile-menu-toggle {
    display: none;
}

/* Dropdown Menu Styles */
.main-nav > ul > li {
    position: relative;
}

.main-nav .dropdown-toggle {
    cursor: pointer;
}

.main-nav .dropdown-toggle::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 4px;
    vertical-align: middle;
    border-top: 3px solid #666;
    border-right: 3px solid transparent;
    border-left: 3px solid transparent;
    transition: border-color 0.3s, transform 0.3s;
}

.main-nav .dropdown-toggle:hover::after {
    border-top-color: #0099CC;
}

.main-nav .dropdown.active .dropdown-toggle::after {
    transform: rotate(180deg);
}

.main-nav .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 240px;
    padding: 8px 0;
    margin: 0;
    list-style: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    border-top: 2px solid #0099CC;
    z-index: 10001;
}

.main-nav .dropdown.active .dropdown-menu {
    display: block;
}

.main-nav .dropdown-menu li {
    padding: 0;
    margin: 0;
}

.main-nav .dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: #666;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0.2px;
    line-height: 1.5;
    white-space: nowrap;
    transition: background 0.3s, color 0.3s;
}

.main-nav .dropdown-menu a:hover {
    background: #f8f8f8;
    color: #0099CC;
}

/* Hero Section with Quote Form */
.hero-section {
    position: relative;
    width: 100%;
    height: 800px;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    background-color: #fff;
    margin-bottom: 40px;
    z-index: 1;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.1);
}

.quote-form-overlay {
    position: absolute;
    top: 55%;
    left: 5%;
    transform: translateY(-50%);
    background: #0099CC;
    color: white;
    padding: 0;
    width: 320px;
    z-index: 5;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    overflow: hidden;
}

.quote-form-overlay h2 {
    font-size: 28px;
    margin-bottom: 0;
    font-weight: bold;
    padding: 15px 20px 15px 20px;
    background: #0099CC;
}

.quote-form-overlay iframe {
    display: block;
    margin: 0;
    padding: 0;
}

.quote-form-overlay .form-group {
    margin-bottom: 15px;
}

.quote-form-overlay label {
    display: block;
    margin-bottom: 5px;
    font-size: 12px;
}

.quote-form-overlay input,
.quote-form-overlay select {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 3px;
    font-size: 14px;
}

.quote-form-overlay button {
    width: 100%;
    padding: 12px;
    background: #FF6633;
    color: white;
    border: none;
    border-radius: 3px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background 0.3s;
}

.quote-form-overlay button:hover {
    background: #E55529;
}

/* Service Cards */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 40px 0;
}

.service-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    transition: box-shadow 0.3s;
}

.service-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.service-card img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    object-position: center;
    display: block;
}

.service-card-content {
    padding: 20px;
}

.service-card h3 {
    color: #0099CC;
    font-size: 18px;
    margin-bottom: 10px;
}

.service-card p {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 15px;
}

.service-card a {
    color: #0099CC;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.service-card a:hover {
    text-decoration: underline;
}

/* Main Content Section */
.content-section {
    margin: 60px 0;
}

.content-two-column {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    align-items: start;
}

.content-image img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.content-text h2 {
    color: #0099CC;
    font-size: 24px;
    margin-bottom: 20px;
    line-height: 1.4;
}

.content-text p {
    font-size: 14px;
    line-height: 1.8;
    color: #666;
    margin-bottom: 15px;
}

.content-text ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.content-text ul li {
    font-size: 14px;
    line-height: 1.8;
    color: #666;
    margin-bottom: 8px;
}

/* Partner Carriers */
.partners-section {
    background: #f8f8f8;
    padding: 40px 0;
    margin: 60px 0 0 0;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.partners-section h3 {
    text-align: center;
    font-size: 20px;
    color: #333;
    margin-bottom: 30px;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    justify-items: center;
    align-items: center;
    gap: 20px;
}

.partner-logo {
    background: white;
    padding: 15px 20px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
}

.partner-logo img {
    max-height: 40px;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(0%);
    transition: filter 0.3s;
}

.partner-logo:hover img {
    filter: grayscale(0%) brightness(1.1);
}

/* Footer */
.site-footer {
    background: #3a3a3a;
    color: #ccc;
    padding: 40px 0 20px 0;
    width: 100%;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

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

.footer-section a {
    color: #ccc;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #fff;
}

.footer-section p {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 8px;
}

.footer-logo {
    margin-bottom: 20px;
}

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

.social-links {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.social-links a img {
    width: 30px;
    height: 30px;
    transition: opacity 0.3s;
}

.social-links a:hover img {
    opacity: 0.7;
}

.footer-bottom {
    border-top: 1px solid #555;
    padding-top: 20px;
    text-align: center;
    font-size: 12px;
    color: #999;
}

/* Single Page Styles */
.page-header {
    background: #0099CC;
    color: white;
    padding: 40px 0;
    margin-bottom: 40px;
}

.page-header h1 {
    font-size: 32px;
    font-weight: bold;
}

.page-content {
    max-width: 900px;
    margin: 0 auto 60px;
    padding: 0 20px;
}

.page-content h2 {
    color: #0099CC;
    font-size: 26px;
    margin: 30px 0 15px 0;
}

.page-content h3 {
    color: #333;
    font-size: 20px;
    margin: 25px 0 12px 0;
}

.page-content h4 {
    color: #333;
    font-size: 18px;
    margin: 20px 0 10px 0;
}

.page-content p {
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 15px;
    color: #666;
}

.page-content ul,
.page-content ol {
    margin-left: 30px;
    margin-bottom: 20px;
}

.page-content ul li,
.page-content ol li {
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 10px;
    color: #666;
}

.cta-section {
    background: #f8f8f8;
    padding: 40px;
    text-align: center;
    margin: 40px 0;
    border-radius: 5px;
}

.cta-section h3 {
    color: #0099CC;
    font-size: 24px;
    margin-bottom: 15px;
}

.cta-section p {
    font-size: 16px;
    margin-bottom: 25px;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 3px;
    transition: all 0.3s;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: #FF6633;
    color: white;
}

.btn-primary:hover {
    background: #E55529;
}

.btn-secondary {
    background: #0099CC;
    color: white;
}

.btn-secondary:hover {
    background: #0088BB;
}

/* Contact Form */
.contact-form-container {
    max-width: 600px;
    margin: 30px 0;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 14px;
    font-family: inherit;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #0099CC;
}

/* Responsive Design */
@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .content-two-column {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
        background: none;
        border: none;
        font-size: 28px;
        cursor: pointer;
        color: #666;
        padding: 5px;
    }

    .main-nav ul {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 90px;
        left: 0;
        right: 0;
        background: white;
        padding: 15px;
        box-shadow: 0 5px 10px rgba(0,0,0,0.2);
        gap: 10px;
        z-index: 9999;
        max-height: calc(100vh - 90px);
        overflow-y: auto;
    }

    .main-nav ul.active {
        display: flex;
    }

    /* Mobile menu item styling - large button blocks */
    .main-nav > ul > li {
        width: 100%;
        margin: 0;
    }

    .main-nav > ul > li > a {
        display: block;
        background: #8a8a8a;
        color: white;
        padding: 18px 20px;
        text-align: center;
        font-size: 16px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 1px;
        border-radius: 5px;
        transition: background 0.3s;
    }

    /* HOME button - blue background */
    .main-nav > ul > li:first-child > a {
        background: #0099CC;
    }

    .main-nav > ul > li:first-child > a:hover {
        background: #0088BB;
    }

    .main-nav > ul > li > a:hover {
        background: #757575;
        color: white;
    }

    /* Dropdown toggle styling */
    .main-nav .dropdown > a {
        display: block;
        background: #8a8a8a;
        color: white;
        padding: 18px 20px;
        text-align: center;
        position: relative;
    }

    .main-nav .dropdown.active > a {
        background: #0099CC;
        border-radius: 5px 5px 0 0;
    }

    .main-nav .dropdown-toggle::after {
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
        margin-left: 0;
        border-top-color: white;
    }

    .main-nav .dropdown.active .dropdown-toggle::after {
        transform: translateY(-50%) rotate(180deg);
    }

    /* Mobile dropdown submenu styles */
    .main-nav .dropdown-menu {
        position: static;
        display: none;
        box-shadow: none;
        border-top: none;
        padding: 0;
        margin: 0;
        background: #0099CC;
        border-radius: 0 0 5px 5px;
        overflow: hidden;
    }

    .main-nav .dropdown.active .dropdown-menu {
        display: block;
    }

    .main-nav .dropdown-menu li {
        border-bottom: 1px dotted rgba(255,255,255,0.3);
    }

    .main-nav .dropdown-menu li:last-child {
        border-bottom: none;
    }

    .main-nav .dropdown-menu a {
        display: block;
        padding: 18px 20px;
        color: white;
        text-decoration: none;
        font-size: 16px;
        font-weight: 500;
        text-transform: none;
        letter-spacing: 0;
        text-align: center;
        background: transparent;
        transition: background 0.3s;
    }

    .main-nav .dropdown-menu a:hover {
        background: rgba(0,0,0,0.1);
        color: white;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .quote-form-overlay {
        position: static !important;
        transform: none !important;
        width: auto !important;
        max-width: 100% !important;
        margin: 20px !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
    }

    .hero-section {
        display: block !important;
        height: auto !important;
        min-height: auto !important;
        padding: 67vw 0 0 0 !important;
        background-size: 100% auto !important;
        background-position: top center !important;
        background-repeat: no-repeat !important;
        box-sizing: border-box;
    }

    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

/* Interior Page Styles */
.interior-page .hero-section {
    height: 800px;
}

.interior-page .quote-form-overlay {
    width: 350px;
    left: 5%;
    right: auto;
    top: 55%;
    padding: 0;
    overflow: hidden;
    background: #0099CC;
}

.interior-page .quote-form-overlay h2 {
    padding: 15px 20px 15px 20px;
    margin-bottom: 0;
    background: #0099CC;
}

.interior-page .quote-form-overlay iframe {
    display: block;
    margin: 0;
    padding: 0;
}

.interior-page .quote-form-overlay label {
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
}

.interior-page .quote-form-overlay .submit-btn {
    background: #FF6633;
    color: white;
    border: none;
    padding: 12px;
    width: 100%;
    border-radius: 3px;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.3s;
}

.interior-page .quote-form-overlay .submit-btn:hover {
    background: #E55529;
}

/* Content with Sidebar Layout */
.content-with-sidebar {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 40px;
    margin: 40px 0;
}

.content-sidebar {
    position: sticky;
    top: 100px;
}

.content-sidebar img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.main-content {
    padding-right: 40px;
}

.page-title {
    color: #0099CC;
    font-size: 28px;
    margin-bottom: 20px;
    border-bottom: 2px solid #0099CC;
    padding-bottom: 10px;
}

.main-content h2 {
    color: #333;
    font-size: 20px;
    margin: 25px 0 15px 0;
}

.main-content h3 {
    color: #0099CC;
    font-size: 18px;
    margin: 20px 0 12px 0;
}

.main-content p {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 15px;
    color: #666;
}

.main-content ul {
    margin-left: 30px;
    margin-bottom: 20px;
}

.main-content ul li {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 10px;
    color: #666;
}

/* Responsive for Interior Pages */
@media (max-width: 992px) {
    .content-with-sidebar {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .content-sidebar {
        position: static;
        max-width: 400px;
        margin: 0 auto;
    }

    .main-content {
        padding-right: 0;
    }
}

/* Iframe Pages (Compare Quotes, Client Center) */
.iframe-page {
    margin: 0;
    padding: 0;
}

.iframe-container {
    width: 100%;
    min-height: 800px;
    border: none;
}

.iframe-container iframe {
    width: 100%;
    min-height: 800px;
    border: none;
}

/* Contact Page Styles */
.contact-page .contact-content {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 40px;
    margin: 40px 0;
}

.contact-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-sidebar img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.quick-contact-form {
    background: #f8f8f8;
    padding: 25px;
    border-radius: 5px;
}

.quick-contact-form h3 {
    color: #0099CC;
    font-size: 18px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.quick-contact-form .form-group {
    margin-bottom: 15px;
}

.quick-contact-form label {
    display: block;
    margin-bottom: 5px;
    font-size: 13px;
    font-weight: 600;
    color: #333;
}

.quick-contact-form input,
.quick-contact-form select,
.quick-contact-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 14px;
    font-family: inherit;
}

.quick-contact-form input:focus,
.quick-contact-form select:focus,
.quick-contact-form textarea:focus {
    outline: none;
    border-color: #0099CC;
}

.quick-contact-form .submit-btn {
    background: #FF6633;
    color: white;
    border: none;
    padding: 12px;
    width: 100%;
    border-radius: 3px;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 10px;
}

.quick-contact-form .submit-btn:hover {
    background: #E55529;
}

.contact-main {
    padding-right: 40px;
}

.contact-main .page-title {
    color: #0099CC;
    font-size: 28px;
    margin-bottom: 20px;
    border-bottom: 2px solid #0099CC;
    padding-bottom: 10px;
}

.contact-main p {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 10px;
    color: #666;
}

.contact-main strong {
    color: #0099CC;
    display: inline-block;
    margin-right: 5px;
}

.map-container {
    margin-top: 30px;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.map-container iframe {
    display: block;
}

/* Responsive for Contact Page */
@media (max-width: 992px) {
    .contact-page .contact-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-sidebar {
        max-width: 500px;
        margin: 0 auto;
    }

    .contact-main {
        padding-right: 0;
    }
}
