@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');

/* Basic Variables matching the Notare M&W Theme */
:root {
    --primary-color: #133566; /* Dark Blue */
    --accent-color: #ff0000;  /* Red Accent */
    --text-color: #363636;    /* Dark Gray text */
    --bg-color: #fcfcfc;      /* Off-White Content Background */
    --link-hover: #0f2a52;    
    --white: #ffffff;
    --border-color: #e0e0e0;
}

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

body {
    font-family: 'Open Sans', sans-serif;
    margin: 0;
    padding: 0;
    color: var(--text-color);
    background-color: transparent;
    min-height: 100vh;
    line-height: 1.6;
}

/* Image Slider Background */
.hero-slider {
    position: relative;
    width: 100vw;
    aspect-ratio: 2600 / 765;
    max-height: 765px;
    background-color: transparent;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center top;
    opacity: 0;
    animation: fadeSlider 25s infinite;
}

.hero-slide:nth-child(1) { animation-delay: 0s; }
.hero-slide:nth-child(2) { animation-delay: 5s; }
.hero-slide:nth-child(3) { animation-delay: 10s; }
.hero-slide:nth-child(4) { animation-delay: 15s; }
.hero-slide:nth-child(5) { animation-delay: 20s; }

@keyframes fadeSlider {
    0% { opacity: 0; }
    10% { opacity: 1; }
    20% { opacity: 1; }
    30% { opacity: 0; }
    100% { opacity: 0; }
}

/* Site Wrapper & Header */
.site-wrapper {
    background: transparent;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    width: 100vw;
    background-color: var(--primary-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    max-height: 50px;
    width: auto;
    display: block;
}

/* Navigation - Flex Layout */
.main-nav {
    background-color: var(--primary-color);
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 20px;
}

.nav-links {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav-links li {
    position: relative; /* For absolutely positioned dropdown */
}

.nav-links a {
    display: block;
    color: var(--white);
    text-decoration: none;
    padding: 15px 20px;
    font-weight: 600;
    font-size: 14px;
    transition: background-color 0.3s;
}

.nav-links a:hover, .nav-links a.active {
    background-color: var(--link-hover);
}

/* Dropdown CSS Logic */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--link-hover);
    min-width: 200px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    z-index: 1001;
    top: 100%;
    left: 0;
    list-style: none;
}

.dropdown-content li {
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.dropdown-content a {
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 400;
}

.dropdown-content a:hover {
    background-color: var(--primary-color);
}

/* ONLY show dropdown on desktop hover */
@media (min-width: 769px) {
    .dropdown:hover .dropdown-content {
        display: block;
    }
}

/* Mobile Burger Button */
.burger-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 15px;
    margin-left: auto;
}

.burger-menu span {
    display: block;
    width: 30px;
    height: 3px;
    background-color: var(--white);
    margin: 6px 0;
    transition: 0.3s;
}

/* Main Content Layout */
.site-content {
    background-color: transparent;
    flex: 1;
    padding: 0;
    width: 100%;
}

.content-wrapper {
    width: 100%; 
    max-width: 1200px; 
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    background-color: var(--bg-color);
    padding: 40px 20px;
    box-sizing: border-box;
    box-shadow: 0 0 20px rgba(0,0,0,0.05);
}

/* Typography inside Main content */
.content-area h1 {
    color: var(--primary-color);
    font-size: 26px;
    margin-bottom: 20px;
    line-height: 1.3;
}

.content-area h2 {
    color: var(--primary-color);
    font-size: 20px;
    margin-bottom: 15px;
    margin-top: 30px;
}

.content-area h2 strong {
    color: var(--accent-color);
}

.content-area h3 {
    color: var(--primary-color);
    font-size: 18px;
    margin-bottom: 15px;
    margin-top: 25px;
}

.content-area p {
    margin-bottom: 15px;
}

.content-area a {
    color: var(--primary-color);
    text-decoration: underline;
}

.content-area a:hover {
    color: var(--accent-color);
}

/* Original Table Layout for 2-column content */
.content-area table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
}

.content-area td {
    vertical-align: top;
    padding: 0 15px;
}

/* Sidebar Styling */
.sidebar {
    background-color: var(--white);
    padding-left: 20px;
    border-left: 1px solid var(--border-color);
}

.sidebar-widget {
    margin-bottom: 30px;
}

.text-center {
    text-align: center;
}

