/* RESET & BASELINE ------------------------------- */
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
  border: 0;
}
body {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  background: #fff;
  color: #181818;
  min-height: 100vh;
  line-height: 1.6;
  letter-spacing: 0.02em;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, Helvetica, sans-serif;
  font-weight: 700;
  color: #181818;
  margin-bottom: 16px;
  letter-spacing: 0.01em;
  line-height: 1.2;
}
h1 { font-size: 2.8rem; margin-bottom: 20px; }
h2 { font-size: 2rem; margin-bottom: 18px; }
h3 { font-size: 1.5rem; margin-bottom: 14px; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p, ul, ol {
  font-size: 1rem;
  margin-bottom: 16px;
}
ul, ol {
  margin-left: 24px;
}
ul li, ol li {
  margin-bottom: 8px;
}
a {
  color: #2E4057;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #000;
  text-decoration: underline;
}

img {
  max-width: 100%;
  display: block;
}

/* CONTAINERS & BASIC LAYOUT -------------------- */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.text-section {
  max-width: 700px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 16px rgba(40, 40, 40, 0.10), 0 1.5px 7px rgba(0,0,0,0.06);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 270px;
  transition: box-shadow 0.25s, transform 0.2s;
}
.card:hover {
  box-shadow: 0 8px 32px rgba(30,30,30,0.16), 0 4px 22px rgba(0,0,0,0.14);
  transform: translateY(-6px) scale(1.02);
}
.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;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 28px 22px;
  margin-bottom: 20px;
  border-radius: 18px;
  background: #F8F8F8;
  box-shadow: 0 2px 8px rgba(60,60,60,0.12);
  color: #191919;
  position: relative;
  min-width: 250px;
  transition: box-shadow 0.2s;
}
.testimonial-card strong {
  font-weight: 700;
  font-size: 1rem;
  color: #2E4057;
}
.testimonial-card h3 {
  margin-bottom: 10px;
  font-size: 1.15rem;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* HEADER -------------------------------------- */
header {
  width: 100%;
  background: #fff;
  box-shadow: 0 2px 10px rgba(34,44,64,0.05);
  position: sticky;
  top: 0;
  z-index: 30;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding-top: 12px;
  padding-bottom: 12px;
}
header a img {
  max-height: 40px;
  margin-right: 16px;
}
.main-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 32px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: #2E4057;
  padding: 6px 0;
  position: relative;
  transition: color 0.2s;
}
.main-nav a:before {
  content: '';
  display: block;
  position: absolute;
  bottom: -2px;
  left: 0;
  height: 2px;
  width: 0%;
  background: #2E4057;
  transition: width 0.25s;
}
.main-nav a:hover,
.main-nav a:focus {
  color: #111;
}
.main-nav a:hover:before,
.main-nav a:focus:before {
  width: 100%;
}
.cta-btn {
  background: #2E4057;
  color: #fff;
  border-radius: 25px;
  padding: 13px 32px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 2px 10px rgba(31,37,45,0.09);
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.21s, color 0.23s, transform 0.12s, box-shadow 0.21s;
  margin-left: 15px;
}
.cta-btn:hover, .cta-btn:focus {
  background: #181818;
  color: #F4D35E;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 20px rgba(30,30,30,0.13);
  text-decoration: none;
}

/* MOBILE NAV ---------------------------------- */
.mobile-menu-toggle {
  display: none;
  background: none;
  font-size: 2rem;
  color: #2E4057;
  padding: 4px 10px;
  border: none;
  cursor: pointer;
  margin-left: 20px;
  z-index: 52;
  transition: color 0.3s;
}
.mobile-menu-toggle:hover{ color: #F4D35E; }
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  height: 100dvh;
  width: 100vw;
  background: rgba(28,28,28,0.92);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.77,0,0.18,1);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-end;
  padding: 0 0 0 0;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
}
.mobile-menu-close {
  background: none;
  color: #fff;
  font-size: 2.2rem;
  font-weight: 400;
  border: 0;
  margin: 24px 20px 18px 0;
  cursor: pointer;
  align-self: flex-end;
  z-index: 1010;
  transition: color 0.23s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #F4D35E;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  width: 100vw;
  align-items: flex-start;
  gap: 6px;
  padding: 0 32px;
  margin-top: 0;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.22rem;
  padding: 17px 0;
  color: #fff;
  font-weight: 600;
  transition: color 0.17s, background 0.17s;
  width: 100%;
  display: block;
  border-radius: 10px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #2E4057;
  color: #F4D35E;
  text-decoration: none;
}
@media (max-width: 1024px) {
  header .container {
    gap: 12px;
  }
  .main-nav { gap: 19px; }
}

