/* =========================
   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 {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    background: #F6F8FB;
}
body {
    font-family: 'Roboto', Arial, sans-serif;
    color: #1c2750;
    background: #F6F8FB;
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
img {
    max-width: 100%;
    height: auto;
    display: block;
}
a {
    color: #243463;
    text-decoration: none;
    transition: color 0.2s cubic-bezier(.51,.03,.64,.28);
    outline: none;
}
a:hover, a:focus {
    color: #21a179;
    text-decoration: underline;
}
ul, ol {
    margin-left: 1.25em;
    margin-bottom: 1em;
}
li {
    margin-bottom: 0.5em;
}
button, input, textarea, select {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    outline: none;
    border-radius: 0;
}
button {
    border: none;
    background: none;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}
strong, b {
    font-weight: 700;
}
hr {
    border: 0;
    border-top: 1.5px solid #e1e6ed;
    margin: 32px 0;
}

/* =============================
   GEOMETRIC STRUCTURED DESIGN
   ============================= */
:root {
    --eh-primary: #243463;
    --eh-primary-dark: #1c2750;
    --eh-secondary: #DAE2F8;
    --eh-bg: #F6F8FB;
    --eh-accent: #21a179;
    --eh-white: #fff;
    --eh-black: #161B29;
    --eh-grey: #8EA3B7;
    --eh-shadow: 0 2px 16px rgba(36,52,99,0.10);
    --eh-radius: 12px;
    --eh-radius-card: 16px;
    --eh-gap-lg: 60px;
    --eh-gap-md: 32px;
    --eh-gap: 24px;
    --eh-gap-sm: 16px;
    --eh-border: 1.5px solid #E1E6ED;
    --eh-main-font: 'Roboto', Arial, sans-serif;
    --eh-display-font: 'Montserrat', 'Roboto', Arial, sans-serif;
    --eh-transition: 0.2s cubic-bezier(.51,.03,.64,.28);
}

body {
    background: var(--eh-bg);
}

.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.content-wrapper {
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* =============================
   TYPOGRAPHY (Hierarchy + Style)
   ============================= */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--eh-display-font);
    font-weight: 700;
    color: var(--eh-primary-dark);
    letter-spacing: -1px;
    margin-bottom: 12px;
}
h1 {
    font-size: 2.25rem; /* 36px */
    line-height: 1.15;
}
h2 {
    font-size: 1.625rem; /* 26px */
    margin-top: 24px;
    line-height: 1.2;
}
h3 {
    font-size: 1.25rem; /* 20px */
}
h4 {
    font-size: 1.125rem; /* 18px */
}

p, ul, ol, blockquote {
    font-size: 1rem; /* 16px */
    color: var(--eh-black);
    margin-bottom: 12px;
    line-height: 1.65;
}
@media (max-width: 768px) {
    h1 { font-size: 1.625rem; }
    h2 { font-size: 1.25rem; }
    h3 { font-size: 1.05rem; }
}

/* =============================
   HEADER & NAVIGATION
   ============================= */
header {
    width: 100%;
    background: var(--eh-white);
    border-bottom: var(--eh-border);
    box-shadow: 0 1px 12px rgba(36,52,99,.07);
    z-index: 100;
    position: sticky;
    top: 0;
}

header .container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 72px;
}
.logo img {
    height: 40px;
    width: auto;
    display: block;
}
nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 18px;
}
nav a {
    font-family: var(--eh-display-font);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--eh-primary);
    padding: 8px 10px;
    border-radius: 8px;
    transition: background var(--eh-transition);
}
nav a.active, nav a:hover, nav a:focus {
    background: var(--eh-accent);
    color: var(--eh-white);
    text-decoration: none;
}
.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--eh-display-font);
    border: none;
    border-radius: var(--eh-radius);
    padding: 12px 30px;
    font-size: 1.125rem;
    font-weight: 700;
    cursor: pointer;
    margin-left: 18px;
    box-shadow: 0 1.5px 8px rgba(36,52,99,0.08);
    transition: background,var(--eh-transition),color,var(--eh-transition),box-shadow,var(--eh-transition);
    outline: none;
}
.btn-primary {
    background: var(--eh-primary);
    color: var(--eh-white);
}
.btn-primary:hover, .btn-primary:focus {
    background: var(--eh-accent);
    color: var(--eh-white);
    box-shadow: 0 4px 18px 0 rgba(33,161,121,0.18);
}
.btn-secondary {
    background: var(--eh-secondary);
    color: var(--eh-primary);
    border: 1.5px solid var(--eh-accent);
}
.btn-secondary:hover, .btn-secondary:focus {
    background: var(--eh-accent);
    color: var(--eh-white);
    border-color: var(--eh-accent);
}

