/* =============================================================
   CSS RESET & BASE NORMALIZATION
   ============================================================= */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    margin: 0; padding: 0; border: 0;
    font-size: 100%; font: inherit; vertical-align: baseline;
    box-sizing: border-box;
}
html { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; }
article, aside, details, figcaption, figure, footer, header, hgroup, main, menu, nav, section {
    display: block;
}
body {
    line-height: 1.6;
    background: #F9F7F1;
    color: #2c2a21;
    min-height: 100vh;
}

/* ======================
   BRAND & THEME COLORS
   ====================== */
:root {
    --primary: #24416A;
    --primary-dark: #1C3251;
    --secondary: #F5F6FA;
    --secondary-light: #FFFFFF;
    --accent: #3AB386;
    --accent-dark: #238363;
    --neutral: #F9F7F1;
    --warn: #DA8235;
    --error: #C75050;
    --border: #e1e5ee;
    --shadow: rgba(36,65,106,0.07);
    --shadow-strong: rgba(36,65,106,0.12);
}

/* ===============================
   TYPOGRAPHY - Friendly & Modern
   =============================== */
@import url('https://fonts.googleapis.com/css?family=Montserrat:400,600,700&display=swap');
@import url('https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,600,700&display=swap');

body, html {
    font-family: 'Source Sans Pro', Arial, sans-serif;
    font-weight: 400;
}
h1, h2, h3, h4 {
    font-family: 'Montserrat', Arial, sans-serif;
    color: var(--primary);
    margin-bottom: 16px;
    line-height: 1.18;
}
h1 { font-size: 2.375rem; font-weight: 700; margin-bottom: 20px; }
h2 { font-size: 1.75rem; font-weight: 700; margin-bottom: 18px; }
h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: 12px; }
h4 { font-size: 1.1rem; font-weight: 600; margin-bottom: 10px; }
p, ul, li, table, input, a, th, td, label {
    font-size: 1rem;
    color: #333333;
}
p { margin-bottom: 18px; }
strong, b {
    font-weight: 600;
}
.text-section h2,
.text-section h3,
.text-section h4 {
    color: var(--primary);
}

/* ===============================
   SPACING, CONTAINERS, & LAYOUT
   =============================== */
.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 18px;
}
.section {
    margin-bottom: 60px;
    padding: 40px 20px;
    background: var(--secondary);
    border-radius: 24px;
    box-shadow: 0 8px 30px var(--shadow);
}
.content-wrapper {
    width: 100%;
    margin: 0 auto 16px auto;
    padding: 0;
}

/* Flex pattern containers */
.card-container {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 20px;
}
.card-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.card {
    margin-bottom: 20px;
    position: relative;
    background: var(--secondary-light);
    border-radius: 22px;
    box-shadow: 0 3px 20px var(--shadow);
    padding: 28px 24px;
    transition: box-shadow 0.18s, transform 0.18s;
}
.card:hover, .card:focus {
    box-shadow: 0 6px 32px var(--shadow-strong);
    transform: translateY(-3px) scale(1.025);
}
.content-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
    width: 100%;
}
.text-image-section {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}
/* Features (simulate cards) */
.feature-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    background: var(--secondary-light);
    border-radius: 18px;
    box-shadow: 0 2px 10px var(--shadow);
    padding: 22px 18px 22px 18px;
    margin-bottom: 24px;
}

/* ===============================
   HEADER & MAIN NAVIGATION
   =============================== */
header {
    width: 100%;
    background: var(--secondary-light);
    box-shadow: 0 1.5px 10px var(--shadow);
    border-bottom: 2px solid var(--border);
    z-index: 20;
}
header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
}
.logo {
    display: flex;
    align-items: center;
    height: 56px;
    padding-right: 8px;
}
.logo img {
    height: 48px;
    width: auto;
    display: block;
    border-radius: 12px;
}
.main-nav {
    display: flex;
    align-items: center;
    gap: 18px;
}
.main-nav a {
    text-decoration: none;
    color: var(--primary);
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 500;
    padding: 9px 15px;
    border-radius: 18px;
    transition: background 0.18s;
    font-size: 1rem;
}
.main-nav a:hover, .main-nav a:focus {
    background: var(--accent);
    color: #fff;
}
.main-nav .cta-btn {
    margin-left: 6px;
    color: #fff;
    background: var(--accent);
    box-shadow: 0 2px 10px var(--shadow);
}
.main-nav .cta-btn:hover, .main-nav .cta-btn:focus {
    background: var(--accent-dark);
    color: #fff;
    box-shadow: 0 3px 24px var(--shadow);
}

