/* =======================
   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,
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;
}
body {
    line-height: 1.5;
    background: #F5F5F5;
    color: #1A2732;
    font-family: 'Open Sans', Arial, Helvetica, sans-serif;
    font-size: 16px;
    min-height: 100vh;
    position: relative;
}
ol, ul {
    list-style: none;
}
a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}
img {
    max-width: 100%;
    display: block;
}
button, input, textarea, select {
    font-family: inherit;
    font-size: 100%;
    margin: 0;
    border: none;
    outline: none;
    background: none;
    color: inherit;
}
table {
    border-collapse: collapse;
    width: 100%;
}
th, td {
    text-align: left;
    padding: 14px 12px;
}

/* ========================
   BRAND & PLAYFUL DYNAMIC
   ======================== */
:root {
    --primary: #1A2732;
    --secondary: #E42313;
    --accent: #F5F5F5;
    --bright-yellow: #fff600;
    --fun-blue: #0cf1fa;
    --fun-pink: #ff7ab0;
    --fun-green: #4be07b;
    --fun-orange: #FDB93D;
    --card-bg: #fff;
    --radius-main: 20px;
    --radius-btn: 30px;
    --shadow-main: 0 3px 16px 0 rgba(26,39,50,0.08);
    --shadow-hover: 0 8px 22px 0 rgba(228,35,19,0.13);
    --transition-fast: 0.18s cubic-bezier(.7,.2,.25,1.2);
    --transition-slow: 0.33s cubic-bezier(.82,.01,.3,.99);
    --font-display: 'Roboto Slab', serif;
    --font-body: 'Open Sans', Arial, Helvetica, sans-serif;
}

@media (max-width: 480px) {
    html { font-size: 15px; }
}

@media (max-width: 350px) {
    html { font-size: 13px; }
}


/* ========================
   LAYOUT CONTAINER RULES
   ======================== */
.container {
    width: 100%;
    max-width: 1160px;
    margin: 0 auto;
    padding-left: 18px;
    padding-right: 18px;
}
.content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
}

.section {
    margin-bottom: 60px;
    padding: 40px 20px;
    background: none;
}
.card-container {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}
.card {
    background: var(--card-bg);
    border-radius: var(--radius-main);
    box-shadow: var(--shadow-main);
    margin-bottom: 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: box-shadow var(--transition-slow), transform var(--transition-slow);
}
.card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-6px) scale(1.03) rotateZ(-1.5deg);
}
.card-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
    padding: 24px;
}
.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;
    padding: 20px;
    background: var(--fun-blue);
    border-radius: var(--radius-main);
    box-shadow: var(--shadow-main);
    margin-bottom: 20px;
    color: #1A2732;
    font-weight: 600;
    transition: box-shadow 0.18s cubic-bezier(.7,.2,.25,1.2), transform 0.18s;
    position: relative;
    border-left: 7px solid var(--fun-pink);
    z-index: 1;
}
.testimonial-card:nth-child(even) {
    background: var(--fun-green);
    border-left-color: var(--secondary);
}
.testimonial-card b {
    font-family: var(--font-display);
    color: var(--primary);
    font-size: 1em;
}
.feature-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
}

.text-section {
    margin-bottom: 20px;
}

/* ===========================
   TYPOGRAPHY & HEADINGS
   =========================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    color: var(--primary);
    font-weight: 800;
    letter-spacing: 0.01em;
    margin-bottom: 8px;
}
h1 {
    font-size: 2.75rem;
    line-height: 1.15;
    color: var(--secondary);
    margin-bottom: 22px;
    text-shadow: 0 4px 30px rgba(228,35,19,0.10);
    word-break: break-word;
}
h2 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 12px;
}
h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--fun-orange);
}
h4, h5, h6 {
    font-size: 1rem;
    font-weight: 600;
}
p {
    margin-bottom: 12px;
    font-size: 1.04rem;
    color: var(--primary);
    font-family: var(--font-body);
    font-weight: 400;
}
small {
    color: #7E8DA1;
    font-size: 0.94em;
}
b, strong {
    font-weight: 700;
    color: var(--secondary);
}
.text-section ul, ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 8px;
}
.text-section li, .feature-item li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.0rem;
    margin-bottom: 7px;
}
.text-section li img {
    width: 24px;
    height: 24px;
}

/* =======================
   NAVBAR + HEADER
   ======================= */
