/* ==============================================================================
   CSS RESET & BASE STYLES (Normalize & Reset)
============================================================================== */
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;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
    display: block;
}
body {
    line-height: 1.6;
    font-family: 'Roboto', Arial, sans-serif;
    min-height: 100vh;
    background: #F6F3EE;
    color: #235273;
}
a {
    color: #E1812F;
    text-decoration: none;
    transition: color 0.2s;
}
a:hover, a:focus {
    color: #ba5800;
    text-decoration: underline;
}
ul, ol {
    list-style: none;
}
img, picture {
    max-width: 100%;
    display: block;
}
button, input, select, textarea {
    font-family: inherit;
    font-size: 100%;
    box-sizing: border-box;
}
:focus {
    outline: 2px solid #E1812F;
    outline-offset: 2px;
}

/* ==============================================================================
   BRAND VARIABLES
============================================================================== */
:root {
    --primary: #235273;
    --secondary: #F6F3EE;
    --accent: #E1812F;
    --accent-dark: #ba5800;
    --white: #fff;
    --black: #1a2732;
    --grey: #ece4d8;
    --shadow: 0 4px 24px rgba(35, 82, 115, 0.07);
    --radius-lg: 18px;
    --radius: 12px;
    --radius-sm: 7px;
    --transition: 0.2s cubic-bezier(.82,.26,.45,.88);
    --space-1: 8px;
    --space-2: 16px;
    --space-3: 24px;
    --space-4: 32px;
    --space-5: 40px;
    --shadow-playful: 0 6px 22px rgba(226,129,47,0.15), 0 2px 6px rgba(35,82,115,0.09);
}

/* ==============================================================================
   TYPOGRAPHY (Playful/Dynamic)
============================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--primary);
    letter-spacing: 0.02em;
}
h1 {
    font-size: 2.6rem;
    margin-bottom: 24px;
    line-height: 1.12;
}
h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    line-height: 1.17;
}
h3 {
    font-size: 1.3rem;
    margin-bottom: 14px;
    color: var(--accent);
    letter-spacing: 0.04em;
}
h4, h5, h6 {
    font-size: 1.09rem;
    margin-bottom: 10px;
}
p, li, ul, ol, dl, dd, dt {
    font-size: 1rem;
    color: var(--primary);
}
strong {
    color: var(--accent);
    font-weight: bold;
}

body {
    font-family: 'Roboto', Arial, sans-serif;
    font-size: 1rem;
    background: var(--secondary);
}

/* Fun, playful font for display: 
   (Montserrat alternates) + bold weight for headings */

/* ==============================================================================
   GENERAL LAYOUT & CONTAINERS
============================================================================== */
.container {
    width: 100%;
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 var(--space-3);
    display: flex;
    flex-direction: column;
}
.content-wrapper {
    padding: var(--space-3) var(--space-1);
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-playful);
    margin-bottom: 40px;
    position: relative;
}
@media (max-width: 768px) {
    .content-wrapper {
        padding: var(--space-2) 0;
        border-radius: var(--radius);
        margin-bottom: 28px;
    }
    .container {
        padding: 0 var(--space-1);
    }
}

.section {
    margin-bottom: 60px;
    padding: 40px 20px;
    background: none;
}

/* ==============================================================================
   HEADER & NAVIGATION
============================================================================== */
header {
    background: var(--white);
    box-shadow: 0 10px 24px -23px var(--primary);
    position: relative;
    z-index: 40;
}
header .container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-2) var(--space-3);
    gap: 20px;
}
header nav {
    display: flex;
    flex-direction: row;
    gap: 28px;
    align-items: center;
}
header nav a {
    font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
    font-weight: 600;
    font-size: 1rem;
    color: var(--primary);
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    transition: background var(--transition), color var(--transition), transform var(--transition);
    position: relative;
}
header nav a:hover,
header nav a.active {
    background: var(--accent);
    color: var(--white);
    transform: translateY(-2px) scale(1.06);
}

header img {
    height: 56px;
    width: auto;
    margin-right: 18px;
    border-radius: 12px 30px 10px 40px/30px 12px 34px 12px;
    box-shadow: 0 4px 18px -10px var(--primary);
    background: none;
}
@media (max-width: 768px) {
    header .container {
        flex-direction: row;
        align-items: center;
        gap: 6px;
    }
    header img {
        height: 38px;
        margin-right: 8px;
    }
    header nav {
        display: none;
    }
    .cta-primary {
        display: none;
    }
}