/* MOBILE NAV BURGER */
.mobile-menu-toggle {
    display: none;
    background: var(--eh-accent);
    color: var(--eh-white);
    border: none;
    border-radius: 8px;
    padding: 10px 16px;
    margin-left: 16px;
    font-size: 2rem;
    transition: background var(--eh-transition);
    z-index: 250;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
    background: var(--eh-primary);
}
@media (max-width: 990px) {
    nav { display: none; }
    .btn-primary { display: none; }
    .mobile-menu-toggle {
        display: block;
    }
}

/* MOBILE MENU OVERLAY */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100vw;
    background: rgba(28,39,80,0.97);
    z-index: 300;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    transform: translateX(-100vw);
    transition: transform 0.36s cubic-bezier(.72,-0.08,.5,1.02);
    pointer-events: none;
    opacity: 0;
}
.mobile-menu.open {
    transform: translateX(0);
    pointer-events: all;
    opacity: 1;
}
.mobile-menu-close {
    align-self: flex-end;
    background: none;
    border: none;
    color: var(--eh-white);
    font-size: 2rem;
    margin: 30px 30px 0 0;
    z-index: 301;
    cursor: pointer;
}
.mobile-nav {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 20px 40px;
    gap: 18px;
    margin-top: 48px;
}
.mobile-nav a {
    color: var(--eh-white);
    font-size: 1.25rem;
    font-family: var(--eh-display-font);
    font-weight: 600;
    background: none;
    padding: 16px 0;
    border-radius: 0;
    border-bottom: 1.5px solid rgba(255,255,255,0.18);
    transition: color var(--eh-transition);
}
.mobile-nav a:hover, .mobile-nav a:focus {
    color: var(--eh-accent);
    background: none;
}
@media (max-width: 990px) {
    .mobile-menu { display: flex; }
}


/* ===========================
   SECTIONS & LAYOUT PATTERNS
   =========================== */
.section {
    margin-bottom: 60px;
    padding: 40px 20px;
    background: var(--eh-white);
    border-radius: var(--eh-radius-card);
    box-shadow: var(--eh-shadow);
}
@media (max-width: 768px) {
    .section { margin-bottom: 32px; padding: 32px 6px; }
}
.card-container {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}
.card {
    background: var(--eh-white);
    border-radius: var(--eh-radius);
    box-shadow: var(--eh-shadow);
    padding: 28px 24px;
    margin-bottom: 20px;
    position: relative;
    flex: 1 1 320px;
    transition: box-shadow var(--eh-transition), transform var(--eh-transition);
    border: var(--eh-border);
}
.card:hover, .card:focus-within {
    box-shadow: 0 4px 30px 0 rgba(33,161,121,.13);
    transform: translateY(-4px) scale(1.018);
}
.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;
        gap: 18px;
        align-items: flex-start;
    }
}
.testimonial-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    background: var(--eh-secondary);
    padding: 20px 24px;
    margin-bottom: 24px;
    border-radius: var(--eh-radius);
    box-shadow: 0 2px 14px rgba(36,52,99,0.09);
    border: 1.5px solid #E6ECF5;
    color: var(--eh-black);
    font-size: 1.05rem;
    transition: box-shadow var(--eh-transition), background var(--eh-transition);
}
.testimonial-card:hover, .testimonial-card:focus-within {
    box-shadow: 0 6px 24px rgba(33,161,121,0.10);
    background: #ebf6f2;
}
.testimonial-card p {
    margin-bottom: 8px;
    color: var(--eh-primary-dark);
}
.testimonial-card span {
    font-size: 0.97rem;
    font-weight: 600;
    color: var(--eh-grey);
}
.stars {
    display: flex;
    align-items: center;
    gap: 1.5px;
    margin-top: -14px;
}
.feature-item, .features ul, .technology-preview ul, .services-preview ul, .contact-cta ul, .text-section ul {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    list-style: none;
    padding-left: 0;
}
.feature-item img, .features ul img, .technology-preview ul img, .contact-cta ul img, .industries ul img {
    width: 34px;
    height: 34px;
    margin-right: 14px;
}
.features ul li, .technology-preview ul li, .contact-cta ul li, .industries ul li {
    display: flex;
    align-items: center;
    background: #F4F7FC;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--eh-primary-dark);
}
@media (max-width: 768px) {
    .card-container, .content-grid {
        flex-direction: column;
        gap: 18px;
    }
}

