/* --- CSS RESET & BASE ----------------------------- */
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, menu, 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, 
main, nav, output, ruby, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    outline: 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 {
    line-height: 1.5;
    background: linear-gradient(120deg, #A9CEC2 0%, #F8F5F2 100%);
    color: #204674;
    font-family: 'Source Sans Pro', Arial, Helvetica, sans-serif;
    min-height: 100vh;
    font-size: 16px;
    transition: background 0.5s;
}
img {
    max-width: 100%;
    display: block;
}
a {
    color: #204674;
    text-decoration: none;
    transition: color 0.2s;
}
a:hover, a:focus {
    color: #0d233a;
}
ul, ol {
    list-style: none;
}
button {
    font-family: inherit;
    border: none;
    background: none;
    cursor: pointer;
    outline: none;
    transition: background 0.2s, color 0.2s;
}

/* --- TYPOGRAPHY ------------------------------ */
h1, .display {
    font-family: 'Montserrat', Arial, Helvetica, sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -1px;
    color: #204674;
    margin-bottom: 20px;
    line-height: 1.15;
}
h2 {
    font-family: 'Montserrat', Arial, Helvetica, sans-serif;
    font-size: 2rem;
    font-weight: 600;
    color: #204674;
    margin-bottom: 18px;
    line-height: 1.2;
}
h3 {
    font-family: 'Montserrat', Arial, Helvetica, sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #204674;
    margin-bottom: 12px;
    line-height: 1.3;
}
p, li, dd {
    font-family: 'Source Sans Pro', Arial, Helvetica, sans-serif;
    font-size: 1rem;
    color: #204674;
    margin-bottom: 12px;
    line-height: 1.7;
}
.subheadline {
    font-size: 1.25rem;
    color: #326598;
    margin-bottom: 18px;
}
strong, b {
    font-weight: bold;
}
dt {
    font-weight: bold;
    margin-top: 16px;
    color: #204674;
}
dd {
    margin-left: 0;
    margin-bottom: 12px;
}
address {
    font-style: normal;
    color: #204674;
    font-size: 1rem;
    margin-bottom: 0;
}

/* --- LAYOUT CONTAINERS ----------------------- */
.container {
    width: 100%;
    max-width: 1140px;
    padding-left: 16px;
    padding-right: 16px;
    margin-left: auto;
    margin-right: auto;
}
.content-wrapper {
    width: 100%;
    margin: 0 auto;
}

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

/* FLEXBOX MANDATORY PATTERNS */
.card-container {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}
.card {
    margin-bottom: 20px;
    position: relative;
    flex: 1 1 calc(33% - 24px);
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 2px 14px rgba(32, 70, 116, 0.06);
    padding: 32px 24px;
    transition: box-shadow 0.2s;
}
.card:hover {
    box-shadow: 0 6px 28px rgba(32, 70, 116, 0.14);
}
.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;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(32, 70, 116, 0.10);
    background: #F8F5F2;
    color: #204674;
    margin-bottom: 20px;
    transition: box-shadow 0.2s;
}
.testimonial-card:hover {
    box-shadow: 0 6px 16px rgba(32, 70, 116, 0.18);
}
.feature-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    background: #fff;
    border-radius: 16px;
    padding: 28px 20px;
    box-shadow: 0 4px 24px rgba(32,70,116,0.08);
    min-width: 240px;
    flex: 1 1 200px;
    margin-bottom: 20px;
    transition: box-shadow 0.17s, transform 0.17s;
}
.feature-item:hover {
    box-shadow: 0 8px 32px rgba(32,70,116,0.18);
    transform: translateY(-2px) scale(1.015);
}

/* Feature grid special for homepage */
.feature-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: space-between;
}
.features-overview .feature-item img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    margin-bottom: 4px;
}