/* MOBILE NAVIGATION */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--primary);
    padding: 11px 13px;
    border-radius: 14px;
    cursor: pointer;
    z-index: 201;
    transition: background 0.18s;
}
.mobile-menu-toggle:active, .mobile-menu-toggle:focus {
    background: var(--accent);
    color: #fff;
}
.mobile-menu {
    display: none;
    position: fixed;
    top: 0; right: 0; left: 0; bottom: 0;
    width: 100vw;
    height: 100vh;
    background: var(--primary);
    z-index: 200;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    overflow-y: auto;
    transform: translateX(105%);
    transition: transform 0.33s cubic-bezier(.4,.8,.22,1.01);
}
.mobile-menu.active {
    display: flex;
    transform: translateX(0);
}
.mobile-menu-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    align-self: flex-end;
    margin: 18px 28px 10px 0;
    cursor: pointer;
    z-index: 300;
}
.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 22px;
    width: 100%;
    padding: 12px 30px 30px 38px;
}
.mobile-nav a {
    color: #fff;
    font-size: 1.15rem;
    text-decoration: none;
    font-family: 'Montserrat', Arial, sans-serif;
    padding: 10px 8px;
    border-radius: 18px;
    transition: background 0.15s, color 0.15s;
    font-weight: 500;
    outline: none;
}
.mobile-nav a:active,
.mobile-nav a:focus,
.mobile-nav a:hover {
    background: var(--accent-dark);
    color: #fff !important;
}

/* Only show burger icon on mobile */
@media (max-width: 1050px) {
    .main-nav {
        display: none;
    }
    .mobile-menu-toggle {
        display: block;
    }
}
@media (min-width: 1051px) {
    .mobile-menu {
        display: none !important;
    }
}

/* ========================
   FOOTER
   ======================== */
footer {
    background: var(--primary);
    color: #fff;
    padding: 36px 0 18px 0;
    text-align: center;
    font-size: 0.97rem;
    border-top: 3px solid var(--accent);
}
footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}
footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    justify-content: center;
    margin-bottom: 8px;
}
footer nav a {
    color: #fff;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 1rem;
    text-decoration: none;
    opacity: 0.97;
    transition: opacity 0.15s;
    padding: 7px 13px;
    border-radius: 16px;
}
footer nav a:hover, footer nav a:focus {
    opacity: 1;
    background: var(--accent);
}
footer p {
    color: #fff;
    opacity: 0.86;
}

/* =============================
   MAIN SECTIONS & PAGE LAYOUTS
   ============================= */
main {
    width: 100%;
    margin: 0 auto;
    padding-top: 24px;
    padding-bottom: 42px;
}
section {
    margin-bottom: 60px;
    padding: 40px 20px;
    border-radius: 24px;
    background: var(--secondary);
    box-shadow: 0 6px 32px var(--shadow);
}
@media (max-width: 800px) {
    section {
        margin-bottom: 45px;
        padding: 26px 6px;
        border-radius: 16px;
    }
}

ul {
    list-style: disc inside;
    margin-top: 9px;
    margin-bottom: 16px;
    padding-left: 0;
    font-size: 1rem;
}
ul li {
    margin-bottom: 8px;
    padding-left: 2px;
    font-size: 1rem;
}

/* Icon List Items */
ul li img {
    width: 22px; height: 22px;
    margin-right: 10px;
    vertical-align: middle;
    border-radius: 8px;
    background: #fffcf7;
    box-shadow: 0 1px 6px var(--shadow);
}

/* Table styles (e.g. prices table) */
table {
    width: 100%;
    border-collapse: collapse;
    background: var(--secondary-light);
    margin-bottom: 22px;
    border-radius: 16px;
    box-shadow: 0 2px 10px var(--shadow);
    overflow: hidden;
    font-size: 1rem;
}
thead {
    background: var(--primary);
    color: #fff;
    font-family: 'Montserrat', Arial, sans-serif;
}
th, td {
    padding: 17px 12px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}
tbody tr:last-child td {
    border-bottom: none;
}
th {
    font-weight: 700;
}
tbody tr:nth-child(even) {
    background: #FAF8F4;
}
tbody tr strong {
    color: var(--accent-dark);
}

/* =====================
   CTA BUTTON STYLES
   ===================== */
.cta-btn {
    display: inline-block;
    border: none;
    outline: none;
    background: var(--accent);
    color: #fff;
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    padding: 13px 36px;
    border-radius: 32px;
    box-shadow: 0 4px 16px var(--shadow);
    transition: background 0.18s, box-shadow 0.18s, transform 0.14s;
    cursor: pointer;
    margin-top: 12px;
    text-decoration: none;
    letter-spacing: 0.02em;
}
.cta-btn:hover, .cta-btn:focus {
    background: var(--accent-dark);
    box-shadow: 0 6px 30px var(--shadow-strong);
    transform: translateY(-2px) scale(1.03);
    color: #fff;
}

