/* -------------------------------
   CSS RESET & BASE STYLES
------------------------------- */
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;
    font-size: 16px;
    scroll-behavior: smooth;
}
body {
    min-height: 100vh;
    font-family: 'Roboto', Arial, sans-serif;
    background: linear-gradient(135deg, #F2F4F8 0%, #E1ECF2 100%);
    color: #204060;
    line-height: 1.6;
    font-size: 16px;
    letter-spacing: 0.02em;
    transition: background 0.5s;
}
@media (max-width: 480px) {
    html {
        font-size: 15px;
    }
}

*::selection {
    background: #7AAAC7;
    color: #fff;
}

img {
    max-width: 100%;
    display: block;
}
a {
    color: #204060;
    text-decoration: none;
    transition: color 0.2s;
}
a:hover, a:focus {
    color: #7AAAC7;
    outline: none;
}

ul, ol {
    list-style: inside disc;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 700;
    color: #204060;
    margin-bottom: 10px;
    letter-spacing: 0.01em;
}
h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}
h2 {
    font-size: 2rem;
    margin-bottom: 16px;
}
h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}
h4 {
    font-size: 1.1rem;
}
p {
    font-size: 1rem;
    margin-bottom: 14px;
}

strong, b {
    font-weight: 700;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px;
    width: 100%;
}

/* -------------------------------
   HEADER & NAVIGATION
------------------------------- */
header {
    width: 100%;
    background: linear-gradient(90deg, #204060 0%, #7AAAC7 100%);
    box-shadow: 0 2px 18px rgba(32,64,96,0.08);
    position: relative;
    z-index: 40;
}
header nav {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 18px 0 12px 0;
    position: relative;
}
header nav a img {
    height: 38px;
    margin-right: 18px;
    vertical-align: middle;
}
header nav a {
    color: #fff;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    padding: 6px 0;
    position: relative;
    transition: color 0.25s;
    border-radius: 6px;
}
header nav a.btn-primary {
    color: #204060;
    background: #fff;
    padding: 8px 22px;
    border-radius: 30px;
    margin-left: auto;
    font-size: 1rem;
    font-weight: 700;
    box-shadow: 0 2px 10px rgba(122,170,199,0.08);
    transition: background 0.18s, color 0.22s, box-shadow 0.18s;
}
header nav a:hover,
header nav a:focus {
    color: #FFD066;
    background: rgba(255,255,255,0.06);
}
header nav a.btn-primary:hover,
header nav a.btn-primary:focus {
    background: #7AAAC7;
    color: #fff;
    box-shadow: 0 4px 16px rgba(122,170,199,0.19);
}

/* -------------------------------
   MOBILE MENU
------------------------------- */
.mobile-menu-toggle {
    display: none;
    background: #204060;
    color: #fff;
    border: none;
    font-size: 2.2rem;
    line-height: 1;
    cursor: pointer;
    padding: 4px 16px;
    border-radius: 7px;
    transition: background 0.2s, color 0.2s;
    z-index: 102;
    margin-left: 16px;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
    background: #7AAAC7;
    color: #204060;
}
.mobile-menu {
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(130deg,#F2F4F8 65%, #7AAAC7 100%);
    box-shadow: 0 10px 34px rgba(32,64,96,0.20);
    z-index: 120;
    transform: translateX(-100%);
    transition: transform 0.34s cubic-bezier(.36,.66,.04,1);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.mobile-menu.active { /* add/remove in JS */
    transform: translateX(0);
}
.mobile-menu-close {
    font-size: 1.9rem;
    background: none;
    color: #204060;
    border: none;
    padding: 18px 24px 0 0;
    align-self: flex-end;
    cursor: pointer;
    z-index: 110;
    transition: color 0.2s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
    color: #7AAAC7;
}
.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding: 30px 32px;
    width: 100%;
    align-items: flex-start;
}
.mobile-nav a {
    font-size: 1.22rem;
    color: #204060;
    font-family: 'Montserrat', Arial, sans-serif;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 0 8px 8px;
    border-radius: 5px;
    display: block;
    transition: background 0.17s, color 0.18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
    background: #7AAAC7;
    color: #fff;
}

@media (max-width: 1050px) {
  .container {
    max-width: 96vw;
  }
}
@media (max-width: 900px) {
    header nav {
        gap: 14px;
    }
    header nav a.btn-primary {
        padding: 7px 14px;
        margin-left: 0;
    }
}
@media (max-width: 820px) {
    header nav a { font-size: 0.97rem; }
    h1 { font-size: 2rem; }
    h2 { font-size: 1.44rem; }
}
@media (max-width: 768px) {
    header nav {
        display: none;
    }
    .mobile-menu-toggle {
        display: block;
        position: absolute;
        top: 14px;
        right: 20px;
    }
    .mobile-menu {
        display: flex;
    }
}

/* -------------------------------
   MAIN SECTIONS, FLEX PATTERNS
------------------------------- */
main {
    width: 100%;
    margin-top: 0;
    padding-bottom: 65px;
}
.section {
    margin-bottom: 60px;
    padding: 40px 20px;
    background: transparent;
}
.content-wrapper {
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.section .container {
    width: 100%;
}

/* =====================
   CARD, FLEX PATTERNS
===================== */
.card-container {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}
.card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 2px 16px rgba(32,64,96,0.08);
    padding: 24px 20px 20px 20px;
    margin-bottom: 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover {
    box-shadow: 0 8px 40px rgba(32,64,96,0.15);
    transform: translateY(-4px) scale(1.012);
}

.content-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
}
.text-image-section {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}
@media (max-width: 768px) {
    .text-image-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
}
.testimonial-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #fff;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 2px 16px rgba(32,64,96,0.07);
    margin-bottom: 20px;
    min-width: 255px;
    max-width: 540px;
}
.testimonial-card p {
    color: #204060;
    font-size: 1.07rem;
    margin-bottom: 10px;
}
.testimonial-card strong {
    color: #204060;
    display: inline-block;
    font-size: 1.03rem;
    margin-bottom: 6px;
}
.testimonial-card .stars {
    color: #FFD066;
    font-size: 1.2rem;
    letter-spacing: 0.08em;
    margin-top: 8px;
}
.feature-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
}