header {
    background: var(--primary);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    box-shadow: 0 5px 18px 0 rgba(20,50,83,0.07);
}
header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 78px;
    flex-wrap: wrap;
}
header img {
    height: 44px;
    width: auto;
    margin-right: 20px;
}
header nav {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}
header nav a {
    font-family: var(--font-display);
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 18px;
    transition: background var(--transition-fast), color var(--transition-fast);
}
header nav a:hover, header nav a:focus {
    background: var(--fun-blue);
    color: var(--primary);
}
.cta-btn {
    font-family: var(--font-display);
    background: var(--secondary);
    color: #fff;
    padding: 12px 30px;
    font-size: 1.2rem;
    font-weight: 900;
    border-radius: var(--radius-btn);
    transition: background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
    box-shadow: 0 2px 8px 0 rgba(228,35,19,0.08);
    margin-left: 12px;
    cursor: pointer;
    outline: none;
    position: relative;
}
.cta-btn:active {
    transform: scale(0.97);
}
.cta-btn:hover, .cta-btn:focus {
    background: var(--fun-orange);
    color: var(--primary);
}

/* Hamburger button mobile */
.mobile-menu-toggle {
    display: none;
    background: var(--secondary);
    color: #fff;
    border-radius: 50%;
    width: 46px;
    height: 46px;
    font-size: 2rem;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background var(--transition-fast), box-shadow var(--transition-fast);
    z-index: 210;
    position: relative;
}
.mobile-menu-toggle:hover {
    background: var(--fun-pink);
}

/* =========================
   MOBILE NAV MENU SLIDE-IN
   ========================= */
.mobile-menu {
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(26,39,50,0.89);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding: 0;
    z-index: 9999;
    transform: translateX(100%);
    transition: transform var(--transition-slow);
    pointer-events: none;
    opacity: 0;
}
.mobile-menu.open {
    transform: translateX(0);
    pointer-events: all;
    opacity: 1;
}
.mobile-menu-close {
    background: var(--secondary);
    color: #fff;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    font-size: 2rem;
    margin: 25px 18px 12px 0;
    cursor: pointer;
    box-shadow: 0 1px 6px 0 rgba(228,35,19,0.14);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition-fast);
}
.mobile-menu-close:hover {
    background: var(--fun-pink);
}
.mobile-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 26px;
    padding: 36px 36px 36px 0;
    margin-right: 16px;
}
.mobile-nav a {
    font-size: 1.5rem;
    color: #fff;
    font-weight: 800;
    background: none;
    padding: 8px 26px 8px 10px;
    border-radius: 40px 0 0 40px;
    letter-spacing: 0.03em;
    box-shadow: none;
    transition: background var(--transition-fast), color var(--transition-fast);
    text-align: right;
    display: block;
}
.mobile-nav a:hover, .mobile-nav a:focus {
    background: var(--fun-blue);
    color: var(--primary);
}

/* ========== Responsive Header/Nav =========== */
@media (max-width: 1020px) {
    header .container {
        flex-wrap: wrap;
    }
    header nav {
        gap: 12px;
    }
}
@media (max-width: 900px) {
    header nav, .cta-btn {
        display: none;
    }
    .mobile-menu-toggle {
        display: flex;
        margin-left: auto;
    }
}
@media (max-width: 900px) {
    header .container {
        padding: 0 12px;
    }
}

/* =============================
   MAIN CONTENT & FLEX PATTERNS
   ============================= */
main {
    padding: 30px 0 90px 0;
    min-height: 56vh;
    display: flex;
    flex-direction: column;
}
main section {
    margin-bottom: 60px;
    padding: 40px 0;
    background: none;
}
@media (max-width: 768px) {
    main section {
        padding: 25px 0;
        margin-bottom: 34px;
    }
    .container {
        padding-left: 8px;
        padding-right: 8px;
    }
    .content-wrapper {
        gap: 16px;
    }
}
.text-image-section {
    flex-direction: row;
}
@media (max-width: 768px) {
    .text-image-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 22px;
    }
}

.card-container, .content-grid {
    flex-direction: row;
}
@media (max-width: 900px) {
    .card-container, .content-grid {
        flex-direction: column;
        gap: 20px;
    }
    .card {
        margin-bottom: 14px;
    }
}

/* ==============
   TABLES
   ============== */
table {
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    box-shadow: var(--shadow-main);
    margin: 18px 0 32px 0;
    font-size: 1.1rem;
}
thead {
    background: var(--fun-blue);
    color: var(--primary);
}
th {
    font-weight: 800;
    background: var(--fun-blue);
    color: var(--primary);
}
tbody tr:nth-child(even) {
    background: #f9fcff;
}
tbody tr:nth-child(odd) {
    background: var(--accent);
}
td {
    color: var(--primary);
}

/* ==================
   BUTTONS
   ================== */
