/* ================================================== */
/* 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, 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; scroll-behavior: smooth; }
*, *:before, *:after { box-sizing: inherit; }
body { line-height: 1; }
ol, ul { list-style: none; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }
:root {
    /* Brand Colors */
    --color-primary: #22486B;
    --color-secondary: #D7A55B;
    --color-accent: #F9F8F6;
    --color-bg-dark: #161A1E;
    --color-bg-section: #20252B;
    --color-grey: #444b53;
    --color-metal: #BAC4CE;
    --color-border: #23272D;
    --color-text: #E6E6E3;
    --color-card-bg: #232933;
    --color-card-light: #343A40;
    --color-shadow: rgba(40, 45, 58, 0.14);
    --color-white: #ffffff;
    --color-black: #13171A;

    /* Brand Fonts */
    --font-display: 'Montserrat', 'Arial Narrow', Arial, sans-serif;
    --font-body: 'Open Sans', Arial, Helvetica, sans-serif;
}

body {
    font-family: var(--font-body);
    background: var(--color-bg-dark);
    color: var(--color-text);
    font-size: 16px;
    padding-bottom: 0; /* For cookie banner room */
    min-height: 100vh;
    letter-spacing: 0.03em;
}

/* ======================== */
/*    LAYOUT & SECTIONS     */
/* ======================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}
.section {
    margin-bottom: 60px;
    padding: 40px 20px;
    background: var(--color-bg-section);
    border-radius: 16px;
    box-shadow: 0 2px 16px var(--color-shadow);
    position: relative;
}
.content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.text-section {
    max-width: 660px;
    margin: 0 auto;
    align-items: flex-start;
}
.content-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
}
.card-container {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 32px;
}
.card {
    background: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    box-shadow: 0 2px 8px var(--color-shadow);
    margin-bottom: 20px;
    position: relative;
    padding: 28px 24px;
    flex: 1 1 320px;
    min-width: 280px;
    transition: box-shadow 0.2s;
}
.card:hover {
    box-shadow: 0 6px 24px var(--color-shadow), 0 0 0 2px var(--color-secondary);
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
}

.text-image-section {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.testimonial-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: var(--color-card-light);
    border-left: 6px solid var(--color-secondary);
    border-radius: 14px 6px 6px 14px;
    margin-bottom: 20px;
    box-shadow: 0 2px 16px var(--color-shadow);
    color: var(--color-black);
    background: var(--color-white);
    flex: 1 1 340px;
    min-width: 260px;
    position: relative;
    transition: box-shadow 0.18s;
}
.testimonial-card:hover {
    box-shadow: 0 8px 36px var(--color-shadow), 0 0 0 2px var(--color-secondary);
}
.testimonial-card p {
    font-size: 18px;
    line-height: 1.5;
    color: var(--color-black);
    font-style: italic;
    margin-bottom: 4px;
}
.testimonial-card span {
    font-size: 15px;
    color: var(--color-grey);
    font-weight: 600;
}

/* ====================== */
/*      TYPOGRAPHY        */
/* ====================== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    color: var(--color-accent);
    letter-spacing: 0.03em;
    text-shadow: 1px 1px 0 var(--color-black), 0 2px 24px var(--color-shadow);
    font-weight: 700;
    margin-bottom: 16px;
}
h1 { font-size: 2.5rem; margin-bottom: 20px; }
h2 { font-size: 2rem; margin-bottom: 14px; }
h3 { font-size: 1.5rem; margin-bottom: 12px; }
h4 { font-size: 1.25rem; margin-bottom: 10px; }
h5, h6 { font-size: 1.1rem; }

p, ul, ol, li, address {
    color: var(--color-text);
    font-size: 1rem;
    margin-bottom: 12px;
}
strong { color: var(--color-secondary); font-weight: 700; }
em { color: var(--color-metal); font-style: italic; }

ul, ol {
    padding-left: 24px;
    margin-bottom: 18px;
}
ul.features, ul.features li {
    padding-left: 0;
    margin-left: 0;
    list-style: none;
}
ul.features {
    display: flex;
    flex-wrap: wrap;
    gap: 32px 24px;
    align-items: center;
}
ul.features li {
    background: var(--color-card-bg);
    border-radius: 12px;
    box-shadow: 0 1px 8px var(--color-shadow);
    padding: 18px 18px 18px 54px;
    font-size: 1.11rem;
    color: var(--color-metal);
    font-weight: 600;
    min-width: 220px;
    margin-bottom: 0;
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
}
ul.features li img {
    position: absolute;
    left: 18px;
    width: 28px;
    height: 28px;
    filter: grayscale(60%) brightness(1.3);
}

/* Links */
a {
    color: var(--color-secondary);
    transition: color 0.12s;
    text-underline-offset: 2px;
}
a:hover, a:focus {
    color: var(--color-accent);
}
/* For link-buttons */
a.cta-primary, button.cta-primary {
    display: inline-block;
    padding: 16px 32px;
    background: var(--color-secondary);
    color: var(--color-black);
    font-family: var(--font-display);
    font-weight: 700;
    border: none;
    border-radius: 9px;
    box-shadow: 0 2px 8px var(--color-shadow);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 1.08rem;
    margin-top: 10px;
    cursor: pointer;
    transition: background 0.18s, color 0.18s, box-shadow 0.18s;
}
a.cta-primary:hover, button.cta-primary:hover,
a.cta-primary:focus, button.cta-primary:focus {
    background: var(--color-primary);
    color: var(--color-accent);
    box-shadow: 0 4px 14px var(--color-shadow);
}

