/* ----------------------------------
   CSS RESET & NORMALIZE (mobile-first)
----------------------------------- */
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;
}
html {
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 16px;
    scroll-behavior: smooth;
}
*, *:before, *:after { box-sizing: inherit; }
body { background: #F3EDE8; color: #29394C; font-family: 'Roboto', Arial, sans-serif; line-height: 1.6; min-height: 100vh; }
a { color: inherit; text-decoration: none; transition: color 0.2s cubic-bezier(.4,0,.2,1); outline: none; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
strong { font-weight: bold; }
hr { border: 0; height: 1px; background: #e0e0e0; margin: 32px 0; }

/* ----------------------------------
   BRAND FONTS & COLORS
----------------------------------- */
:root {
    --color-primary: #29394C;
    --color-secondary: #A7A9AC;
    --color-accent: #F3EDE8;
    --color-gradient-1: #29394c; /* strong blue */
    --color-gradient-2: #496489; /* lighter blue */
    --color-gradient-3: #A7A9AC; /* silver-grey */
    --color-gradient-cta: #395684; /* for CTAs */
    --shadow-main: 0 4px 24px rgba(41,57,76,0.09);
    --radius-main: 16px;
    --radius-small: 8px;
    --radius-full: 1000px;
    --transition-main: all 0.25s cubic-bezier(.4,0,.2,1);
    --color-white: #fff;
    --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
    --font-body: 'Roboto', Arial, Helvetica, sans-serif;
    --focus-outline: 2px solid #29394c;
}


/* ----------------------------------
   GLOBAL LAYOUT, CONTAINER, SECTION
----------------------------------- */
.container {
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
    margin-left: auto;
    margin-right: auto;
}
main { flex: 1 1 auto; }
section {
    margin-bottom: 60px;
    padding: 40px 20px;
    background: none;
}
.content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Gradient Modern Backgrounds */
section:nth-child(odd) {
    background: linear-gradient(135deg, var(--color-gradient-1) 0%, var(--color-gradient-2) 90%, var(--color-gradient-3) 100%);
    color: var(--color-white);
}
section:nth-child(even) {
    background: var(--color-accent);
    color: var(--color-primary);
}


/* ----------------------------------
   TYPOGRAPHY
----------------------------------- */
h1, h2, h3, h4 { font-family: var(--font-display); }
h1 {
    font-size: 2.5rem; /* 40px */
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.14;
}
h2 {
    font-size: 2rem; /* 32px */
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.16;
}
h3 {
    font-size: 1.375rem; /* 22px */
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.22;
}
h4 {
    font-size: 1.125rem; /* 18px */
    font-weight: 500;
    margin-bottom: 8px;
}
p, ul, ol, li, table, th, td, small {
    font-family: var(--font-body);
    font-size: 1rem; /* 16px */
    line-height: 1.7;
    color: inherit;
}
ul, ol { padding-left: 18px; margin-bottom: 16px; }
ul li, ol li { margin-bottom: 8px; }
small { font-size: 0.9rem; color: var(--color-secondary); }
a:hover, a:focus { color: var(--color-gradient-2); }

/* ----------------------------------
   HEADER, NAV & LOGO
----------------------------------- */
header {
    width: 100%;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 16px rgba(41,57,76,0.08);
    padding: 0;
}
header .container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 72px;
}
.logo img {
    height: 48px;
    width: auto;
    display: block;
    margin-right: 10px;
}
nav {
    display: flex;
    gap: 24px;
    align-items: center;
}
nav a {
    position: relative;
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--color-primary);
    font-size: 1rem;
    padding: 6px 2px;
    border-radius: var(--radius-small);
    transition: var(--transition-main);
}
nav a:hover, nav a:focus {
    background: var(--color-gradient-3);
    color: var(--color-gradient-1);
}
.cta-primary {
    background: linear-gradient(93deg, var(--color-gradient-1) 0%, var(--color-gradient-2) 100%);
    color: #fff;
    font-family: var(--font-display);
    font-weight: 700;
    border: none;
    outline: none;
    border-radius: var(--radius-main);
    padding: 12px 28px;
    font-size: 1.1rem;
    margin-left: 12px;
    box-shadow: var(--shadow-main);
    cursor: pointer;
    transition: var(--transition-main);
    display: inline-block;
    text-align: center;
}
.cta-primary:hover, .cta-primary:focus {
    background: linear-gradient(93deg, var(--color-gradient-2) 0%, var(--color-gradient-1) 100%);
    box-shadow: 0 6px 32px rgba(41,57,76,0.16);
    transform: translateY(-2px) scale(1.025);
    color: #fff;
}

/* --- Hamburger / Mobile Nav --- */
.mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--color-primary);
    cursor: pointer;
    z-index: 300;
    padding: 6px 10px;
    border-radius: var(--radius-full);
    margin-left: 8px;
    transition: background 0.16s;
}
.mobile-menu-toggle:focus {
    outline: var(--focus-outline);
    background: var(--color-gradient-3);
}
.mobile-menu {
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(136deg, var(--color-gradient-1), var(--color-gradient-3));
    z-index: 400;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(.61,.01,.34,1), opacity 0.3s;
    opacity: 0;
    pointer-events: none;
}
.mobile-menu.open {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
}
.mobile-menu-close {
    position: absolute;
    top: 24px;
    right: 28px;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--color-white);
    cursor: pointer;
    z-index: 401;
    padding: 8px;
    border-radius: var(--radius-full);
    transition: background 0.16s;
}
.mobile-menu-close:focus {
    outline: var(--focus-outline);
    background: rgba(255,255,255,0.1);
}
.mobile-nav {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1 1 auto;
    gap: 36px;
    margin-top: 70px;
}
.mobile-nav a {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--color-white);
    text-align: center;
    border-radius: var(--radius-main);
    padding: 12px 0;
    width: 100vw;
    transition: background .19s;
    outline: none;
}
.mobile-nav a:hover, .mobile-nav a:focus {
    background: rgba(255,255,255,0.16);
    color: #fff;
}

