/* CSS RESET & NORMALIZE */
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;
    scroll-behavior: smooth;
}
*, *:before, *:after {
    box-sizing: inherit;
}
body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background: #F2F2F2;
    color: #204D74;
    font-size: 16px;
    line-height: 1.6;
    min-height: 100vh;
    transition: background 0.3s;
}
img {
    max-width: 100%;
    display: block;
}
a {
    text-decoration: none;
    color: #204D74;
    transition: color 0.2s;
}
a:focus,
a:hover {
    color: #FFB200;
    outline: none;
}
ul, ol {
    list-style-position: inside;
    padding-left: 0;
    margin-left: 0;
}
strong {
    font-weight: 700;
}
input[type="search"] {
    padding: 12px 18px;
    border-radius: 16px;
    border: 2px solid #FFB200;
    font-size: 16px;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    width: 100%;
    margin-top: 20px;
    background-color: #fffbe5;
}
input[type="search"]:focus {
    border-color: #204D74;
    box-shadow: 0 0 0 3px #ffd55a33;
}

/* COLORS & TYPO */
:root {
    --primary: #204D74;
    --secondary: #F2F2F2;
    --accent: #FFB200;
    --white: #fff;
    --success: #32db63;
    --danger: #ff3d3d;
    --info: #30b7ff;
    --shadow-md: 0 4px 24px 0 rgba(32,77,116,0.06);
    --shadow-lg: 0 8px 32px 0 rgba(32,77,116,0.12);
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 8px;
}
h1, h2, h3, h4, h5 {
    font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: var(--primary);
}
h1 {
    font-size: 2.375rem;
    margin-bottom: 22px;
    line-height: 1.15;
    text-shadow: 2px 4px 0 rgba(255,178,0,0.11);
}
h2 {
    font-size: 1.7rem;
    margin-bottom: 20px;
}
h3 {
    font-size: 1.22rem;
    margin-bottom: 14px;
}
h4,
h5 {
    font-size: 1rem;
    margin-bottom: 8px;
}
p {
    color: #3a566e;
    margin-bottom: 15px;
}
section p:last-child {
    margin-bottom: 0;
}
.section {
    margin-bottom: 60px;
    padding: 40px 20px;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 0 16px;
}
.content-wrapper {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
    margin-top: 12px;
}

/* MAIN NAVIGATION */
header {
    background: var(--white);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.main-nav {
    display: flex;
    align-items: center;
    gap: 16px;
    justify-content: flex-start;
    flex-wrap: wrap;
    padding: 16px 20px;
    font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
    background: transparent;
}
.main-nav > a {
    padding: 8px 13px;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--primary);
    background: none;
    transition: background 0.18s, color 0.18s, box-shadow 0.18s;
    position: relative;
}
.main-nav > a.cta-primary {
    background: var(--accent);
    color: var(--primary);
    font-weight: 700;
    border-radius: var(--radius-md);
    padding: 10px 22px;
    box-shadow: 0 2px 10px 0 #FFB20033;
    position: relative;
    overflow: hidden;
    z-index: 1;
}
.main-nav > a.cta-primary:hover, 
.main-nav > a.cta-primary:focus {
    background: #ffd55a;
    color: var(--primary);
    box-shadow: 0 4px 14px 0 #FFB2003b;
    transform: translateY(-2px) scale(1.04);
}
.main-nav > a:after {
    content: '';
    display: block;
    width: 0%;
    height: 3px;
    background: var(--accent);
    border-radius: 3px;
    margin-top: 4px;
    transition: width 0.25s;
}
.main-nav > a:hover:after,
.main-nav > a:focus:after {
    width: 70%;
}
.main-nav img {
    height: 38px;
    width: auto;
    margin-right: 16px;
}