.sidebar-blue-head {
    color: var(--text-color);
    font-size: 16px;
    margin-bottom: 10px;
    font-weight: bold;
}

.sidebar-divider {
    height: 1px;
    background-color: var(--border-color);
    margin: 20px 30%;
}

.sidebar p {
    font-size: 14px;
    margin-bottom: 5px;
}

.sidebar a {
    color: var(--text-color);
    text-decoration: none;
}
.sidebar a:hover {
    color: var(--accent-color);
}

/* Footer layout */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 30px 20px;
    width: 100vw;
}

.footer-links {
    margin-bottom: 15px;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    margin: 0 10px;
    font-size: 14px;
}

.footer-links a:hover {
    text-decoration: underline;
}

.footer-copy {
    font-size: 12px;
    opacity: 0.8;
}

/* Images & Media in content */
figure img, .content-area img, .cm_widget img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 15px auto;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .content-wrapper {
        grid-template-columns: 1fr;
        padding: 20px;
    }
    
    .sidebar {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid var(--border-color);
        padding-top: 30px;
    }
    
    .burger-menu {
        display: block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
    }

    .nav-links.active-menu {
        display: flex;
    }

    .nav-links a {
        padding: 15px 20px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    /* Reveal dropdowns automatically inside mobile expanded menu */
    .dropdown-content {
        position: static;
        display: block; 
        background-color: var(--link-hover);
        box-shadow: none;
        width: 100%;
    }
    
    .dropdown-content a {
        padding-left: 40px;
    }
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: 0 -4px 10px rgba(0,0,0,0.1);
    z-index: 9999;
    padding: 20px;
    border-top: 4px solid var(--primary-color);
}

.cookie-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.cookie-content h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.cookie-content p {
    font-size: 14px;
    margin-bottom: 15px;
}

.cookie-options {
    margin-bottom: 15px;
    font-size: 14px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-weight: bold;
    border-radius: 4px;
    transition: background-color 0.3s;
}

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

/* Contact Form Styling */
.contact-form ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.contact-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form select,
.contact-form textarea {
    width: 100%;
    max-width: 600px;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: inherit;
    font-size: 16px;
    box-sizing: border-box;
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-form .btn-primary {
    background-color: var(--accent-color);
    color: var(--white);
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s;
    border-radius: 4px;
    margin-top: 10px;
}

.contact-form .btn-primary:hover {
    background-color: var(--primary-color);
}

/* =========================================
   Mobile Responsiveness
   ========================================= */
@media (max-width: 900px) {
    /* Main Layout Wrappers */
    .content-wrapper {
        flex-direction: column;
        padding: 10px;
    }
    
    .sidebar {
        width: 100%;
        margin-left: 0;
        margin-top: 30px;
    }
    
    .content-area {
        width: 100%;
        max-width: 100%;
        padding: 0 10px;
    }
    
    /* Navigation / Burger Menu */
    .burger-menu {
        display: block; /* Show burger on mobile */
    }
    
    .nav-links {
        display: none !important; /* Hidden by default */
        width: 100%;
        flex-direction: column;
        background-color: var(--primary-color);
        position: absolute;
        top: 100%; /* Below header */
        left: 0;
        z-index: 1000;
        padding: 0;
    }
    
    .nav-links.active-menu {
        display: flex !important;
    }
    
    .nav-links li {
        width: 100%;
        border-top: 1px solid rgba(255,255,255,0.1);
    }
    
    .nav-links a {
        padding: 15px 20px;
        text-align: left;
        width: 100%;
        box-sizing: border-box;
    }
    
    /* Native Dropdown overwrites for mobile */
    .dropdown-content {
        position: static !important;
        display: none !important; 
        width: 100%;
        box-shadow: none !important;
        background-color: rgba(0,0,0,0.1) !important;
    }
    
    .dropdown-content.mobile-open {
        display: block !important;
    }
    
    .dropdown-content a {
        padding-left: 40px !important; /* Indent submenus */
    }

    /* Strato Table Wrapping for Columns */
    .content-area table, .content-area tbody, .content-area tr, .content-area td {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .content-area td {
        margin-bottom: 30px;
    }
    
    .cm_empty_editor {
        padding: 0 !important;
    }

    /* slider responsiveness */
    .hero-slider, .hero-slide {
        height: 200px !important; /* Much smaller on mobile */
    }
    
    /* general padding */
    .site-content {
        max-width: 100%;
    }
}
