/* ---------------------------------------------- */
/* CSS RESET & NORMALIZATION                      */
/* ---------------------------------------------- */
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.5;
    background: #F7F7F2;
    color: #1F2B35;
    min-height: 100vh;
    font-family: 'Open Sans', Arial, sans-serif;
}
ol, ul {
    list-style: none;
}
a {
    color: inherit;
    text-decoration: none;
}
a:focus {
    outline: 2px solid #24527A;
    outline-offset: 2px;
}
img {
    border: 0;
    display: block;
    max-width: 100%;
    height: auto;
}
input, textarea, select, button {
    font-family: inherit;
    outline: none;
    border-radius: 0;
    border: none;
}
button {
    background: none;
    cursor: pointer;
    border: none;
}

/* ---------------------------------------------- */
/* FONT FACE                                      */
/* ---------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;900&family=Open+Sans:wght@400;600;700&display=swap');

:root {
    --primary: #24527A;
    --secondary: #F4B405;
    --accent: #F7F7F2;
    --dark: #1F2B35;
    --muted: #8B99A5;
    --radius: 18px;
    --shadow: 0 4px 22px 0 rgba(36,82,122,0.08), 0 1.5px 4px 0 rgba(36,82,122,0.04);
    --font-display: 'Montserrat', Arial, sans-serif;
    --font-body: 'Open Sans', Arial, sans-serif;
    --transition: all 0.18s cubic-bezier(.77,.03,.46,.86);
}

/* ---------------------------------------------- */
/* LAYOUT: FLEX CONTAINERS                        */
/* ---------------------------------------------- */
.container {
    width: 100%;
    max-width: 1120px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}
.header-flex, .footer-flex, .footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.footer-flex {
    align-items: flex-start;
    padding: 40px 0 24px 0;
    border-bottom: 2px solid #EFEFF2;
}
.footer-bottom {
    padding: 20px 0 10px 0;
    font-size: 14px;
    color: var(--muted);
    align-items: center;
}

/* ---------------------------------------------- */
/* SPACING & SECTION PATTERNS                     */
/* ---------------------------------------------- */
.section {
    margin-bottom: 60px;
    padding: 40px 20px;
}
.card-container {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}
.card {
    margin-bottom: 20px;
    position: relative;
    box-shadow: var(--shadow);
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    transition: box-shadow 0.22s;
}
.card:hover, .card:focus-within {
    box-shadow: 0 8px 28px 0 rgba(36,82,122,0.13), 0 1.5px 6px 0 rgba(36,82,122,0.09);
}
.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;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    margin-bottom: 20px;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: 0 2px 10px 0 rgba(36,82,122,0.09);
    position: relative;
    min-width: 260px;
    max-width: 420px;
    border-left: 8px solid var(--primary);
    transition: box-shadow var(--transition);
    z-index: 1;
}
.testimonial-card:hover {
    box-shadow: 0 6px 18px rgba(36,82,122,0.13);
    border-left-color: var(--secondary);
}
.feature-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
}

.feature-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 20px;
    margin-bottom: 20px;
}
.feature-grid > div {
    background: #fff;
    border-radius: var(--radius);
    padding: 28px 22px;
    flex: 1 1 260px;
    min-width: 220px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
    transition: box-shadow var(--transition), border-color var(--transition);
}
.feature-grid > div:hover {
    box-shadow: 0 8px 28px 0 rgba(36,82,122,0.16);
    border: 2px solid var(--secondary);
}
.content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
}

/* ---------------------------------------------- */
/* TYPOGRAPHY                                     */
/* ---------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 900;
    letter-spacing: -1.2px;
    color: var(--primary);
}
h1 {
    font-size: 2.5rem;
    line-height: 1.14;
    margin-bottom: 20px;
}
h2 {
    font-size: 2rem;
    margin-bottom: 16px;
    color: var(--dark);
}
h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
}
h4, h5, h6 {
    font-size: 1.05rem;
    font-weight: 700;
}
p, li, ul, ol, label {
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 400;
    color: var(--dark);
}
ul, ol {
    margin-left: 22px;
    margin-bottom: 14px;
    color: var(--dark);
}
ul li, ol li {
    margin-bottom: 8px;
}
strong {
    font-weight: 700;
    color: var(--primary);
}

/* Subtle separating lines */
hr {
    border: none;
    border-top: 2px solid #e9ecef;
    margin: 32px 0;
}