/* MOBILE MENU */
.mobile-menu-toggle {
    display: none;
    position: absolute;
    top: 15px;
    right: 18px;
    z-index: 1120;
    background: var(--accent);
    color: var(--primary);
    border: none;
    font-size: 2rem;
    border-radius: 50%;
    width: 46px;
    height: 46px;
    box-shadow: var(--shadow-md);
    transition: background 0.1s, box-shadow 0.1s, transform 0.19s;
    cursor: pointer;
}
.mobile-menu-toggle:active {
    transform: scale(0.97);
}
.mobile-menu {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: var(--white);
    z-index: 1210;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.86, 0, 0.07, 1);
    box-shadow: -6px 0 30px 0 rgba(32,77,116,0.12);
    flex-direction: column;
    padding-top: 22px;
}
.mobile-menu.open {
    display: flex;
    transform: translateX(0);
}
.mobile-menu-close {
    background: transparent;
    border: none;
    color: var(--primary);
    font-size: 2.25rem;
    position: absolute;
    top: 18px;
    right: 28px;
    cursor: pointer;
    z-index: 1220;
    transition: color 0.17s, transform 0.15s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
    color: var(--accent);
    transform: scale(1.1);
}
.mobile-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin: 70px 0 0 38px;
    gap: 22px;
}
.mobile-nav a {
    color: var(--primary);
    font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    padding: 10px 0;
    border-radius: 10px;
    transition: background 0.14s, color 0.14s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
    background: #FFB20022;
    color: #FFB200;
}

@media (max-width: 1020px) {
    .main-nav {
        gap: 8px;
        font-size: 0.98rem;
    }
    .main-nav > a {
        padding: 8px 8px;
    }
}
@media (max-width: 900px) {
    .main-nav > a:not(:first-child) {
        padding-left: 4px;
        padding-right: 4px;
    }
}
@media (max-width: 800px) {
    .main-nav {
        gap: 6px;
    }
}
@media (max-width: 768px) {
    .main-nav {
        display: none;
    }
    .mobile-menu-toggle {
        display: block;
    }
    .container {
        padding-left: 7px;
        padding-right: 7px;
    }
    body {
        font-size: 15px;
    }
}

/* HERO/SECTIONS */
section {
    background: var(--secondary);
    border-radius: var(--radius-lg);
    margin-bottom: 60px;
    padding: 40px 20px;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: visible;
    z-index: 1;
    animation: popSection 0.7s cubic-bezier(0.33,1,0.68,1) 1;
}
@keyframes popSection {
    0% {transform: translateY(32px) scale(0.97);opacity:0;}
    80% {opacity: 0.97;}
    100% {transform: none;opacity:1;}
}
.section-accent {
    background: #ffe4ad51;
}
.section .container {
    align-items: flex-start;
    gap: 0;
}

/* FLEXBOX PATTERNS */
.card-container {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}
.card {
    margin-bottom: 20px;
    min-width: 260px;
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    padding: 28px 20px 20px 20px;
    position: relative;
    transition: box-shadow 0.18s, transform 0.18s;
    z-index: 1;
}
.card:hover, .card:focus-within {
    box-shadow: var(--shadow-lg);
    transform: translateY(-7px) scale(1.025);
}
.card-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
}
.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;
}
.testimonial-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 20px;
    margin-bottom: 20px;
    max-width: 540px;
    min-width: 260px;
    font-size: 1.1rem;
    color: #1d2741;
    flex: 1 1 320px;
    transition: box-shadow .17s, transform .13s;
    position: relative;
}
.testimonial-card strong {
    color: var(--accent);
    font-size: 1rem;
}
.testimonial-card:hover, .testimonial-card:focus-within {
    box-shadow: var(--shadow-lg);
    transform: translateY(-6px) scale(1.012);
    background: #fffbe6;
}
.star-ratings {
    display: flex;
    gap: 2px;
    align-items: center;
}
.feature-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
}

