/* RESET & BASE --------------------------------------------------- */
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, main, 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;
}
article, aside, details, figcaption, figure,
footer, header, hgroup, main, menu, nav, section {
    display: block;
}
b,
strong {
  font-weight: 700;
}

body {
    line-height: 1.6;
    background: #F3F7FA;
    color: #223A58;
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    overflow-x: hidden;
}

/* TYPOGRAPHY ----------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
    font-family: 'IBM Plex Sans', 'Open Sans', Arial, sans-serif;
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.15;
    color: #223A58;
}
h1 {
    font-size: 2.5rem;
    margin-bottom: 18px;
}
h2 {
    font-size: 2rem;
    margin-bottom: 16px;
}
h3 {
    font-size: 1.28rem;
    margin-bottom: 8px;
    font-weight: 700;
}
h4, h5, h6 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
}
p, ul, ol, blockquote, pre {
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 1rem;
    margin-bottom: 12px;
}
ul, ol {
    padding-left: 24px;
    margin-bottom: 18px;
    list-style-type: disc;
}
li {
    margin-bottom: 8px;
}
blockquote {
    font-style: italic;
    padding-left: 18px;
    border-left: 5px solid #407A52;
    background: #F3F7FA;
    border-radius: 10px;
    color: #223A58;
}
a {
    color: #407A52;
    text-decoration: underline;
    transition: color .2s;
}
a:hover, a:focus {
    color: #FFB627;
    text-decoration: none;
}
img {
    max-width: 100%;
    display: inline-block;
}

/* LAYOUT WRAPPERS ------------------------------------------------ */
.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}
.content-wrapper {
    width: 100%;
}
.section {
    margin-bottom: 60px;
    padding: 40px 20px;
}

/* HEADER & MAIN NAV ---------------------------------------------- */
header {
    background: #FFF;
    box-shadow: 0 2px 20px 0 rgba(34,58,88,0.06);
    position: relative;
    z-index: 30;
}
.header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 0;
}
header img {
    height: 48px;
    width: auto;
}
.main-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
}
.main-nav a {
    font-family: 'IBM Plex Sans', Arial, sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: #223A58;
    padding: 10px 0;
    border-radius: 4px;
    background: transparent;
    transition: background .2s, color .2s;
}
.main-nav a:hover, .main-nav a:focus {
    background: #FFB627;
    color: #223A58;
}

/* BUTTONS ------------------------------------------------------- */
.btn-primary {
    display: inline-block;
    background: #FFB627;
    color: #223A58;
    font-family: 'IBM Plex Sans', Arial, sans-serif;
    font-weight: 800;
    padding: 12px 30px;
    font-size: 1rem;
    border-radius: 28px;
    border: none;
    margin-left: 12px;
    box-shadow: 0 2px 6px 0 rgba(34,58,88,0.09);
    cursor: pointer;
    transition: background .22s, color .2s, transform .18s;
    position: relative;
    outline: none;
}
.btn-primary:after {
    content: '';
    display: block;
    position: absolute;
    left: 24px; right: 24px; bottom: 7px; height: 3px;
    background: #407A52;
    opacity: 0;
    border-radius: 6px;
    transition: opacity .3s;
}
.btn-primary:hover, .btn-primary:focus {
    background: #407A52;
    color: #FFF;
    transform: translateY(-1px) scale(1.045) rotate(-2deg);
}
.btn-primary:hover:after, .btn-primary:focus:after {
    opacity: 0.21;
}

/* MOBILE MENU --------------------------------------------------- */
.mobile-menu-toggle {
    display: none;
    background: #FFB627;
    border: none;
    border-radius: 14px;
    font-size: 2rem;
    width: 48px;
    height: 48px;
    color: #223A58;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 22px;
    right: 22px;
    z-index: 60;
    box-shadow: 0 3px 8px 0 rgba(34,58,88,0.07);
    transition: background .2s, color .2s, box-shadow .2s;
}
.mobile-menu-toggle:active {
    background: #407A52;
    color: #FFF;
}
.mobile-menu {
    position: fixed;
    display: flex;
    flex-direction: column;
    top: 0; left: 0; right: 0; bottom: 0;
    background: #FFF;
    z-index: 150;
    transform: translateX(100%);
    transition: transform .43s cubic-bezier(.77,.2,.05,1);
    box-shadow: -9px 0 40px 0 rgba(34,58,88,0.11);
    padding: 40px 30px 24px 30px;
    pointer-events: none;
    opacity: 0;
}
.mobile-menu.open {
    transform: translateX(0);
    pointer-events: all;
    opacity: 1;
}
.mobile-menu-close {
    background: #FFB627;
    color: #223A58;
    border: none;
    border-radius: 18px;
    font-size: 2rem;
    width: 48px;
    height: 48px;
    position: absolute;
    top: 20px;
    right: 28px;
    cursor: pointer;
    z-index: 210;
    align-items: center;
    justify-content: center;
    transition: background .2s, color .2s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
    background: #407A52;
    color: #FFF;
}
.mobile-nav {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 18px;
    margin-top: 84px;
}
.mobile-nav a {
    font-family: 'IBM Plex Sans', Arial, sans-serif;
    font-weight: bold;
    color: #223A58;
    font-size: 1.23rem;
    padding: 18px 0 10px 0;
    border-bottom: 2px dotted #223A58;
    border-radius: 0;
    transition: color .22s, background .22s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
    color: #407A52;
    background: #FFB627;
}