/* ---------------------------------------------- */
/* BUTTONS AND CTAs                               */
/* ---------------------------------------------- */
.cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--secondary);
    color: var(--primary);
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.08rem;
    letter-spacing: 0.05em;
    border-radius: var(--radius);
    box-shadow: 0 2px 8px 0 rgba(244,180,5,0.10);
    outline: none;
    border: none;
    padding: 14px 32px;
    transition: background var(--transition), color var(--transition), box-shadow var(--transition);
    margin-top: 6px;
    margin-bottom: 6px;
    text-transform: uppercase;
    cursor: pointer;
}
.cta-btn:hover, .cta-btn:focus {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 5px 16px 0 rgba(36,82,122,0.15);
}
button, .btn {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    padding: 10px 20px;
    border-radius: var(--radius);
    background: var(--primary);
    color: #fff;
    transition: background var(--transition), box-shadow var(--transition);
    margin-right: 12px;
}
button:hover, .btn:hover,
button:focus, .btn:focus {
    background: var(--secondary);
    color: var(--primary);
    box-shadow: 0 6px 20px 0 rgba(244,180,5,0.13);
}

/* ---------------------------------------------- */
/* HEADER & NAVIGATION                            */
/* ---------------------------------------------- */
header {
    background: #fff;
    box-shadow: 0 3px 24px 0 rgba(36,82,122,0.06);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    min-height: 70px;
}
.header-flex {
    min-height: 60px;
}
header .logo {
    max-height: 48px;
}
.main-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}
.main-nav a {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--primary);
    font-size: 1.03rem;
    transition: color var(--transition), border-bottom var(--transition);
    padding: 6px 0;
    border-bottom: 2px solid transparent;
    position: relative;
}
.main-nav a:hover, .main-nav a.active {
    color: var(--secondary);
    border-bottom: 2.5px solid var(--secondary);
}
.mobile-menu-toggle {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-size: 1.7rem;
    padding: 5px 16px 6px 16px;
    margin-left: 8px;
    display: none;
    transition: background var(--transition), color var(--transition);
    z-index: 121;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus{
    background: var(--secondary);
    color: var(--primary);
}

/* ---------------------------------------------- */
/* MOBILE NAVIGATION: SLIDING MENU                */
/* ---------------------------------------------- */
.mobile-menu {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background: #fff;
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    transition: transform 0.38s cubic-bezier(.62,.17,.23,.94);
    box-shadow: 0 10px 32px 0 rgba(36,82,122,0.16);
    transform: translateX(-100vw);
}
.mobile-menu.open {
    transform: translateX(0);
}
.mobile-menu-close {
    position: absolute;
    right: 24px;
    top: 24px;
    z-index: 10002;
    background: var(--secondary);
    color: var(--primary);
    font-size: 2.1rem;
    padding: 2px 11px;
    border-radius: 50%;
    transition: background var(--transition), color var(--transition);
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
    background: var(--primary);
    color: #fff;
}
.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin-top: 110px;
    width: 100%;
    align-items: center;
}
.mobile-nav a {
    width: 90%;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.33rem;
    padding: 14px 0 12px 0;
    color: var(--primary);
    border-bottom: 2px solid #F2F2F2;
    text-align: center;
    background: none;
    transition: background var(--transition), color var(--transition);
    border-radius: var(--radius);
    margin-bottom: 4px;
}
.mobile-nav a:last-child {
    border-bottom: none;
}
.mobile-nav a:hover, .mobile-nav a:focus {
    background: var(--secondary);
    color: var(--primary);
}

/* Hide desktop nav, show burger on mobile */
@media (max-width: 1140px) {
    .main-nav {
        gap: 16px;
    }
}
@media (max-width: 900px) {
    .main-nav {
        display: none;
    }
    .mobile-menu-toggle {
        display: inline-flex;
    }
}
@media (min-width: 901px) {
    .mobile-menu {
        display: none !important;
    }
}


/* ---------------------------------------------- */
/* HERO SECTIONS                                  */
/* ---------------------------------------------- */
.hero, .section.hero {
    background: var(--primary);
    color: #fff;
    background-image: repeating-linear-gradient(-75deg, rgba(244,180,5,0.08), rgba(244,180,5,0.04) 60px);
    padding: 80px 0 70px 0;
    text-align: left;
    border-radius: 0 0 64px 0;
    position: relative;
    min-height: 390px;
    margin-bottom: 64px;
}
.hero h1, .section.hero h1 {
    color: #fff;
    font-size: 2.8rem;
    line-height: 1.2;
    margin-bottom: 18px;
}
.hero p {
    font-size: 1.22rem;
    color: #d7dbe3;
    max-width: 520px;
    margin-bottom: 22px;
}
.hero .cta-btn {
    background: var(--secondary);
    color: var(--primary);
    margin-top: 16px;
}
.hero .cta-btn:hover {
    background: #fff;
    color: var(--primary);
    box-shadow: 0 4px 18px 0 rgba(244,180,5,0.18);
}