/* BUTTONS & CTA */
.cta-primary, .cta-secondary {
    display: inline-flex;
    align-items: center;
    padding: 12px 30px;
    border-radius: var(--radius-md);
    font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.025em;
    border: none;
    cursor: pointer;
    outline: none;
    box-shadow: 0 3px 11px #ffb20018;
    transition: background 0.18s, color 0.19s, transform 0.19s, box-shadow 0.19s;
    position: relative;
    margin-top: 18px;
    margin-bottom: 8px;
}
.cta-primary {
    background: var(--accent);
    color: var(--primary);
}
.cta-primary:hover, .cta-primary:focus {
    background: #ffd55a;
    color: var(--primary);
    box-shadow: 0 5px 22px #ffb20033;
    transform: translateY(-2px) scale(1.04) rotate(-1deg);
}
.cta-secondary {
    background: #fff;
    color: var(--accent);
    border: 2px solid var(--accent);
    box-shadow: 0 2px 8px #ffb20011;
}
.cta-secondary:hover, .cta-secondary:focus {
    background: var(--accent);
    color: var(--primary);
    border-color: #FFD947;
    box-shadow: 0 6px 12px #ffb2002e;
    transform: scale(1.035) rotate(2deg);
}

/* LISTS, ICONS, BADGES */
ul li, ol li {
    margin-bottom: 7px;
    line-height: 1.7;
    position: relative;
    padding-left: 0;
}
ul li img, ol li img {
    height: 24px;
    width: 24px;
    margin-right: 8px;
    vertical-align: middle;
    display: inline-block;
    margin-bottom: -5px;
}
ul li strong {
    color: var(--primary);
}

/* TRUST SYMBOLS */
.trust-symbols {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 16px;
}
.trust-symbols img {
    height: 38px;
    width: auto;
    opacity: 0.92;
}

/* FOOTER */
footer {
    background: var(--primary);
    color: var(--white);
    padding: 32px 0 14px 0;
    font-size: 1rem;
}
footer .container {
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 17px;
    align-items: center;
    justify-content: center;
}
.footer-nav a {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.97rem;
    padding: 4px 10px;
    border-radius: 12px;
    transition: background 0.14s, color 0.12s;
}
.footer-nav a:hover,
.footer-nav a:focus {
    background: #fff4d3;
    color: var(--primary);
}
footer p {
    margin-top: 4px;
    font-size: 0.97rem;
    color: #e8be4f;
}

/* COOKIE BANNER & MODAL */
#cookie-consent-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    border-top: 4px solid var(--accent);
    box-shadow: 0 -7px 30px rgba(32,77,116,0.12);
    padding: 20px 18px 25px 18px;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    animation: cookiein 0.6s cubic-bezier(.55,0,.67,1);
}
@keyframes cookiein {
    0%{transform: translateY(100px) scale(.97);opacity:.2;} 90%{opacity:.98;} 100%{transform:none;opacity:1;}
}
#cookie-consent-banner p{
    color: #1d2741;
    font-size: 1rem;
    margin-bottom: 0;
    flex: 1;
}
#cookie-consent-banner .cookie-btn-row{
    display:flex; gap: 12px; flex-wrap:wrap;
}
.cookie-btn {
    appearance: none;
    padding: 9px 23px;
    border-radius: 14px;
    border: none;
    font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.16s, color 0.16s, box-shadow 0.16s, transform .14s;
    outline: none;
    box-shadow: 0 2px 10px #ffd55a23;
    margin: 0 0 0 8px;
}
.cookie-btn.accept {
    background: var(--success);
    color: var(--white);
}
.cookie-btn.accept:hover,
.cookie-btn.accept:focus {
    background: #22ba45;
}
.cookie-btn.reject {
    background: var(--danger);
    color: var(--white);
}
.cookie-btn.reject:hover,
.cookie-btn.reject:focus {
    background: #e01737;
}
.cookie-btn.settings {
    background: var(--info);
    color: var(--white);
}
.cookie-btn.settings:hover,
.cookie-btn.settings:focus {
    background: #219ddb;
}
#cookie-modal {
    display: none;
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-52%) scale(0.98);
    width: 97vw; max-width: 400px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 48px rgba(32,77,116,0.25);
    z-index: 2100;
    padding: 32px 26px 26px 26px;
    animation: popupin 0.34s cubic-bezier(0.46,0,0.4,1.02);
}
@keyframes popupin {
    0%{transform: translate(-50%,8%) scale(.92);opacity:0;}
    85%{opacity:0.97;}
    100%{transform: translate(-50%,-52%) scale(0.98);opacity:1;}
}
#cookie-modal.open {
    display: block;
}
#cookie-modal h3 {
    margin-bottom: 18px;
    font-size: 1.18rem;
    color: var(--primary);
}
.cookie-preference-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}
.cookie-preference-item input[type="checkbox"] {
    accent-color: var(--accent);
    width: 22px; height: 22px;
}
.cookie-preference-item label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
    user-select: none;
}
.cookie-modal-actions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.cookie-modal-close {
    position: absolute;
    top: 17px;
    right: 20px;
    background: transparent;
    border: none;
    color: var(--primary);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 2;
    transition: color .13s;
}
.cookie-modal-close:hover,
.cookie-modal-close:focus {
    color: var(--danger);
}

