/* =======================================================
   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,
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.5;
  background: #F4F1EF;
  color: #283568;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-weight: 400;
  min-height: 100vh;
}
a {
  text-decoration: none;
  color: inherit;
  background: none;
  transition: color 0.2s linear;
}
ul, ol {
  list-style: none;
}
img {
  border: 0;
  max-width: 100%;
  display: block;
}
button {
  background: none;
  border: none;
  font: inherit;
  cursor: pointer;
  outline: none;
  color: inherit;
}
*, *:before, *:after {
  box-sizing: inherit;
}

/* =======================================================
   BRAND VARIABLES (Color, Font)
   ======================================================= */
:root {
  --color-primary: #283568;
  --color-secondary: #F4F1EF;
  --color-accent: #D88574;
  --color-accent-strong: #C5492B;
  --color-white: #fff;
  --color-black: #181A21;
  --color-dark-blue: #1E2545;

  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: 'Open Sans', Arial, Helvetica, sans-serif;
}

/* =======================================================
   TYPOGRAPHY (Geometric/Structured)
   ======================================================= */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  letter-spacing: 0.02em;
  color: var(--color-primary);
  font-weight: 700;
  line-height: 1.2;
  text-transform: none;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 24px;
  letter-spacing: 1px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}
h3 {
  font-size: 1.38rem;
  margin-bottom: 16px;
}
h4 {
  font-size: 1.12rem;
}
p, li, address, span, pre {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
}
p {
  margin-bottom: 16px;
}
strong, b {
  font-weight: 700;
}
q {
  quotes: "\201C" "\201D" "\2018" "\2019";
  font-style: italic;
  color: var(--color-dark-blue);
}

/* =======================================================
   LAYOUT & STRUCTURED GEOMETRY
   ======================================================= */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
}

main > section {
  margin-bottom: 60px;
  padding: 40px 20px;
  border-radius: 32px;
  background: var(--color-white);
  box-shadow: 0 6px 32px 0 rgba(40, 53, 104, 0.05), 0 1.5px 5px 0 rgba(40, 53, 104, 0.03);
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  background: var(--color-secondary);
  border-radius: 20px;
  box-shadow: 0 2px 12px 0 rgba(40,53,104,0.07);
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 24px 20px;
  transition: box-shadow 0.22s;
}
.card:hover {
  box-shadow: 0 8px 28px 0 rgba(40,53,104,0.15);
  z-index: 2;
}

.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;
}
.text-image-section .text {
  flex: 1 1 300px;
}
.text-image-section .image {
  flex: 1 1 180px;
  max-width: 33vw;
}

