/* ----------------------------
   CSS RESET & BASE STYLING
----------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  box-sizing: border-box;
  font-size: 16px;
  background: #fff;
}
body {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-weight: 400;
  color: #222;
  background: #fff;
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  word-break: break-word;
}
:root {
  --primary: #22232b;
  --primary-mid: #31394D;
  --secondary: #A28B5B;
  --accent: #F5F2EC;
  --white: #fff;
  --black: #111;
  --gray1: #18191f;
  --gray2: #32353e;
  --gray3: #60646e;
  --gray4: #bbb;
  --gray5: #edecec;
  --shadow: 0 2px 20px 0 rgba(33, 33, 33, 0.10);
  --radius: 12px;
  --fw-semibold: 600;
  --transition: 0.25s cubic-bezier(.46,.03,.52,.96);
}
img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 0;
}
a {
  color: var(--primary-mid);
  text-underline-offset: 2px;
  text-decoration-thickness: 1.5px;
  transition: color var(--transition);
}
a:hover, a:focus {
  color: var(--secondary);
  outline: none;
}
ul, ol {
  padding-left: 1.2em;
  margin-bottom: 1em;
}
li + li {
  margin-top: 0.55em;
}
h1, h2, h3, h4 {
  font-family: 'Rubik', 'Open Sans', Arial, sans-serif;
  color: var(--black);
  font-feature-settings: 'pnum' on, 'lnum' on;
  font-weight: var(--fw-semibold);
  margin-bottom: 0.5em;
  line-height: 1.13;
  letter-spacing: -0.5px;
}
h1 {
  font-size: 2.5rem; /* 40px */
  margin-bottom: 0.7em;
}
h2 {
  font-size: 2rem; /* 32px */
  margin-bottom: 0.65em;
}
h3 {
  font-size: 1.25rem; /* 20px */
}
.subheadline {
  margin-bottom: 1em;
  font-size: 1.13rem;
  color: var(--gray3);
  max-width: 38em;
}
p {
  margin-bottom: 0.95em;
}
strong {
  font-weight: bold;
  color: var(--primary-mid);
}
section,
.section {
  width: 100%;
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
  position: relative;
}
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ----------------------------
   HEADER & NAVIGATION
----------------------------- */
header {
  width: 100%;
  background: var(--white);
  border-bottom: 1px solid var(--gray5);
  box-shadow: 0 2px 8px rgba(20,20,32,0.06);
  position: sticky;
  top: 0;
  z-index: 100;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  filter: grayscale(1) contrast(1.25);
  opacity: 0.98;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.main-nav a {
  font-family: 'Rubik', 'Open Sans', Arial, sans-serif;
  font-size: 1.03rem;
  font-weight: var(--fw-semibold);
  color: var(--gray2);
  letter-spacing: 0.01em;
  position: relative;
  padding: 4px 0;
  text-decoration: none;
  transition: color var(--transition);
}
.main-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--secondary);
  transition: width var(--transition);
}
.main-nav a:hover::after, .main-nav a:focus::after {
  width: 100%;
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--secondary);
}
.btn.primary {
  background: var(--primary-mid);
  color: var(--white);
  border-radius: var(--radius);
  border: none;
  font-family: 'Rubik', 'Open Sans', Arial, sans-serif;
  font-size: 1.09rem;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.02em;
  padding: 0.85em 2em 0.83em 2em;
  margin-left: 14px;
  cursor: pointer;
  box-shadow: 0 2px 10px 0 rgba(30,30,30,0.07);
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
  text-decoration: none;
  outline: none;
  display: inline-block;
}
.btn.primary:hover, .btn.primary:focus {
  background: var(--black);
  color: var(--white);
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 4px 22px 0 rgba(16,16,32,0.09);
}

