/* --- 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,
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;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  background: #fff;
  color: #273443;
  font-family: 'Roboto', Arial, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  letter-spacing: 0;
  font-size: 1rem;
  font-smooth: always;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #273443;
  text-decoration: none;
  transition: color 0.18s;
}
a:focus {
  outline: 2px solid #758391;
  outline-offset: 3px;
}
button, input, textarea, select {
  font: inherit;
}
ul, ol {
  list-style: none;
}
:root {
  --brand-primary: #273443;
  --brand-secondary: #D1C6BE;
  --brand-accent: #4d5c6b;
  --brand-bg: #fff;
  --shadow-main: 0 2px 12px rgba(39,52,67,0.05);
  --shadow-hover: 0 6px 24px rgba(39,52,67,0.11);
  --radius-main: 12px;
  --radius-btn: 6px;
  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: 'Roboto', Arial, sans-serif;
}

/* --- TYPOGRAPHY --- */
h1, .h1 {
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--brand-primary);
  line-height: 1.13;
  margin-bottom: 18px;
}
h2, .h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--brand-primary);
  margin-bottom: 14px;
  line-height: 1.18;
}
h3, .h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--brand-primary);
  margin-bottom: 10px;
}
h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 500;
}
p, ul, ol {
  font-size: 1rem;
  margin-bottom: 16px;
  color: var(--brand-primary);
}
strong { font-weight: 600; }

/* Utility: Section, Container, Spacing */
.container {
  width: 100%;
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  width: 100%;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
  color: var(--brand-primary);
}

/* Cards, Features, Grids, Testimonials */
.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 24px;
  margin-bottom: 18px;
}
.features-grid > div {
  flex: 1 1 220px;
  background: #fff;
  border-radius: var(--radius-main);
  box-shadow: var(--shadow-main);
  padding: 24px 20px 20px 20px;
  text-align: left;
  min-width: 190px;
  transition: box-shadow 0.18s, transform 0.18s;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.features-grid > div:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: var(--radius-main);
  margin-bottom: 20px;
  box-shadow: var(--shadow-main);
  position: relative;
  padding: 28px 24px 24px 24px;
  flex: 1 1 270px;
  transition: box-shadow 0.16s, transform 0.14s;
}
.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.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;
}

.testimonials {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 28px 24px 20px 24px;
  background: #ffffff;
  border-radius: var(--radius-main);
  box-shadow: var(--shadow-main);
  min-width: 240px;
  color: #273443;
  margin-bottom: 20px;
  flex: 1 1 270px;
  transition: box-shadow 0.16s, transform 0.13s;
}
.testimonial-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}
.testimonial-card strong {
  color: var(--brand-accent);
  font-weight: 600;
}

/* List Styling */
ul, ol {
  margin-left: 1.1em;
  padding-left: 0.8em;
  margin-bottom: 18px;
  list-style: disc inside;
}
ul li {
  margin-bottom: 8px;
}

/* --- HEADER & NAVIGATION --- */
header {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 20;
  box-shadow: 0 1px 12px rgba(39,52,67,0.03);
}
header nav {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 18px 0;
  flex-wrap: wrap;
}
header nav a {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
  color: var(--brand-primary);
  padding: 7px 10px;
  border-radius: 4px;
  transition: background 0.2s, color 0.16s;
}
header nav a:hover,
header nav a:focus {
  background: var(--brand-secondary);
  color: var(--brand-accent);
}
header nav a.cta.primary {
  background: var(--brand-primary);
  color: #fff;
  border-radius: var(--radius-btn);
  padding: 9px 22px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  margin-left: 10px;
  transition: background 0.18s, color 0.17s, box-shadow 0.19s;
  box-shadow: 0 2px 12px rgba(39,52,67,0.06);
}
header nav a.cta.primary:hover,
header nav a.cta.primary:focus {
  background: var(--brand-accent);
  color: #fff !important;
  box-shadow: var(--shadow-hover);
}
header nav img {
  height: 38px;
}

