/* =======================================================
   CSS RESET & BASELINE NORMALIZATION
   ======================================================= */
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 {
    -webkit-text-size-adjust: 100%;
    font-family: 'Roboto', Arial, Helvetica, sans-serif;
    background: #F5F5F5;
    color: #21242B;
    scroll-behavior: smooth;
}
body {
    min-height: 100vh;
    background: linear-gradient(135deg, #E6E6EA 0%, #CBCDD1 100%);
    font-family: 'Roboto', Arial, Helvetica, sans-serif;
    font-size: 16px;
    color: #21242B;
    line-height: 1.7;
    letter-spacing: 0.01em;
}
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
    display: block;
}
a { color: inherit; text-decoration: none; transition: color .2s; }
ul, ol { list-style: none; }
img, svg { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font-family: inherit; font-size: 100%; }

hr { border: none; border-top: 1px solid #CBCDD1; margin: 32px 0; }

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

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', Arial, Helvetica, sans-serif;
    font-weight: 700;
    line-height: 1.1;
}
h1 { font-size: 2.5rem; letter-spacing: -1px; margin-bottom: 16px; }
h2 { font-size: 2rem; margin-bottom: 16px; }
h3 { font-size: 1.5rem; margin-bottom: 12px; }
h4 { font-size: 1.25rem; margin-bottom: 10px; }
h5 { font-size: 1.1rem; margin-bottom: 8px; }
h6 { font-size: 1rem; margin-bottom: 6px; }

p, li, blockquote {
    font-size: 1rem;
    color: #21242B;
}
strong, b {
    font-weight: 600;
    color: #21242B;
}

@media (max-width: 768px) {
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.25rem; }
    h3 { font-size: 1.1rem; }
}

/* =======================================================
   BASE CONTAINERS, SECTIONS & SPACING
   ======================================================= */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}
.content-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.section {
    margin-bottom: 60px;
    padding: 40px 20px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 2px 12px rgba(33, 36, 43, 0.04);
}

@media (max-width: 1024px) {
    .section { padding: 32px 10px; margin-bottom: 36px; }
}
@media (max-width: 600px) {
    .section { padding: 22px 5px; margin-bottom: 28px; }
}

/* =======================================================
   HEADER / NAVIGATION
   ======================================================= */
header {
    width: 100%;
    background: #21242B;
    box-shadow: 0 2px 12px rgba(33,36,43,0.07);
    position: sticky;
    top: 0;
    z-index: 11;
}
.header-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    min-height: 74px;
}
.header-wrapper>a>img {
    height: 40px;
    width: auto;
}

.main-nav {
    display: flex;
    gap: 32px;
}
.main-nav a {
    color: #CBCDD1;
    font-size: 1rem;
    letter-spacing: 0.02em;
    font-weight: 500;
    padding: 0 0 2px 0;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}
.main-nav a:hover, .main-nav a:focus {
    color: #F5F5F5;
    border-bottom: 2px solid #F5F5F5;
}