@media (max-width: 968px) {
  .main-nav { gap: 10px; }
}
@media (max-width: 900px) {
  .main-nav { gap: 8px; }
  header .container { gap: 10px; }
}
@media (max-width: 840px) {
  header .container { flex-direction: column; align-items: stretch; }
}
@media (max-width: 768px) {
  header .container {
    flex-direction: row;
    align-items: center;
    gap: 6px;
    padding-top: 8px;
    padding-bottom: 8px;
  }
  .main-nav {
    display: none !important;
  }
  .cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
    margin-left: auto;
  }
}

/* HERO ---------------------------------------- */
.hero {
  background: #191919;
  color: #fff;
  position: relative;
  min-height: 340px;
}
.hero .container {
  min-height: 340px;
  justify-content: center;
  flex-direction: row;
}
.hero .content-wrapper {
  align-items: flex-start;
  justify-content: center;
  background: transparent !important;
  padding: 50px 0;
}
.hero h1 {
  color: #F4D35E;
  text-shadow: 0 3px 22px rgba(0,0,0,0.28);
  margin-bottom: 14px;
  font-size: 2.25rem;
}
.hero p {
  color: #fff;
  opacity: 0.93;
  font-size: 1.12rem;
  margin-bottom: 30px;
  max-width: 460px;
}
.hero .cta-btn {
  background: #F4D35E;
  color: #181818;
  font-weight: 700;
  box-shadow: 0 3px 17px rgba(235,214,94,0.14);
}
.hero .cta-btn:hover, .hero .cta-btn:focus {
  background: #fff;
  color: #181818;
}

@media (max-width: 768px) {
  .hero, .hero .container {
    min-height: 220px;
  }
  .hero .content-wrapper { padding: 35px 0 35px 0; }
  .hero h1 { font-size: 1.5rem; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.1rem; }
  .hero p { font-size: 1rem; }
}

/* FOOTER -------------------------------------- */
footer {
  background: #181818;
  color: #fff;
  margin-top: 70px;
  width: 100%;
  box-shadow: 0 -2px 10px rgba(44,44,54,0.062);
}
footer .container {
  display: flex;
  flex-direction: row;
  gap: 40px;
  align-items: flex-start;
  justify-content: space-between;
  padding-top: 36px;
  padding-bottom: 28px;
  flex-wrap: wrap;
}
.footer-logo img {
  max-width: 64px;
  height: auto;
}
.footer-nav {
  display: flex;
  flex-direction: row;
  gap: 29px;
  flex-wrap: wrap;
}
.footer-nav a {
  color: #F4D35E;
  font-size: 0.98rem;
  margin-bottom: 10px;
  transition: color 0.16s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #fff;
  text-decoration: underline;
}
.footer-desc {
  margin-top: 16px;
  color: #B0B0B0;
  font-size: 0.98rem;
}
@media (max-width: 900px) {
  footer .container { gap: 18px; }
  .footer-nav { gap: 12px; flex-wrap: wrap; }
}
@media (max-width: 600px) {
  footer .container {
    gap: 0;
    flex-direction: column;
    align-items: flex-start;
    padding-top: 22px;
    padding-bottom: 18px;
  }
  .footer-logo img { margin-bottom: 16px; }
  .footer-nav { flex-direction: column; gap: 7px; }
  .footer-desc { margin-top: 12px; }
}