/* ============================= */
/*      HEADER & NAVIGATION      */
/* ============================= */

header {
    width: 100%;
    background: var(--color-bg-dark);
    padding: 0;
    box-shadow: 0 2px 12px var(--color-shadow);
    position: sticky;
    top: 0;
    z-index: 70;
}
.main-nav {
    display: flex;
    align-items: center;
    gap: 0 24px;
    padding: 20px 0;
}
.main-nav a {
    font-family: var(--font-display);
    font-size: 1.06rem;
    letter-spacing: 0.03em;
    padding: 6px 10px;
    border-radius: 4px;
    color: var(--color-accent);
    font-weight: 500;
    transition: background 0.14s, color 0.14s;
}
.main-nav a:hover,
.main-nav a:focus {
    background: var(--color-secondary);
    color: var(--color-black);
}
.main-nav a.cta-primary {
    margin-left: 18px;
}
.main-nav img {
    height: 38px;
    width: auto;
    margin-right: 14px;
}

/* Mobile menu burger */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 2.1rem;
    color: var(--color-secondary);
    cursor: pointer;
    margin-left: auto;
    padding: 7px 13px;
    border-radius: 8px;
    transition: background 0.15s, color 0.13s;
    z-index: 95;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
    background: var(--color-metal);
    color: var(--color-black);
}

/* Mobile Menu Overlay */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(34, 41, 51, 0.98);
    z-index: 100;
    display: none;
    flex-direction: column;
    align-items: flex-end;
    transition: transform 0.32s cubic-bezier(0.4,0,0.2,1);
    transform: translateX(-100%);
}
.mobile-menu.open {
    display: flex;
    transform: translateX(0);
}
.mobile-menu-close {
    background: none;
    border: none;
    color: var(--color-secondary);
    font-size: 2rem;
    padding: 28px 18px 10px 0;
    align-self: flex-end;
    cursor: pointer;
    transition: color 0.15s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
    color: var(--color-accent);
}
.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 26px;
    align-items: flex-start;
    padding: 30px 36px;
    width: 90vw;
}
.mobile-nav a {
    color: var(--color-accent);
    font-size: 1.2rem;
    font-family: var(--font-display);
    font-weight: 600;
    padding: 10px 0;
    border-radius: 6px;
    transition: background 0.18s, color 0.18s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
    color: var(--color-secondary);
    background: var(--color-grey);
}

@media (max-width: 1000px) {
    .main-nav a:not(.cta-primary) {
        font-size: 1rem;
        padding: 5px 7px;
    }
}

@media (max-width: 850px) {
    .container { padding: 0 12px; }
    .main-nav { gap: 0 15px; }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
    }
    .mobile-menu-toggle {
        display: block;
        margin-left: 0;
    }
    header .container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 58px;
    }
}