button, .btn {
    font-family: var(--font-display);
    background: var(--fun-orange);
    color: var(--primary);
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: var(--radius-btn);
    padding: 10px 30px;
    box-shadow: 0 1px 8px 0 rgba(250,180,0,0.14);
    transition: background var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
    cursor: pointer;
    margin: 4px 0;
}
button:hover, .btn:hover, button:focus, .btn:focus {
    background: var(--secondary);
    color: #fff;
    box-shadow: var(--shadow-hover);
    transform: scale(1.05) rotateZ(-1deg);
}

/* ========== FEATURE LISTS & ICONS ========= */
ul li img, .feature-item img, .text-section ul img {
    width: 30px;
    height: 30px;
    margin-right: 10px;
    filter: drop-shadow(0 2px 8px rgba(228,35,19,0.15));
    background: #fff;
    border-radius: 50%;
    padding: 2px;
    border: 2px solid var(--secondary);
}
ul li b, .feature-item b {
    color: var(--secondary);
}

/* ================
   FOOTER
   ================ */
footer {
    background: var(--primary);
    color: #fff;
    padding: 0;
    font-size: 1rem;
    padding-top: 30px;
    padding-bottom: 32px;
    box-shadow: 0 -2px 16px 0 rgba(20,50,83,0.1);
}
footer .container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 36px;
    align-items: flex-start;
    justify-content: space-between;
}
.footer-logo img {
    width: 56px;
    height: 56px;
    margin-bottom: 4px;
}
.footer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
}
.footer-links a {
    color: #fff;
    font-weight: 600;
    transition: color 0.16s;
}
.footer-links a:hover, .footer-links a:focus {
    color: var(--fun-orange);
    text-decoration: underline;
}
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: #fff;
    font-family: var(--font-body);
    font-size: 1em;
    margin-bottom: 16px;
}
.footer-social {
    display: flex;
    flex-direction: row;
    gap: 16px;
    align-items: center;
}
.footer-social a {
    background: var(--fun-blue);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 4px 0 rgba(0,244,250,0.10);
    transition: background 0.15s, transform 0.18s;
}
.footer-social a:hover {
    background: var(--secondary);
    transform: scale(1.09) rotateZ(-6deg);
}
@media (max-width: 900px) {
    footer .container {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
}

/* ================
   COOKIE BANNER
   ================ */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100vw;
    background: #fff600;
    color: var(--primary);
    padding: 21px 18px 20px 18px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-end;
    gap: 20px;
    box-shadow: 0 -5px 20px 0 rgba(0,0,0,0.18);
    z-index: 10001;
    font-size: 1rem;
    font-family: var(--font-body);
    pointer-events: all;
    animation: cookie-in 0.7s cubic-bezier(.84,0,.19,1.09) 1;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
}
@keyframes cookie-in {
    0% { transform: translateY(100%); opacity: 0; }
    70% { transform: translateY(-6px); }
    100% { transform: translateY(0); opacity: 1; }
}
.cookie-banner .cookie-text {
    flex: 1 1 auto;
    font-size: 1.12rem;
    font-weight: 500;
    color: var(--primary);
    margin-right: 12px;
}
.cookie-banner .cookie-actions {
    display: flex;
    flex-direction: row;
    gap: 10px;
}
.cookie-btn {
    background: var(--fun-green);
    color: var(--primary);
    font-family: var(--font-display);
    font-weight: 700;
    border-radius: 26px;
    padding: 8px 22px;
    margin-left: 0;
    transition: background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
    cursor: pointer;
    font-size: 1.05rem;
    border: none;
    outline: none;
}
.cookie-btn.accept {
    background: var(--fun-blue);
    color: var(--primary);
}
.cookie-btn.reject {
    background: var(--fun-pink);
    color: #fff;
}
.cookie-btn.settings {
    background: var(--secondary);
    color: #fff;
}
.cookie-btn:hover, .cookie-btn:focus {
    background: var(--primary);
    color: #fff600;
    transform: scale(1.03);
}