@media(min-width: 900px) {
    .mobile-menu-toggle { display: none !important; }
    .mobile-menu { display: none !important; }
}
@media(max-width: 899px) {
    header nav, header .cta-primary { display: none !important; }
    .mobile-menu-toggle { display: flex !important; }
}


/* ----------------------------------
   FOOTER
----------------------------------- */
footer {
    background: var(--color-gradient-1);
    color: var(--color-white);
    padding: 32px 0 16px 0;
    border-top-left-radius: var(--radius-main);
    border-top-right-radius: var(--radius-main);
    box-shadow: 0 -2px 18px rgba(41,57,76,0.08);
    position: relative;
}
footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
}
footer nav {
    gap: 18px;
    margin: 10px 0;
    flex-wrap: wrap;
}
footer nav a {
    color: var(--color-white);
    font-size: 1rem;
    border-radius: var(--radius-small);
    transition: background .17s;
    padding: 4px 8px;
}
footer nav a:hover, footer nav a:focus {
    background: var(--color-gradient-2);
    color: #fff;
}
footer img {
    height: 44px;
}
footer small { color: #e5e8ed; }

/* ------------------------
    FLEX LAYOUT CLASSES
------------------------ */
/* Section spacing is already set above. */
.card-container {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}
.card {
    background: #fff;
    border-radius: var(--radius-main);
    box-shadow: var(--shadow-main);
    margin-bottom: 20px;
    position: relative;
    padding: 24px 24px 20px 24px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 16px;
    min-width: 240px;
    flex: 1 1 260px;
}
.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 { flex-direction: column; align-items: stretch; gap: 20px; }
    .content-grid, .card-container { flex-direction: column; gap: 20px; }
}

.testimonial-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: #fff;
    color: var(--color-primary);
    border-radius: var(--radius-main);
    box-shadow: var(--shadow-main);
    min-width: 220px;
    max-width: 410px;
    font-size: 1.1rem;
    margin-bottom: 20px;
}
.feature-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
}

