/* =========== RESET & BASE TYPOGRAPHY =========== */
html {
  box-sizing: border-box;
  font-size: 16px;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  background: #F7F4EF;
  color: #27636F;
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-size: 1rem;
  font-weight: 400;
}
img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}
a {
  color: #27636F;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.2s;
}
a:focus {
  outline: 2px solid #BD824B;
  outline-offset: 2px;
}
a:hover {
  color: #BD824B;
}
ul, ol {
  margin: 0;
  padding-left: 24px;
}
li {
  margin-bottom: 8px;
}
strong {
  font-weight: 700;
}
h1, h2, h3, h4, h5 {
  font-family: 'Montserrat', Helvetica, Arial, sans-serif;
  margin-bottom: 16px;
  font-weight: 800;
  color: #27636F;
  letter-spacing: 0.02em;
}
h1 {
  font-size: 2.75rem;
  line-height: 1.12;
  margin-bottom: 20px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}
h4, h5 {
  font-size: 1rem;
}
p {
  margin-bottom: 16px;
}
input[type="text"] {
  font-family: inherit;
  font-size: 1rem;
  padding: 10px 14px;
  border: 2px solid #27636F;
  border-radius: 8px;
  width: 100%;
  transition: border-color 0.2s;
  background: #fff;
  margin-bottom: 16px;
}
input[type="text"]:focus {
  border-color: #BD824B;
  outline: none;
}
button, .cta-button {
  font-family: 'Montserrat', Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 14px 28px;
  border: none;
  border-radius: 32px;
  cursor: pointer;
  background-color: #27636F;
  color: #fff;
  transition: background 0.18s, box-shadow 0.18s, color 0.18s, transform 0.12s;
  margin-right: 8px;
  margin-bottom: 8px;
  box-shadow: 0 2px 14px rgba(39, 99, 111, 0.07);
  letter-spacing: 0.025em;
  outline: none;
}
.cta-button:focus,
button:focus {
  background: #BD824B;
  color: #fff;
  outline: 2px solid #BD824B;
}
.cta-button:hover,
button:hover {
  background-color: #BD824B;
  color: #fff;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 4px 24px rgba(189, 130, 75, 0.14);
}

/* ====== FLEX & CONTAINER UTILS ====== */
.container {
  width: 100%;
  max-width: 1240px;
  padding: 0 20px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 0;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 2px 16px rgba(39, 99, 111, 0.06);
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 3px 20px rgba(39, 99, 111, 0.07);
  margin-bottom: 20px;
  padding: 24px;
  flex: 1 1 320px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 260px;
  max-width: 380px;
}
.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;
  border-radius: 20px;
  box-shadow: 0 2px 16px rgba(39, 99, 111, 0.09);
  margin-bottom: 20px;
  min-width: 0;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* =========== HEADER & NAV =========== */
header {
  width: 100%;
  background: #fff;
  box-shadow: 0 2px 16px rgba(39, 99, 111, 0.10);
  padding: 0;
  display: flex;
  flex-direction: column;
  z-index: 100;
  position: relative;
}
header .container {
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  min-height: 72px;
  gap: 0;
}
header img {
  height: 48px;
  margin-right: 20px;
}
header nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  padding: 5px 12px;
  border-radius: 20px;
  color: #27636F;
  transition: background 0.15s, color 0.15s, box-shadow 0.12s;
  position: relative;
  font-weight: 700;
}
header nav a:hover {
  background: #27636F;
  color: #fff;
}
header .cta-button {
  margin-left: 36px;
  background: #BD824B;
  color: #fff;
  border-radius: 36px;
  box-shadow: 0 2px 14px rgba(189, 130, 75, 0.06);
  transition: background 0.12s, box-shadow 0.12s;
}
header .cta-button:hover {
  background: #27636F;
  color: #fff;
  box-shadow: 0 6px 24px rgba(39, 99, 111, 0.11);
}

/* ============ HERO SECTION ============ */
.hero {
  background: #27636F url(../assets/hero-bg.svg) top right no-repeat;
  color: #fff;
  padding: 60px 0 50px 0;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  border-radius: 0 0 32px 32px;
  min-height: 270px;
}
.hero .container {
  align-items: flex-start;
  gap: 0;
}
.hero .content-wrapper {
  color: #fff;
  align-items: flex-start;
}
.hero h1 {
  color: #fff;
}
.hero p {
  font-size: 1.15rem;
  margin-bottom: 20px;
  color: #F7F4EF;
}
.hero .cta-button {
  background: #BD824B;
  color: #fff;
}
.hero .cta-button:hover {
  background: #fff;
  color: #27636F;
}

/* ============ FEATURE GRID (Home) ============ */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 8px;
  margin-bottom: 16px;
  width: 100%;
}
.feature-grid > div {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 2px 18px rgba(39,99,111,0.07);
  padding: 24px 20px;
  min-width: 220px;
  flex: 1 1 230px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  transition: transform 0.14s, box-shadow 0.14s;
  border-top: 5px solid #BD824B;
}
.feature-grid > div:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 8px 32px rgba(39,99,111,0.17);
  cursor: pointer;
}
.feature-grid img {
  width: 42px;
  height: 42px;
  margin-bottom: 7px;
}
.feature-grid h3 {
  margin-bottom: 6px;
  font-size: 1.1rem;
  color: #27636F;
}