/* HERO/CTA -- PLAYFUL DYNAMIC ANIMATION --------------------------- */
.hero-section {
    background: linear-gradient(120deg, #FFB627 40%, #F3F7FA 100%);
    padding: 48px 0 32px 0;
    border-radius: 0 0 48px 48px;
    box-shadow: 0 6px 36px 0 rgba(34,58,88,.08);
    position: relative;
}
.hero-section h1 {
    font-size: 2.6rem;
    font-family: 'IBM Plex Sans', Arial, sans-serif;
    color: #223A58;
    margin-bottom: 1rem;
    animation: popInHero 0.8s cubic-bezier(.49,1.74,.45,.97) 1;
}
@keyframes popInHero {
    0% { opacity: 0; transform: scale(0.92) translateY(50px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}
.hero-section p {
    font-size: 1.19rem;
    color: #223A58;
    margin-bottom: 24px;
    animation: popInHero 1.1s 0.15s cubic-bezier(.49,1.74,.45,.97) backwards;
}
.hero-section .btn-primary {
    font-size: 1.1rem;
    animation: popInHero 1.2s .23s cubic-bezier(.49,1.74,.45,.97) backwards;
}


/* FEATURE GRID / BLOG GRID / CARD CONTAINERS --------------------- */
.feature-grid,
.blog-grid,
.testimonial-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin: 34px 0 0 0;
}
.feature-grid > li,
.blog-grid > li {
    background: #FFF;
    border-radius: 22px;
    box-shadow: 0 4px 18px 0 rgba(34,58,88,0.10);
    padding: 26px 24px 24px 24px;
    flex: 1 1 360px;
    min-width: 270px;
    max-width: 415px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
    position: relative;
    transition: transform .16s, box-shadow .13s;
    border: 3px solid transparent;
    cursor: pointer;
}
.feature-grid > li:hover,
.blog-grid > li:hover {
    transform: translateY(-4px) scale(1.023) rotate(-2deg);
    box-shadow: 0 10px 34px 0 rgba(34,58,88,.11);
    border-color: #FFB627;
}
.feature-grid img {
    width: 40px; height: 40px; margin-bottom: 8px; animation: floatIcon 3s ease-in-out infinite;
}
@keyframes floatIcon {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-9px) rotate(-8deg); }
}

/* TESTIMONIALS --------------------------------------------------- */
.testimonials-section {
    background: #FFF;
    border-radius: 28px;
    box-shadow: 0 3px 19px 0 rgba(34,58,88,0.08);
    padding: 44px 0 50px 0;
    margin-bottom: 60px;
}
.testimonial-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 30px;
    justify-content: flex-start;
}
.testimonial-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    background: #F3F7FA;
    border-radius: 18px;
    box-shadow: 0 4px 20px 0 rgba(64,122,82,0.06);
    padding: 26px 32px 20px 24px;
    margin-bottom: 20px;
    min-width: 255px;
    max-width: 350px;
    transition: box-shadow .2s, transform .17s;
}
.testimonial-card blockquote {
    color: #223A58;
    font-size: 1.06rem;
    margin: 0 0 4px 0;
    background: none;
    border-left: 5px solid #407A52;
    padding-left: 10px;
    border-radius: 0 10px 10px 0;
}
.testimonial-card strong {
    color: #407A52;
}
.testimonial-card .rating {
    color: #FFB627;
    letter-spacing: 0.18em;
    font-size: 1.16rem;
    font-family: 'IBM Plex Sans', Arial, sans-serif;
    font-weight: 800;
}
.testimonial-card:hover {
    box-shadow: 0 12px 35px 0 rgba(64,122,82,0.13);
    transform: translateY(-3px) scale(1.03);
}

