/* --- 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; }
*, *:before, *:after { box-sizing: inherit; }
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
    display: block;
}
body {
    line-height: 1.5;
    background: #FFFFFF;
    color: #23436E;
    font-family: 'Roboto', Arial, sans-serif;
    font-size: 16px;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; transition: color 0.2s; }
a:focus, a:hover { color: #F5A623; outline: none; }
ul, ol { list-style: none; }
img, svg { max-width: 100%; height: auto; display: block; }
button { font: inherit; background: none; border: none; cursor: pointer; }
:focus { outline: 2px solid #F5A623; outline-offset: 2px; }

/* --- BRAND FONTS --- */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700&display=swap');
@import url('https://fonts.googleapis.com/css?family=Roboto:400,500,700&display=swap');

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #23436E;
  font-weight: 700;
  letter-spacing: -.01em;
  margin-bottom: 16px;
  line-height: 1.15;
}
h1 { font-size: 2.5rem; margin-bottom: 24px; }
h2 { font-size: 2rem; margin-bottom: 20px; }
h3 { font-size: 1.25rem; margin-bottom: 14px; font-weight: 700; }
h4 { font-size: 1.1rem; }
.subheadline { color: #23436E; font-size: 1.1rem; font-weight: 500; margin-bottom: 20px; margin-top: -8px; }
p,li,small {
  font-family: 'Roboto', Arial, sans-serif;
  color: #23436E;
  font-size: 1rem;
  margin-bottom: 12px;
}
small { font-size: 0.935rem; color: #23436E88; }
strong, b { font-weight: 700; }

/* --- CONTAINER AND SECTION LAYOUTS --- */
.container {
    width: 100%;
    max-width: 1160px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}
.section {
    margin-bottom: 60px;
    padding: 40px 20px;
}
.content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

/* --- HEADER & NAVIGATION --- */
header {
    background: #fff;
    border-bottom: 1px solid #eff2f6;
    box-shadow: 0 1px 8px 0 rgba(35,67,110,0.03);
    position: sticky;
    top: 0;
    z-index: 101;
}
.main-nav {
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 24px 0 16px 0;
}
.main-nav > a {
    font-size: 1rem;
    font-family: 'Roboto', Arial, sans-serif;
    font-weight: 500;
    color: #23436E;
    padding: 6px 0;
    transition: color 0.2s;
    border-radius: 3px;
}
.main-nav > a.btn-primary {
    margin-left: 18px;
}
.main-nav a:hover, .main-nav a:focus {
    color: #F5A623;
}
.main-nav img {
    margin-right: 22px;
    height: 36px;
    width: auto;
}

/* --- BUTTONS & CTAs --- */
.btn-primary {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 0.7em 1.8em;
    background: #23436E;
    color: #fff !important;
    border-radius: 24px;
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    border: none;
    box-shadow: 0 2px 10px 0 rgba(35,67,110,0.07);
    transition: background 0.17s, color 0.17s, box-shadow 0.17s, transform 0.17s;
    cursor: pointer;
    margin-top: 8px;
    text-align: center;
    letter-spacing: .01em;
}
.btn-primary:hover, .btn-primary:focus {
    background: #F5A623;
    color: #23436E !important;
    box-shadow: 0 4px 20px 0 rgba(245, 166, 35, 0.20);
    transform: translateY(-2px) scale(1.04);
}

/* --- CARD CONTAINERS & FLEX GRIDS --- */
.feature-grid, .feature-grid.team {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: flex-start;
    margin-bottom: 18px;
}
.feature {
    flex: 1 1 270px;
    min-width: 240px;
    max-width: 330px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px 0 rgba(35,67,110,0.04);
    padding: 28px 24px 20px 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    transition: box-shadow 0.22s, transform 0.18s;
}
.feature:hover, .feature:focus-within {
    box-shadow: 0 4px 24px 0 rgba(35,67,110,0.07);
    transform: translateY(-2px) scale(1.03);
}
.feature img {
    height: 48px;
    width: 48px;
    margin-bottom: 6px;
}
.service-price {
    margin-top: 10px;
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: #F5A623;
    letter-spacing: 0.01em;
}
.card-container {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 18px;
}
.card {
    flex: 1 1 300px;
    min-width: 240px;
    max-width: 350px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px 0 rgba(35,67,110,0.04);
    padding: 24px;
    position: relative;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: box-shadow 0.22s, transform 0.15s;
}
.card:hover, .card:focus-within {
    box-shadow: 0 6px 32px 0 rgba(35,67,110,0.10);
    transform: translateY(-3px) scale(1.02);
}
.content-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
}
/* Testimonial Cards */
.testimonial-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 20px 30px 20px 26px;
    background: #fff;
    border-radius: 20px;
    margin-bottom: 20px;
    box-shadow: 0 3px 18px 0 rgba(35,67,110,0.05);
    font-size: 1.08rem;
    max-width: 520px;
    color: #23436E;
    transition: box-shadow 0.19s;
}
.testimonial-card p {
    font-size: 1.1rem;
    color: #23436E;
}
.testimonial-card .testimonial-meta {
    display: flex;
    flex-direction: row;
    gap: 18px;
    font-size: 0.97rem;
    color: #294870;
    font-family: 'Roboto', Arial, sans-serif;
    margin-top: -8px;
    font-weight: 500;
}
.testimonial-card:hover {
    box-shadow: 0 6px 28px 0 rgba(35,67,110,0.11);
}