/* ---- Feature Grids ---- */
.feature-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 22px;
}
.feature-grid > div {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(32,64,96,0.09);
    flex: 0 1 270px;
    min-width: 220px;
    padding: 24px 18px 18px 18px;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    transition: box-shadow 0.2s, transform 0.18s;
    margin-bottom: 20px;
}
.feature-grid > div:hover {
    box-shadow: 0 8px 36px rgba(122,170,199,0.16);
    transform: translateY(-3px) scale(1.03);
}
.feature-grid img {
    width: 46px;
    height: 46px;
    margin-bottom: 10px;
}

/* Blog Posts Grid */
.blog-posts-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 20px;
}
.blog-posts-grid article {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(122,170,199,0.07);
    padding: 24px 20px 18px 20px;
    min-width: 250px;
    max-width: 320px;
    flex: 1 1 250px;
    display: flex;
    flex-direction: column;
    margin-bottom: 12px;
    transition: box-shadow 0.16s, transform 0.17s;
}
.blog-posts-grid article:hover {
    box-shadow: 0 5px 24px rgba(32,64,96,0.13);
    transform: translateY(-2px) scale(1.015);
}
.blog-posts-grid h3 {
    font-size: 1.13rem;
}
.blog-posts-grid a {
    margin-top: 10px;
    align-self: flex-end;
    color: #7AAAC7; font-weight: 600;
    text-decoration: underline;
    transition: color 0.18s;
}
.blog-posts-grid a:hover {
    color: #204060;
}

@media (max-width: 1000px) {
    .feature-grid, .card-container, .blog-posts-grid {
        gap: 16px;
    }
}
@media (max-width: 768px) {
    .feature-grid,
    .blog-posts-grid {
        flex-direction: column;
    }
    .feature-grid > div,
    .blog-posts-grid article {
        max-width: 100%;
        width: 100%;
    }
    .testimonial-card { max-width: 100%; }
}