/* --------------------
   HOMEPAGE COMPONENTS
---------------------*/
.feature-grid, .project-tiles, .result-descriptions, .faq-list, .text-section {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}
.feature-grid > div, .project-tiles > div {
    border-radius: var(--radius-main);
    box-shadow: var(--shadow-main);
    padding: 28px 22px 22px;
    flex: 1 1 280px;
    transition: box-shadow .18s, transform .2s;
}
.feature-grid > div:hover, .project-tiles > div:hover {
    box-shadow: 0 10px 32px rgba(73,100,137,0.17);
    transform: translateY(-5px) scale(1.015);
}
.usp-list {
    display: flex;
    gap: 44px;
    flex-wrap: wrap;
    align-items: flex-start;
}
.usp-list ul {
    list-style: none;
    padding-left: 0;
}
.usp-list li, .usp-list ul li {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 1.02rem;
    font-family: var(--font-body);
}
.usp-list img {
    height: 20px;
    width: 20px;
}
.client-logos {
    display: flex;
    align-items: center;
    gap: 18px;
    color: var(--color-secondary);
    font-size: 1rem;
}
.client-logos img { height: 32px; width: auto; }

.cta-banner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    background: linear-gradient(101deg, var(--color-gradient-1) 50%, var(--color-gradient-cta) 100%);
    color: #fff;
    border-radius: var(--radius-main);
    box-shadow: 0 8px 32px rgba(41,57,76,0.11);
    padding: 36px 20px;
}
.cta-banner h2 {
    color: #fff;
    font-size: 2rem;
}

.service-icons {
    display: flex;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
    margin: 16px 0 8px 0;
}
.service-icons img {
    height: 50px;
    filter: brightness(0) saturate(100%) invert(27%) sepia(10%) saturate(1400%) hue-rotate(175deg) brightness(88%) contrast(94%);
    opacity: 0.7;
    transition: opacity 0.18s;
}
.service-icons img:hover {
    opacity: 1;
}


/* ---------
   TABLES
---------- */
.pricing-table table {
    width: 100%;
    border-radius: var(--radius-main);
    overflow: hidden;
    box-shadow: var(--shadow-main);
    margin-bottom: 20px;
}
.pricing-table th, .pricing-table td {
    padding: 12px 18px;
    text-align: left;
    border-bottom: 1px solid var(--color-gradient-3);
    font-size: 1rem;
}
.pricing-table th {
    background: var(--color-gradient-2);
    color: #fff;
}
.pricing-table tr:last-child td { border-bottom: none; }


/* -----------
   MAP BLOCK
------------ */
.map {
    border-radius: var(--radius-main);
    background: #fff;
    color: var(--color-primary);
    padding: 16px;
    box-shadow: var(--shadow-main);
    margin: 18px 0 0 0;
    font-size: 1rem;
    text-align: center;
}


/* -------------
   TESTIMONIALS
-------------- */
.testimonial-slider {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: flex-start;
}
@media (max-width: 900px) {
    .testimonial-slider { flex-direction: column; gap: 20px; }
}
.testimonial-card p {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--color-primary);
}
.testimonial-card strong {
    font-family: var(--font-display);
    color: var(--color-gradient-1);
    font-weight: 700;
    font-size: 1rem;
}


/* ---------------
   RESPONSIVE
---------------- */
@media(max-width: 1200px) {
    .container { max-width: 990px; }
}
@media(max-width: 990px) {
    .container { max-width: 748px; }
    .usp-list, .feature-grid, .card-container, .testimonial-slider, .project-tiles {
        gap: 18px;
    }
    .cta-banner {padding: 22px 12px;}
}
@media(max-width: 768px) {
    header .container, footer .container { flex-direction: column; align-items: flex-start; gap: 12px; }
    .feature-grid, .service-icons, .usp-list, .testimonial-slider, .project-tiles, .content-grid, .card-container { flex-direction: column; gap: 20px; }
    .cta-banner { padding: 16px 8px; }
    section { padding: 24px 8px; }
    h1 { font-size: 2rem; }
    h2 { font-size: 1.25rem; }
}

/* ---------------
   BUTTONS
---------------- */
button, .cta-primary, input[type="submit"] {
    outline: none;
    border: none;
    border-radius: var(--radius-main);
    cursor: pointer;
    transition: var(--transition-main);
    font-family: var(--font-display);
}
button:focus, input[type="submit"]:focus, .cta-primary:focus {
    outline: var(--focus-outline);
    box-shadow: 0 0 0 3px #A7A9AC44;
}


/* -----------------------------
   MICRO-INTERACTIONS & EFFECTS
------------------------------- */
a, button, .feature-grid > div, .card, .cta-banner, .testimonial-card {
    transition: var(--transition-main);
}
.feature-grid > div:active, .card:active, .cta-primary:active {
    transform: scale(0.97);
    box-shadow: none;
}