/* --- MOBILE MENU --- */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--brand-primary);
  margin-left: auto;
  cursor: pointer;
  padding: 10px 14px;
  border-radius: var(--radius-btn);
  transition: background 0.14s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--brand-secondary);
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  box-shadow: 0 2px 20px rgba(39,52,67,0.13);
  z-index: 1001;
  transform: translateX(-100vw);
  transition: transform 0.36s cubic-bezier(0.86,0,0.07,1);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 32px 28px 28px 32px;
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: var(--brand-accent);
  font-size: 2.1rem;
  align-self: flex-end;
  margin-bottom: 18px;
  cursor: pointer;
  padding: 5px 16px;
  border-radius: var(--radius-btn);
  transition: background 0.15s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: var(--brand-secondary);
  color: var(--brand-primary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 10px;
}
.mobile-nav a {
  color: var(--brand-primary);
  font-size: 1.25rem;
  font-weight: 500;
  padding: 13px 0 13px 10px;
  border-radius: 4px;
  transition: background 0.17s, color 0.16s;
  min-width: 180px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--brand-secondary);
  color: var(--brand-accent);
}

/* --- BUTTONS & CTAs --- */
.cta, button, .button {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  border: none;
  border-radius: var(--radius-btn);
  background: var(--brand-accent);
  color: #fff;
  padding: 12px 28px;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(39,52,67,0.05);
  margin-top: 10px;
  transition: background 0.2s, box-shadow 0.18s, color 0.12s, transform 0.11s;
}
.cta.primary {
  background: var(--brand-primary);
}
.cta:hover,
.cta:focus,
.cta.primary:hover,
.cta.primary:focus {
  background: var(--brand-accent);
  color: #fff;
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px) scale(1.03);
}

/* --- FOOTER --- */
footer {
  padding: 38px 0 16px 0;
  background: #fff;
  border-top: 1px solid #EBEBEB;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 24px;
  align-items: center;
  justify-content: center;
}
footer nav a {
  color: var(--brand-accent);
  font-size: 1rem;
  border-radius: 4px;
  padding: 5px 10px;
  font-family: var(--font-body);
  transition: background 0.13s;
}
footer nav a:hover,
footer nav a:focus {
  background: var(--brand-secondary);
  color: var(--brand-primary);
}
.brand-footer {
  display: flex;
  align-items: center;
  gap: 15px;
  justify-content: center;
  font-size: 1rem;
  color: var(--brand-accent);
}
.brand-footer img {
  height: 32px;
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9000;
  background: #fff;
  border-top: 1px solid #EBEBEB;
  box-shadow: 0 -2px 30px rgba(39,52,67,0.06);
  padding: 26px 20px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
  max-width: 100vw;
  animation: fadeInBanner 0.44s;
}
@keyframes fadeInBanner {
  from { opacity: 0; transform: translateY(48px); }
  to { opacity: 1; transform: translateY(0); }
}
.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}
.cookie-btn {
  background: var(--brand-accent);
  color: #fff;
  border-radius: var(--radius-btn);
  border: none;
  padding: 10px 18px;
  font-size: 0.98rem;
  font-family: var(--font-body);
  font-weight: 500;
  cursor: pointer;
  transition: background 0.17s, box-shadow 0.16s, color 0.16s;
}
.cookie-btn.settings {
  background: var(--brand-secondary);
  color: var(--brand-primary);
  border: 1px solid var(--brand-accent);
}
.cookie-btn.reject {
  background: #fff;
  color: var(--brand-accent);
  border: 1px solid var(--brand-accent);
}
.cookie-btn:hover,
.cookie-btn:focus {
  background: var(--brand-primary);
  color: #fff;
  box-shadow: var(--shadow-main);
}

/* Cookie Modal */
.cookie-modal {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  z-index: 10010;
  background: rgba(39,52,67,0.18);
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeInModal 0.33s;
}
@keyframes fadeInModal {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal__box {
  background: #fff;
  border-radius: var(--radius-main);
  box-shadow: 0 8px 30px rgba(39,52,67,0.13);
  max-width: 96vw;
  width: 420px;
  padding: 34px 28px 26px 28px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  position: relative;
}
.cookie-modal-close {
  background: none;
  border: none;
  color: var(--brand-accent);
  font-size: 1.4rem;
  position: absolute;
  top: 12px;
  right: 18px;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
  transition: background 0.13s;
}
.cookie-modal-close:hover {
  background: var(--brand-secondary);
  color: var(--brand-primary);
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}
.cookie-modal label {
  font-size: 1rem;
  font-family: var(--font-body);
  color: var(--brand-primary);
}
.toggle-switch {
  position: relative;
  width: 36px;
  height: 20px;
  display: inline-block;
}
.toggle-switch input { display: none; }
.toggle-slider {
  position: absolute;
  background: #D1C6BE;
  border-radius: 100px;
  top: 0; left: 0;
  right: 0; bottom: 0;
  cursor: pointer;
  transition: background 0.2s;
}
.toggle-switch input:checked + .toggle-slider {
  background: var(--brand-primary);
}
.toggle-slider:before {
  content: '';
  position: absolute;
  left: 2.5px;
  top: 2px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.22s;
}
.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(16px);
}

