/* --- CSS RESET & BASE --- */
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;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.6;
  background: #F9F7F3;
  color: #263159;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
ul, ol {
  list-style: none;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: 100%;
  background: none;
  border: none;
  outline: none;
  color: inherit;
  box-sizing: border-box;
}

/* --- BRAND COLORS --- */
:root {
  --color-primary: #263159;
  --color-secondary: #7B98B3;
  --color-accent: #F4F6FB;
  --color-neutral: #F9F7F3;
  --color-success: #F4B183;
  --color-error: #F08080;
  --color-shadow: rgba(38,49,89,0.07);
}

/* --- FONTS --- */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,600,400&display=swap');
@import url('https://fonts.googleapis.com/css?family=Roboto:400,500,700&display=swap');
body {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  color: var(--color-primary);
  background: var(--color-neutral);
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: var(--color-primary);
}
h1 { font-size: 2.5rem; margin-bottom: 16px; line-height: 1.2; }
h2 { font-size: 2rem; margin-bottom: 14px; line-height: 1.25; }
h3 { font-size: 1.4rem; margin-bottom: 10px; font-weight: 600; }
h4 { font-size: 1.1rem; }
p, ul li, ol li, label { font-size: 1rem; color: var(--color-primary); }
strong, b { font-weight: 700; }

/* --- GENERAL LAYOUT CONTAINERS --- */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-accent);
  border-radius: 18px;
  box-shadow: 0 3px 20px var(--color-shadow);
}

.text-section {
  padding: 0;
  margin: 0 0 12px 0;
}

/* --- NAVIGATION / HEADER --- */
header {
  width: 100%;
  background: #fff;
  box-shadow: 0 2px 12px var(--color-shadow);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
}
header nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  padding: 18px 20px;
  justify-content: flex-start;
}
header nav a {
  padding: 7px 16px;
  border-radius: 9px;
  color: var(--color-primary);
  font-size: 1rem;
  transition: background 0.15s, color 0.2s;
  font-weight: 500;
}
header nav a:hover, header nav a:focus {
  background: var(--color-secondary);
  color: #fff;
}
header nav a.cta, .cta {
  background: var(--color-primary);
  color: #fff !important;
  font-weight: 700;
  border-radius: 16px;
  padding: 9px 22px;
  box-shadow: 0 2px 8px var(--color-shadow);
  transition: transform 0.14s, box-shadow 0.2s, background 0.2s;
  letter-spacing: 0.2px;
}
header nav a.cta:hover, .cta:hover, .cta:focus {
  background: var(--color-success);
  color: var(--color-primary) !important;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 4px 20px rgba(38,49,89,0.12);
}
header nav img {
  height: 36px;
  margin-right: 10px;
  vertical-align: middle;
  border-radius: 10px;
  display: inline-block;
}

/* Hamburger Menu Button */
.mobile-menu-toggle {
  display: none;
  background: var(--color-primary);
  color: #fff;
  border: none;
  font-size: 2rem;
  border-radius: 10px;
  padding: 4px 12px;
  cursor: pointer;
  margin-left: auto;
  transition: background 0.22s, box-shadow 0.2s;
  z-index: 102;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: var(--color-success);
  color: var(--color-primary);
}

/* Mobile Menu Styles */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 98vw;
  max-width: 350px;
  height: 100vh;
  background: #fff;
  box-shadow: -6px 0 32px -8px var(--color-shadow);
  z-index: 110;
  transform: translateX(102%);
  transition: transform 0.35s cubic-bezier(.65,.05,.36,1);
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 25px 30px 30px 24px;
}
.mobile-menu.open {
  transform: translateX(0%);
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  border: none;
  font-size: 2.2rem;
  color: var(--color-primary);
  cursor: pointer;
  padding: 4px 9px;
  border-radius: 8px;
  margin-bottom: 14px;
  transition: background 0.18s;
  z-index: 111;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: var(--color-secondary);
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.mobile-nav a {
  padding: 13px 0;
  font-size: 1.2rem;
  color: var(--color-primary);
  border-radius: 7px;
  font-weight: 600;
  transition: background 0.16s, color 0.2s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-secondary);
  color: #fff;
}

@media (max-width: 900px) {
  header nav {
    gap: 8px;
    padding: 15px 12px;
  }
  header nav img {
    height: 32px;
  }
}
@media (max-width: 768px) {
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
    margin: 10px 15px 10px auto;
  }
}