/* HAMBURGER MOBILE MENU */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--primary-mid);
  cursor: pointer;
  z-index: 1130;
  margin-left: 6px;
}
@media (max-width: 1024px) {
  .main-nav,.btn.primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
.mobile-menu {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: var(--white);
  box-shadow: 0 6px 24px rgba(20,20,40,0.16);
  z-index: 1120;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(.46,.03,.52,.96);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 36px;
  padding-left: 32px;
  padding-right: 32px;
  padding-bottom: 40px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  border: none;
  color: var(--primary-mid);
  font-size: 2.1rem;
  margin-bottom: 38px;
  cursor: pointer;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.mobile-nav a {
  color: var(--black);
  text-decoration: none;
  font-size: 1.25rem;
  font-family: 'Rubik', 'Open Sans', Arial, sans-serif;
  font-weight: 500;
  background: none;
  padding: 12px 0;
  transition: color var(--transition), background var(--transition);
  border-radius: 6px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--secondary);
  background: var(--accent);
}
@media (max-width: 500px) {
  .mobile-menu {
    padding-left: 12px;
    padding-right: 12px;
  }
  .mobile-nav a {
    font-size: 1.1rem;
    padding: 11px 0;
  }
}

/* ----------------------------
   HERO SECTION (INDEX)
----------------------------- */
.hero {
  background: var(--primary-mid);
  color: var(--white);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: 0 7px 32px 0 rgba(29,29,36,0.13);
  margin-bottom: 70px;
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: center;
}
.hero .container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 320px;
  gap: 0px;
}
.hero h1 {
  color: var(--white);
  font-size: 2.65rem;
  margin-bottom: 0.3em;
  letter-spacing: -1px;
  text-shadow: 0 2px 14px rgba(40,40,64,0.10);
}
.hero .subheadline {
  color: var(--accent);
  font-size: 1.25rem;
  margin-bottom: 1.4em;
  line-height: 1.5;
  max-width: 600px;
}
.hero .btn.primary {
  background: var(--secondary);
  color: var(--black);
}
.hero .btn.primary:hover {
  background: #222;
  color: var(--white);
}

/* ----------------------------
   FLEX & UTILITY CONTAINERS
----------------------------- */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 24px;
  min-width: 260px;
  transition: box-shadow var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  border: 1.5px solid var(--gray5);
  gap: 16px;
}
.card:hover {
  box-shadow: 0 6px 32px 0 rgba(0,0,0,0.11);
  transform: translateY(-4px) 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;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 32px;
  background: var(--accent);
  border-radius: var(--radius);
  margin-bottom: 20px;
  min-width: 240px;
  max-width: 510px;
  box-shadow: 0 2px 10px 0 rgba(42,42,42,0.07);
  border-left: 6px solid var(--secondary);
}
.testimonials {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: flex-start;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1.5px solid var(--gray5);
  box-shadow: var(--shadow);
  padding: 20px 22px;
  min-width: 210px;
}

/* FEATURE GRID ON INDEX */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  justify-content: flex-start;
  margin-top: 12px;
}
.feature {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1.5px solid var(--gray5);
  padding: 20px 18px 24px 18px;
  width: 260px;
  min-width: 180px;
  min-height: 220px;
  position: relative;
  transition: box-shadow var(--transition), transform var(--transition);
}
.feature img {
  width: 40px;
  height: 40px;
  filter: grayscale(1) contrast(1.1);
  opacity: 0.84;
}
.feature h3 {
  font-size: 1.16rem;
  color: var(--primary-mid);
  margin-bottom: 0.32em;
  margin-top: 0.1em;
}
.feature p {
  font-size: 1rem;
  color: var(--gray3);
}
.feature:hover {
  box-shadow: 0 6px 36px rgba(0,0,0,0.14);
  transform: translateY(-3px) scale(1.015);
}

/* USP-LIST (about/why) */
.usp-list {
  margin-bottom: 1.6em;
}
.usp-list li::before {
  content: "•";
  color: var(--secondary);
  padding-right: 8px;
  font-size: 1.2em;
}

/* ----------------------------
   COMMON FLEX & LAYOUT SPACING
----------------------------- */
.text-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 12px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 14px;
  margin-top: 10px;
}
.footer-nav a {
  color: var(--gray3);
  font-size: 1rem;
  text-decoration: none;
  transition: color var(--transition);
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--secondary);
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 0.983rem;
  color: var(--gray3);
}
.footer-contact img {
  width: 17px;
  height: 17px;
  margin-right: 6px;
  vertical-align: text-bottom;
  filter: grayscale(1) contrast(1.2) brightness(0.7);
}
footer {
  background: var(--accent);
  padding: 28px 0;
  border-top: 1px solid var(--gray5);
  font-size: 0.99rem;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 36px;
}