/* Service Items */
.service-list {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 24px;
}
.service-item {
    flex: 1 1 300px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 2px 14px rgba(32, 70, 116, 0.07);
    padding: 28px 20px 18px 20px;
    margin-bottom: 20px;
    position: relative;
    transition: box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.service-item .price {
    color: #204674;
    background: #A9CEC2;
    padding: 4px 12px;
    border-radius: 12px;
    font-weight: 600;
    align-self: flex-start;
    font-size: 1rem;
    margin-top: 0.5em;
}
.service-item:hover {
    box-shadow: 0 6px 22px rgba(32,70,116,0.14);
}

/* --- HERO & CTA ----------------------------- */
.hero-section {
    padding: 64px 0 32px 0;
    text-align: center;
}
.call-to-action {
    background: linear-gradient(90deg, #A9CEC2 8%, #F8F5F2 92%);
    border-radius: 22px;
    box-shadow: 0 4px 24px rgba(32, 70, 116, 0.08);
    text-align: center;
    padding: 48px 16px;
    margin-top: 24px;
    margin-bottom: 60px;
}
/* Ensure call-to-action is flex column on desktop */
.call-to-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

/* --- BUTTONS ------------------------------- */
.button {
    display: inline-block;
    font-family: 'Montserrat', Arial, Helvetica, sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 28px;
    padding: 12px 36px;
    margin: 10px 0 0 0;
    cursor: pointer;
    text-align: center;
    transition: background 0.18s, color 0.18s, box-shadow 0.2s;
    border: none;
    letter-spacing: 0.01em;
}
.button.primary {
    background: linear-gradient(90deg, #204674 40%, #A9CEC2 100%);
    color: #fff;
    box-shadow: 0 2px 12px rgba(32,70,116,0.10);
}
.button.primary:hover, .button.primary:focus {
    background: linear-gradient(90deg, #326598 30%, #b8ded0 100%);
    color: #fff;
    box-shadow: 0 4px 16px rgba(32,70,116,0.18);
}
.button.secondary {
    background: #fff;
    color: #204674;
    border: 2px solid #A9CEC2;
    box-shadow: 0 1px 4px rgba(32,70,116,0.06);
}
.button.secondary:hover, .button.secondary:focus {
    background: #A9CEC2;
    color: #204674;
}

/* --- HEADER BAR ---------------------------- */
header {
    position: relative;
    background: #fff;
    box-shadow: 0 2px 12px rgba(32, 70, 116, 0.07);
    z-index: 1002;
}
header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-top: 16px;
    padding-bottom: 16px;
}
.logo img {
    height: 48px;
    width: auto;
}
header nav {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
}
header nav a {
    font-family: 'Montserrat', Arial, Helvetica, sans-serif;
    font-weight: 500;
    font-size: 1rem;
    color: #204674;
    position: relative;
    padding: 4px 8px;
}
header nav a:after {
    content: '';
    display: block;
    height: 2px;
    width: 0;
    background: #A9CEC2;
    transition: width 0.2s;
    margin-top: 2px;
}
header nav a:hover:after, header nav a:focus:after {
    width: 100%;
}
/* Hide toggle by default, show on mobile*/
.mobile-menu-toggle {
    display: none;
    font-size: 2rem;
    background: #A9CEC2;
    color: #204674;
    border-radius: 10px;
    padding: 4px 12px 4px 12px;
    margin-left: 16px;
    transition: background 0.25s, color 0.25s;
    z-index: 1011;
}
.mobile-menu-toggle:active {
    background: #7aaba2;
    color: #fff;
}

/* --- MOBILE MENU --------------------------- */
.mobile-menu {
    position: fixed;
    top: 0; right: 0; left: 0; bottom: 0;
    background: rgba(249,248,246, 0.99);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(.52,0,.34,1);
    pointer-events: none;
    opacity: 0;
}
.mobile-menu.open {
    transform: translateX(0);
    pointer-events: auto;
    opacity: 1;
}
.mobile-menu-close {
    align-self: flex-end;
    background: #A9CEC2;
    color: #204674;
    border-radius: 50%;
    width: 46px; height: 46px;
    font-size: 2rem;
    margin: 22px 28px 8px 0;
    cursor: pointer;
    transition: background 0.18s, color 0.18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
    background: #204674;
    color: #fff;
}
.mobile-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    padding: 0 36px;
    margin-top: 34px;
    width: 100%;
}
.mobile-nav a {
    font-family: 'Montserrat', Arial, Helvetica, sans-serif;
    font-size: 1.25rem;
    color: #204674;
    padding: 10px 0;
    border-radius: 10px;
    width: 100%;
    transition: background 0.18s, color 0.18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
    background: #A9CEC2;
    color: #fff;
}
@media (max-width: 1024px) {
    header .container nav {
        display: none;
    }
    .mobile-menu-toggle {
        display: block;
    }
    header .button.primary {
        display: none;
    }
}

@media (max-width: 540px) {
    .mobile-nav {
      padding: 0 12vw;
    }
}

/* --- MAIN LAYOUT & UTILS -------------------- */
main {
    flex: 1 0 auto;
}
.text-section, .content-wrapper.text-section {
    padding: 0;
}
.text-section ul, .text-section ol {
    padding-left: 1.2em;
    list-style: disc;
    margin-bottom: 14px;
}
.text-section li {
    margin-bottom: 8px;
}
.text-section h3 {
    font-size: 1.1rem;
    color: #204674;
    font-weight: 600;
    margin-top: 16px;
}
.text-section dl {
    margin-top: 16px;
}

.team-section {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 24px;
}
.team-member {
    flex: 1 1 220px;
    background: #f6faf9;
    padding: 18px 14px;
    border-radius: 13px;
    box-shadow: 0 1px 6px rgba(32,70,116,0.07);
    font-size: 1rem;
    color: #204674;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.qualifications {
    margin-top: 24px;
    background: #A9CEC2;
    color: #204674;
    padding: 18px 22px;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(32,70,116,0.10);
}
.qualifications h3 {
    color: #204674;
    font-size: 1.1rem;
    margin-bottom: 10px;
}
.qualifications ul {
    list-style: disc;
    padding-left: 1.1em;
}
/* Contact page */
.contact-section {
    background: #fff;
    border-radius: 17px;
    box-shadow: 0 3px 16px rgba(32,70,116,0.06);
    padding: 32px 20px;
    margin-bottom: 32px;
}
.contact-details {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 12px;
}
.contact-map {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}
.contact-map img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

/* --- FOOTER --------------------------------- */
footer {
    background: #204674;
    color: #fff;
    padding: 44px 0 22px 0;
    font-size: 1rem;
    margin-top: 60px;
}
footer .container {
    display: flex;
    flex-wrap: wrap;
    gap: 32px 16px;
    align-items: flex-start;
    justify-content: space-between;
}
.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 220px;
}
.footer-nav nav {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}
.footer-nav a {
    color: #fff;
    font-family: 'Montserrat', Arial, Helvetica, sans-serif;
    font-size: 1rem;
    opacity: 0.9;
    padding: 2px 6px;
    border-radius: 6px;
    transition: background 0.16s, color 0.16s;
}
.footer-nav a:hover, .footer-nav a:focus {
    background: #A9CEC2;
    color: #204674;
}
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 190px;
    color: #fff;
    font-size: 1rem;
}
.footer-contact img {
    height: 42px;
    width: auto;
}
.footer-contact address {
    color: #fff;
    border-left: 2px solid #A9CEC2;
    padding-left: 12px;
}
.footer-social {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 72px;
    margin-top: 12px;
}
.footer-social a img {
    height: 26px;
    width: 26px;
    filter: brightness(4.5);
}
.footer-social a:hover img, .footer-social a:focus img {
    filter: brightness(1) saturate(3) hue-rotate(42deg);
}
.footer-copy {
    width: 100%;
    font-size: 0.97rem;
    color: #b7dde4;
    margin-top: 18px;
    text-align: center;
    opacity: 0.7;
}