/* PLAYFUL/DYNAMIC EXTRAS */
@keyframes wiggle {
    0%,100%{transform:rotate(-3deg);} 25%{transform:rotate(3deg);} 50%{transform:rotate(-4deg);} 75%{transform:rotate(2deg);}
}
.cta-primary, .cta-secondary, .mobile-menu-toggle {
    animation: wiggle 3.7s infinite cubic-bezier(.45,0,.55,1.03);
}
.cta-primary:hover, .cta-secondary:hover {
    animation: none;
}
section, .card, .testimonial-card {
    border-bottom: 7px solid #ffd55a55;
    background-clip: padding-box;
}
.card:before, .testimonial-card:before {
    content: '';
    position: absolute;
    top: -13px;
    right: 25px;
    width: 60px;
    height: 18px;
    background: #ffb2005c;
    border-radius: 40px 40px 0 0/20px 20px 0 0;
    opacity: 0.37;
    z-index: 0;
    pointer-events: none;
    animation: playfulBar 2.8s alternate infinite cubic-bezier(.74,0,.47,1.0);
}
@keyframes playfulBar {
    0%{width:60px;} 100%{width:85px;left:10px;}
}

/* Responsive LAYOUTS & FLEXBOX CORRECTNESS */
@media (max-width: 1080px) {
    .container { max-width: 97vw; }
    .card-container, .content-grid,
    .text-image-section, .trust-symbols { flex-direction: column; gap: 16px; }
    .testimonial-card { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 900px) {
    section {
        padding: 32px 8px;
    }
}
@media (max-width: 768px) {
    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.18rem; }
    h3 { font-size: 1rem; }
    section { padding: 30px 5px; border-radius: 19px; }
    .content-grid, .text-image-section, 
    .card-container, .testimonial-card { flex-direction: column !important; align-items: flex-start !important; gap: 14px !important; }
    .testimonial-card {
        max-width: 100vw; min-width: unset;
        padding: 13px 9px;
    }
    .trust-symbols { gap: 7px; }
    .footer-nav { gap: 12px; font-size: 0.93rem; }
}
@media (max-width: 600px) {
    .card, .testimonial-card {
        padding: 15px 8px 13px 10px;
        margin-bottom: 13px;
        border-radius: 13px;
    }
    section {
        border-radius: 11px;
    }
}

/* VISUALS & MICRO-INTERACTIONS */
.card, .testimonial-card, .cta-primary, .cta-secondary, .cookie-btn {
    transition: box-shadow .17s, background .17s, color .18s, transform .17s;
}
.card:active, .testimonial-card:active {
    transform: scale(0.985) translateY(3px) rotate(-1deg);
}

/* Utilities */
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mt-2 { margin-top: 8px !important; }
.mb-2 { margin-bottom: 8px !important; }
.mt-3 { margin-top: 16px !important; }
.mb-3 { margin-bottom: 16px !important; }
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-accent { color: var(--accent); }
.bg-accent { background: #fffbe6; }

/* Accessibility: focus outlines */
a:focus, .cta-primary:focus, .cta-secondary:focus, input:focus, button:focus {
    outline: 2px dashed #FFB200;
    outline-offset: 2px;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
    background: #ffeeb833;
}
::-webkit-scrollbar-thumb {
    background: #ffb20099;
    border-radius: 6px;
}

/* Print safe: Remove banner/modal */
@media print {
  #cookie-consent-banner, #cookie-modal { display: none !important; }
}