/* -------------------
   BUTTONS & CTA
-------------------- */
.btn-primary, .btn-secondary {
    display: inline-block;
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 700;
    border: none;
    outline: none;
    cursor: pointer;
    border-radius: 26px;
    min-width: 164px;
    text-align: center;
    padding: 11px 26px;
    font-size: 1.08rem;
    transition: background 0.18s, color 0.15s, box-shadow 0.22s, transform 0.09s;
    margin-top: 14px;
    margin-bottom: 10px;
    box-shadow: 0 2px 8px rgba(122,170,199,0.08);
}
.btn-primary {
    color: #fff;
    background: linear-gradient(90deg, #204060 0%, #7AAAC7 100%);
}
.btn-primary:hover, .btn-primary:focus {
    background: #7AAAC7;
    color: #204060;
    box-shadow: 0 4px 21px rgba(32,64,96,0.19);
    transform: translateY(-2px) scale(1.05);
}
.btn-secondary {
    color: #204060;
    background: #fff;
    border: 2px solid #7AAAC7;
}
.btn-secondary:hover, .btn-secondary:focus {
    background: #7AAAC7;
    color: #fff;
    border-color: #204060;
    transform: translateY(-2px) scale(1.035);
}

/* -------------------
   FOOTER
--------------------- */
footer {
    background: linear-gradient(90deg, #204060 0%, #497297 100%);
    color: #fff;
    padding: 36px 0 24px 0;
    box-shadow: 0 -2px 28px rgba(32,64,96,0.08);
}
footer nav {
    display: flex;
    gap: 24px;
    margin-bottom: 16px;
    justify-content: center;
}
footer nav a {
    color: #fff;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 1rem;
    opacity: 0.93;
    font-weight: 500;
    letter-spacing: 0.01em;
    transition: color 0.18s, opacity 0.17s;
}
footer nav a:hover, footer nav a:focus {
    color: #FFD066;
    opacity: 1;
}
.footer-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 32px;
    justify-content: center;
    align-items: center;
    font-size: 0.98rem;
    opacity: 0.95;
}
@media (max-width: 768px) {
    footer nav {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
    .footer-contact {
        flex-direction: column;
        gap: 10px;
    }
}

/* -------------------
    SPECIAL BLOCKS
-------------------- */
.text-section {
    max-width: 690px;
    margin: 0 auto;
}
.contact-info-basic, .contact-details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 24px;
}
.contact-info-basic p img, .contact-details p img {
    vertical-align: middle;
    margin-right: 12px;
    height: 20px;
}
.contact-details a {
    color: #204060;
    border-bottom: 1px dotted #7AAAC7;
    transition: color 0.2s;
}
.contact-details a:hover {
    color: #7AAAC7;
    border-bottom: 1px solid #204060;
}

/* Section ULs */
.content-wrapper ul {
    margin-bottom: 12px;
    margin-left: 18px;
    font-size: 1rem;
}
.content-wrapper ul li {
    margin-bottom: 8px;
    list-style: disc;
    color: #204060;
}

/* Margins Between Sections */
section + section {
    margin-top: 16px;
}

/* ---------------
   MICROINTERACTIONS
----------------- */
.card, .feature-grid > div, .testimonial-card, .btn-primary, .btn-secondary, .blog-posts-grid article {
    transition: box-shadow 0.17s, transform 0.16s, background 0.25s, color 0.22s;
}
.blog-posts-grid article a {
    transition: color 0.15s;
}

/* -----------------------------
     COOKIE CONSENT BANNER
------------------------------ */
.cookie-banner {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    background: #204060;
    color: #fff;
    z-index: 190;
    padding: 20px 16px 14px 16px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 28px;
    box-shadow: 0 -4px 16px rgba(32,64,96,0.13);
    justify-content: space-between;
    flex-wrap: wrap;
    animation: cookie-slidein 0.55s cubic-bezier(.31,.82,.44,1) 1;
}
.cookie-banner__text {
    font-size: 1rem;
    max-width: 520px;
}
.cookie-banner__actions {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 14px;
}
.cookie-banner button {
    font-family: 'Roboto', Arial, sans-serif;
    font-weight: 600;
    border: none;
    outline: none;
    border-radius: 22px;
    padding: 9px 18px;
    margin: 0;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.18s, color 0.15s, box-shadow 0.19s;
}
.cookie-banner .cookie-accept {
    color: #204060;
    background: #FFD066;
}
.cookie-banner .cookie-accept:hover {
    background: #7AAAC7;
    color: #fff;
}
.cookie-banner .cookie-reject {
    color: #204060;
    background: #fff;
    border: 1px solid #7AAAC7;
}
.cookie-banner .cookie-reject:hover {
    background: #204060;
    color: #fff;
    border-color: #204060;
}
.cookie-banner .cookie-settings {
    color: #7AAAC7;
    background: transparent;
    border: 1.2px solid #7AAAC7;
}
.cookie-banner .cookie-settings:hover {
    background: #7AAAC7;
    color: #fff;
}
@keyframes cookie-slidein {
    0% { transform: translateY(110%); opacity: 0; }
    88% { opacity: 1; }
    100% { transform: translateY(0); opacity: 1; }
}
@media (max-width: 650px) {
    .cookie-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }
    .cookie-banner__actions { width: 100%; }
}