.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--color-secondary);
  padding: 20px;
  border-radius: 22px;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px 0 rgba(40, 53, 104, 0.07);
  border-left: 8px solid var(--color-accent);
  transition: border-color 0.22s;
}
.testimonial-card p {
  color: #222;
}
.testimonial-card b {
  color: var(--color-primary);
}
.testimonial-card:hover {
  border-left: 8px solid var(--color-accent-strong);
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ===========================================
   HEADER & NAVIGATION (Structured/Geometric)
   =========================================== */
header {
  background: var(--color-primary);
  color: var(--color-secondary);
  position: relative;
  z-index: 100;
}
header .container {
  padding: 0 20px;
  min-height: 72px;
  height: 72px;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}
header img {
  height: 46px;
  width: auto;
  margin-right: 36px;
}
header nav {
  display: flex;
  gap: 32px;
  align-items: center;
  font-family: var(--font-display);
  font-size: 1rem;
}
header nav a {
  color: var(--color-secondary);
  font-weight: 600;
  padding: 6px 2px;
  border-radius: 8px;
  transition: background 0.17s, color 0.2s;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
header nav a:hover, header nav a:focus {
  color: var(--color-accent);
  background: rgba(244,241,239,0.18);
}
/* Hamburger menu toggle */
.mobile-menu-toggle {
  display: none;
  background: var(--color-accent);
  color: #fff;
  border-radius: 11px;
  padding: 8px 12px;
  font-size: 2rem;
  line-height: 1;
  margin-left: 14px;
  box-shadow: 0 1.5px 6px 0 rgba(60,60,60,0.13);
  border: none;
  z-index: 1410;
  transition: background 0.15s;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: var(--color-accent-strong);
  outline: 2px solid #fff;
}

/* Mobile Menu (full screen overlay) */
.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(40,53,104,0.98);
  transform: translateX(-110%);
  transition: transform 0.35s cubic-bezier(.83,-0.01,.76,1.05);
  z-index: 1500;
  opacity: 0.99;
  box-shadow: 0 6px 24px 0 rgba(40,53,104,0.25);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2rem;
  margin: 18px 28px 0 0;
  color: var(--color-accent);
  background: none;
  border: none;
  border-radius: 8px;
  padding: 5px 9px;
  cursor: pointer;
  transition: background 0.13s, color 0.15s;
  z-index: 1600;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: var(--color-accent-strong);
  color: var(--color-secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 56px 0 0 0;
  padding-left: 32px;
}
.mobile-nav a {
  color: var(--color-secondary);
  font-size: 1.3rem;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 12px 0 12px 2px;
  border-radius: 4px;
  transition: background 0.16s, color 0.16s;
  text-transform: uppercase;
  min-width: 64vw;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-accent);
  color: var(--color-white);
}

/* Hide nav desktop on mobile */
@media (max-width: 1000px) {
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
/* Hide burger on desktop */
@media (min-width: 1001px) {
  .mobile-menu {
    display: none !important;
  }
}

@media (max-width: 768px) {
  header .container {
    padding: 0 8px;
    min-height: 58px;
    height: 58px;
  }
  header img {
    height: 35px;
    margin-right: 14px;
  }
}

/* =======================================================
   CTA BUTTONS (Primary & Secondary)
   ======================================================= */
.primary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  min-width: 164px;
  margin-top: 8px;
  padding: 0 28px;
  border: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.12rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-white);
  background: var(--color-accent);
  border-radius: 28px;
  box-shadow: 0 3px 12px 0 rgba(216,133,116,0.15);
  transition: background 0.18s, box-shadow 0.18s, transform 0.15s;
  cursor: pointer;
}
.primary-cta:hover, .primary-cta:focus {
  background: var(--color-accent-strong);
  color: var(--color-white);
  transform: translateY(-2px) scale(1.03) skewX(-1deg);
  box-shadow: 0 6px 18px 0 rgba(216,133,116,0.32);
}

/* =======================================================
   FOOTER
   ======================================================= */
footer {
  background: var(--color-primary);
  color: var(--color-secondary);
  padding: 34px 0 20px 0;
  font-size: 0.98rem;
}
footer .container {
  flex-direction: column;
  align-items: flex-start;
}
footer .content-wrapper {
  flex-direction: column;
  gap: 12px;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  font-family: var(--font-display);
  font-size: 1rem;
}
footer nav a {
  color: var(--color-secondary);
  text-decoration: underline;
  font-weight: 500;
  transition: color 0.17s;
}
footer nav a:hover, footer nav a:focus {
  color: var(--color-accent);
  text-decoration: none;
}
footer address {
  font-style: normal;
  color: var(--color-secondary);
  font-family: var(--font-body);
  opacity: 0.87;
}
footer p {
  color: var(--color-secondary);
  opacity: 0.69;
}

/* =======================================================
   SECTIONS, SPACING & FLEXBOX LAYOUTS
   ======================================================= */
.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; }

main > section:not(:last-child) { margin-bottom: 60px; }
.content-wrapper > *:not(:last-child) { margin-bottom: 14px; }

ul, ol {
  margin-left: 24px;
  margin-bottom: 12px;
}
ul li, ol li {
  margin-bottom: 8px;
  position: relative;
  padding-left: 0.2em;
}
ul li::before {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: var(--color-accent);
  margin-right: 10px;
  transform: translateY(2px) skewX(-12deg);
}
ol li {
  counter-increment: section;
}
ol {
  counter-reset: section;
}
ol li::before {
  content: counter(section) ". ";
  background: none;
  color: var(--color-primary);
  font-weight: bold;
  margin-right: 8px;
  font-family: var(--font-display);
  font-size: 1rem;
}