/* --- TESTIMONIALS SLIDER ------------------- */
.testimonials-slider {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 24px;
}
.testimonials-slider .testimonial-card {
    flex: 1 1 270px;
    min-width: 240px;
    max-width: 410px;
}
/* Single Testimonial (About us) */
.content-wrapper > .testimonial-card {
    max-width: 500px;
    margin-bottom: 20px;
    margin-top: 10px;
}

/* --- RESPONSIVE MEDIA QUERIES -------------- */
@media (max-width: 1024px) {
    .container {
        max-width: 94vw;
    }
    .footer-nav nav {
        flex-wrap: wrap;
        gap: 10px;
    }
}
@media (max-width: 900px) {
    .feature-grid, .features-overview .feature-grid, .service-list, .testimonials-slider, .team-section, .content-grid, .card-container {
        flex-direction: column;
        gap: 20px;
        align-items: stretch;
    }
    .feature-item, .service-item, .testimonial-card, .team-member, .card {
        flex: 1 1 100%;
        min-width: 0;
        max-width: 100%;
    }
}
@media (max-width: 768px) {
    .section {
        margin-bottom: 34px;
        padding: 24px 4vw;
    }
    .hero-section {
        padding: 36px 0 14px 0;
    }
    h1 { font-size: 2rem; }
    h2 { font-size: 1.32rem; }
    h3 { font-size: 1.07rem; }
    .call-to-action {
        padding: 28px 4vw;
        margin-bottom: 38px;
    }
    .testimonials-slider {
        gap: 14px;
    }
    .feature-item, .service-item, .testimonial-card {
        padding: 20px 10px;
    }
    .text-image-section {
        flex-direction: column;
        gap: 18px;
        align-items: stretch;
    }
    .content-wrapper {
        padding: 0 0 0 0;
    }
    .team-section,
    .footer-contact,
    .footer-nav,
    .footer-social {
        min-width: 0;
        width: 100%;
    }
    .container {
        padding-left: 6px;
        padding-right: 6px;
    }
}
@media (max-width: 600px) {
    html, body {
        font-size: 15px;
    }
    .footer-copy {
        font-size: 0.89rem;
    }
    header .container {
        padding: 10px 6px;
        gap: 8px;
    }
    .logo img { height: 36px; }
}