/* Cookie Modal */
.cookie-modal {
    position: fixed;
    left: 0; right: 0; top: 0; bottom: 0;
    background: rgba(26,39,50,0.82);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.32s;
}
.cookie-modal.open {
    opacity: 1;
    pointer-events: all;
}
.cookie-modal-dialog {
    background: #fff;
    color: var(--primary);
    border-radius: 22px;
    box-shadow: var(--shadow-hover);
    min-width: 330px;
    padding: 36px 32px 32px 32px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: relative;
    animation: cookie-fadein 0.55s cubic-bezier(.87,0,.19,1.13) 1;
}
@keyframes cookie-fadein {
    0% { transform: scale(0.88) translateY(80px); opacity: 0; }
    80% { transform: scale(1.02) translateY(-7px); }
    100% { transform: scale(1) translateY(0); opacity: 1; }
}
.cookie-modal-close {
    position: absolute;
    top: 16px; right: 16px;
    background: var(--secondary);
    color: #fff;
    font-size: 1.3rem;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    outline: none;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
    background: var(--fun-pink);
    color: #fff600;
}
.cookie-categories {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 12px 0 18px 0;
}
.cookie-category {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 1.08rem;
}
.cookie-category input[type="checkbox"] {
    width: 19px;
    height: 19px;
    accent-color: var(--fun-blue);
}
.cookie-category.essential label {
    color: var(--secondary);
    font-weight: bold;
}
.cookie-modal-actions {
    display: flex;
    flex-direction: row;
    gap: 12px;
}
@media (max-width: 600px) {
    .cookie-modal-dialog {
        min-width: 88vw;
        padding: 24px 10px 18px 10px;
    }
    .cookie-categories {
        gap: 8px;
    }
    .cookie-banner {
        flex-direction: column;
        gap: 14px;
        font-size: 0.96rem;
        padding: 18px 6px 16px 5px;
    }
    .cookie-banner .cookie-actions {
        gap: 7px;
    }
}

/* ===========================
   MICROINTERACTION ANIMATION
   =========================== */
.cta-btn, .btn, button, .cookie-btn {
    transition: background 0.16s, color 0.16s, transform 0.18s;
}
.cta-btn:active, .btn:active, .cookie-btn:active, button:active {
    transform: scale(0.97);
}
.testimonial-card {
    transition: box-shadow 0.15s, transform 0.17s;
}
.testimonial-card:hover {
    box-shadow: 0 6px 34px 0 rgba(0,244,250,0.08);
    transform: scale(1.03) rotateZ(-1.5deg);
}
table tr {
    transition: background 0.12s;
}
table tr:hover {
    background: #ffdede;
}

/* Fun/playful motion for icons and cards */
.card img, .feature-item img, .testimonial-card img {
    transition: transform 0.21s cubic-bezier(.66,0,.38,1.06), filter 0.11s;
}
.card:hover img, .feature-item img:hover, .testimonial-card img:hover {
    transform: scale(1.13) rotateZ(-8deg);
    filter: brightness(1.07) saturate(1.3);
}

/* ==========================
   RESPONSIVE TYPOGRAPHY
   ========================== */
@media (max-width: 480px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    .container { padding-left: 3vw; padding-right: 3vw; }
    th, td { padding: 11px 5px; }
}

/* ========== MISCELLANEOUS UI ============ */
::-webkit-input-placeholder { color: #7e8da1; opacity: 1; }
::-moz-placeholder { color: #7e8da1; opacity: 1; }
:-ms-input-placeholder { color: #7e8da1; opacity: 1; }
::placeholder { color: #7e8da1; opacity: 1; }

/* Selection color for accessibility + playful highlight */
::selection { background: #fff600; color: var(--primary); }
::-moz-selection { background: #fff600; color: var(--primary); }

/* ====================
   PLAYFUL VISUALS
   ==================== */
.cta-btn {
    box-shadow: 0 4px 16px 0 var(--fun-pink), 0 2px 8px 0 rgba(228,35,19,0.08);
    position: relative;
    overflow: hidden;
}
.cta-btn::after {
    content: "";
    position: absolute;
    right: -40px; top: 0; bottom: 0;
    width: 40px;
    background: var(--bright-yellow);
    opacity: 0.3;
    filter: blur(10px);
    pointer-events: none;
    transform: skewX(-25deg);
    animation: cta-sweep 2.4s infinite linear;
}
@keyframes cta-sweep {
    0% { right: -44px; opacity: 0; }
    25% { right: 8px; opacity: 0.36; }
    35% { right: -8px; opacity: 0.25; }
    100% { right: 125%; opacity: 0; }
}

/* Fun underline for h2 */
h2 {
    position: relative;
}
h2::after {
    content: '';
    display: block;
    width: 56px;
    height: 6px;
    border-radius: 3px;
    background: var(--fun-pink);
    margin-top: 6px;
    margin-left: 3px;
    transition: background 0.18s;
}

/* ==============
   PRINT SUPPORT
   ============== */
@media print {
    header, nav, .mobile-menu, .footer-logo, .footer-links, .footer-contact, .footer-social, .cookie-banner, .cookie-modal {
        display: none !important;
    }
    main, section, .content-wrapper, .container {
        padding: 0 !important;
        margin: 0 !important;
    }
}