.button.primary {
    background: linear-gradient(90deg,#21242B 0%,#CBCDD1 100%);
    color: #fff;
    font-family: 'Montserrat';
    font-weight: 600;
    font-size: 1rem;
    border: none;
    border-radius: 28px;
    padding: 12px 32px;
    box-shadow: 0 1px 8px rgba(33,36,43,0.13);
    margin-left: 16px;
    cursor: pointer;
    transition: background .16s, box-shadow .18s,transform .1s;
    outline: none;
}
.button.primary:hover, .button.primary:focus {
    background: linear-gradient(90deg,#21242B 70%,#21242B 100%);
    box-shadow: 0 2px 16px rgba(33,36,43,0.22);
    transform: translateY(-2px) scale(1.03);
}
.button.secondary {
    background: #CBCDD1;
    color: #21242B;
    font-family: 'Montserrat';
    font-weight: 600;
    font-size: 1rem;
    border: none;
    border-radius: 28px;
    padding: 12px 32px;
    margin-top: 24px;
    box-shadow: 0 1px 8px rgba(33,36,43,0.06);
    cursor: pointer;
    transition: background .16s, box-shadow .18s,transform .1s;
    outline: none;
}
.button.secondary:hover, .button.secondary:focus {
    background: #F5F5F5;
    box-shadow: 0 2px 16px rgba(33,36,43,0.13);
    color: #21242B;
    transform: translateY(-1.5px) scale(1.02);
}

@media (max-width: 950px) {
    .header-wrapper { gap: 10px; }
    .main-nav { gap: 16px; }
    .button.primary { padding: 11px 20px; font-size: 0.95rem; margin-left: 6px; }
}
@media (max-width: 768px) {
    .header-wrapper { flex-wrap: wrap; }
    .main-nav { display: none; }
    .button.primary { margin-left: 0; }
}

/* =======================================================
   MOBILE MENU
   ======================================================= */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    font-size: 2rem;
    color: #F5F5F5;
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 51;
    cursor: pointer;
    width: 48px;
    height: 48px;
    border-radius: 24px;
    transition: background 0.2s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
    background: #CBCDD1;
    color: #21242B;
}
@media (max-width: 768px) {
    .mobile-menu-toggle {
      display: block;
    }
}

.mobile-menu {
    position: fixed;
    inset: 0 0 0 0;
    background: rgba(33,36,43, 0.96);
    z-index: 200;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(.85,.01,.3,1);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100vw;
    height: 100vh;
    padding: 32px 28px 20px 28px;
}
.mobile-menu.open {
    transform: translateX(0);
}
.mobile-menu-close {
    font-size: 2.2rem;
    background: transparent;
    border: none;
    color: #CBCDD1;
    align-self: flex-end;
    margin-bottom: 24px;
    cursor: pointer;
    transition: color 0.15s, background 0.2s;
    border-radius: 20px;
    padding: 3px 14px;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
    color: #fff;
    background: #21242B;
}
.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}
.mobile-nav a {
    color: #F5F5F5;
    font-family: 'Montserrat',Arial,sans-serif;
    font-weight: 600;
    font-size: 1.18rem;
    opacity: 0.95;
    padding: 12px 0;
    transition: color 0.18s, opacity 0.18s;
    border-radius: 6px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
    color: #CBCDD1;
    background: rgba(245,245,245,0.07);
    opacity: 1;
}
@media (min-width: 769px) {
    .mobile-menu, .mobile-menu-toggle {
        display: none !important;
    }
}

/* Scroll stop when mobile menu open */
body.menu-open {
    overflow: hidden;
    touch-action: none;
}

/* =======================================================
   HERO SECTIONS
   ======================================================= */
.hero, .thank-you-hero {
    padding: 72px 0 36px 0;
    background: linear-gradient(120deg, #CBCDD1 0%, #F5F5F5 100%);
    width: 100%;
    border-radius: 0 0 36px 36px;
    box-shadow: 0 4px 30px rgba(33,36,43,0.08);
    min-height: 277px;
}
.hero .container, .thank-you-hero .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.hero .content-wrapper, .thank-you-hero .content-wrapper {
    align-items: center;
    text-align: center;
    gap: 18px;
}
.hero h1, .thank-you-hero h1 {
    color: #21242B;
    font-size: 2.3rem;
    text-shadow: 0 2px 18px #CBCDD163;
}
.hero p, .thank-you-hero p {
    color: #36394a;
}
@media (max-width: 768px) {
    .hero, .thank-you-hero { padding: 36px 0 16px 0; min-height: 160px; }
    .hero h1, .thank-you-hero h1 { font-size: 1.45rem; }
}

/* =======================================================
   CARD & FLEXBOX LAYOUTS (NO GRID)
   ======================================================= */
.card-container {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}
.card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(33,36,43,0.10);
    flex: 1 1 270px;
    padding: 32px 24px;
    margin-bottom: 20px;
    position: relative;
    transition: box-shadow 0.18s, transform 0.13s;
}
.card:hover, .card:focus-within {
    box-shadow: 0 8px 32px rgba(33,36,43,0.18);
    transform: translateY(-3px) scale(1.01);
}

.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) {
    .content-grid, .text-image-section {
        flex-direction: column;
        gap: 18px;
    }
}

.testimonial-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background:#F5F5F5;
    border-radius: 16px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(33,36,43,0.05);
    font-size: 1.1rem;
    font-style: italic;
    color: #21242B;
    transition: box-shadow .14s, transform .13s;
    min-height: 80px;
}
.testimonial-card span {
    font-style: normal;
    color: #21242B;
    font-size: .97rem;
    font-weight: 600;
    margin-left: 14px;
}
.testimonial-card:hover, .testimonial-card:focus {
    box-shadow: 0 4px 16px rgba(33,36,43,0.11);
    transform: translateY(-2px) scale(1.01);
}

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