/* ==========================
   HERO & SPECIAL SECTIONS
   ==========================
*/
.hero {
    padding: 56px 0 48px 0;
    background: linear-gradient(90deg, #DAE2F8 0%, #F6F8FB 100%);
    border-radius: 0 0 var(--eh-radius-card) var(--eh-radius-card);
    box-shadow: 0 6px 30px rgba(36,52,99,0.08);
    margin-bottom: 56px;
}
.hero .container {
    flex-direction: row;
    align-items: center;
    gap: 28px;
}
.hero .content-wrapper {
    max-width: 600px;
    gap: 20px;
}
.hero h1 {
    color: var(--eh-primary);
}
.hero p {
    font-size: 1.17rem;
    color: var(--eh-black);
}
.hero .btn-primary {
    margin: 18px 0 0 0;
}
@media (max-width: 768px) {
    .hero { margin-bottom: 30px; padding: 32px 0; border-radius: 0 0 16px 16px; }
    .hero .container { flex-direction: column; gap: 0; }
    .hero .content-wrapper { max-width: 100%; }
}

/* ==========================
   TEXT SECTIONS
   ==========================
*/
.text-section ul, .text-section ol {
    margin-bottom: 14px;
    gap: 10px;
    padding-left: 16px;
    font-size: 1rem;
    color: var(--eh-primary-dark);
}
.text-section p {
    margin-bottom: 12px;
}
.text-section img {
    width: 34px;
    height: 34px;
    margin-right: 7px;
}

/* ==========================
   CTA SECTIONS
   ==========================
*/
.contact-cta, .services-preview, .technology-preview, .features, .testimonials-preview {
    background: var(--eh-white);
    border-radius: var(--eh-radius-card);
    margin-bottom: 60px;
    padding: 36px 20px;
    box-shadow: var(--eh-shadow);
}
.contact-cta ul li {
    font-size: 1rem;
    background: #F4F7FC;
    margin-bottom: 8px;
    border-radius: 7px;
    padding: 10px 18px;
}
@media (max-width: 768px) {
    .contact-cta, .services-preview, .technology-preview, .features, .testimonials-preview {
        margin-bottom: 32px; padding: 24px 8px;
    }
}

/* ==========================
   FOOTER
   ==========================
*/
footer {
    background: var(--eh-primary-dark);
    color: var(--eh-white);
    width: 100vw;
    margin-left: -1vw;
    font-size: 1rem;
}
footer .container {
    flex-direction: column;
    gap: 12px;
    padding: 40px 20px 15px 20px;
}
.footer-main {
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 32px;
    justify-content: space-between;
    align-items: flex-start;
}
.footer-brand img {
    width: 54px; height: auto; margin-bottom: 8px;
}
.footer-nav, .footer-contact, .footer-social {
    display: flex;
    flex-direction: column;
    gap: 7px;
}
.footer-nav a {
    color: var(--eh-white);
    font-family: var(--eh-display-font);
    font-size: 1rem;
    font-weight: 500;
    opacity: 0.93;
    transition: opacity var(--eh-transition);
}
.footer-nav a:hover, .footer-nav a:focus {
    opacity: 1;
}
.footer-contact strong {
    color: var(--eh-accent);
    font-family: var(--eh-display-font);
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 4px;
}
.footer-social {
    flex-direction: row;
    gap: 12px;
}
.footer-social a {
    background: #1b2a4a;
    border-radius: 50%;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--eh-transition);
}
.footer-social a:hover, .footer-social a:focus {
    background: var(--eh-accent);
}
.footer-copy {
    width: 100%;
    text-align: right;
    font-size: 0.97rem;
    color: #aec1df;
    margin-top: 26px;
}
@media (max-width: 900px) {
    .footer-main { flex-direction: column; gap: 22px; align-items: flex-start; }
    .footer-copy { text-align: left; }
}