/* ======================= */
/*        FOOTER           */
/* ======================= */
footer {
    background: var(--color-bg-section);
    padding: 48px 0 25px 0;
    margin-top: 64px;
    box-shadow: 0 -2px 14px var(--color-shadow);
}
.footer-nav {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    align-items: center;
}
.footer-nav a {
    color: var(--color-secondary);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 16px;
    padding: 5px 0;
    transition: color 0.16s;
}
.footer-nav a:hover {
    color: var(--color-metal);
}
footer address {
    display: flex;
    align-items: center;
    gap: 12px;
    font-style: normal;
    font-size: 15px;
    color: var(--color-metal);
    margin-bottom: 18px;
    flex-wrap: wrap;
}
footer address img {
    height: 19px;
    width: auto;
}
footer p {
    margin: 0;
    color: var(--color-card-light);
    font-size: 14px;
    text-align: right;
}
@media (max-width: 650px) {
    .footer-nav { gap: 10px; flex-direction: column; }
    footer address { flex-direction: column; align-items: flex-start; gap: 8px; }
    footer p { text-align: left; padding-top: 10px; }
}

/* ========================= */
/*   BUTTONS & INTERACTION   */
/* ========================= */
button, .cta-primary {
    outline: none;
    transition: background 0.18s, color 0.1s, box-shadow 0.16s;
}
button:focus, .cta-primary:focus {
    box-shadow: 0 0 0 3px var(--color-secondary);
}

/* =============== */
/*    FORMS        */
/* =============== */
input[type="text"],
input[type="email"],
textarea {
    background: var(--color-card-bg);
    border: 1px solid var(--color-metal);
    padding: 12px 16px;
    color: var(--color-accent);
    border-radius: 5px;
    font-size: 16px;
    margin-bottom: 18px;
    width: 100%;
    transition: border 0.16s;
}
input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
    border: 1.5px solid var(--color-secondary);
}
label {
    font-family: var(--font-display);
    color: var(--color-secondary);
    font-size: 1.02rem;
    margin-bottom: 6px;
    display: inline-block;
}

/* ======================== */
/*     SPECIAL ELEMENTS     */
/* ======================== */

/* CRITICAL FLEXBOX SPACING AND ALIGNMENT */
.section { margin-bottom: 60px; padding: 40px 20px; }
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; }
.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; }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/* =================== */
/*   RESPONSIVENESS   */
/* =================== */
@media (max-width: 1020px) {
    .section { margin-bottom: 44px; padding: 24px 8px; }
    .content-wrapper { gap: 18px; }
    h1 { font-size: 2.02rem; }
    h2 { font-size: 1.4rem; }
}
@media (max-width: 768px) {
    .section { padding: 24px 6px; }
    .content-wrapper, .text-section { gap: 15px; }
    .content-grid, .card-container {
        flex-direction: column;
        gap: 22px 0;
    }
    .card, .testimonial-card {
        min-width: 0;
        width: 100%;
        flex: 1 1 100%;
    }
    ul.features {
        flex-direction: column;
        gap: 18px;
    }
    .text-image-section {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }
}
@media (max-width: 540px) {
    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.12rem; }
    .cta-primary, button.cta-primary { padding: 12px 16px; font-size: 15px; }
}