.text-image-section {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}
.text-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 2px;
}
.feature-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
}

/* --- LISTS, FORMS, ETC --- */
ul, ol {
    padding-left: 20px;
    margin-bottom: 16px;
    font-size: 1rem;
}
ul li, ol li {
    margin-bottom: 10px;
    line-height: 1.7;
    color: #23436E;
}

/* --- FOOTER --- */
footer {
    background: #fff;
    padding: 28px 0 12px 0;
    border-top: 1px solid #eff2f6;
    margin-top: 70px;
}
footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}
footer img {
    height: 38px;
    margin-bottom: 10px;
}
footer nav {
    font-size: 0.96rem;
    color: #23436E;
    margin-bottom: 7px;
}
.footer-contact {
    color: #23436E99;
    font-size: 0.96rem;
    margin-bottom: 7px;
    display: flex;
    flex-direction: row;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
}
footer nav a {
    color: #23436E;
    text-decoration: none;
    margin: 0 6px;
    transition: color 0.19s;
}
footer nav a:hover, footer nav a:focus {
    color: #F5A623;
}

/* --- MOBILE NAV/MENU BUTTON --- */
.mobile-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #23436E;
    color: #fff;
    font-size: 2rem;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    border: none;
    cursor: pointer;
    transition: background 0.19s, box-shadow 0.17s;
    box-shadow: 0 2px 10px 0 rgba(35,67,110,0.09);
    margin-left: auto;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
    background: #F5A623;
    color: #23436E;
}
@media (min-width: 989px) {
    .mobile-menu-toggle { display: none; }
}

/* --- MOBILE MENU OVERLAY --- */
.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(35,67,110,0.93);
    z-index: 2000;
    transform: translateX(100%);
    transition: transform 0.32s cubic-bezier(.63,-0.03,.21,1.07);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-end;
    padding-top: 0;
    pointer-events: none;
    opacity: 0;
}
.mobile-menu.open {
    transform: translateX(0);
    pointer-events: auto;
    opacity: 1;
}
.mobile-menu-close {
    align-self: flex-end;
    font-size: 2rem;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
    margin: 24px 24px 0 0;
    transition: color 0.2s;
    z-index: 2001;
}
.mobile-menu-close:hover, .mobile-menu-close:focus { color: #F5A623; }
.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 28px;
    align-items: flex-end;
    margin: 50px 36px 0 0;
}
.mobile-nav a {
    color: #fff;
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 700;
    font-size: 1.35rem;
    letter-spacing: 0.01em;
    padding: 7px 0 7px 0;
    margin-right: 3px;
    transition: color 0.17s, background 0.12s;
    border-radius: 4px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
    color: #F5A623;
    background: rgba(255,255,255,0.07);
}

@media (max-width: 988px) {
    header .main-nav { display: none; }
    .mobile-menu-toggle { display: flex; }
}
@media (min-width: 989px) {
    .mobile-menu { display: none !important; }
}

/* --- RESPONSIVE LAYOUTS --- */
@media (max-width: 990px) {
    .feature-grid, .feature-grid.team, .card-container, .content-grid {
        gap: 16px;
    }
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }
}
@media (max-width: 768px) {
    .feature-grid, .feature-grid.team, .card-container, .content-grid {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }
    .feature, .card {
        max-width: 100%;
        min-width: 0;
        width: 100%;
    }
    .testimonial-card {
        max-width: 100%;
        padding: 16px 14px 16px 12px;
    }
    .section {
        margin-bottom: 38px;
        padding: 23px 8px;
    }
    .container {
        padding-left: 4px;
        padding-right: 4px;
    }
    .footer-contact {
        flex-direction: column;
        gap: 8px;
    }
}
@media (max-width: 600px) {
    h1 { font-size: 1.55rem; }
    h2 { font-size: 1.22rem; }
    h3 { font-size: 1.05rem; }
    .btn-primary { font-size: .98rem; padding: 0.65em 1.2em; }
    .feature, .card {
        padding: 15px 8px 14px 14px;
    }
    .testimonial-card { font-size: 1rem; }
    .section { padding: 17px 2px; }
}