/* --- MAIN CONTENT SECTIONS --- */
main {
  margin-top: 0;
  margin-bottom: 30px;
  min-height: 70vh;
}
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-accent);
  border-radius: 18px;
  box-shadow: 0 3px 20px var(--color-shadow);
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
section:last-child { margin-bottom: 0; }

@media (max-width: 600px) {
  section {
    padding: 28px 5px;
  }
}

/* --- CARDS, FLEX PATTERNS --- */
/* Card Container (for listings, features, etc.) */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.card {
  flex: 1 1 260px;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 2px 14px var(--color-shadow);
  padding: 24px 20px 20px 20px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: box-shadow 0.25s, transform 0.18s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 6px 32px 0 rgba(38,49,89,.16);
  transform: translateY(-4px) scale(1.012);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.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;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

@media (max-width: 768px) {
  .card-container,
  .content-grid {
    flex-direction: column;
    gap: 20px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 22px;
    align-items: flex-start;
  }
}

/* --- LISTS with ICONS (Feature & Service Lists) --- */
ul {
  margin: 0 0 14px 0;
}
ul li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 1rem;
  color: var(--color-primary);
}
ul li img {
  height: 30px;
  width: 30px;
  margin-right: 6px;
  border-radius: 8px;
  background: var(--color-accent);
  box-shadow: 0 1px 4px rgba(38,49,89,.11);
}

@media (max-width: 600px) {
  ul li img {
    height: 24px; width: 24px;
  }
}

/* --- TESTIMONIAL CARDS --- */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 15px;
  margin: 20px 0 0 0;
  box-shadow: 0 2px 16px rgba(38,49,89,.14);
  border: 1px solid var(--color-accent);
  position: relative;
  min-width: 210px;
  min-height: 90px;
}
.testimonial-card p {
  color: var(--color-primary);
  font-size: 1.1rem;
  font-style: italic;
  margin-bottom: 6px;
}
.testimonial-card strong {
  display: block;
  color: var(--color-secondary);
  font-size: 1rem;
  font-style: normal;
  margin-top: 10px;
}

.testimonial-card:not(:first-child) {
  margin-top: 16px;
}
@media (max-width: 600px) {
  .testimonial-card {
    flex-direction: column;
    padding: 18px 11px;
    gap: 14px;
  }
}

/* --- BUTTONS, CTA --- */
button, .cta {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  background: var(--color-primary);
  color: #fff;
  padding: 10px 25px;
  border: none;
  border-radius: 16px;
  cursor: pointer;
  box-shadow: 0 2px 8px var(--color-shadow);
  transition: background 0.16s, color 0.19s, transform 0.15s, box-shadow 0.24s;
  letter-spacing: 0.08em;
  margin: 12px 0 0 0;
  display: inline-block;
}
button:hover, button:focus, .cta:hover, .cta:focus {
  background: var(--color-success);
  color: var(--color-primary) !important;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 4px 20px 0 var(--color-shadow);
}

/* SMALL BUTTONS */
button.small {
  font-size: 0.94rem;
  padding: 8px 15px;
  border-radius: 10px;
  min-width: 64px;
  margin: 0 8px 0 0;
}

/* --- FORM ELEMENTS --- */
input[type="text"], input[type="email"], input[type="search"], textarea {
  background: #fff;
  border: 1.5px solid var(--color-secondary);
  border-radius: 11px;
  padding: 10px 12px;
  margin-right: 10px;
  font-size: 1rem;
  color: var(--color-primary);
  box-shadow: 0 2px 4px rgba(38,49,89,0.06);
  transition: box-shadow 0.19s, border-color 0.16s;
}
input[type="text"]:focus, input[type="email"]:focus, textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 3px 8px rgba(38,49,89,0.11);
}

label {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  margin-bottom: 4px;
  color: var(--color-primary);
  display: inline-block;
}

.text-section button[type="button"] {
  margin-top: 6px;
}

/* --- FOOTER --- */
footer {
  background: #fff;
  border-top: 2px solid var(--color-accent);
  padding: 36px 0 24px 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  font-size: 1rem;
}
footer nav a {
  color: var(--color-primary);
  padding: 0 4px;
  text-decoration: underline;
  border-radius: 7px;
  transition: background 0.14s, color 0.16s;
  font-weight: 500;
}
footer nav a:hover, footer nav a:focus {
  background: var(--color-secondary);
  color: #fff;
}
.footer-contact {
  margin-top: 8px;
  color: var(--color-secondary);
  font-size: 1rem;
  text-align: center;
}
.footer-contact a {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: underline;
}