/* ==============================================================================
   HAMBURGER MOBILE MENU
============================================================================== */
.mobile-menu-toggle {
    display: none;
    background: var(--accent);
    color: var(--white);
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    font-size: 2.1rem;
    justify-content: center;
    align-items: center;
    box-shadow: var(--shadow-playful);
    transition: background 0.15s;
    cursor: pointer;
    z-index: 1101;
}
.mobile-menu-toggle:focus {
    background: var(--accent-dark);
    outline: 2px solid var(--primary);
}
@media (max-width: 1024px) {
    .mobile-menu-toggle {
        display: flex;
        margin-left: 8px;
    }
}

.mobile-menu {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0;
    height: 100vh;
    width: 100vw;
    background: var(--secondary);
    box-shadow: 0 14px 44px rgba(35,82,115,0.11);
    transform: translateX(-100vw);
    transition: transform 0.33s cubic-bezier(.74,.07,.38,1.17);
    z-index: 1100;
    padding: 0;
}
.mobile-menu.open {
    transform: translateX(0);
}
.mobile-menu-close {
    margin: 24px 18px 12px auto;
    background: var(--accent);
    color: var(--white);
    border: none;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s;
    z-index: 1200;
}
.mobile-menu-close:focus {
    background: var(--accent-dark);
}
.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 28px;
    align-items: center;
    padding: 18px 0 0 0;
    width: 100%;
}
.mobile-nav a {
    font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
    font-size: 1.19rem;
    font-weight: 700;
    display: block;
    color: var(--primary);
    background: var(--grey);
    border-radius: var(--radius);
    padding: 13px 40px;
    margin: 0 28px;
    width: calc(100% - 88px);
    text-align: center;
    box-shadow: 0 2px 9px rgba(35,82,115,0.06);
    transition: background var(--transition), color var(--transition), transform var(--transition);
}
.mobile-nav a:hover, .mobile-nav a.active {
    background: var(--accent);
    color: var(--white);
    transform: scale(1.03);
}
@media (min-width: 1025px) {
    .mobile-menu, .mobile-menu-toggle { display: none !important; }
}

/* ==============================================================================
   BUTTONS & CALL TO ACTIONS (CTA)
============================================================================== */
.cta-primary {
    display: inline-block;
    background: var(--accent);
    color: var(--white);
    font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
    font-weight: 700;
    border: none;
    border-radius: var(--radius-lg);
    font-size: 1.09rem;
    line-height: 1.38;
    text-align: center;
    padding: 13px 42px;
    margin-top: 18px;
    box-shadow: 0 2px 10px rgba(226,129,47,0.12);
    cursor: pointer;
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
    outline: none;
    letter-spacing: 0.04em;
}
.cta-primary:hover, .cta-primary:focus {
    background: var(--accent-dark);
    transform: scale(1.04) translateY(-2px) rotate(-1.3deg);
    box-shadow: 0 4px 22px rgba(226,129,47,0.15);
}

button {
    cursor: pointer;
    border: none;
    background: var(--grey);
    font-weight: 600;
    border-radius: var(--radius-sm);
    padding: 10px 28px;
    font-size: 1rem;
    transition: background var(--transition), color var(--transition), transform var(--transition);
}
button:focus {
    background: var(--accent-dark);
    color: var(--white);
}

/* ==============================================================================
   FLEXBOX LAYOUT HELPERS (MANDATORY SPACING) - Applied as provided
============================================================================== */
.section {
    margin-bottom: 60px;
    padding: 40px 20px;
}
.card-container {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}
.card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-playful);
    margin-bottom: 20px;
    position: relative;
    padding: var(--space-2) var(--space-3);
    flex: 1 1 280px;
    min-width: 240px;
}
.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, .content-grid, .card-container {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
}
.testimonial-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--grey);
    padding: 20px;
    border-radius: var(--radius-lg);
    margin-bottom: 22px;
    box-shadow: 0 2px 10px rgba(35,82,115,0.08);
    color: var(--primary);
    font-size: 1.08rem;
    position: relative;
    min-width: 220px;
}
.testimonial-card p {
    color: var(--primary);
    font-size: 1.08rem;
    margin-bottom: 0;
}
.testimonial-card span {
    color: var(--accent-dark);
    font-weight: 600;
    margin-left: 10px;
    font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
    font-size: 1rem;
}
.feature-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    background: none;
    padding: 0;
    box-shadow: none;
    margin: 0;
}

/* ==============================================================================
   SERVICE GRID / CARD STYLES
============================================================================== */
.service-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: var(--space-3);
    width: 100%;
    justify-content: space-between;
}
.service-grid > div {
    flex: 1 1 210px;
    min-width: 220px;
    background: var(--grey);
    border-radius: var(--radius);
    box-shadow: var(--shadow-playful);
    padding: var(--space-2) var(--space-3);
    transition: transform 0.19s, box-shadow 0.19s;
    margin-bottom: 20px;
}
.service-grid > div:hover {
    transform: translateY(-7px) scale(1.025) rotate(-1deg);
    box-shadow: 0 7px 28px rgba(226,129,47,0.14);
}