/* ----------------------------
   TYPOGRAPHY SCALE & EFFECTS
----------------------------- */
.text-section h2, .text-section h3, .text-section h4 {
  margin-top: 1em;
}
h2 + .feature-grid, h2 + .testimonial-card, h2 + .testimonials {
  margin-top: 0.6em;
}

/* ----------------------------
   CARD, TESTIMONIALS, SPECIAL SECTIONS
----------------------------- */
.testimonial-card p {
  color: #232323;
  font-style: italic;
  margin-bottom: 0.25em;
  font-size: 1.07rem;
}
.testimonial-card strong {
  color: var(--primary-mid);
  font-size: 1rem;
  font-style: normal;
}

/* Ensure readability (dark-on-light) in testimonials */
.testimonials {
  background: none;
}

/* ----------------------------
   BUTTONS
----------------------------- */
.btn {
  display: inline-block;
  cursor: pointer;
  font-family: inherit;
  border: none;
  border-radius: var(--radius);
  padding: 0.7em 1.4em;
  font-size: 1.02rem;
  font-weight: 600;
  transition: background var(--transition), color var(--transition), transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
  box-shadow: 0 2px 8px 0 rgba(20,20,40,0.04);
  background: var(--gray2);
  color: var(--white);
}
.btn.secondary {
  background: var(--accent);
  color: var(--primary-mid);
  border: 1.5px solid var(--gray5);
}
.btn.outline {
  background: transparent;
  color: var(--primary-mid);
  border: 1.5px solid var(--gray5);
}
.btn.secondary:hover, .btn.secondary:focus,
.btn.outline:hover, .btn.outline:focus {
  background: var(--primary-mid);
  color: var(--white);
  border-color: var(--primary-mid);
}

/* ----------------------------
   COOKIE BANNER
----------------------------- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100%;
  background: var(--white);
  border-top: 1.5px solid var(--gray5);
  box-shadow: 0 -6px 26px rgba(33,33,44,0.10);
  z-index: 2200;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 24px;
  padding: 18px 18px 16px 18px;
  font-size: 1rem;
  animation: cookiefadein 0.45s cubic-bezier(.46,.03,.52,.96) 1;
}
@keyframes cookiefadein {
  from { transform: translateY(80px) scale(0.98); opacity:0; }
  to { transform: translateY(0) scale(1); opacity:1; }
}
.cookie-banner p {
  color: var(--black);
  font-size: 1rem;
  margin: 0 0.5em 0 0;
  max-width: 360px;
}
.cookie-banner .cookie-btns {
  display: flex;
  gap: 16px;
}
.btn.cookie-accept {
  background: var(--primary-mid);
  color: var(--white);
}
.btn.cookie-accept:hover, .btn.cookie-accept:focus {
  background: var(--black);
  color: var(--white);
}
.btn.cookie-reject {
  background: var(--gray5);
  color: var(--primary-mid);
}
.btn.cookie-reject:hover, .btn.cookie-reject:focus {
  background: var(--gray3);
  color: var(--white);
}
.btn.cookie-settings {
  background: var(--accent);
  color: var(--primary-mid);
  border: 1.5px solid var(--gray4);
}
.btn.cookie-settings:hover, .btn.cookie-settings:focus {
  background: var(--primary-mid);
  color: var(--white);
}

/* COOKIE MODAL */
.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 2205;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(32,32,32,0.36);
  animation: cookiefadein 0.28s cubic-bezier(.46,.03,.52,.96) 1;
}
.cookie-modal .modal-box {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 6px 44px 0 rgba(40,40,40,0.13);
  max-width: 410px;
  width: 98vw;
  padding: 34px 26px 26px 26px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-size: 1rem;
  position: relative;
}
.cookie-modal .modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
}
.cookie-modal .close {
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--gray3);
  cursor: pointer;
  line-height: 1;
  padding: 0;
  margin-left: 10px;
}
.cookie-modal .cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: space-between;
  font-size: 1rem;
  border-bottom: 1px solid var(--gray5);
  padding-bottom: 7px;
}
.cookie-category .toggle {
  min-width: 49px;
  min-height: 31px;
}
.cookie-category .toggle input[type="checkbox"] {
  width: 42px;
  height: 21px;
  accent-color: var(--secondary);
}
.cookie-category .toggle input[type="checkbox"][disabled] {
  opacity: 0.6;
}
.cookie-modal .modal-footer {
  display: flex;
  gap: 14px;
  justify-content: flex-end;
  margin-top: 10px;
}