/* --- SPACING & FLEX LAYOUTS (MANDATORY PATTERNS) --- */
.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;
}

/* --- RESPONSIVE --- */
@media (max-width: 950px) {
  .container {
    max-width: 98vw;
  }
}
@media (max-width: 768px) {
  .container,
  .content-wrapper,
  .section {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }
  section { padding: 27px 5px; }
  .content-wrapper { gap: 17px; }
  .footer-contact { font-size: 0.95rem; }
}
@media (max-width: 520px) {
  h1 { font-size: 1.65rem; }
  h2 { font-size: 1.3rem; }
  h3 { font-size: 1.08rem; }
}

/* --- ANIMATION KEYFRAMES --- */
@keyframes slideInUp {
  0% { transform: translateY(90px); opacity:0; }
  100% { transform: translateY(0); opacity:1; }
}
@keyframes fadeInMenu {
  0% { opacity: 0; transform: translateX(80px); }
  100% { opacity: 1; transform: translateX(0); }
}

/* --- MICROINTERACTIONS --- */
.cta, button {
  transition: background 0.16s, color 0.17s, transform 0.14s, box-shadow 0.19s;
}
a, .mobile-nav a {
  transition: color 0.18s, background 0.16s;
}
.card, .testimonial-card {
  transition: box-shadow 0.19s, transform 0.13s;
}
.card:hover, .testimonial-card:hover {
  box-shadow: 0 7px 28px 0 rgba(38,49,89,.16);
  transform: translateY(-2.5px) scale(1.01);
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff3e5;
  color: #263159;
  padding: 22px 8px 22px 12px;
  box-shadow: 0 -4px 22px rgba(38,49,89,0.11);
  border-top: 2px solid #F4B183;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  animation: slideInUp 0.65s cubic-bezier(.63,.08,.45,1);
}
.cookie-banner p {
  font-size: 1rem;
  color: #263159;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 2px;
}
.cookie-banner button {
  background: var(--color-primary);
  color: #fff;
  border-radius: 11px;
  padding: 8px 17px;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.18s, color 0.2s;
}
.cookie-banner button.accept {
  background: #F4B183;
  color: var(--color-primary);
}
.cookie-banner button.reject {
  background: #F08080;
  color: #fff;
}
.cookie-banner button.settings {
  background: var(--color-secondary);
}
.cookie-banner button:hover {
  background: var(--color-success);
  color: var(--color-primary);
}

/* --- COOKIE MODAL --- */
.cookie-modal-backdrop {
  position: fixed;
  z-index: 210;
  left: 0; top: 0; right: 0; bottom:0;
  background: rgba(38,49,89,.22);
  animation: fadeInMenu 0.4s;
  display: flex;
  justify-content: center;
  align-items: center;
}
.cookie-modal {
  background: #fff;
  padding: 32px 22px 24px 22px;
  border-radius: 18px;
  box-shadow: 0 7px 45px rgba(38,49,89,.17);
  min-width: 290px;
  max-width: 96vw;
  z-index: 211;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: slideInUp 0.42s;
}
.cookie-modal h3 {
  font-size: 1.35rem;
  color: var(--color-primary);
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 15px;
}
.cookie-category label {
  font-size: 1.03rem;
  color: var(--color-primary);
}
.cookie-category input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--color-success);
  border-radius: 7px;
}
.cookie-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 7px;
}
.cookie-category.essential label {
  font-weight: 700;
  color: var(--color-success);
}
.cookie-category.essential input[type="checkbox"] {
  accent-color: var(--color-success);
}

@media (max-width: 520px) {
  .cookie-modal, .cookie-banner {
    padding: 14px 5px 17px 8px;
    min-width: unset;
  }
  .cookie-modal h3 { font-size: 1.05rem; }
}
/* Hide cookie modal & banner by default; show via .open or .show */
.cookie-modal, .cookie-modal-backdrop, .cookie-banner { display: none; }
.cookie-banner.show { display: flex; }
.cookie-modal.open, .cookie-modal-backdrop.open { display: flex; }

/* --- Miscellaneous / Utility --- */
.hide { display: none !important; }

/* --- END --- */