/* ---- Cookie Modal ---- */
.cookie-modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: rgba(32,64,96,0.24);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: cookie-modal-fade-in 0.25s;
}
@keyframes cookie-modal-fade-in {
    0% {opacity: 0;}
    100% {opacity: 1;}
}
.cookie-modal {
    background: #fff;
    color: #204060;
    border-radius: 18px;
    max-width: 450px;
    width: 95vw;
    padding: 34px 26px 20px 26px;
    box-shadow: 0 16px 44px rgba(32,64,96,0.18);
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 18px;
    animation: cookie-modal-popin 0.25s cubic-bezier(.39,.79,.52,1.11);
}
@keyframes cookie-modal-popin {
    0% {transform: scale(0.7); opacity: 0;}
    100% {transform: scale(1); opacity: 1;}
}
.cookie-modal .modal-close {
    position: absolute;
    top: 12px; right: 14px;
    font-size: 1.7rem;
    background: none;
    color: #204060;
    border: none;
    cursor: pointer;
    transition: color 0.17s;
}
.cookie-modal .modal-close:focus,
.cookie-modal .modal-close:hover {
    color: #7AAAC7;
}
.cookie-modal h2 {
    color: #204060;
    font-size: 1.2rem;
    margin-bottom: 6px;
}
.cookie-modal ul {
    margin-left: 18px;
    margin-bottom: 8px;
}
.cookie-modal li {
    margin-bottom: 8px;
    color: #204060;
}
.cookie-category {
    font-weight: 700;
    color: #204060;
    margin-bottom: 6px;
}
.cookie-toggle {
    appearance: none;
    width: 34px;
    height: 18px;
    background: #E1ECF2;
    outline: none;
    border-radius: 30px;
    box-shadow: inset 0 1px 4px rgba(32,64,96,0.08);
    transition: background 0.2s;
    position: relative;
    vertical-align: middle;
}
.cookie-toggle:checked {
    background: #7AAAC7;
}
.cookie-toggle::after {
    content: '';
    position: absolute;
    top: 2.5px; left: 3px;
    width: 14px; height: 14px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(32,64,96,0.17);
    transition: left 0.19s;
}
.cookie-toggle:checked::after {
    left: 17px;
}

.cookie-modal .cookie-actions {
    display: flex;
    flex-direction: row;
    gap: 16px;
    margin-top: 13px;
    justify-content: flex-end;
}

.cookie-modal .cookie-actions button {
    font-family: 'Roboto', Arial, sans-serif;
    font-weight: 700;
    border-radius: 22px;
    min-width: 100px;
    font-size: 1rem;
    padding: 8px 18px;
    border: none;
    cursor: pointer;
    transition: background 0.18s, color 0.18s;
}
.cookie-modal .cookie-accept {
    background: #204060;
    color: #fff;
}
.cookie-modal .cookie-accept:hover {
    background: #7AAAC7;
}
.cookie-modal .cookie-reject {
    background: #fff;
    color: #204060;
    border: 1px solid #7AAAC7;
}
.cookie-modal .cookie-reject:hover {
    background: #F2F4F8;
    color: #204060;
}

@media (max-width: 500px) {
    .cookie-modal {
        padding: 23px 8px 17px 12px;
        max-width: 95vw;
    }
}

/* -------------------
   MISCELLANEOUS UTILITY
---------------------- */
::-webkit-input-placeholder { color: #7AAAC7; }
:-moz-placeholder { color: #7AAAC7; }
::-moz-placeholder { color: #7AAAC7; }
:-ms-input-placeholder { color: #7AAAC7; }

hr {
    border: none;
    border-top: 1px solid #E1ECF2;
    margin: 38px 0;
}

/* Spacing override for content-cards eg. multiple testimonials */
.content-wrapper > .testimonial-card:not(:last-child),
.content-wrapper > .card:not(:last-child),
.card-container > .card:not(:last-child) {
    margin-bottom: 20px;
}

/* Responsive section paddings */
@media (max-width: 650px) {
    .section {
        padding: 26px 4vw;
        margin-bottom: 35px;
    }
    .content-wrapper {
        gap: 16px;
    }
}

/* Hide visual clutter on smallest screens */
@media (max-width: 480px) {
    .section {
        padding: 16px 2vw 10px 2vw;
    }
    .btn-primary, .btn-secondary {
        min-width: 120px;
        font-size: 0.99rem;
        padding: 9px 11px;
    }
    header nav a.btn-primary, .btn-primary {
        padding: 7px 7vw;
    }
    .testimonial-card, .feature-grid > div {
        padding: 13px 6vw 14px 7vw;
        font-size: 0.92rem;
    }
}