/* ---------------------------------------
   COOKIE CONSENT BANNER & PREFERENCES MODAL
----------------------------------------- */
.cookie-banner {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    width: 100%;
    z-index: 9000;
    background: #fff;
    color: var(--color-primary);
    box-shadow: 0 -4px 28px rgba(41,57,76,0.10);
    padding: 24px 18px 24px 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    flex-wrap: wrap;
    font-size: 1rem;
}
.cookie-banner p {
    flex: 1 1 240px;
    margin: 0;
}
.cookie-banner .cookie-btn {
    background: linear-gradient(93deg, var(--color-gradient-1) 0%, var(--color-gradient-2) 100%);
    color: #fff;
    font-weight: 700;
    border: none;
    outline: none;
    border-radius: var(--radius-main);
    padding: 10px 22px;
    font-size: 1rem;
    margin-right: 12px;
    margin-bottom: 4px;
    min-width: 150px;
    cursor: pointer;
    transition: var(--transition-main);
}
.cookie-banner .cookie-btn.cookie-settings {
    background: #A7A9AC;
    color: #29394C;
    font-weight: 600;
}
.cookie-banner .cookie-btn:hover, .cookie-banner .cookie-btn:focus {
    filter: brightness(1.1);
    transform: translateY(-2px) scale(1.02);
}

/* Cookie Preferences Modal */
.cookie-modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: rgba(40,57,76,0.42);
    z-index: 9500;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .29s cubic-bezier(.4,0,.2,1);
}
.cookie-modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}
.cookie-modal {
    background: #fff;
    color: var(--color-primary);
    border-radius: var(--radius-main);
    padding: 32px 36px 28px;
    min-width: 312px;
    max-width: 94vw;
    box-shadow: 0 6px 48px rgba(41,57,76,0.15);
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 28px;
    animation: cookieModalIn .32s cubic-bezier(.4,0,.2,1);
}
@keyframes cookieModalIn {
    from { transform: translateY(92px) scale(.94); opacity: 0; }
    to { transform: none; opacity: 1; }
}
.cookie-modal h2 {
    font-size: 1.3rem;
    font-family: var(--font-display);
    margin-bottom: 10px;
}
.cookie-modal-category {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 12px;
}
.cookie-modal label {
    font-size: 1rem;
    color: var(--color-primary);
    font-weight: 500;
}
.cookie-modal input[type="checkbox"] {
    accent-color: var(--color-gradient-2);
    outline: none;
    margin-right: 5px;
    width: 18px; height: 18px;
    border-radius: 4px;
}
.cookie-modal-actions {
    display: flex;
    gap: 16px;
    justify-content: flex-end;
}
.cookie-modal .cookie-btn { min-width: 128px; }
.cookie-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.4rem;
    color: var(--color-secondary);
    cursor: pointer;
    z-index: 10;
    transition: color 0.13s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
    color: var(--color-primary);
    outline: var(--focus-outline);
}

@media (max-width: 600px) {
    .cookie-modal { padding: 16px 8px 18px; min-width: 0; }
    .cookie-banner { flex-direction: column; gap: 16px; align-items: flex-start; }
}

/* --------------
   FAQ SECTION
-------------- */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.faq-list h3 {
    font-size: 1.1rem;
    font-family: var(--font-display);
    color: var(--color-gradient-1);
    margin-bottom: 7px;
}
.faq-list p {
    font-size: 1rem;
    margin-bottom: 10px;
}

/* -------------
   UTILS
-------------- */
.text-section {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.result-descriptions {
    flex-direction: column; gap: 16px;
}
.card-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
}

/* ----------
   MISC
----------- */
::-webkit-scrollbar-thumb {
    background: var(--color-gradient-3);
    border-radius: 4px;
}
::-webkit-scrollbar {
    width: 8px;
    background: var(--color-accent);
}

/* FOCUS/ACCESSIBILITY */
a:focus, button:focus { outline: var(--focus-outline); box-shadow: 0 0 0 2px #a7a9ac88; }

/* Hide default browser outlines on click but show on keyboard */
:focus:not(:focus-visible) { outline: none; box-shadow: none; }
:focus-visible { outline: var(--focus-outline); box-shadow: 0 0 0 2px #a7a9ac88; }