/* Icons in services/cards */
.card img,
ul img {
  display: inline-block;
  vertical-align: middle;
  max-width: 34px;
  max-height: 34px;
  margin-right: 10px;
  border-radius: 9px;
  box-shadow: 0 1.5px 10px 0 rgba(216,133,116,0.08);
  background: var(--color-accent);
  padding: 4px;
}

/* =======================================================
   RESPONSIVE DESIGN
   ======================================================= */
@media (max-width: 1200px){
  .container { max-width: 98vw; }
  main > section { padding: 32px 6vw; }
  .content-wrapper { gap: 16px; }
}
@media (max-width: 900px){
  h1 { font-size: 2.07rem; }
  h2 { font-size: 1.56rem; }
  main > section { padding: 23px 2vw; }
}
@media (max-width: 768px){
  .container { max-width: 100vw; padding: 0 6vw; }
  main > section { margin-bottom: 32px; padding: 20px 1vw; border-radius: 16px; }
  .content-wrapper { gap: 12px; }
  .content-grid, .card-container, .feature-list {
    flex-direction: column;
    gap: 12px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }
  .testimonial-card { flex-direction: column; align-items: stretch; gap: 10px; padding: 14px; border-radius: 14px; }
}
@media (max-width: 540px){
  html { font-size: 15px; }
  h1 { font-size: 1.44rem; }
  h2 { font-size: 1.16rem; }
  main > section { padding: 10px 1vw; }
  .card { padding: 14px 7px; border-radius: 10px; }
}

/* =======================================================
   MICROS & EFFECTS
   ======================================================= */
.card, .testimonial-card, .primary-cta, .mobile-menu-close, .mobile-menu {
  transition: box-shadow 0.18s, background 0.18s, border-color 0.15s, color 0.13s, transform 0.23s;
}
.card:active, .primary-cta:active { transform: scale(0.97) skewX(-2deg); }

main a { transition: color 0.2s, text-decoration 0.18s; }
main a:hover, main a:focus { color: var(--color-accent-strong); text-decoration: underline; }

/* Focus for accessibility */
:focus {
  outline: 2.5px solid var(--color-accent);
  outline-offset: 2.5px;
}

/* =======================================================
   COOKIE CONSENT BANNER & MODAL
   ======================================================= */
#cookie-banner {
  position: fixed;
  z-index: 2000;
  bottom: 0; left: 0; right: 0;
  width: 100vw;
  background: var(--color-primary);
  color: var(--color-secondary);
  padding: 22px 16px 22px 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 -4px 14px rgba(40,53,104,0.14);
  gap: 36px;
  font-family: var(--font-body);
  font-size: 1.04rem;
  transition: transform 0.45s cubic-bezier(0.83,-0.01,0.76,1.05), opacity 0.27s;
  opacity: 1;
  transform: translateY(0);
}
#cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(120%);
}
#cookie-banner-content {
  flex: 1 1 auto;
  min-width: 0;
}
#cookie-banner-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
}
.cookie-btn {
  font-family: var(--font-display);
  border: none;
  outline: none;
  border-radius: 18px;
  padding: 7px 27px;
  min-width: 90px;
  font-size: 1.09rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--color-white);
  cursor: pointer;
  background: var(--color-accent);
  box-shadow: 0 1.5px 8px rgba(216,133,116,0.17);
  transition: background 0.15s, color 0.14s, box-shadow 0.18s;
}
.cookie-btn.reject {
  background: var(--color-dark-blue);
  color: var(--color-secondary);
}
.cookie-btn.settings {
  background: transparent;
  color: var(--color-accent-strong);
  border: 2px solid var(--color-accent-strong);
  font-weight: 600;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--color-accent-strong);
  color: var(--color-white);
}
.cookie-btn.reject:hover,.cookie-btn.reject:focus {
  background: #192046;
  color: var(--color-accent);
}
.cookie-btn.settings:hover,.cookie-btn.settings:focus {
  background: var(--color-accent-strong);
  color: var(--color-secondary);
}

@media (max-width: 800px){
  #cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 16px 10px 14px 12px;
    font-size: 0.97rem;
  }
  #cookie-banner-buttons { gap: 7px; }
}
@media (max-width: 420px){
  #cookie-banner { font-size: 0.94rem; gap: 6px; padding: 12px 2vw 10px 4vw; }
  #cookie-banner-buttons { gap: 2px; }
}