/* ========== TEXT BLOCKS & SECTION UTILS ========== */
.text-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.text-section ul,
.text-section ol {
  margin-left: 24px;
  margin-bottom: 12px;
  color: #27636F;
}
.text-section li {
  font-size: 1rem;
  margin-bottom: 8px;
  color: #27636F;
}
.text-section p img {
  vertical-align: middle;
  margin-right: 10px;
  width: 22px;
  height: 22px;
}

/* ========== TESTIMONIALS ========== */
.testimonials {
  background: #F7F4EF;
  padding: 40px 0 0 0;
  border-radius: 32px;
}
.testimonials .container {
  gap: 0;
}
.testimonials h2 {
  color: #27636F;
  font-size: 2rem;
  margin-bottom: 22px;
}
.testimonial-card {
  background: #fff;
  color: #27636F;
  border-radius: 20px;
  box-shadow: 0 2px 18px rgba(39, 99, 111, 0.09);
  margin-bottom: 20px;
  padding: 32px 36px 26px 24px;
  align-items: center;
  gap: 20px;
  min-width: 0;
}
.testimonial-card .text-section {
  gap: 8px;
  color: #27636F;
}
.testimonial-card img {
  width: 30px;
  height: 30px;
}
.testimonial-card strong {
  color: #BD824B;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  letter-spacing: 0.01em;
}

/* ========== MAIN, SECTIONS, & PAGES ========== */
main {
  width: 100%;
  padding-bottom: 40px;
}
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 2px 16px rgba(39, 99, 111, 0.06);
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
  position: relative;
}
section:last-child {
  margin-bottom: 0;
}

/* ========== FOOTER ========== */
footer {
  background: #27636F;
  color: #fff;
  border-radius: 32px 32px 0 0;
  box-shadow: 0 -2px 18px rgba(39, 99, 111, 0.08);
  margin-top: 40px;
  padding: 36px 0 24px 0;
  width: 100%;
}
footer .container {
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
}
footer nav {
  display: flex;
  flex-direction: row;
  gap: 24px;
}
footer nav a {
  color: #fff;
  opacity: 0.81;
  font-weight: 600;
  padding: 0 5px;
  border-radius: 12px;
  font-size: 1rem;
  transition: color 0.15s, opacity 0.15s;
}
footer nav a:hover {
  color: #BD824B;
  opacity: 1;
}
footer .text-section {
  margin-top: 8px;
  color: #fff;
  font-size: 1rem;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
}

/* ========== MOBILE MENU ========== */
.mobile-menu-toggle {
  display: none;
  position: absolute;
  right: 28px;
  top: 16px;
  background: #BD824B;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 2rem;
  z-index: 1001;
  align-items: center;
  justify-content: center;
  transition: background 0.14s, box-shadow 0.13s, color 0.13s;
  box-shadow: 0 2px 8px rgba(189, 130, 75, 0.14);
  cursor: pointer;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: #27636F;
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: #27636F;
  position: fixed;
  top: 0;
  right: 0;
  width: 93vw;
  max-width: 350px;
  height: 100vh;
  transform: translateX(100%);
  transition: transform 0.33s cubic-bezier(.5,.2,.2,1);
  z-index: 2500;
  box-shadow: -8px 0 36px rgba(39, 99, 111, 0.12);
  padding: 32px 24px 24px 24px;
  gap: 28px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: #fff;
  border: none;
  color: #27636F;
  align-self: flex-end;
  font-size: 2rem;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  margin-bottom: 12px;
  transition: background 0.16s;
}
.mobile-menu-close:focus,
.mobile-menu-close:hover {
  background: #BD824B;
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Montserrat', Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 1.22rem;
  padding: 12px 0 12px 12px;
  border-radius: 18px;
  transition: background 0.13s, color 0.13s;
}
.mobile-nav a:focus,
.mobile-nav a:hover {
  background: #BD824B;
  color: #fff;
}