/* ----------------------------
   RESPONSIVE DESIGN
----------------------------- */
@media (max-width: 1280px) {
  .container {
    max-width: 97vw;
  }
}
@media (max-width: 900px) {
  header .container {
    gap: 10px;
  }
  .feature-grid {
    gap: 18px;
  }
  .card-container,
  .testimonials {
    gap: 17px;
  }
  .card {
    padding: 21px 13px;
  }
  .testimonial-card {
    padding: 15px 16px;
  }
}
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.32rem;
  }
  section, .section {
    padding: 24px 7px;
  }
  .card {
    min-width: unset;
    width: 100%;
  }
  .feature,
  .feature-item {
    min-width: unset;
    width: 100%;
    padding-left: 12px;
    padding-right: 12px;
  }
  .feature-grid,
  .card-container,
  .content-grid,
  .testimonials {
    flex-direction: column;
    gap: 16px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
  footer .content-wrapper {
    flex-direction: column;
    gap: 8px;
  }
}
@media (max-width: 640px) {
  .hero {
    border-radius: 0;
    min-height: 190px;
    margin-bottom: 28px;
  }
  .hero h1 {
    font-size: 1.25rem;
  }
  .footer-nav {
    gap: 11px;
    font-size: 0.96rem;
  }
  .testimonial-card {
    max-width: 99vw;
    min-width: unset;
    padding: 12px 8px;
  }
}

/* ----------------------------
   MICROINTERACTIONS & EFFECTS
----------------------------- */
.card, .feature, .btn, .testimonial-card, .cookie-banner, .cookie-modal .modal-box {
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition), background var(--transition), color var(--transition);
}
.btn:active, .mobile-menu-close:active, .mobile-menu-toggle:active {
  transform: scale(0.97);
  opacity: 0.9;
}

/* ----------------------------
   PRINT STYLES
----------------------------- */
@media print {
  * { background: #fff !important; color: #000 !important; box-shadow: none !important; }
  header, footer, .cookie-banner, .mobile-menu { display: none !important; }
  section, .section, .container { box-shadow: none !important; border: none !important; }
}

/* ----------------------------
   ADDITIONAL DESIGN TWEAKS
----------------------------- */
[tabindex]:focus, button:focus, input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--secondary);
  outline-offset: 1px;
  z-index: 20;
}
::-webkit-input-placeholder { color:var(--gray4); opacity:1; }
::-moz-placeholder { color:var(--gray4); opacity:1; }
:-ms-input-placeholder { color:var(--gray4); opacity:1; }
::placeholder { color:var(--gray4); opacity:1; }

hr {
  border: 0; border-top: 1px solid var(--gray5); margin: 2em 0;
}

/* Hide scrollbars for some elements for sophistication */
body, .mobile-menu, .cookie-modal { scrollbar-width: thin; scrollbar-color: var(--gray4) var(--white); }

/* Hide mobile-menu by default */
.mobile-menu:not(.open) {
  pointer-events: none;
}

/* Ensure cookies modal is over everything else */
.cookie-modal { pointer-events: all; }

/* Ensure spacing between elements, no overlapping */
section > *, .section > *, .container > *, .content-wrapper > * {
  margin-bottom: 20px;
}
section > *:last-child, .section > *:last-child, .container > *:last-child, .content-wrapper > *:last-child {
  margin-bottom: 0;
}

/* Hide all scroll bouncing background for modals/menus */
body.menu-open, body.modal-open {
  overflow: hidden !important;
}