/* SECTIONS AND LISTS -------------------------- */
section {
  width: 100%;
  margin-bottom: 38px;
}
section .container {
  padding-top: 26px;
  padding-bottom: 26px;
}
.content-wrapper {
  background: #fff;
  border-radius: 19px;
  box-shadow: 0 2px 13px rgba(42,42,45,0.03);
  padding: 32px 24px;
}
.content-wrapper.text-section {
  background: none;
  box-shadow: none;
  padding: 0;
}
section h2, section h3 {
  color: #2E4057;
}
ul {
  list-style: disc outside;
  margin-left: 22px;
  margin-bottom: 14px;
}
ol {
  list-style: decimal inside;
  margin-left: 22px;
}
ul li, ol li {
  margin-bottom: 10px;
  font-size: 1.01rem;
}

/* BUTTONS ------------------------------------- */
button, .cta-btn, .cookie-btn {
  outline: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.18s, border-color 0.18s;
}
button:focus-visible, .cta-btn:focus-visible, .cookie-btn:focus-visible {
  box-shadow: 0 0 0 3px #2E405733;
}

/* ARTICLE AND CARDS (BLOG) -------------------- */
article {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 3px 16px rgba(40,40,40,0.06);
  padding: 32px 22px;
  margin-bottom: 20px;
  transition: box-shadow 0.21s, transform 0.18s;
}
article:hover, article:focus-within {
  box-shadow: 0 9px 26px rgba(32,36,45,0.13);
  transform: translateY(-2px) scale(1.01);
}

/* SPECIAL SPACING ----------------------------- */
.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; }

/* MONOCHROME SOPHISTICATED EXTRAS ------------- */
section {
  background-color: #fff;
  border-top: 1px solid #eeeeee;
}
section:last-child {
  margin-bottom: 0;
}

/* VISUAL HIERARCHY ---------------------------- */
@media (min-width: 1200px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2.2rem; }
  h3 { font-size: 1.4rem; }
}

/* RESPONSIVE RULES ---------------------------- */
@media (max-width: 1024px) {
  .container { max-width: 92vw; }
}
@media (max-width: 900px) {
  .content-wrapper, .card {
    padding: 24px 12px;
  }
  .card-container, .content-grid {
    gap: 16px;
  }
}
@media (max-width: 768px) {
  .container {
    max-width: 100vw;
    padding: 0 8px;
  }
  .content-wrapper, .card {
    padding: 15px 7px;
  }
  .card-container, .content-grid {
    gap: 8px;
    flex-direction: column;
  }
  .text-image-section {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  section {
    padding: 15px 4px;
    margin-bottom: 30px;
  }
  .testimonial-card {
    padding: 16px 10px;
    gap: 10px;
  }
}

/* Z-INDEX STABILITY --------------------------- */
header, .mobile-menu, .cookie-banner, .cookie-modal { z-index: 1000; }

/* COOKIE CONSENT BANNER ----------------------- */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  background: #181818f6;
  color: #fff;
  padding: 24px 16px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 30px;
  box-shadow: 0 -2px 16px rgba(30,30,30,0.14);
  font-size: 1.03rem;
  z-index: 1200;
  transition: transform 0.35s;
  will-change: transform;
}
.cookie-banner.hide {
  transform: translateY(120%);
}
.cookie-banner-content {
  max-width: 540px;
  flex: 1 1 60%;
  color: #fff;
}
.cookie-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.cookie-btn {
  background: #fff;
  color: #2E4057;
  border-radius: 7px;
  padding: 9px 20px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 2px 8px rgba(34,44,68,0.085);
  transition: background 0.2s, color 0.2s, box-shadow 0.17s;
  border: 1px solid #D1D1D1;
}
.cookie-btn.primary {
  background: #2E4057;
  color: #fff;
  border-color: #2E4057;
}
.cookie-btn.primary:hover, .cookie-btn.primary:focus {
  background: #F4D35E;
  color: #181818;
  border-color: #F4D35E;
}
.cookie-btn.secondary {
  background: #fff;
  color: #2E4057;
  border-color: #D1D1D1;
}
.cookie-btn.secondary:hover, .cookie-btn.secondary:focus {
  background: #F4D35E;
  color: #181818;
}
.cookie-btn.ghost {
  background: transparent;
  color: #fff;
  border: 1px solid #2E4057;
}
.cookie-btn.ghost:hover, .cookie-btn.ghost:focus {
  background: #fff;
  color: #2E4057;
}
@media (max-width: 680px) {
  .cookie-banner { flex-direction: column; text-align: center; gap: 16px; padding: 18px 2px; }
  .cookie-banner-content { padding-bottom:5px; }
}