/* ---------------------------------------------- */
/* CARDS & FEATURES                               */
/* ---------------------------------------------- */
.content-wrapper > .card-container, .feature-grid {
    margin-top: 12px;
    margin-bottom: 12px;
}
.feature-grid img {
    height: 48px;
    margin-bottom: 10px;
    margin-right: 4px;
}
.card {
    border: 2px solid #EFF1F9;
}
.card h3 {
    margin-bottom: 8px;
}
.card p {
    color: var(--dark);
    font-size: 1rem;
    margin-bottom: 12px;
}

/* ---------------------------------------------- */
/* TESTIMONIALS                                   */
/* ---------------------------------------------- */
.testimonials {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 48px 0; 
    margin-bottom: 0!important;
}
.testimonials h2 {
    color: var(--primary);
    margin-bottom: 34px;
}
.testimonial-card p {
    font-size: 1.16rem;
    color: var(--dark);
    line-height: 1.44;
    font-family: var(--font-body);
}
.testimonial-card strong {
    color: var(--secondary);
    font-size: 1rem;
}
.testimonial-card div {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 1rem;
    color: var(--primary);
}
.testimonial-card a {
    color: var(--primary);
    font-weight: 700;
    font-family: var(--font-display);
    text-decoration: underline;
    margin-top: 2px;
    transition: color var(--transition);
}
.testimonial-card a:hover,
.testimonial-card a:focus {
    color: var(--secondary);
}

/* ---------------------------------------------- */
/* FORMS, INPUTS                                  */
/* ---------------------------------------------- */
input[type="text"], input[type="email"], textarea {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #e1e6f0;
    border-radius: var(--radius);
    font-size: 1.07rem;
    color: var(--primary);
    margin-bottom: 16px;
    background: #fff;
    transition: border var(--transition), box-shadow var(--transition);
}
input[type="text"]:focus, input[type="email"]:focus, textarea:focus {
    border-color: var(--secondary);
    box-shadow: 0 2px 9px 0 rgba(244,180,5,0.10);
}

/* ---------------------------------------------- */
/* FOOTER                                         */
/* ---------------------------------------------- */
footer {
    background: #fff;
    box-shadow: 0 -2px 32px 0 rgba(36,82,122,0.04);
    padding: 0 0 4px 0;
    margin-top: 42px;
    font-size: 1rem;
}
.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.footer-nav a {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--primary);
    font-size: 1rem;
    padding-bottom: 2px;
    transition: color var(--transition);
}
.footer-nav a:hover, .footer-nav a:focus {
    color: var(--secondary);
}
.footer-contact p {
    font-size: 0.95rem;
    margin-bottom: 7px;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 9px;
}
.footer-bottom img {
    width: 32px;
    margin-left: 11px;
    opacity: 0.83;
    transition: opacity var(--transition), transform var(--transition);
}
.footer-bottom a:hover img {
    opacity: 1;
    transform: scale(1.12);
}

/* ---------------------------------------------- */
/* COOKIE BANNER & MODAL                          */
/* ---------------------------------------------- */
.cookie-banner {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100vw;
    background: #fff;
    box-shadow: 0 -4px 18px 0 rgba(36,82,122,0.16);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 23px 32px;
    z-index: 20000;
    animation: slideUp 0.6s cubic-bezier(.62,1.4,.23,.95) 1;
}
@keyframes slideUp {
    0% { transform: translateY(100%); }
    100% { transform: translateY(0); }
}
.cookie-banner p {
    font-size: 1.02rem;
    color: var(--dark);
}
.cookie-banner .btn {
    background: var(--primary);
    color: #fff;
    border: none;
    margin-right: 20px;
}
.cookie-banner .btn.secondary {
    background: var(--secondary);
    color: var(--primary);
    margin-right: 20px;
}
.cookie-banner .btn.settings {
    background: none;
    color: var(--primary);
    border: 2px solid var(--primary);
}
.cookie-banner .btn:hover, .cookie-banner .btn:focus {
    background: var(--secondary);
    color: var(--primary);
    border-color: var(--secondary);
}