/* ==============================================================================
   LIST & ICONS (Playful Styling)
============================================================================== */
ul li, ol li {
    margin-bottom: 10px;
    padding-left: 6px;
    position: relative;
    line-height: 1.65;
    display: flex;
    align-items: center;
    font-size: 1rem;
}
ul li img {
    width: 26px;
    height: 26px;
    margin-right: 10px;
    filter: hue-rotate(-12deg) brightness(1.15) contrast(1.15);
    /* playful effect with brand accent */
}
ul li:last-child {
    margin-bottom: 0;
}
od li {
    margin-left: 28px;
    font-size: 1rem;
}

/* ==============================================================================
   FOOTER
============================================================================== */
footer {
    background: var(--primary);
    color: var(--white);
    padding: 32px 0 24px 0;
    border-radius: 42px 42px 0 0/32px 32px 0 0;
    margin-top: 40px;
    font-size: 1rem;
    box-shadow: 0 -6px 30px rgba(35,82,115,0.12);
}
footer .container {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 32px;
    flex-wrap: wrap;
}
footer img {
    height: 44px;
    margin-bottom: 20px;
}
footer nav {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 12px;
}
footer nav a {
    color: var(--white);
    font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--radius-sm);
    padding: 4px 0;
    opacity: 0.94;
    transition: color 0.14s, background 0.14s;
}
footer nav a:hover {
    color: var(--accent);
    background: var(--white);
    opacity: 1;
    text-decoration: none;
}
footer address {
    font-style: normal;
    color: var(--white);
    font-size: 1rem;
    line-height: 1.7;
}
footer address img {
    height: 16px;
    width: 16px;
    display: inline-block;
    vertical-align: middle;
    margin: 0 6px 0 3px;
}
footer address a {
    color: var(--accent);
    font-weight: 700;
    text-decoration: underline;
}
@media (max-width: 1024px) {
    footer .container {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }
}

/* ==============================================================================
   TEXT-SECTIONS, FORMS, MISC
============================================================================== */
.text-section {
    margin-bottom: var(--space-2);
    padding: var(--space-2) var(--space-1);
    background: var(--grey);
    border-radius: var(--radius);
}
address {
    font-style: normal;
}
dt {
    font-weight: bold;
    color: var(--accent);
    margin-top: 12px;
}
dd {
    margin-left: 8px;
    color: var(--primary);
}

/* ==============================================================================
   ANIMATIONS & TRANSITIONS (PLAYFUL MICROINTERACTIONS)
============================================================================== */
@keyframes bounceIn {
    0% { transform: scale(0.94) translateY(30px); opacity: 0; }
    60% { transform: scale(1.03) translateY(-4px); opacity: 1; }
    90% { transform: scale(0.98) translateY(2px); }
    100% { transform: scale(1) translateY(0); }
}
.section, .testimonial-card, .service-grid>div, .cta-primary, .card {
    animation: bounceIn .75s cubic-bezier(.42,1.47,.83,1.01);
}
.cta-primary, .service-grid>div, .card, .testimonial-card {
    transition: box-shadow 0.21s, transform 0.21s, background 0.15s, color 0.15s;
}
.testimonial-card:hover {
    box-shadow: 0 5px 24px rgba(35,82,115,0.15);
    transform: scale(1.019) rotate(-0.8deg) translateY(-2px);
}

/* ==============================================================================
   RESPONSIVE DESIGN
============================================================================== */
@media (max-width: 1024px) {
    .section {
        padding: 24px 0 32px 0;
    }
    .card {
        min-width: 160px;
    }
}
@media (max-width: 768px) {
    h1 {font-size: 1.85rem;}
    h2 {font-size: 1.23rem;}
    h3 {font-size: 1.05rem;}
    .container {padding: 0 7px;}
    .section {padding: 20px 0; margin-bottom: 34px;}
    .service-grid > div, .card {
        min-width: 80vw;
        padding: 20px 12px;
    }
    .footer address {font-size:0.97rem;}
    .card-container, .content-grid {
        gap: 10px;
    }
}