/* COOKIE MODAL POPUP -------------------------- */
.cookie-modal {
  position: fixed;
  inset: 0;
  background: rgba(25,25,25,0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1300;
  transform: translateY(0%);
  transition: opacity 0.27s cubic-bezier(0.8,0,0.5,1), transform 0.22s;
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(60%);
}
.cookie-modal-dialog {
  background: #fff;
  padding: 38px 30px 30px 30px;
  border-radius: 18px;
  max-width: 380px;
  width: 92vw;
  color: #181818;
  position: relative;
  box-shadow: 0 8px 44px rgba(35,34,35,0.18);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 19px;
}
.cookie-modal-header {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.22rem;
  margin-bottom: 6px;
}
.cookie-modal-close {
  background: none;
  position: absolute;
  right: 14px;
  top: 12px;
  color: #181818;
  font-size: 1.6rem;
  border: 0;
  cursor: pointer;
  transition: color 0.17s;
  z-index: 12;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: #2E4057;
}
.cookie-modal-section {
  margin-bottom: 9px;
}
.cookie-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cookie-toggle input[type=checkbox] {
  width: 30px;
  height: 16px;
  appearance: none;
  background: #B6B6B6;
  border-radius: 7px;
  transition: background 0.2s;
  outline: none;
  cursor: pointer;
  position: relative;
}
.cookie-toggle input[type=checkbox]:checked {
  background: #2E4057;
}
.cookie-toggle input[type=checkbox]::before {
  content: '';
  position: absolute;
  left: 1px;
  top: 1px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  transition: left 0.23s;
  box-shadow: 0 1.5px 4px #bbb8;
}
.cookie-toggle input[type=checkbox]:checked::before {
  left: 15px;
}
.cookie-toggle label {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
}
.cookie-category-desc {
  font-size: 0.98em;
  margin-left: 29px;
  color: #4D5051;
  margin-bottom: 5px;
}
.cookie-modal-actions {
  display: flex;
  gap: 13px;
  margin-top: 11px;
}
@media (max-width: 480px) {
  .cookie-modal-dialog { padding: 18px 5px 12px 5px; }
}

/* ANIMATIONS & INTERACTIONS ------------------- */
.cta-btn, .cookie-btn, .main-nav a, .footer-nav a, .mobile-nav a {
  transition: background 0.20s, color 0.16s, box-shadow 0.20s, border-color 0.15s, transform 0.13s;
}
.card, article, .testimonial-card {
  transition: box-shadow 0.18s, transform 0.20s;
}
.card:hover, article:hover, .testimonial-card:hover {
  box-shadow: 0 9px 26px rgba(32,36,45,0.14);
  transform: translateY(-3px) scale(1.01);
}

/* TYPOGRAPHY SCALE ENFORCEMENT ---------------- */
@media (max-width: 600px) {
  h1 { font-size: 1.3rem; }
  h2 { font-size: 1.13rem; }
  h3 { font-size: 1.01rem; }
  .section { margin-bottom: 23px; padding: 13px 1px; }
}

/* MONOCHROME DETAILS -------------------------- */
h1, h2, h3, h4, h5, h6 {
  background: none;
  text-shadow: 0 1px 1px #fff,
               0 2px 3px #eee8;
}

/* SCROLLBAR ----------------------------------- */
body::-webkit-scrollbar {
  width: 8px;
  background: #f5f5f9;
}
body::-webkit-scrollbar-thumb {
  background: #AFAFAF;
  border-radius: 7px;
}

/* ACCESSIBILITY ------------------------------- */
:focus {
  outline: 2px solid #2E4057;
  outline-offset: 1px;
}

/* PRINT NO BANNER/NO MOBILE NAV --------------- */
@media print {
  .cookie-banner, .mobile-menu { display:none !important; }
}