/* ==========================
   COOKIE CONSENT BANNER
   ==========================
*/
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100vw;
    background: var(--eh-white);
    border-top: 2.5px solid var(--eh-primary);
    box-shadow: 0 -1.5px 16px rgba(36,52,99,0.10);
    padding: 26px 20px 24px 20px;
    z-index: 999;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 32px;
    justify-content: space-between;
    opacity: 1;
    transition: opacity 0.33s cubic-bezier(.51,.03,.64,.28);
}
#cookie-banner.hide {
    opacity: 0;
    pointer-events: none;
}
#cookie-banner .cookie-text {
    font-size: 1.02rem;
    color: var(--eh-black);
    max-width: 600px;
    flex: 1;
}
#cookie-banner .cookie-actions {
    display: flex;
    flex-direction: row;
    gap: 13px;
    align-items: center;
}
.cookie-btn {
    background: var(--eh-accent);
    color: var(--eh-white);
    border: none;
    border-radius: 9px;
    padding: 10px 24px;
    font-weight: 700;
    font-family: var(--eh-display-font);
    font-size: 1rem;
    margin-left: 0;
    transition: background var(--eh-transition), color var(--eh-transition);
    cursor: pointer;
}
.cookie-btn.secondary {
    background: var(--eh-secondary);
    color: var(--eh-primary);
    border: 1.5px solid var(--eh-accent);
}
.cookie-btn.secondary:hover, .cookie-btn.secondary:focus {
    background: var(--eh-accent);
    color: var(--eh-white);
}
.cookie-btn:hover, .cookie-btn:focus {
    background: var(--eh-primary);
}

@media (max-width: 630px) {
    #cookie-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        padding: 22px 6px 14px 8px;
    }
    #cookie-banner .cookie-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* COOKIE MODAL POPUP */
#cookie-modal {
    position: fixed;
    left: 50%;
    top: 50%;
    width: 96vw;
    max-width: 400px;
    background: var(--eh-white);
    border-radius: var(--eh-radius-card);
    box-shadow: 0 4px 32px rgba(36,52,99,0.15);
    padding: 34px 24px;
    transform: translate(-50%, -50%) scale(1);
    z-index: 1001;
    display: none;
    opacity: 0;
    transition: opacity 0.3s, transform 0.4s cubic-bezier(.51,.03,.64,.28);
}
#cookie-modal.open {
    display: block;
    opacity: 1;
}
#cookie-modal header {
    font-family: var(--eh-display-font);
    font-size: 1.13rem;
    color: var(--eh-primary);
    font-weight: bold;
    margin-bottom: 17px;
}
.cookie-categories {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}
.cookie-category {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
    font-size: 1rem;
}
.cookie-category label {
    font-family: var(--eh-main-font);
}
.cookie-category input[type="checkbox"], .cookie-category input[type="radio"] {
    accent-color: var(--eh-accent);
    width: 19px;
    height: 19px;
    border-radius: 2px;
    border: 1.6px solid var(--eh-primary-dark);
    margin-right: 2px;
}
#cookie-modal .modal-actions {
    display: flex;
    flex-direction: row;
    gap: 12px;
    margin-top: 14px;
}
#cookie-modal .close-modal {
    margin-left: auto;
    border: none;
    background: none;
    color: var(--eh-grey);
    font-size: 1.5rem;
    cursor: pointer;
    position: absolute;
    right: 16px;
    top: 18px;
}

