/* =======================================================================
   CSS RESET & BASE TYPOGRAPHY — Mobile-First
   Source: https://github.com/necolas/normalize.css & custom reset
   ======================================================================= */
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; font-size: 16px; }
*, *:before, *:after { box-sizing: inherit; }
body {
  line-height: 1.5;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  background: #fff;
  color: #171717;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; vertical-align: middle; }
a { color: #38587A; text-decoration: none; transition: color 0.2s; }
a:hover, a:focus { color: #000; text-decoration: underline; }
ul, ol { margin-left: 1.2em; margin-bottom: 0.8em; }
ul li, ol li { margin-bottom: 0.5em; }

/* Typography Scale */
h1 { font-family: 'Montserrat', Arial, Helvetica,sans-serif; font-weight: 700; font-size: 2.25rem; line-height: 1.14; letter-spacing: -0.5px; margin-bottom: 24px; color: #15181a; }
h2 { font-family: 'Montserrat', Arial,Helvetica,sans-serif; font-weight: 600; font-size: 1.6rem; line-height: 1.2; margin-bottom: 16px; color: #222427; }
h3 { font-family: 'Montserrat', Arial,Helvetica,sans-serif; font-weight: 500; font-size: 1.25rem; line-height: 1.3; margin-bottom: 12px; color: #232325; }
h4, h5, h6 { font-family: 'Montserrat', Arial,sans-serif; font-weight: 500; }
p, .text-section, .content-wrapper p {
  font-size: 1rem; color: #222; margin-bottom: 12px; letter-spacing: 0; }
strong, b { font-weight: bold; color: #111; }

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.container {
  width: 100%;
  margin-left: auto; margin-right: auto;
  padding-left: 0; padding-right: 0;
  max-width: 1100px;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}

/* ============= BRAND PALETTE AND CONTRASTS ========== */
:root {
  --brand-primary: #16171b;
  --brand-secondary: #fff;
  --brand-gray: #f9f9fa;
  --brand-mid-gray: #d7dade;
  --brand-deep-gray: #232325;
  --brand-black: #101113;
  --brand-accent: #ae7232;
  --brand-focus: #38587A;
  --brand-shadow: rgba(40,44,50, 0.09);
  --card-bg: #fff;
}

/* ================= LAYOUT ============= */
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; background: var(--card-bg); box-shadow: 0 3px 32px var(--brand-shadow); border-radius: 16px; padding: 32px 24px; display: flex; flex-direction: column; transition: box-shadow 0.18s; }
.card:hover { box-shadow: 0 6px 40px rgba(40,44,50,0.18); }
.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; background: #fff; box-shadow: 0 2px 20px var(--brand-shadow); border-radius: 16px; margin-bottom: 24px; min-width: 0; }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/* ============= HEADER ============= */
.site-header {
  background: #fff;
  color: #232325;
  box-shadow: 0 2px 20px var(--brand-shadow);
  z-index: 20;
  position: relative;
}
.site-header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 20px 14px 18px;
  min-height: 70px;
}
.logo img { display:block; height: 40px; width: auto; }
.main-nav {
  display: none;
  flex-direction: row;
  align-items: center;
  gap: 24px;
  font-family: 'Montserrat',sans-serif;
  font-weight: 500;
  font-size: 1rem;
}
.main-nav a {
  color: #101113;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.main-nav a:hover,
.main-nav a.active {
  color: var(--brand-accent);
  border-bottom: 2px solid var(--brand-accent);
}
.cta-btn.primary {
  font-family: 'Montserrat',sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  background: #16171b;
  border: none;
  border-radius: 999rem;
  padding: 12px 28px;
  margin-left: 0;
  margin-right: 0;
  transition: background 0.2s, box-shadow 0.2s, color 0.2s;
  cursor: pointer;
  box-shadow: 0 2px 12px var(--brand-shadow);
  letter-spacing: 1px;
  text-align: center;
  outline: none;
  display: inline-block;
}
.cta-btn.primary:hover,
.cta-btn.primary:focus {
  background: #232325;
  color: var(--brand-accent);
  box-shadow: 0 5px 24px var(--brand-shadow);
}
.cta-btn.secondary {
  font-family: 'Montserrat',sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #222;
  background: #fff;
  border: 2px solid #222;
  border-radius: 999rem;
  padding: 10px 22px;
  margin-left: 0;
  margin-right: 0;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  cursor: pointer;
  letter-spacing: 0.5px;
  text-align: center;
}
.cta-btn.secondary:hover,
.cta-btn.secondary:focus {
  background: #232325;
  color: #fff;
  border-color:  #232325;
}

/* ============= MOBILE MENU ============= */
.mobile-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  line-height: 1;
  width: 48px;
  height: 48px;
  background: #fff;
  border: 2px solid var(--brand-mid-gray);
  border-radius: 12px;
  color: #15181a;
  cursor: pointer;
  z-index: 1050;
  transition: background 0.15s, border-color 0.15s;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: var(--brand-mid-gray);
  border-color: #232325;
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  position: fixed;
  top: 0; left:0;
  width: 100vw; height: 100vh;
  background: #fff;
  box-shadow: 0 0 60px 12px rgba(18,18,18,0.13);
  z-index: 2000;
  transform: translateX(-100vw);
  transition: transform 0.36s cubic-bezier(.87,0,.13,1);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  font-size: 2rem;
  border: none;
  background: transparent;
  color: #1b1b1c;
  align-self: flex-end;
  margin: 18px 20px 0 0;
  cursor: pointer;
  z-index: 2050;
  transition: color 0.15s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: var(--brand-accent);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 40px 42px;
  width: 100%;
  align-items: flex-start;
}
.mobile-nav a {
  color: #191A1A;
  font-size: 1.15rem;
  font-family: 'Montserrat',sans-serif;
  font-weight: 600;
  padding: 10px 0;
  margin: 0;
  border-bottom: 2px solid transparent;
  width: 100%;
  transition: color 0.22s, border-color 0.22s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  color: var(--brand-accent);
  border-bottom: 2px solid var(--brand-accent);
}

/* Desktop nav visibility handling */
@media (min-width: 1024px) {
  .main-nav {
    display: flex !important;
  }
  .mobile-menu-toggle {
    display: none !important;
  }
  .mobile-menu {
    display: none !important;
  }
}

/* ========== HERO SECTIONS, CTA ========== */
.hero, .blog-hero, .confirmation {
  background: linear-gradient(180deg,rgba(244,244,244,0.96) 10%,#fff 85%);
  padding: 40px 0 40px 0;
}
.hero .content-wrapper, .blog-hero .content-wrapper, .confirmation .content-wrapper {
  align-items: flex-start;
  gap: 16px;
  padding: 20px 0;
}
.cta {
  background: #16171b;
  color: #fff;
  text-align: left;
  padding: 30px 0 30px 0;
}
.cta .content-wrapper {
  align-items: flex-start;
}
.cta h2 {
  color: #fff;
}
.cta .cta-btn.primary {
  background: #fff;
  color: #16171b;
  border: 2px solid #fff;
  box-shadow: 0 2px 20px var(--brand-shadow);
}
.cta .cta-btn.primary:hover,
.cta .cta-btn.primary:focus {
  background: #16171b;
  color: var(--brand-accent);
  border: 2px solid var(--brand-accent);
}

/* ========== FEATURES, SERVICES & LISTS ========== */
.features ul,
.services ul,
.team ul,
.testimonials .content-wrapper ul,
.product-list ul,
.ideas-list ul,
.post-list ul,
.faq-list,
.legal-section ul {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  list-style: none;
  margin-bottom: 0;
  margin-top: 0;
  padding: 0;
}
.features ul li,
.services ul li,
.team ul li,
.product-list ul li,
.ideas-list ul li,
.post-list ul li,
.faq-list li {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 20px var(--brand-shadow);
  flex: 1 1 270px;
  min-width: 220px;
  max-width: 100%;
  padding: 28px 18px 22px 18px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: box-shadow 0.18s, transform 0.18s;
  position: relative;
}
.features ul li:hover,
.services ul li:hover,
.team ul li:hover,
.product-list ul li:hover,
.ideas-list ul li:hover,
.post-list ul li:hover,
.faq-list li:hover {
  box-shadow: 0 6px 40px rgba(40,44,50,0.13);
  transform: translateY(-3px) scale(1.01);
}
.features ul li img, .services ul li img {
  width: 38px; height: 38px; margin-bottom: 8px; filter: grayscale(1) contrast(1.4); }

/* ========== TESTIMONIALS ========== */
.testimonials .content-wrapper {
  display: flex; flex-wrap: wrap; gap: 24px; }
.testimonial-card {
  background: #fff;
  color: #212125;
  border-radius: 14px;
  box-shadow: 0 2px 24px var(--brand-shadow);
  padding: 28px 24px 22px 24px;
  min-width: 220px; max-width: 370px;
  margin-bottom: 20px;
  flex: 1 1 250px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.testimonial-card p {
  font-size: 1rem;
  font-family: 'Roboto',sans-serif;
  color: #19181a;
  margin-bottom: 8px;
}
.testimonial-meta, .testimonial-card .client {
  font-size: 0.97rem;
  color: #6e6e71;
  margin-top: 2px;
}
.stars { color: #E2AB3B; font-family: 'Montserrat',sans-serif; font-size: 1.08rem; }

/* ========== PRODUCT / BLOG / IDEA CARDS ========== */
.product-card, .blog-post-card {
  background: #fff;
  border-radius: 13px;
  box-shadow: 0 2px 20px var(--brand-shadow);
  padding: 26px 20px 18px 20px;
  display: flex;
  flex-direction: column;
  min-width: 200px; max-width: 100%;
  margin-bottom: 20px;
  gap: 12px;
  transition: box-shadow 0.18s, transform 0.16s;
}
.product-card:hover, .blog-post-card:hover {
  box-shadow: 0 6px 34px rgba(40,44,50,0.13);
  transform: translateY(-2px) scale(1.01);
}

/* ========== FAQ ========== */
.faq-section .faq-list {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 0 0 30px 0;
}
.faq-section .faq-list li {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 20px var(--brand-shadow);
  padding: 20px 18px 12px 18px;
  flex: 1 1 260px;
  min-width: 210px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.category-filters {
  margin: 8px 0 0 0;
  color: #787a87; font-size: 0.95rem;
}

/* ========== LEGAL TEXT & TEXT SECTIONS ========== */
.legal-section {
  background: #fff;
  border-radius: 18px;
  margin-bottom: 48px;
  box-shadow: 0 2px 22px var(--brand-shadow);
  padding: 38px 18px 28px 18px;
}
.legal-section .text-section {
  margin-bottom: 0;
  font-size: 1.1rem;
  color: #222324;
}
.legal-section h3 { font-size: 1.06rem; margin: 16px 0 7px 0; }
.legal-section ul { margin-left: 24px; }

.text-section ul, .footer-contact ul {
  list-style: disc inside;
  margin-top: 6px;
  margin-bottom: 14px;
  margin-left: 24px;
  color: #525264;
  font-size: 1em;
}
.text-section li { margin-bottom: 0.5em; }

/* ========== CONTACT SECTION ========== */
.contact-section .text-section ul {
  list-style: none;
  margin: 8px 0 0 0;
  padding: 0;
}
.contact-section .text-section li {
  padding: 3px 0; display: flex; align-items: center; gap: 12px;
  color: #3a3a3b;
}
.contact-section .text-section img { height: 22px; margin-right: 4px; opacity: .7; filter: grayscale(1); }

/* ========== FOOTER ========== */
.site-footer {
  background: #17181a;
  color: #fff;
  padding: 48px 0 24px 0;
  font-size: 1rem;
  margin-top: 48px;
}
.site-footer .container {
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 28px;
  padding-left: 20px;
  padding-right: 20px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-nav a {
  color: #e6e6e7;
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0;
  transition: color 0.16s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #ae7232;
}
.footer-contact {
  color: #e9e9e9;
  font-size: 0.94rem;
}
.footer-contact p {
  color: #e9e9e9;
}
.footer-contact img {
  vertical-align: middle; height: 18px; margin-right: 6px; opacity: .7; filter: grayscale(1);
}

/* ========== COOKIE BANNER & CONSENT MODAL ============ */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; width: 100vw;
  z-index: 2999;
  background: #242526;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 20px 16px 20px;
  box-shadow: 0 -2px 24px rgba(27,27,29,0.22);
  font-size: 1rem;
  gap: 16px;
  animation: cookieBannerIn 0.46s cubic-bezier(.6,0,.4,1);
}
@keyframes cookieBannerIn { from {opacity:0;transform:translateY(100%);} to {opacity:1;transform:translateY(0);} }
.cookie-banner .cookie-btns {
  display: flex; gap: 14px; }
.cookie-banner button {
  padding: 9px 21px;
  border-radius: 999rem;
  border: none;
  font-family: 'Montserrat',sans-serif;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, box-shadow 0.14s;
}
.cookie-banner .accept {
  background: #16171b;
  color: #fff;
  border: 2px solid #16171b;
}
.cookie-banner .accept:hover, .cookie-banner .accept:focus {
  background: #fff;
  color: #16171b;
}
.cookie-banner .reject {
  background: #fff;
  color: #16171b;
  border: 2px solid #16171b;
}
.cookie-banner .reject:hover, .cookie-banner .reject:focus {
  background: #232325;
  color: #fff;
}
.cookie-banner .settings {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
}
.cookie-banner .settings:hover, .cookie-banner .settings:focus {
  background: #fff;
  color: #16171b;
}

.cookie-modal-overlay {
  position: fixed; z-index: 3100;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(16,17,19,0.62);
  display: flex; align-items: center; justify-content: center;
  animation: cookieModalIn 0.3s cubic-bezier(.6,0,.4,1);
}
@keyframes cookieModalIn { from {opacity:0;} to {opacity:1;} }
.cookie-modal {
  background: #fff;
  color: #16171b;
  border-radius: 22px;
  box-shadow: 0 6px 50px rgba(10,10,15,0.14);
  padding: 36px 24px 32px 24px;
  max-width: 410px;
  width: 92vw;
  display: flex; flex-direction: column; align-items: flex-start; gap: 22px;
  position: relative;
}
.cookie-modal h2 { font-size: 1.3rem; margin-bottom: 8px; color: #232325; }
.cookie-modal .cookie-category {
  display: flex; flex-direction: row; align-items: center; gap: 14px; margin-bottom: 6px;
}
.cookie-modal .cookie-category label {
  font-size: 1rem; color: #232325; font-weight: 500;
}
.cookie-modal .toggle-switch {
  width: 44px; height: 26px; background: #e3e3e3; border-radius: 16px; position: relative; transition: background 0.17s;
  margin-left: 9px;
}
.cookie-modal .toggle-switch input { opacity: 0; width: 0; height: 0; }
.cookie-modal .slider {
  position: absolute;
  top: 4px; left: 4px;
  height: 18px; width: 18px;
  background: #16171b;
  border-radius: 50%;
  transition: transform 0.18s, background 0.12s;
}
.cookie-modal .toggle-switch input:checked + .slider {
  transform: translateX(18px);
  background: #ae7232;
}
.cookie-modal .close-modal {
  position: absolute; top: 18px; right: 19px; background: none; border:none; font-size:1.38rem; color:#303036;
  cursor:pointer; transition:color 0.18s;
}
.cookie-modal .close-modal:hover,.cookie-modal .close-modal:focus { color:#ae7232; }

.cookie-modal .buttons {
  display: flex; gap: 12px;
  margin-top: 18px;
}
.cookie-modal .buttons button {
  border-radius: 999rem;
  font-family: 'Montserrat',sans-serif;
  font-size: 1rem;
  font-weight: 700;
  padding: 9px 21px;
  background: #16171b;
  color: #fff;
  border: none;
  transition: background 0.18s, color 0.18s;
}
.cookie-modal .buttons .save {
  background: #ae7232;
  color: #fff;
}
.cookie-modal .buttons .save:hover, .cookie-modal .buttons .save:focus {
  background: #232325;
  color: #fff;
}
.cookie-modal .buttons .cancel {
  background: #fff;
  color: #232325;
  border: 2px solid #232325;
}
.cookie-modal .buttons .cancel:hover, .cookie-modal .buttons .cancel:focus {
  background: #232325;
  color: #fff;
}

/* ========== MEDIA QUERIES, SPACING ========== */
@media (max-width: 1170px) {
  .container { max-width: 98vw; }
}
@media (max-width: 1023px) {
  .site-header .container {
    gap: 8px;
    padding: 11px 9px 11px 9px;
    min-height: 50px;
  }
  .site-footer .container,
  .footer-contact,
  .footer-nav {
    flex-direction: column;
    align-items: flex-start;
  }
  .content-wrapper {
    padding-left: 0; padding-right: 0; gap: 14px; }
  .features ul,
  .services ul, .team ul, .product-list ul, .ideas-list ul, .post-list ul, .faq-list {
    gap: 16px;
  }
}
@media (max-width: 768px) {
  html { font-size: 15px; } 
  .section { margin-bottom: 38px; padding: 26px 8px; }
  .container { max-width: 99vw; padding: 0 7px; }
  .content-wrapper { padding: 0 2px; }
  .site-header .logo img { height: 32px; }
  h1 { font-size: 1.52rem; margin-bottom: 18px; }
  h2 { font-size: 1.22rem; margin-bottom: 8px; }
  .hero, .blog-hero, .confirmation { padding: 17px 0 17px 0; }
  .features ul, .services ul, .team ul, .product-list ul, .ideas-list ul, .post-list ul, .faq-list {
    flex-direction: column; gap: 13px; align-items: stretch;
  }
  .features ul li, .services ul li, .team ul li, .product-list ul li, .ideas-list ul li, .post-list ul li, .faq-list li {
    min-width: 0; width: 100%; padding: 16px 8px;
  }
  .testimonials .content-wrapper { flex-direction: column; gap: 13px; }
  .testimonial-card { width: 100%; min-width: 0; padding: 18px 12px; }
  .hero .content-wrapper, .blog-hero .content-wrapper, .confirmation .content-wrapper, .cta .content-wrapper {
    padding: 0 2px; gap: 8px;
  }
  .cta { padding: 15px 0 15px 0; }
  .site-footer { padding: 32px 0 12px 0; font-size: 0.97rem; }
}
@media (max-width: 600px) {
  .footer-contact p { font-size: 0.89rem; }
}
@media (max-width: 430px) {
  html { font-size: 14px; } 
  .cookie-banner { font-size:0.95rem; }
  .cookie-modal { padding: 18px 5px 22px 5px; }
}
@media (max-width: 375px) {
  h1, h2, h3 { word-break: break-word; font-size: 1.07rem; }
  .footer-contact, .footer-nav { font-size: 0.81rem; }
}

/* =========== ANIMATIONS & MICRO-INTERACTIONS =========== */
.card, .testimonial-card, .product-card, .blog-post-card, .faq-list li, .features ul li {
  transition: box-shadow 0.18s, transform 0.18s;
}
.cta-btn, .cookie-banner button, .cookie-modal button {
  transition: background 0.2s, color 0.2s, border 0.12s, box-shadow 0.12s;
}
nav a, .main-nav a, .mobile-nav a, .footer-nav a { transition: color 0.18s, border-color 0.14s, text-decoration 0.09s; }

/* =========== UTILITIES =========== */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-1 { margin-top: 8px !important; }
.mt-2 { margin-top: 20px !important; }
.mb-1 { margin-bottom: 8px !important; }
.mb-2 { margin-bottom: 20px !important; }

/* Hide scroll when mobile menu/cookie-dialog open (handled via .menu-open or .cookie-modal-open on body) */
body.menu-open, body.cookie-modal-open {
  overflow: hidden !important;
}

/* =========== END OF MAIN CSS =========== */