/* --- COOKIE BANNER -------------------------- */
#cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    color: #204674;
    box-shadow: 0 -2px 16px rgba(32,70,116,0.13);
    padding: 24px 16px 20px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    z-index: 3000;
    font-size: 1rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.34s cubic-bezier(.48,0,.22,1);
}
#cookie-banner.visible {
    opacity: 1;
    pointer-events: auto;
}
#cookie-banner .cookie-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 8px;
}
#cookie-banner .button {
    font-size: 1rem;
    border-radius: 20px;
    padding: 8px 22px;
    min-width: 120px;
}
#cookie-banner .button:not(:last-child) {
    margin-right: 10px;
}
#cookie-banner .button {
    transition: background 0.18s, color 0.18s, box-shadow 0.18s, border 0.18s;
}
#cookie-banner .button.secondary {
    background: #A9CEC2;
    color: #204674;
    border: none;
}
#cookie-banner .button.secondary:hover {
    background: #204674;
    color: #fff;
}
#cookie-banner .cookie-link {
    color: #204674;
    text-decoration: underline;
    margin-left: 2px;
    margin-right: 2px;
}

/* COOKIE SETTINGS MODAL ---------------------- */
#cookie-modal {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    background: rgba(32,70,116,0.18);
    z-index: 4000;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.34s cubic-bezier(.48,0,.22,1);
}
#cookie-modal.visible {
    pointer-events: auto;
    opacity: 1;
}
#cookie-modal .modal-content {
    background: #fff;
    color: #204674;
    border-radius: 20px;
    box-shadow: 0 8px 38px rgba(32,70,116,0.22);
    max-width: 420px;
    padding: 32px 22px 20px 22px;
    min-width: 320px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}
#cookie-modal .modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}
#cookie-modal .modal-header h3 {
    margin-bottom: 0;
    font-size: 1.15rem;
}
#cookie-modal .modal-close {
    background: #A9CEC2;
    color: #204674;
    border-radius: 50%;
    width: 38px; height: 38px;
    font-size: 1.5rem;
    align-self: flex-end;
    transition: background 0.18s, color 0.18s;
    cursor: pointer;
    border: none;
}
#cookie-modal .modal-close:hover {
    background: #204674;
    color: #fff;
}
#cookie-modal .cookie-category {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 0;
    font-size: 1rem;
}
#cookie-modal .cookie-category .label {
    font-family: 'Montserrat', Arial, Helvetica, sans-serif;
    color: #204674;
    font-weight: 500;
    font-size: 1rem;
}
#cookie-modal .cookie-toggle {
    width: 44px;
    height: 26px;
    border-radius: 13px;
    background: #A9CEC2;
    position: relative;
    transition: background 0.20s;
    margin-left: 8px;
    cursor: pointer;
}
#cookie-modal .cookie-toggle input {
    opacity: 0;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0; left: 0;
    margin: 0;
}
#cookie-modal .cookie-toggle .slider {
    position: absolute;
    top: 3px; left: 3px;
    width: 20px; height: 20px;
    border-radius: 50%;
    background: #fff;
    transition: left 0.25s;
    box-shadow: 0 1px 5px rgba(32,70,116,0.18);
}
#cookie-modal .cookie-toggle input:checked ~ .slider {
    left: 21px;
}
#cookie-modal .cookie-toggle input:disabled ~ .slider {
    background: #eee;
    cursor: not-allowed;
}
#cookie-modal .modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 18px;
    flex-wrap: wrap;
}
#cookie-modal .modal-actions .button {
    min-width: 110px;
    font-size: 1rem;
}

/* --- ANIMATIONS ----------------------------- */
.button, .feature-item, .service-item, .card, .call-to-action, .testimonial-card, .mobile-menu, .mobile-menu-close, #cookie-banner, #cookie-modal .modal-content {
    transition: box-shadow 0.2s, background 0.23s, color 0.18s, transform 0.22s, border 0.18s, opacity 0.2s;
}
.button:active { transform: scale(0.97); }

/* --- SELECTED UTILS/MISC -------------------- */
::-webkit-input-placeholder { color:#999; }
::-moz-placeholder { color: #999; }
:-ms-input-placeholder { color: #999; }
::placeholder { color: #999; }

/* --- END CSS -------------------------------- */