/* =============================
   GEOMETRIC VISUAL ELEMENTS
   ============================= */
.card, .testimonial-card, .contact-cta, .section, .services-preview, .technology-preview, .features {
    border-radius: var(--eh-radius-card);
    box-shadow: var(--eh-shadow);
    overflow: visible;
}
.card {
    border-bottom: 7px solid var(--eh-accent);
}
.features ul li:before, .services-preview ul li:before, .technology-preview ul li:before, .industries ul li:before {
    content: '';
    display: inline-block;
    background: var(--eh-accent);
    width: 22px;
    height: 22px;
    margin-right: 18px;
    -webkit-clip-path: polygon(0 0, 100% 0, 75% 100%, 25% 100%);
    clip-path: polygon(0 0, 100% 0, 75% 100%, 25% 100%);
    vertical-align: middle;
}
/* Hide before if li already has img inside */
.features ul li img ~ *, .services-preview ul li img ~ *, .technology-preview ul li img ~ *, .industries ul li img ~ * {
    margin-left: 0px;
}
.features ul li img, .services-preview ul li img, .technology-preview ul li img, .industries ul li img {
    margin-right: 14px;
}

/* ==========================
   RESPONSIVE MEDIA QUERIES
   ==========================
*/
@media (max-width: 1140px) {
    .container { max-width: 98vw; }
}
@media (max-width: 768px) {
    .container { padding: 0 6vw; }
}

/* ==========================
   MICRO-INTERACTIONS & EFFECTS
   ==========================
*/
.card, .testimonial-card {
    transition: box-shadow var(--eh-transition), background var(--eh-transition), transform var(--eh-transition);
}
.card:active, .testimonial-card:active {
    transform: scale(0.985);
    background: #f3faf8;
}
.btn-primary, .btn-secondary, .cookie-btn {
    transition: background var(--eh-transition), color var(--eh-transition), box-shadow var(--eh-transition), transform var(--eh-transition);
}
.btn-primary:active, .btn-secondary:active, .cookie-btn:active {
    transform: scale(0.98);
}

/* ==========================
   FORM FIELDS
   ==========================
*/
input[type="text"], input[type="email"], textarea, select {
    border: var(--eh-border);
    padding: 12px 16px;
    border-radius: var(--eh-radius);
    width: 100%;
    font-size: 1rem;
    margin-bottom: 14px;
    background: #f9fbfe;
    color: var(--eh-black);
    box-sizing: border-box;
}
input[type="text"]:focus, input[type="email"]:focus, textarea:focus, select:focus {
    border-color: var(--eh-accent);
    background: #ebf6f2;
}

/* =============================
   UTILITY CLASSES
   ============================= */
.text-center { text-align: center !important; }
.mt-0 { margin-top: 0 !important; } .mb-0 { margin-bottom: 0 !important; }
.gap-8 { gap: 8px !important; }
.gap-16 { gap: 16px !important; }
.gap-24 { gap: 24px !important; }
.gap-32 { gap: 32px !important; }
.flex-col { flex-direction: column !important; }
.flex-row { flex-direction: row !important; }
display-flex { display: flex !important; }

/* =============================
   FOCUS VISIBLE FOR ACCESSIBILITY
   ============================= */
a:focus, .btn-primary:focus, .btn-secondary:focus, .mobile-menu-toggle:focus, .mobile-menu-close:focus, .cookie-btn:focus, .cookie-category input:focus {
    outline: 2px solid var(--eh-accent);
    outline-offset: 2px;
    background: #ebf6f2;
}

/* ===========================
   Z-INDEX HIERARCHY
   ===========================
   header: 100
   mobile menu: 300
   cookie banner: 999
   cookie modal: 1001
   ===========================
*/

/* ================
   PRINT FRIENDLY
   ================
*/
@media print {
    header, footer, #cookie-banner, #cookie-modal { display: none !important; }
    body { background: #fff !important; }
    section, .section, .card, .testimonial-card { background: #fff !important; box-shadow: none !important; border: none !important; }
}