/* ==============================================================================
   COOKIE CONSENT BANNER & MODAL
============================================================================== */
.cookie-banner {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100vw;
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 -7px 24px rgba(35,82,115,0.13);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 30px 30px 20px 30px;
    z-index: 1500;
    font-size: 1.04rem;
    transition: transform 0.3s;
    border-radius: 18px 18px 0 0/28px 22px 0 0;
    animation: bounceIn 1.2s cubic-bezier(.42,1.47,.53,1.01);
}
@media (max-width: 768px) {
    .cookie-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        padding: 18px 14px 16px 14px;
        font-size: 0.97rem;
    }
}
.cookie-banner .cookie-message {
    flex: 1 1 auto;
    margin-right: 24px;
}
.cookie-banner .cookie-actions {
    display: flex;
    flex-direction: row;
    gap: 14px;
}
.cookie-banner button {
    background: var(--accent);
    color: var(--white);
    font-weight: 700;
    border-radius: var(--radius);
    padding: 9px 23px;
    font-size: 1rem;
    margin-bottom: 0;
    box-shadow: 0 2px 6px rgba(226,129,47,0.11);
}
.cookie-banner button:hover, .cookie-banner button:focus {
    background: var(--accent-dark);
}
.cookie-banner .cookie-settings {
    background: var(--white);
    color: var(--primary);
    border: 2px solid var(--accent);
    font-weight: 600;
    margin-left: 4px;
}
.cookie-banner .cookie-settings:hover, .cookie-banner .cookie-settings:focus {
    background: var(--grey);
    color: var(--accent-dark);
}

/* Cookie Modal */
.cookie-modal-overlay {
    position: fixed;
    left: 0; top: 0;
    width: 100vw; height: 100vh;
    background: rgba(35, 82, 115, 0.46);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: bounceIn .4s cubic-bezier(.42,1.47,.83,1.01);
}
.cookie-modal {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: 0 12px 37px rgba(35,82,115,0.15);
    padding: 34px 28px;
    min-width: 320px;
    max-width: 98vw;
    color: var(--primary);
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: relative;
}
.cookie-modal h2 {
    color: var(--accent);
    font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
    margin-bottom: 14px;
    font-size: 1.17rem;
}
.cookie-modal .cookie-categories {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 18px 0 16px 0;
}
.cookie-category {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    font-size: 1.03rem;
}
.cookie-category .toggle {
    appearance: none;
    width: 38px;
    height: 22px;
    background: var(--grey);
    border-radius: 11px;
    position: relative;
    outline: none;
    cursor: pointer;
    margin-right: 7px;
    transition: background 0.15s;
}
.cookie-category .toggle:checked {
    background: var(--accent);
}
.cookie-category .toggle:before {
    content: '';
    display: block;
    width: 18px;
    height: 18px;
    background: var(--white);
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 2px;
    box-shadow: 0 2px 6px rgba(226,129,47,0.10);
    transition: left 0.21s;
}
.cookie-category .toggle:checked:before {
    left: 18px;
}
.cookie-category strong {
    color: var(--accent);
    margin-left: 3px;
}
.cookie-modal .cookie-accept, .cookie-modal .cookie-reject {
    background: var(--accent);
    color: var(--white);
    padding: 10px 23px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 1rem;
}
.cookie-modal .cookie-reject {
    background: var(--grey);
    color: var(--primary);
    border: 2px solid var(--accent);
}
.cookie-modal .cookie-accept:hover, .cookie-modal .cookie-accept:focus {
    background: var(--accent-dark);
}
.cookie-modal .cookie-reject:hover, .cookie-modal .cookie-reject:focus {
    background: var(--secondary);
    color: var(--accent-dark);
}
.cookie-modal .cookie-close {
    position: absolute;
    top: 20px;
    right: 22px;
    background: var(--accent);
    color: var(--white);
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 1.27rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.cookie-modal .cookie-close:hover { background: var(--accent-dark); }

/* ==============================================================================
   PLAYFUL EXTRAS / VISUAL FLAIR
============================================================================== */
h1, h2, h3, .cta-primary {
    text-shadow: 0 2px 8px rgba(226,129,47,0.066);
}
.section {
    border-radius: 36px 28px 24px 32px / 38px 34px 34px 36px;
    background: var(--secondary);
    box-shadow: var(--shadow-playful);
}
@media (max-width: 480px) {
    .section {
        border-radius: 16px;
        padding: 10px 0;
    }
}

/* Decorative absolute overlays are allowed for visual fun accents */
.card::before, .testimonial-card::before {
    content: '';
    background: var(--accent);
    opacity: 0.072;
    border-radius: 70% 30% 60% 40% / 40% 60% 30% 70%;
    position: absolute;
    top: -14px;
    right: -32px;
    width: 60px;
    height: 60px;
    z-index: 0;
    pointer-events: none;
}
.testimonial-card::before {
    background: var(--primary);
    opacity: 0.054;
    right: -18px;
    top: -12px;
    width: 40px;
    height: 32px;
}

/* ==============================================================================
   PRINT OPTIMIZATION
============================================================================== */
@media print {
    header, footer, .mobile-menu, .cookie-banner, .cookie-modal-overlay {display:none!important;}
    body {background: #fff; color: #000;}
}