/* CARDS GENERIC -------------------------------------------------- */
.card-container {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}
.card {
    margin-bottom: 20px;
    position: relative;
    background: #FFF;
    border-radius: 17px;
    box-shadow: 0 2px 14px 0 rgba(34,58,88,0.08);
    padding: 28px 22px;
    display: flex;
    flex-direction: column;
    gap: 11px;
    transition: box-shadow .18s, transform .14s;
}
.card:hover {
    box-shadow: 0 7px 22px 0 rgba(255,182,39,0.17);
    transform: scale(1.03) rotate(1.3deg);
}

.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;
}
.feature-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
}

.text-section {
    padding: 32px 0 18px 0;
}

/* CTA SECTION ---------------------------------------------------- */
.cta-section {
    background: #407A52;
    color: #FFF;
    border-radius: 30px;
    box-shadow: 0 3px 12px 0 rgba(64,122,82,0.07);
    padding: 38px 24px 32px 24px;
    margin-bottom: 60px;
    text-align: center;
    position: relative;
}
.cta-section h2 {
    color: #FFF;
    font-weight: 900;
    margin-bottom: 18px;
}
.cta-section .btn-primary {
    background: #FFF;
    color: #407A52;
    font-weight: 800;
    margin: 10px 0 12px 0;
}
.cta-section .btn-primary:hover {
    background: #FFB627;
    color: #223A58;
}
.cta-section p,
.cta-section .contact-note {
    color: #E4FBF3;
    font-size: 1rem;
    margin-top: 10px;
}

/* FOOTER -------------------------------------------------------- */
footer {
    background: #223A58;
    padding: 32px 0 20px 0;
    border-radius: 34px 34px 0 0;
    box-shadow: 0 -2px 22px 0 rgba(34,58,88,0.09);
    color: #FFF;
}
.footer-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 36px;
    justify-content: space-between;
}
.footer-row a img {
    width: 42px;
    height: auto;
}
.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 13px;
}
.footer-nav a {
    color: #FFF;
    font-size: 1rem;
    font-family: 'IBM Plex Sans', Arial, sans-serif;
    font-weight: 600;
    transition: color .17s, background .17s;
    border-radius: 5px;
    padding: 4px 8px;
}
.footer-nav a:hover {
    color: #FFB627;
    background: #FFF2B5;
}
.footer-contact-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.99rem;
    color: #FFF;
}
.footer-contact-info a {
    color: #FFB627;
    word-break: break-all;
    text-decoration: none;
}
.footer-contact-info a:hover {
    text-decoration: underline;
}

/* LEGAL SECTIONS ------------------------------------------------ */
.legal-section {
    background: #FFF;
    border-radius: 22px;
    box-shadow: 0 2px 16px 0 rgba(34,58,88,0.07);
    padding: 44px 20px 40px 20px;
    margin-bottom: 60px;
}

/* COOKIE CONSENT BANNER/BUTTONS/MODAL --------------------------- */
.cookie-banner {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    background: #223A58;
    color: #FFF;
    z-index: 5000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 -2px 18px 0 rgba(34,58,88,0.10);
    padding: 32px 24px 28px 24px;
    border-radius: 18px 18px 0 0;
    animation: slideUpCookie .5s cubic-bezier(.57,1.1,.29,.95);
}
@keyframes slideUpCookie {
    0% { transform: translateY(90px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}
.cookie-banner-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 10px;
}
.cookie-banner .btn-cookie {
    background: #FFB627;
    color: #223A58;
    border: none;
    border-radius: 20px;
    padding: 10px 24px;
    font-weight: 700;
    font-family: 'IBM Plex Sans', Arial, sans-serif;
    font-size: 1rem;
    box-shadow: 0 1px 6px 0 rgba(255,182,39,0.14);
    cursor: pointer;
    margin-right: 8px;
    transition: background .19s, color .15s, box-shadow .21s;
    outline: none;
}
.cookie-banner .btn-cookie:hover, .cookie-banner .btn-cookie:focus {
    background: #407A52;
    color: #FFF;
}
.cookie-banner .btn-cookie-settings {
    background: #FFF;
    color: #223A58;
    border: 2px solid #FFB627;
}
.cookie-banner .btn-cookie-settings:hover, .cookie-banner .btn-cookie-settings:focus {
    background: #FFB627;
    color: #223A58;
}
.cookie-modal {
    position: fixed;
    left: 0; right: 0; top: 0; bottom: 0;
    background: rgba(34,58,88,0.13);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: opacity .3s, visibility .3s;
}
.cookie-modal.open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}
.cookie-modal-content {
    background: #FFF;
    padding: 40px 32px;
    border-radius: 22px;
    min-width: 320px;
    max-width: 380px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    box-shadow: 0 12px 48px 0 rgba(34,58,88,0.14);
    animation: modalFadeIn .36s cubic-bezier(.56,1.35,.59,1.02);
}
@keyframes modalFadeIn {
    0% { transform: scale(0.93) translateY(44px); opacity: 0; }
    100% { transform: scale(1) translateY(0); opacity: 1; }
}
.cookie-modal-header {
    font-size: 1.19rem;
    font-weight: bold;
    color: #223A58;
}
.cookie-category {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
}
.cookie-switch {
    position: relative;
    display: inline-block;
    width: 42px;
    height: 22px;
}
.cookie-switch input { opacity: 0; width: 0; height: 0; }
.cookie-slider {
    position: absolute; cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background: #E7EDEF;
    border-radius: 22px;
    transition: background .2s;
}
.cookie-switch input:checked + .cookie-slider {
    background: #FFB627;
}
.cookie-slider:before {
    content: "";
    position: absolute;
    left: 4px; top: 3px;
    width: 16px; height: 16px;
    border-radius: 50%;
    background: #FFF;
    box-shadow: 0 1px 6px rgba(34,58,88,0.10);
    transition: transform .19s;
}
.cookie-switch input:checked + .cookie-slider:before {
    transform: translateX(18px);
}
.cookie-category .locked {
    font-size: 1.13rem;
    color: #407A52;
    margin-left: 4px;
}
.cookie-modal-actions {
    display: flex;
    gap: 16px;
    justify-content: flex-end;
}
.cookie-modal-close {
    background: none;
    border: none;
    color: #223A58;
    font-size: 1.3rem;
    cursor: pointer;
    position: absolute;
    top: 20px;
    right: 38px;
}