/* ===============================
   TESTIMONIALS
   =============================== */
.testimonial-slider {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 18px;
    justify-content: flex-start;
}
.testimonial-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    background: #fff5e9;
    color: #2c2a21;
    border-radius: 20px;
    box-shadow: 0 2px 14px var(--shadow);
    min-width: 280px;
    max-width: 390px;
    min-height: 140px;
    margin-bottom: 20px;
}
.testimonial-card p {
    color: #502c0b;
    font-size: 1rem;
    font-style: italic;
    margin-bottom: 8px;
    line-height: 1.5;
}
.testimonial-card span {
    font-size: 0.98rem;
    color: var(--primary);
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 600;
}

/* =============================
   TEXT & IMAGE FLEX SECTION
   ============================= */
.text-section {
    display: flex;
    flex-direction: column;
    gap: 18px;
    background: var(--secondary-light);
    padding: 32px 24px;
    border-radius: 18px;
    box-shadow: 0 2px 14px var(--shadow);
    margin-bottom: 20px;
}
/* For any image besides text */
.text-section img {
    max-width: 74px;
    border-radius: 16px;
}

/* =============================
   FORMS & INPUTS
   ============================= */
input, textarea, select {
    font-family: inherit;
    font-size: 1rem;
    border-radius: 13px;
    border: 1.5px solid var(--border);
    padding: 12px 13px;
    margin-bottom: 18px;
    background: #fff;
    transition: border 0.16s, box-shadow 0.16s;
    outline: none;
}
input:focus, textarea:focus, select:focus {
    border-color: var(--accent-dark);
    box-shadow: 0 2px 14px var(--shadow);
}

/* =============================
   RESPONSIVE FLEX & SPACING
   ============================= */
@media (max-width: 900px) {
    .testimonial-slider,
    .content-grid,
    .card-container {
        flex-direction: column;
        gap: 20px;
        align-items: stretch;
    }
    .text-image-section {
        flex-direction: column;
        gap: 22px;
        align-items: flex-start;
    }
    .feature-item {
        width: 100%;
    }
}
@media (max-width: 768px) {
    .testimonial-slider,
    .content-grid,
    .card-container {
        flex-direction: column;
        gap: 20px;
        align-items: stretch;
    }
    .main-nav {
        display: none !important;
    }
    .text-image-section {
        flex-direction: column;
        gap: 18px;
        align-items: flex-start;
    }
    .container {
        padding: 0 8px;
    }
    section {
        padding: 16px 3px;
        margin-bottom: 38px;
        border-radius: 10px;
    }
    .card {
        padding: 18px 11px;
    }
    .text-section {
        padding: 16px 6px;
    }
}

/* =============================
   MICRO-INTERACTIONS & EFFECTS
   ============================= */
a, button, .cta-btn, .mobile-menu-toggle, .mobile-menu-close {
    transition: background 0.18s, color 0.18s, box-shadow 0.15s, transform 0.14s;
}

/* =============================
   COOKIE CONSENT BANNER & MODAL
   ============================= */
.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    background: var(--secondary-light);
    color: #513818;
    border-top: 2.5px solid var(--accent);
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -6px 28px var(--shadow);
    padding: 22px 16px 18px 16px;
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 16px;
    width: 95vw;
    max-width: 560px;
    margin: 0 auto;
    animation: cookie-slide 0.6s cubic-bezier(.34,.99,.22,1.01);
}
@keyframes cookie-slide {
    0% { transform: translateY(110%); opacity: 0; }
    60% { opacity: 1; }
    100% { transform: translateY(0); opacity: 1; }
}
.cookie-banner .cookie-btns {
    display: flex;
    gap: 15px;
    margin-top: 6px;
}
.cookie-banner button {
    border-radius: 22px;
    border: none;
    padding: 11px 22px;
    font-size: 1rem;
    font-family: 'Montserrat', Arial, sans-serif;
    cursor: pointer;
    font-weight: 600;
}
.cookie-banner .accept-btn {
    background: var(--accent);
    color: #fff;
}
.cookie-banner .accept-btn:hover,
.cookie-banner .accept-btn:focus {
    background: var(--accent-dark);
    color: #fff;
}
.cookie-banner .reject-btn {
    background: #f6dcc4;
    color: #a05309;
}
.cookie-banner .reject-btn:hover,
.cookie-banner .reject-btn:focus {
    background: #fae8d3;
}
.cookie-banner .settings-btn {
    background: #f8f3ec;
    color: var(--primary);
    border: 1.2px solid var(--border);
}
.cookie-banner .settings-btn:hover,
.cookie-banner .settings-btn:focus {
    background: #f6f0e6;
    color: var(--primary-dark);
}