/* Cookie Modal */
#cookie-modal {
  display: none;
  position: fixed;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(40,53,104,0.69);
  z-index: 2500;
  align-items: center;
  justify-content: center;
  animation: none;
}
#cookie-modal.open {
  display: flex;
  animation: modalIn 0.33s cubic-bezier(.83,-0.01,.76,1.05);
}
@keyframes modalIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal-content {
  background: var(--color-secondary);
  color: var(--color-dark-blue);
  border-radius: 28px;
  box-shadow: 0 10px 52px 0 rgba(40,53,104,0.16);
  padding: 44px 32px 32px 32px;
  width: 98vw;
  max-width: 418px;
  font-family: var(--font-body);
  font-size: 1.08rem;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
}
.cookie-modal-header {
  display: flex; align-items: center; justify-content: space-between;
}
.cookie-modal-title {
  font-family: var(--font-display);
  font-size: 1.38rem;
  font-weight: 700;
  color: var(--color-primary);
}
.cookie-modal-close {
  position: absolute;
  top: 16px;
  right: 26px;
  color: var(--color-accent-strong);
  background: none;
  font-size: 1.56rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: background 0.12s, color 0.15s;
  z-index: 10;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: #fff;
  background: var(--color-accent-strong);
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 0 0 13px 0;
}
.cookie-category-toggle {
  width: 42px;
  height: 24px;
  position: relative;
  margin-left: 8px;
}
.cookie-category-toggle input {
  opacity: 0;
  width: 42px;
  height: 24px;
  position: absolute;
  left: 0; top: 0;
  cursor: pointer;
}
.cookie-category-slider {
  background: #d8d8d8;
  border-radius: 12px;
  width: 42px;
  height: 24px;
  position: relative;
  transition: background 0.14s;
}
.cookie-category-toggle input:checked + .cookie-category-slider {
  background: var(--color-accent);
}
.cookie-category-slider::after {
  content: '';
  position: absolute;
  left: 2px; top: 2px;
  width: 20px; height: 20px;
  border-radius: 10px;
  background: #fff;
  transition: left 0.14s, background 0.14s;
}
.cookie-category-toggle input:checked + .cookie-category-slider::after {
  left: 20px; background: var(--color-accent-strong);
}
.cookie-category.cookie-essential label { font-weight: 700; color: var(--color-primary); }
.cookie-category.cookie-essential .cookie-category-toggle {
  pointer-events: none;
  opacity: 0.44;
}
.cookie-modal-actions {
  display: flex;
  gap: 15px;
  margin-top: 16px;
}

@media (max-width: 520px){
  .cookie-modal-content{padding: 28px 7px 18px 7px; border-radius: 16px;}
  .cookie-modal-title { font-size: 1.08rem; }
  .cookie-modal-header { flex-direction: column; gap: 5px; }
}

/* =======================================================
   MISC/UTILITY CLASSES & DETAILS
   ======================================================= */
::-webkit-scrollbar {
  width: 7px;
  background: #e3e3e3;
  border-radius: 8px;
}
::-webkit-scrollbar-thumb {
  background: var(--color-accent);
  border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-accent-strong);
}

.bg-primary { background: var(--color-primary); color: var(--color-secondary); }
.bg-accent { background: var(--color-accent); color: var(--color-white); }
.bg-white { background: #fff; color: #222; }
.bg-soft { background: var(--color-secondary); color: var(--color-primary); }
.text-accent { color: var(--color-accent) !important; }

.text-center { text-align:center; }
.text-right { text-align:right; }

.mt-1 { margin-top: 8px !important; }
.mt-2 { margin-top: 16px !important; }
.mt-3 { margin-top: 24px !important; }
.mt-4 { margin-top: 32px !important; }
.mb-1 { margin-bottom: 8px !important; }
.mb-2 { margin-bottom: 16px !important; }
.mb-3 { margin-bottom: 24px !important; }
.mb-4 { margin-bottom: 32px !important; }

[hidden], .d-none { display:none !important; }

/* ================== END ================== */