/* FEATURE / SERVICE LISTS */
.feature-list, .service-list {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 20px;
}
.feature-list li, .service-list li, .contact-features ul li {
    background: #fff;
    box-shadow: 0 2px 10px rgba(33,36,43,0.07);
    border-radius: 14px;
    padding: 20px 18px 22px 18px;
    display: flex;
    flex-direction: column;
    gap: 7px;
    align-items: flex-start;
    min-width: 230px;
    flex: 1 1 230px;
    font-size: 1rem;
    margin-bottom: 20px;
    transition: box-shadow .18s, transform .12s;
}
.feature-list li img, .service-list li img {
    height: 34px;
    width: 34px;
    margin-bottom: 4px;
}
.feature-list li strong, .service-list li strong {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.12rem;
    color: #21242B;
    margin-bottom: 3px;
}
.feature-list li:hover, .service-list li:hover {
    box-shadow: 0 4px 20px rgba(33,36,43,0.13);
    transform: translateY(-2px) scale(1.015);
}
.service-list .price {
    display: inline-block;
    background: #CBCDD1;
    color: #21242B;
    font-weight: 500;
    padding: 3px 10px;
    border-radius: 7px;
    font-size: 0.97rem;
    margin-top: 8px;
}

@media (max-width: 900px) {
    .feature-list, .service-list  {
        flex-direction: column;
        gap: 16px;
    }
    .feature-list li, .service-list li {
        min-width: 0;
    }
}

/* Contact Preview/Features Cards */
.contact-features ul {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 20px;
}
.contact-features ul li {
    align-items: center;
    gap: 10px;
    display: flex;
    flex-direction: row;
    font-size: 1rem;
    background: #fff;
    border-radius: 10px;
    padding: 12px 18px;
    box-shadow: 0 1px 7px rgba(33,36,43,0.08);
}
.contact-features ul li img {
    margin-right: 8px;
    height: 22px;
}

/* Project Blocks */
.project-block {
    background: #fff;
    border-radius: 15px;
    padding: 28px 22px;
    margin-bottom: 32px;
    box-shadow: 0 2px 12px rgba(33,36,43,0.08);
}
.project-block h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
}
.project-block ul {
    margin-top: 7px;
    padding-left: 15px;
}
.project-block li {
    margin-bottom: 3px;
}

.design-tip-block {
    background: #21242B;
    color: #fff;
    border-radius: 15px;
    padding: 20px 18px;
    margin: 20px 0 8px 0;
    box-shadow: 0 1px 7px rgba(33,36,43,0.14);
}
.design-tip-block h3 {
    color: #CBCDD1;
}

.color-palette-showcase span {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 8px;
    font-family: 'Roboto', monospace;
    font-size: 0.96rem;
    margin-right: 7px;
    margin-top: 3px;
}

/* =======================================================
   GENERIC LAYOUT FLEXHELPERS
   ======================================================= */
.section, .footer-section, .about-preview, .about, .features, .services, .testimonials {
    margin-bottom: 60px;
    padding: 40px 20px;
}
@media (max-width: 768px) {
    .section, .footer-section, .about-preview, .about, .features, .services, .testimonials {
        margin-bottom: 32px;
        padding: 22px 7px;
    }
}

/* =======================================================
   TEXT-SECTIONS & LIST STYLES
   ======================================================= */
.text-section {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.text-section ul, .text-section ol {
    padding-left: 18px;
    margin-top: 6px;
    display: flex;
    flex-direction: column;
    gap: 7px;
}
.text-section ul li::before {
    content: "• ";
    color: #CBCDD1;
    font-weight: bold;
}

/* ================ FOOTER ================ */
footer {
    width: 100%;
    background: #21242B;
    color: #CBCDD1;
    padding: 0;
}
.footer-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 36px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 36px 20px 22px 20px;
}
.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}
.footer-nav a {
    color: #CBCDD1;
    text-decoration: none;
    font-size: 0.97rem;
    transition: color 0.15s;
}
.footer-nav a:hover {
    color: #F5F5F5;
}
.footer-brand {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 18px;
}
.footer-brand img {
    width: 32px;
    height: 32px;
}
.footer-brand p {
    color: #CBCDD1;
    font-size: 0.99rem;
    margin: 0;
}
@media (max-width: 730px) {
    .footer-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
    }
    .footer-nav {
        gap: 14px;
        flex-wrap: wrap;
    }
}

/* =======================================================
   FORMS, INPUTS, BUTTONS (GENERIC)
   ======================================================= */
input, textarea, select {
    border-radius: 7px;
    border: 1px solid #CBCDD1;
    background: #fff;
    font-size: 1rem;
    padding: 10px 12px;
    transition: border .13s;
    font-family: 'Roboto', Arial, sans-serif;
}
input:focus, textarea:focus, select:focus {
    border-color: #21242B;
    outline: none;
}

button {
    font-family: inherit;
    font-size: 1rem;
    outline: none;
}

/* Extra margin between cards/boxes */
.card + .card, .testimonial-card + .testimonial-card, .section + .section {
    margin-top: 20px;
}