/* ========== COOKIE BANNER/MODAL ========== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #fff;
  color: #27636F;
  padding: 28px 20px 24px 20px;
  box-shadow: 0 -2px 28px rgba(39,99,111,0.11);
  z-index: 3000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  border-radius: 24px 24px 0 0;
  animation: fadeSlideUp 0.6s cubic-bezier(.48,1.8,.17,.86);
}
@keyframes fadeSlideUp {
  0% { transform: translateY(40px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-banner p {
  margin: 0 0 4px 0;
  font-size: 1rem;
  color: #27636F;
}
.cookie-banner-buttons {
  display: flex;
  flex-direction: row;
  gap: 16px;
  margin-top: 6px;
  width: 100%;
  justify-content: center;
}
.cookie-banner-buttons .cookie-accept,
.cookie-banner-buttons .cookie-reject {
  background: #27636F;
  color: #fff;
  border-radius: 32px;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 700;
  transition: background 0.12s, color 0.12s;
  border: none;
}
.cookie-banner-buttons .cookie-accept:hover {
  background: #BD824B;
}
.cookie-banner-buttons .cookie-reject {
  background: #BD824B;
}
.cookie-banner-buttons .cookie-reject:hover {
  background: #27636F;
}
.cookie-settings-btn {
  background: #fff;
  color: #27636F;
  border: 2px solid #27636F;
  font-weight: 700;
  border-radius: 32px;
  padding: 10px 22px;
  transition: background 0.11s, color 0.11s;
}
.cookie-settings-btn:hover {
  background: #27636F;
  color: #fff;
}

.cookie-modal {
  position: fixed;
  z-index: 4000;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(39, 99, 111, 0.54);
  display: flex;
  align-items: center;
  justify-content: center;
}
.cookie-modal-inner {
  background: #fff;
  border-radius: 26px;
  padding: 34px 30px 26px 30px;
  min-width: 320px;
  max-width: 98vw;
  color: #27636F;
  box-shadow: 0 6px 28px rgba(39,99,111,0.22);
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  animation: fadeSlideUp 0.54s cubic-bezier(.49,1.7,.19,.87);
}
.cookie-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: #BD824B;
  color: #fff;
  font-size: 1.6rem;
  border: none;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.11s;
  z-index: 4510;
}
.cookie-modal-close:hover,
.cookie-modal-close:focus {
  background: #27636F;
}
.cookie-category {
  background: #F7F4EF;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  margin-bottom: 12px;
  font-size: 1.02rem;
}
.cookie-category strong {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #27636F;
  font-weight: 700;
}
.cookie-category input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: #BD824B;
  margin-left: 14px;
}
.cookie-category.essential {
  opacity: .68;
}
.cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 16px;
  justify-content: flex-end;
  margin-top: 12px;
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 1100px) {
  header .container, footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
  }
  .feature-grid {
    gap: 18px;
  }
  .card {
    max-width: 100%;
  }
}
@media (max-width: 850px) {
  .feature-grid {
    flex-direction: column;
    gap: 20px;
  }
  .feature-grid > div {
    min-width: 0;
    width: 100%;
  }
  .card-container {
    flex-direction: column;
    gap: 20px;
  }
  .card {
    min-width: 0;
    width: 100%;
  }
  .text-section, .content-wrapper {
    gap: 16px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 12px;
  }
}
@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
  section, .section {
    padding: 28px 6px;
    border-radius: 14px;
  }
  .hero {
    padding: 38px 0 25px 0;
    min-height: 180px;
    border-radius: 0 0 16px 16px;
  }
  .content-wrapper {
    gap: 14px;
  }
  .card {
    padding: 14px 10px;
    border-radius: 12px;
  }
  footer {
    padding: 24px 0 14px 0;
    border-radius: 20px 20px 0 0;
  }
}
@media (max-width: 700px) {
  header .container nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  header .cta-button {
    display: none;
  }
  .hero, .testimonials {
    padding-right: 0;
    padding-left: 0;
  }
}
@media (max-width: 580px) {
  .container {
    padding: 0 8px;
  }
  .feature-grid, .card-container {
    gap: 12px;
  }
  footer nav {
    gap: 16px;
  }
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.3rem;
  }
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }
  .content-grid {
    flex-direction: column;
    gap: 18px;
    justify-content: flex-start;
  }
  .testimonial-card {
    flex-direction: column;
    gap: 12px;
  }
}

/* ========== MICRO-INTERACTIONS / HOVER / FOCUS ========== */
.card, .feature-grid > div {
  transition: box-shadow 0.2s, transform 0.14s;
}
.card:hover {
  box-shadow: 0 8px 28px rgba(39,99,111,0.13);
  transform: translateY(-4px) scale(1.03);
}
input:focus, textarea:focus {
  outline: 2px solid #BD824B;
}
/* Allow a11y focus style */
a:focus-visible, .cta-button:focus-visible, button:focus-visible {
  outline: 2px solid #BD824B;
  outline-offset: 2px;
}

/* ========== OTHER UI DETAILS ========== */
::-webkit-scrollbar {
  width: 13px;
  background: #F7F4EF;
}
::-webkit-scrollbar-thumb {
  background: #27636F;
  border-radius: 7px;
}
::-webkit-scrollbar-thumb:hover {
  background: #BD824B;
}

/* ========== Z-INDEX LAYERS ========== */
header {
  z-index: 60;
}
footer {
  z-index: 50;
}
.mobile-menu {
  z-index: 2500;
}
.cookie-banner,
.cookie-modal {
  z-index: 4000;
}

/* ========== BRAND COLORS ========== */
:root {
  --kwr-primary: #27636F;
  --kwr-secondary: #F7F4EF;
  --kwr-accent: #BD824B;
  --kwr-dark: #1A3C44;
  --kwr-white: #fff;
}