/* RESPONSIVE ---------------------------------------------------- */
@media (max-width: 1024px) {
    .container { max-width: 900px; }
    .header-row, .footer-row {
        gap: 20px;
        flex-wrap: wrap;
    }
    .feature-grid, .blog-grid, .testimonial-grid {
        gap: 14px;
    }
    .card-container {
        gap: 14px;
    }
}
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.4rem; }
    .header-row {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
        padding: 12px 0;
    }
    .main-nav {
        display: none;
    }
    .mobile-menu-toggle {
        display: flex;
    }
    .btn-primary {
        margin-left: 0;
    }
    .container {
        padding: 0 10px;
        max-width: 100vw;
    }
    .hero-section {
        padding: 32px 0 20px 0;
        border-radius: 0 0 22px 22px;
        min-height: 320px;
    }
    .feature-grid, .blog-grid, .testimonial-grid, .card-container, .footer-row {
        flex-direction: column;
        gap: 18px;
    }
    .content-grid, .footer-row {
        flex-direction: column;
    }
    .text-image-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    .section, .legal-section {
        margin-bottom: 30px;
        padding: 24px 6px;
    }
    .cta-section {
        padding: 26px 8px 24px 8px;
    }
    .testimonial-card, .card, .feature-grid > li, .blog-grid > li {
        max-width: 100%;
        min-width: 0;
    }
    .cookie-modal-content {
        min-width: 90vw;
        max-width: 97vw;
        padding: 22px 7vw;
    }
}
@media (max-width: 480px) {
    html, body { font-size: 15px; }
    h1 { font-size: 1.47rem; }
    h2 { font-size: 1.14rem; }
    .cookie-modal-header { font-size: 1.06rem; }
    .cookie-banner { padding: 21px 4vw 13px 4vw; }
}

/* PLAYFUL MICRO-ANIMATIONS -------------------------------------- */
.btn-primary, .btn-cookie, .feature-grid > li, .testimonial-card, .card, .blog-grid > li {
    transition: box-shadow .13s, color .18s, transform .14s, border-color .13s, background .22s;
}
.feature-grid > li:hover, .blog-grid > li:hover {
    filter: brightness(1.07);
}
.btn-primary:active {
    filter: brightness(.95);
    transform: scale(0.97) rotate(-1deg);
}

/* UTIL ---------------------------------------------------------- */
.hide { display: none !important; }

/* Custom Scrollbar ---------------------------------------------- */
::-webkit-scrollbar {
    width: 8px;
    background: #F3F7FA;
}
::-webkit-scrollbar-thumb {
    background: #FFB627;
    border-radius: 10px;
}

/* Accessibility: Focus Ring ------------------------------------- */
a:focus, button:focus, .btn-primary:focus, .btn-cookie:focus, .mobile-menu-toggle:focus, .mobile-menu-close:focus {
    outline: 2px solid #407A52;
    outline-offset: 2px;
}

/* Selection ----------------------------------------------------- */
::selection {
    background: #FFECB2;
    color: #223A58;
}

/* END ----------------------------------------------------------- */