.text-image-section {
    flex-direction: column;
}
@media (min-width: 769px) {
    .text-image-section { flex-direction: row; }
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-consent-banner {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    width: 100vw;
    background: #fffbea;
    border-top: 1px solid #ffeab8;
    color: #23436E;
    box-shadow: 0 -2px 12px 0 rgba(35,67,110,0.07);
    z-index: 3999;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 24px 18px 18px 18px;
    transition: transform 0.35s;
    gap: 32px;
    font-size: 1rem;
}
.cookie-consent-banner.hide { transform: translateY(100%); }
.cookie-consent-banner .cookie-message {
    flex: 1 1 200px;
    font-size: 1rem;
    font-family: 'Roboto', Arial, sans-serif;
    color: #23436E;
}
.cookie-consent-banner .cookie-actions {
    display: flex;
    flex-direction: row;
    gap: 10px;
}
.cookie-btn {
    border: none;
    border-radius: 18px;
    padding: 7px 20px;
    margin: 0;
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.16s, color 0.14s, box-shadow 0.18s;
    background: #efefef;
    color: #23436E;
}
.cookie-btn.accept {
    background: #23436E;
    color: #fff;
}
.cookie-btn.reject {
    background: #fff;
    border: 1px solid #23436E;
    color: #23436E;
}
.cookie-btn.settings {
    background: #F5A623;
    color: #23436E;
}
.cookie-btn:hover, .cookie-btn:focus {
    box-shadow: 0 2px 12px 0 rgba(35, 67, 110, 0.09);
    opacity: 0.89;
    outline: none;
}
@media (max-width: 740px) {
    .cookie-consent-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
        padding: 18px 7px 12px 10px;
        font-size: .98rem;
    }
    .cookie-consent-banner .cookie-actions {
        flex-direction: column;
        width: 100%;
        gap: 8px;
        align-items: flex-start;
    }
}

/* --- COOKIE PREFERENCES MODAL --- */
.cookie-modal {
    display: none;
    position: fixed;
    left: 0; right: 0; top: 0; bottom: 0;
    z-index: 4001;
    background: rgba(35,67,110,0.18);
    align-items: center;
    justify-content: center;
}
.cookie-modal.open {
    display: flex;
    animation: cookiefadein 0.28s cubic-bezier(.8, 0, .4, 1);
}
@keyframes cookiefadein {
    from { opacity: 0; }
    to   { opacity: 1; }
}
.cookie-modal-content {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 32px 0 rgba(35,67,110,0.15);
    padding: 38px 34px 30px 36px;
    max-width: 420px;
    min-width: 260px;
    width: 96%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    color: #23436E;
    font-family: 'Roboto', Arial, sans-serif;
    font-size: 1rem;
}
.cookie-modal-content h3 {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #23436E;
}
.cookie-category {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 18px;
    margin-bottom: 10px;
}
.cookie-category label {
    font-family: 'Roboto', Arial, sans-serif;
    color: #23436E;
    font-weight: 500;
    font-size: 1rem;
}
.cookie-category input[type='checkbox'] {
    width: 21px;
    height: 21px;
    accent-color: #F5A623;
    border-radius: 4px;
    margin: 0 6px 0 0;
}
.cookie-btn.close-modal {
    background: #fff;
    color: #23436E;
    border: 1px solid #23436E;
    border-radius: 50%;
    padding: 5px 13px 7px 13px;
    font-size: 1.45rem;
    position: absolute;
    right: 44px;
    top: 34px;
}
@media (max-width: 445px) {
    .cookie-modal-content { padding: 16px 8px 14px 10px; }
    .cookie-btn.close-modal {
      right: 13px;
      top: 7px;
    }
}

/* --- MICRO-INTERACTION UNIVERSAL STYLES --- */
.btn-primary, .cookie-btn, .mobile-menu-toggle {
    transition: background 0.19s, color 0.17s, box-shadow 0.17s, transform 0.14s;
}
[tabindex]:focus { outline: 2px solid #F5A623; }

/* --- GENERAL ACCESSIBILITY & USABILITY --- */
::selection { background: #F5A62333; }
::-webkit-input-placeholder { color: #B3BBC6; }
::-moz-placeholder { color: #B3BBC6; }
:-ms-input-placeholder { color: #B3BBC6; }
::placeholder { color: #B3BBC6; }

/* Utility classes if needed */
.hide { display: none !important; }
.text-center { text-align: center !important; }
.mt-32 { margin-top: 32px !important; }

/* --- END OF STYLES --- */