/* --- RESPONSIVE DESIGN & MOBILE-FIRST --- */
@media (max-width: 1020px) {
  .container { max-width: 98vw; }
  header nav { gap: 10px; }
  .features-grid > div,
  .card {
    padding: 18px 14px 18px 14px;
  }
}
@media (max-width: 900px) {
  h1, .h1 { font-size: 2.1rem; }
  h2, .h2 { font-size: 1.57rem; }
  .features-grid, .testimonials {
    gap: 12px;
  }
}
@media (max-width: 768px) {
  .features-grid {
    flex-direction: column;
    gap: 18px;
  }
  .card-container, .testimonials, .content-grid {
    flex-direction: column;
    gap: 18px;
  }
  .content-wrapper { gap: 18px; }
  .section { padding: 30px 9vw; margin-bottom: 38px; }
  h1, .h1 { font-size: 1.56rem; }
  h2, .h2 { font-size: 1.12rem; }
  nav a.cta.primary { padding: 8px 17px; font-size: 0.97rem; }
  .brand-footer img { height: 25px; }
  .text-image-section,
  .content-grid { flex-direction: column; gap: 17px; }
}
@media (max-width: 650px) {
  .container { padding-left: 10px; padding-right: 10px; }
  .section { padding: 26px 3vw; }
  footer { padding: 32px 6px 9px 6px; }
}
@media (max-width: 900px) {
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 901px) {
  .mobile-menu {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: none !important;
  }
}

/* --- FORM ELEMENTS --- */
input, textarea, select {
  padding: 10px 14px;
  border: 1px solid #CBD1DA;
  border-radius: 7px;
  background: #f8f8f9;
  font-size: 1rem;
  color: var(--brand-primary);
  transition: border-color 0.13s;
  margin-bottom: 18px;
  width: 100%;
  box-sizing: border-box;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--brand-accent);
  outline: none;
}
label {
  font-family: var(--font-body);
  font-size: 1.01rem;
  color: var(--brand-primary);
  margin-bottom: 7px;
  display: block;
}

/* --- MICRO-ANIMATIONS --- */
.cta, button, .cookie-btn {
  transition-property: background, color, box-shadow, transform;
  transition-duration: 0.15s, 0.13s, 0.13s, 0.1s;
  transition-timing-function: cubic-bezier(0.29,1.01,0.5,1);
}
.features-grid > div, .card, .testimonial-card {
  transition: box-shadow 0.15s, transform 0.15s;
}

/* --- GENERAL CLASSES FROM HTML STRUCTURE --- */
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* --- ACCESSIBILITY: HIDE ELEMENTS WHEN NO-JS --- */
.js-hide {
  display: none !important;
}

/* --- HELPER: HIDE ON DESKTOP --- */
@media (min-width: 901px) {
  .hide-desktop {
    display: none !important;
  }
}

/* --- VISUAL TWEAKS FOR BRAND/MINIMALIST STYLE --- */
::-webkit-input-placeholder { color: #AAA; }
::-moz-placeholder { color: #AAA; }
:-ms-input-placeholder { color: #AAA; }
::placeholder { color: #AAA; }

hr {
  border: 0;
  height: 1px;
  background: #EEF1F4;
  margin: 36px 0;
  width: 100%;
}

/* --- PREVENT OVERLAPPING, ADEQUATE SPACING --- */
section, .card, .testimonial-card, .features-grid > div {
  margin-bottom: 20px;
}

/* --- SCROLLBAR FOR MODAL (cookie, mobile menu) --- */
.cookie-modal__box, .mobile-menu {
  overflow-y: auto;
  max-height: 97vh;
}

/* --- END STYLE.CSS --- */