/* ======================== */
/*     COOKIE BANNER        */
/* ======================== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100vw;
    background: var(--color-black);
    color: var(--color-accent);
    box-shadow: 0 -2px 12px var(--color-shadow);
    padding: 28px 12px 19px 12px;
    z-index: 500;
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    justify-content: center;
    font-size: 15px;
    animation: cookieBannerIn 0.4s ease;
}
@keyframes cookieBannerIn {
    from { transform: translateY(100%); opacity: 0; } to { transform: translateY(0); opacity: 1; }
}
.cookie-banner p {
    margin: 0 0 4px 0;
    padding: 0;
}
.cookie-banner button {
    padding: 10px 22px;
    margin-left: 8px;
    margin-right: 8px;
    border-radius: 6px;
    border: none;
    font-family: var(--font-display);
    font-weight: 600;
    background: var(--color-secondary);
    color: var(--color-black);
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.14s, color 0.14s;
}
.cookie-banner button:hover, .cookie-banner button:focus {
    background: var(--color-primary);
    color: var(--color-accent);
}
.cookie-banner .cookie-settings {
    background: var(--color-grey);
    color: var(--color-accent);
    margin-left: 4px;
    margin-right: 0;
}
.cookie-banner .cookie-settings:hover, .cookie-banner .cookie-settings:focus {
    background: var(--color-secondary);
    color: var(--color-black);
}

.cookie-modal {
    position: fixed;
    left: 50%;
    top: 50%;
    width: 95vw;
    max-width: 410px;
    background: var(--color-card-bg);
    color: var(--color-accent);
    z-index: 600;
    border-radius: 15px;
    box-shadow: 0 6px 44px 0 rgba(15, 20, 32, 0.94), 0 0 4px 2px var(--color-secondary);
    border: 2px solid var(--color-secondary);
    padding: 36px 26px 24px 26px;
    transform: translate(-50%,-50%);
    animation: cookieModalIn 0.3s cubic-bezier(0.63,.02,0.25,1);
    display: flex;
    flex-direction: column;
    gap: 22px;
}
@keyframes cookieModalIn {
    from { opacity: 0; transform: translate(-50%, -10%); } to { opacity:1; transform: translate(-50%,-50%); }
}
.cookie-modal h3 {
    margin-bottom: 6px;
    color: var(--color-secondary);
    font-size: 1.21rem;
    font-family: var(--font-display);
}
.cookie-modal ul {
    padding-left: 0;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.cookie-modal li {
    font-size: 1rem;
    color: var(--color-white);
    display: flex;
    align-items: center;
    gap: 14px;
}
.cookie-modal input[type="checkbox"] {
    accent-color: var(--color-secondary);
    width: 20px;
    height: 20px;
}
.cookie-modal .cookie-modal-actions {
    display: flex;
    gap: 14px;
    justify-content: flex-end;
    margin-top: 10px;
}
.cookie-modal button {
    background: var(--color-secondary);
    color: var(--color-black);
    border: none;
    border-radius: 6px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    padding: 10px 22px;
    cursor: pointer;
    transition: background 0.13s, color 0.11s;
}
.cookie-modal button:hover, .cookie-modal button:focus {
    background: var(--color-primary);
    color: var(--color-accent);
}
.cookie-modal .cookie-modal-close {
    position: absolute;
    right: 18px;
    top: 18px;
    background: var(--color-card-light);
    color: var(--color-secondary);
    border: none;
    font-size: 1.7rem;
    border-radius: 100px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.14s, color 0.15s;
}
.cookie-modal .cookie-modal-close:hover {
    background: var(--color-secondary);
    color: var(--color-black);
}

/* Hides modal visually when not open */
.cookie-modal[hidden] { display: none !important; }

/* ====================== */
/*     ANIMATIONS         */
/* ====================== */
.cta-primary, button, .card, .testimonial-card, .features li, .mobile-menu, .mobile-menu-toggle {
    transition: background 0.18s, color 0.1s, box-shadow 0.17s, transform 0.3s;
}
/* Micro-interactions */
.cta-primary:active, button.cta-primary:active, .card:active, .testimonial-card:active {
    transform: translateY(1.5px) scale(0.99);
    box-shadow: 0 1px 4px var(--color-shadow);
}

/* ======================= */
/*  UTILITIES             */
/* ======================= */
.metallic-accent {
    color: var(--color-secondary);
    font-weight: bold;
    filter: saturate(1.12) brightness(1.12); /* metallic simulation */
}

/* ========================= */
/*  INDUSTRIAL MODERN ICONS  */
/* ========================= */
ul.features li img,
footer address img,
section ul li img,
.text-section img {
    filter: grayscale(60%) brightness(1.23) contrast(1.1) drop-shadow(1px 1px 0 var(--color-border));
    margin-right: 0.5em;
}

/* ======================== */
/*  OTHER COMMON CLASSES    */
/* ======================== */
@media (max-width: 560px) {
    .container { padding: 0 4px; }
    .section { padding: 12px 2px; }
}

/* ======================== */
/*  PRINT SAFE (optional)   */
/* ======================== */
@media print {
    header, footer, .cookie-banner { display: none !important; }
    body { color: #222; background: #fff; }
}