/* ===============================
   COOKIE BANNER & MODAL
   =============================== */
.cookie-banner {
    position: fixed;
    left: 20px;
    bottom: 20px;
    right: 20px;
    z-index: 3000;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 28px;
    background: #21242B;
    color: #fff;
    border-radius: 16px;
    padding: 24px 32px;
    box-shadow: 0 7px 24px rgba(33,36,43,0.15);
    opacity: 1;
    transform: translateY(0);
    transition: opacity .35s, transform .35s;
    font-size: 1rem;
}
.cookie-banner.hide {
    opacity: 0;
    transform: translateY(50px);
    pointer-events: none;
}
.cookie-banner p {
    flex: 1 1 auto;
    margin: 0;
    color: #fff;
}
.cookie-banner .button {
    min-width: 140px;
    margin-left: 8px;
    font-size: 0.97rem;
}
.cookie-banner .button:not(:last-child) {
    margin-right: 8px;
}
@media (max-width: 650px) {
    .cookie-banner {
        flex-direction: column;
        align-items: stretch;
        padding: 16px 9px;
        gap: 14px;
    }
    .cookie-banner .button { min-width: 0; }
}

.cookie-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(33,36,43,0.73);
    z-index: 4000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn .32s cubic-bezier(.6,.01,.3,1);
}
.cookie-modal {
    background: #fff;
    color: #21242B;
    box-shadow: 0 2px 44px rgba(33,36,43,0.18);
    border-radius: 20px;
    padding: 38px 34px;
    width: 96vw;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: relative;
    animation: slideInUp .33s cubic-bezier(.6,.01,.3,1);
}
.cookie-modal-close {
    position: absolute;
    top: 14px;
    right: 18px;
    background: transparent;
    border: none;
    color: #CBCDD1;
    font-size: 1.6rem;
    cursor: pointer;
    transition: color .13s;
}
.cookie-modal-close:focus, .cookie-modal-close:hover {
    color: #21242B;
}
.cookie-modal h2 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    font-family: 'Montserrat',sans-serif;
}
.cookie-category {
    padding: 12px 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    border-bottom: 1px solid #CBCDD1;
}
.cookie-category:last-child {
    border-bottom: none;
}
.cookie-category label {
    font-weight: 500;
    font-family: 'Montserrat', sans-serif;
    color: #21242B;
    margin-right: 8px;
}
.cookie-toggle {
    width: 42px;
    height: 24px;
    background: #CBCDD1;
    border-radius: 12px;
    position: relative;
    transition: background .16s;
    margin-left: auto;
    display: inline-block;
    vertical-align: middle;
}
.cookie-toggle input {
    display: none;
}
.cookie-toggle-slider {
    position: absolute;
    left: 3px; top: 3px;
    width: 18px; height: 18px;
    border-radius: 50%;
    background: #F5F5F5;
    transition: left 0.18s, background .18s;
}
.cookie-toggle input:checked + .cookie-toggle-slider {
    left: 21px;
    background: #21242B;
}
.cookie-category.essential label,
.cookie-category.essential .cookie-toggle-slider {
    color: #BABABA;
    background: #BABABA !important;
    cursor: not-allowed;
}
.cookie-category.essential .cookie-toggle {
    background: #BABABA;
}
.cookie-category.essential .cookie-toggle input:checked + .cookie-toggle-slider {
    background: #BABABA;
}
@media (max-width:460px) {
    .cookie-modal { padding: 18px 9px; }
}

/* Cookie banner keyframes */
@keyframes fadeIn { 0% { opacity:0; } 100% { opacity:1; } }
@keyframes slideInUp { 0% { transform: translateY(44px); opacity:0; } 100% { transform: translateY(0); opacity:1; } }

/* =======================
      MEDIA QUERIES
   ======================= */
@media (max-width: 600px) {
    .container, .header-wrapper, .footer-wrapper {
        padding-left: 7px;
        padding-right: 7px;
    }
}

/* =======================
      UTILITY CLASSES
   ======================= */
.hide { display: none !important; }
.show { display: block !important; }

/* Visually hidden for accessibility */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    border: 0 !important;
}

/* ===============
   Misc & Custom
   =============== */
::-webkit-scrollbar { width:9px; background:#CBCDD1; }
::-webkit-scrollbar-thumb { background:#21242B; border-radius:5px; }

/* Responsive fix for project-blocks */
@media (max-width: 600px) {
    .project-block { padding: 13px 5px; }
}

/* Responsive testimonial card stacking */
@media (max-width: 520px) {
    .testimonial-card { flex-direction: column; gap: 8px; justify-content:flex-start; }
}