/* Cookie Settings Modal */
.cookie-modal-overlay {
    position: fixed;
    top:0; left:0;
    width:100vw;
    height:100vh;
    background: rgba(31,43,53,0.37);
    z-index: 25000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s cubic-bezier(.44,.06,.61,1.21);
}
@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}
.cookie-modal {
    background: #fff;
    padding: 38px 32px 32px 32px;
    border-radius: var(--radius);
    box-shadow: 0 8px 40px 0 rgba(36,82,122,0.23);
    width: 98vw;
    max-width: 380px;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.cookie-modal h3 {
    font-family: var(--font-display);
    color: var(--primary);
    margin-bottom: 8px;
}
.cookies-category {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    font-size: 1rem;
}
.cookies-category input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--secondary);
}
.cookies-category .always {
    font-size: 0.94rem;
    color: var(--muted);
    font-style: italic;
}
.cookie-modal .btn {
    margin-top: 16px;
    width: 100%;
    background: var(--primary);
    color: #fff;
}
.cookie-modal .btn:hover, .cookie-modal .btn:focus {
    background: var(--secondary);
    color: var(--primary);
}
.cookie-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: var(--secondary);
    color: var(--primary);
    font-size: 1.45rem;
    padding: 2px 10px 2px 10px;
    border-radius: 50%;
    border: none;
    transition: background var(--transition);
}
.cookie-modal-close:hover {
    background: var(--primary);
    color: #fff;
}

/* ---------------------------------------------- */
/* RESPONSIVE - MOBILE FIRST, DESKTOP ADJUSTMENTS */
/* ---------------------------------------------- */
@media (max-width: 900px) {
    .container {
        max-width: 97vw;
    }
    .header-flex, .footer-flex {
        gap: 12px;
    }
    .footer-flex, .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
        padding: 28px 0 12px 0;
    }
    .footer-nav, .footer-contact {
        margin-top: 9px;
    }
}
@media (max-width: 768px) {
    .hero {
        min-height: 260px;
        border-radius: 0 0 36px 0;
        padding: 48px 0 34px 0;
        margin-bottom: 36px;
    }
    .hero h1 { font-size: 1.5rem; }
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
    .feature-grid, .card-container, .content-grid {
        flex-direction: column;
        gap: 18px;
    }
    .feature-grid > div, .card {
        min-width: unset;
        width: 100%;
    }
    .content-wrapper {
        gap: 16px;
    }
    .section {
        padding: 28px 7px;
        margin-bottom: 30px;
    }
    .testimonial-card {
        max-width: 95vw;
        min-width: unset;
    }
    .text-image-section {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }
    table {
        font-size: 0.96rem;
    }
    input[type="text"], input[type="email"], textarea {
        font-size: 0.99rem;
        padding: 10px;
    }
}
@media (max-width: 480px) {
    .section, .hero { padding: 16px 2px; }
    h1 { font-size: 1.22rem; }
    h2 { font-size: 1.07rem; }
}

/* General Accessibility: never reduce minimum touch targets */
a, button, .cta-btn, .main-nav a, .mobile-nav a {
    min-height: 44px;
    min-width: 44px;
    box-sizing: border-box;
}

/* ---------------------------------------------- */
/* UTILITIES & TRANSITIONS                        */
/* ---------------------------------------------- */
.shadow {
    box-shadow: var(--shadow);
}
.rounded {
    border-radius: var(--radius);
}
.text-primary { color: var(--primary)!important; }
.text-secondary { color: var(--secondary)!important; }
.text-accent { color: var(--accent)!important; }
.bg-primary { background: var(--primary)!important; color: #fff; }
.bg-secondary { background: var(--secondary)!important; color: var(--primary); }
.bg-accent { background: var(--accent)!important; }
.center { text-align: center !important; }
.flex-center { display: flex; align-items: center; justify-content: center; }


/* ---------------------------------------------- */
/* MICRO-INTERACTIONS & BUTTONS                   */
/* ---------------------------------------------- */
.cta-btn, .main-nav a, .btn, .footer-nav a, .card, .feature-grid > div, .testimonial-card {
    transition: box-shadow var(--transition), background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
}
.testimonial-card:hover, .feature-grid > div:hover, .card:hover {
    transform: translateY(-3px) scale(1.013);
}
.cta-btn:active, .btn:active {
    transform: scale(0.98);
}

/* ---------------------------------------------- */
/* GEOMETRIC/DECORATIVE ELEMENTS (OPTIONAL)       */
/* ---------------------------------------------- */
.hero:before {
    content: '';
    display: block;
    position: absolute;
    right: -82px; bottom: -82px;
    width: 170px;
    height: 170px;
    background: var(--secondary);
    opacity: 0.21;
    border-radius: 50%;
    z-index: 0;
}

/* ---------------------------------------------- */
/* PRINT STYLES                                   */
/* ---------------------------------------------- */
@media print {
    body, .container, section, header, footer { background: #fff!important; color: #000!important; }
    nav, footer, .cta-btn, .mobile-menu, .cookie-banner, .cookie-modal-overlay { display: none!important; }
}