/* Cookie Modal */
.cookie-modal-overlay {
    position: fixed;
    z-index: 12001;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(36,65,106, 0.60);
    display: none;
    align-items: center;
    justify-content: center;
}
.cookie-modal-overlay.active { display: flex; }
.cookie-modal {
    background: #fff;
    border-radius: 28px;
    box-shadow: 0 6px 28px var(--shadow);
    padding: 34px 30px 28px 30px;
    max-width: 450px;
    width: 90vw;
    color: #25355e;
    display: flex;
    flex-direction: column;
    gap: 15px;
    animation: modal-in 0.4s cubic-bezier(.34,.99,.22,1.01);
}
@keyframes modal-in {
    0% { transform: translateY(80px) scale(0.93); opacity: 0; }
    70% { opacity: 1; }
    100% { transform: translateY(0) scale(1); opacity: 1; }
}
.cookie-modal h2 {
    font-size: 1.32rem;
    color: var(--primary);
    margin-bottom: 10px;
    font-weight: 700;
}
.cookie-category-list {
    display: flex;
    flex-direction: column;
    gap: 13px;
    margin: 15px 0 12px 0;
}
.cookie-category {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.05rem;
    background: #F6F2ED;
    border-radius: 14px;
    padding: 9px 16px;
}
.cookie-category .toggle {
    width: 36px; height: 20px;
    border-radius: 16px;
    background: #dad9d6;
    position: relative;
    transition: background 0.16s;
    cursor: pointer;
    display: inline-block;
}
.cookie-category .toggle.enabled {
    background: var(--accent);
}
.cookie-category .toggle-ball {
    position: absolute; top: 2.5px; left: 2.5px;
    width: 15px; height: 15px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 1.5px 8px var(--shadow);
    transition: left 0.17s;
}
.cookie-category .toggle.enabled .toggle-ball {
    left: 18.5px;
}
/* Modal actions */
.cookie-modal .modal-actions {
    display: flex;
    gap: 15px;
    margin-top: 13px;
}
.cookie-modal .modal-actions button {
    border-radius: 20px;
    border: none;
    padding: 11px 22px;
    font-size: 1rem;
    font-family: 'Montserrat', Arial, sans-serif;
    cursor: pointer;
    font-weight: 600;
}
.cookie-modal .save-btn {
    background: var(--accent);
    color: #fff;
}
.cookie-modal .save-btn:hover, .cookie-modal .save-btn:focus {
    background: var(--accent-dark);
}
.cookie-modal .close-btn {
    background: #f8f3ec;
    color: var(--primary);
    border: 1.2px solid var(--border);
}
.cookie-modal .close-btn:hover, .cookie-modal .close-btn:focus {
    background: #f6f0e6;
}

@media (max-width: 600px) {
    .cookie-modal {
        padding: 13px 5px 19px 5px;
        max-width: 95vw;
    }
    .cookie-banner {
        padding: 13px 5px 12px 9px;
        max-width: 97vw;
    }
}

/* Cookie always enabled label */
.cookie-category .always-enabled {
    color: #a09791;
    font-size: 0.95em;
    font-style: italic;
    margin-left: 12px;
    font-weight: 400;
}

/* ======================
   MISCELLANEOUS
   ====================== */
hr {
    border: none;
    border-bottom: 1.7px solid var(--border);
    margin: 24px 0;
}
img {
    max-width: 100%;
    height: auto;
    border-radius: 14px;
    display: block;
}
::-webkit-input-placeholder { color: #bcbbb9; }
::-moz-placeholder { color: #bcbbb9; }
:-ms-input-placeholder { color: #bcbbb9; }
::placeholder { color: #bcbbb9; }

/* Highlight/Info blocks */
.info-block, .warn-block {
    border-radius: 13px;
    padding: 14px 16px;
    background: #fffbe2;
    color: #79631e;
    font-size: 1.02rem;
    margin-bottom: 16px;
}
.warn-block {
    background: #fbe6da;
    color: #bb5e0d;
}

/* =============================
   PRINT (optional)
   ============================= */
@media print {
    * { background: #fff !important; color: #25355e !important; box-shadow: none !important; }
    a, a:visited { color: #222 !important; text-decoration: underline; }
    .main-nav, .mobile-menu, .mobile-menu-toggle, .cookie-banner, .cookie-modal-overlay { display: none !important; }
}
