/* ==== 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;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #FAFAFA;
  color: #212529;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
.container {
  width: 100%;
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 20px;
}
a {
  color: #1D3557;
  text-decoration: none;
  transition: color 0.18s;
}
a:hover, a:focus {
  color: #E63946;
  outline: none;
}
ul, ol {
  margin-left: 20px;
  margin-bottom: 16px;
}
li {
  margin-bottom: 8px;
}

/* ==== TYPOGRAPHY ==== */
h1, h2, h3, h4 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: #1D3557;
  margin-bottom: 18px;
}
h1 {
  font-size: 2.5rem;
  margin-top: 14px;
}
h2 {
  font-size: 2rem;
  margin-top: 12px;
}
h3 {
  font-size: 1.3rem;
  margin-top: 8px;
}
h4 {
  font-size: 1.15rem;
}
p {
  font-size: 1rem;
  margin-bottom: 16px;
  color: #212529;
}
strong {
  font-weight: bold;
}
small {
  font-size: 0.88rem;
}

/* ==== LAYOUT, SPACING & FLEX ==== */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 8px 0 rgba(34, 42, 50, 0.06);
  transition: box-shadow 0.19s;
  /* breathing room */
  display: block;
}
@media (max-width: 768px) {
  section {
    padding: 28px 8px;
    margin-bottom: 32px;
  }
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
/* Flex pattern for content grid */
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
@media (max-width: 768px) {
  .content-grid {
    flex-direction: column;
    gap: 16px;
  }
}
/* Card container (generic) */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 5px 0 rgba(30, 34, 45, 0.08);
  padding: 28px 22px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover {
  box-shadow: 0 6px 24px rgba(30, 34, 45, 0.13);
  transform: translateY(-2px) scale(1.015);
}
/* Feature Grid for homepage, about, etc. */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: stretch;
  list-style: none;
  margin: 0 0 20px 0;
  padding: 0;
}
.feature-grid > li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #f8f8f8;
  border-radius: 12px;
  box-shadow: 0 1px 5px rgba(30, 34, 45, 0.05);
  padding: 26px 18px 24px 18px;
  min-width: 200px;
  flex-basis: calc(25% - 18px);
  flex-grow: 1;
  margin-bottom: 20px;
  transition: box-shadow 0.2s;
}
.feature-grid > li:hover {
  box-shadow: 0 6px 20px 0 rgba(30, 34, 45, 0.10);
}
.feature-grid img {
  width: 44px;
  height: 44px;
  margin-bottom: 6px;
  filter: grayscale(0.1) brightness(1.15);
}
@media (max-width: 900px) {
  .feature-grid > li {
    flex-basis: calc(50% - 18px);
  }
}
@media (max-width: 550px) {
  .feature-grid {
    flex-direction: column;
    gap: 16px;
  }
  .feature-grid > li {
    flex-basis: 100%;
    min-width: 0;
  }
}

.text-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}

.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 3px 18px rgba(29, 53, 87, 0.08), 0 0.5px 1.5px rgba(34, 34, 46, 0.02);
  margin-bottom: 20px;
  flex-direction: column;
  min-width: 230px;
  max-width: 480px;
  color: #1D3557;
}
.testimonial-card p {
  font-size: 1.1rem;
  font-style: italic;
  color: #212529;
  margin-bottom: 8px;
}
.testimonial-card span {
  color: #757575;
  font-size: 1rem;
  margin-left: auto;
  align-self: flex-end;
}
@media (max-width: 900px) {
  .testimonial-card {
    font-size: 0.97rem;
    min-width: 100%;
  }
}

.footer-nav, .footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-items: flex-start;
  padding-bottom: 8px;
}
.footer-nav {
  margin-bottom: 12px;
  justify-content: flex-start;
}
.footer-contact p {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 1rem;
  color: #777;
}
footer {
  margin-top: 40px;
  padding: 28px 0 16px 0;
  border-top: 1px solid #eaeaea;
  background: #FAFAFA;
  font-size: 1rem;
}

/* ==== HEADER NAVIGATION & MOBILE MENU ==== */
header {
  background: #fff;
  box-shadow: 0 1px 10px rgba(29, 53, 87, 0.06);
  position: sticky;
  top: 0;
  z-index: 1001;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  padding-bottom: 20px;
  gap: 18px;
}
.main-nav {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-left: auto;
}
.main-nav a {
  color: #1D3557;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.02rem;
  padding: 7px 12px;
  border-radius: 6px;
  transition: background 0.17s, color 0.17s;
}
.main-nav a:hover, .main-nav a:focus {
  background: #FFD16633;
  color: #E63946;
}
.main-nav .cta {
  background: #FFD166;
  color: #1D3557;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: 8px;
  padding: 8px 20px;
  margin-left: 6px;
  box-shadow: 0 2px 8px rgba(30, 34, 45, 0.08);
  transition: background 0.18s, color 0.18s, box-shadow 0.17s;
}
.main-nav .cta:hover, .main-nav .cta:focus {
  background: #E63946;
  color: #fff;
  box-shadow: 0 2px 18px rgba(230, 57, 70, 0.16);
}

.mobile-menu-toggle {
  display: none;
  border: none;
  background: #fff;
  font-size: 2.2rem;
  color: #1D3557;
  padding: 6px 14px 6px 8px;
  border-radius: 8px;
  cursor: pointer;
  z-index: 1200;
  transition: background 0.2s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #FFD16633;
  color: #E63946;
}
/* Mobile menu overlay */
.mobile-menu {
  display: none;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #fff;
  z-index: 2999;
  transform: translateX(100%);
  transition: transform 0.36s cubic-bezier(.92,.05,.37,.99);
  padding: 0;
}
.mobile-menu.active {
  display: flex;
  transform: translateX(0);
  /* Animate in from the right */
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2.3rem;
  background: none;
  border: none;
  color: #1D3557;
  padding: 24px 24px 10px 0;
  cursor: pointer;
  transition: color 0.15s;
  z-index: 3200;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #E63946;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin: 36px 0 0 32px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.3rem;
  color: #1D3557;
  padding: 5px 8px 9px 0;
  border-radius: 8px;
  transition: background 0.18s, color 0.17s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #FFD16633;
  color: #E63946;
}
@media (max-width: 1100px) {
  .main-nav {
    gap: 12px;
  }
}
@media (max-width: 900px) {
  .main-nav {
    gap: 6px;
  }
}
@media (max-width: 900px) {
  header .container {
    gap: 10px;
    padding-top: 12px;
    padding-bottom: 12px;
  }
}
@media (max-width: 850px) {
  .main-nav a {
    font-size: 0.97rem;
    padding: 6px 8px;
  }
  .main-nav .cta {
    padding: 6px 10px;
  }
}
@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .mobile-menu {
    display: flex;
  }
}
@media (min-width: 769px) {
  .mobile-menu {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: none;
  }
}

/* ===== BUTTONS & INTERACTIVE ===== */
.cta, button, .cookie-btn, .cookie-banner button {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  letter-spacing: 0.01em;
  padding: 12px 32px;
  font-size: 1.08rem;
  font-weight: bold;
  background: #FFD166;
  border: none;
  border-radius: 8px;
  color: #1D3557;
  box-shadow: 0 2px 8px rgba(30, 34, 45, 0.06);
  cursor: pointer;
  transition: background 0.18s, color 0.13s, transform 0.13s, box-shadow 0.17s;
  outline: none;
  margin-top: 10px;
  margin-bottom: 10px;
  display: inline-block;
}
.cta:hover, .cta:focus, button:hover, button:focus, .cookie-btn:hover, .cookie-btn:focus, .cookie-banner button:hover, .cookie-banner button:focus {
  background: #E63946;
  color: #fff;
  transform: translateY(-1px) scale(1.035);
  box-shadow: 0 3px 12px 0 rgba(230,57,70,0.11);
}
.cookie-btn.secondary {
  background: #f3f3f3;
  color: #1D3557;
  font-weight: 600;
}
.cookie-btn.secondary:hover, .cookie-btn.secondary:focus {
  background: #FFD166;
  color: #1D3557;
  box-shadow: 0 2px 11px rgba(255, 209, 102, 0.14);
}

/* === COOKIE CONSENT BANNER/MODAL === */
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  z-index: 4500;
  background: #fff;
  box-shadow: 0 -2px 16px 0 rgba(29,53,87,0.13);
  border-top: 2px solid #FFD166;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px 16px 28px;
  min-height: 80px;
  gap: 20px;
  font-size: 1.02rem;
  transition: transform 0.3s, opacity 0.21s;
}
.cookie-banner.hide {
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner__text {
  flex: 1;
  color: #444;
  margin-right: 20px;
}
.cookie-banner__actions {
  display: flex;
  gap: 12px;
}
@media (max-width: 700px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 18px 10px 16px 10px;
  }
  .cookie-banner__text {
    margin-right: 0;
  }
  .cookie-banner__actions {
    width: 100%;
    justify-content: flex-end;
    gap: 8px;
  }
}

/* Consent Modal (cookie preferences) */
.cookie-modal-overlay {
  position: fixed;
  z-index: 4999;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(29, 53, 87, 0.24);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.22s;
}
.cookie-modal-overlay.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 9px 40px rgba(30, 34, 45, 0.21);
  width: 95%;
  max-width: 400px;
  padding: 34px 28px 24px 28px;
  z-index: 5050;
  display: flex;
  flex-direction: column;
  gap: 22px;
  opacity: 1;
  animation: modal-slide-in 0.35s cubic-bezier(.88,.29,.25,.93);
}
@keyframes modal-slide-in {
  from { transform: translateY(70px) scale(0.97); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}
.cookie-modal h2 {
  color: #1D3557;
  margin-bottom: 18px;
  font-size: 1.35rem;
}
.cookie-modal .toggle-group {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 18px;
}
.cookie-toggle-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 0;
}
.cookie-toggle-label {
  font-size: 1rem;
  color: #26303a;
}
.cookie-toggle-switch {
  width: 36px;
  height: 22px;
  border-radius: 15px;
  background: #e8e8e8;
  position: relative;
  cursor: pointer;
  transition: background 0.18s;
  display: inline-block;
}
.cookie-toggle-switch.enabled {
  background: #FFD166;
}
.cookie-toggle-slider {
  position: absolute;
  left: 2px;
  top: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 10px rgba(30, 34, 45, 0.08);
  transition: left 0.19s;
}
.cookie-toggle-switch.enabled .cookie-toggle-slider {
  left: 16px;
}
.cookie-modal-close {
  position: absolute;
  top: 17px;
  right: 17px;
  font-size: 1.6rem;
  background: none;
  border: none;
  color: #999;
  cursor: pointer;
  padding: 3px 6px;
  border-radius: 5px;
  transition: color 0.17s;
}
.cookie-modal-close:hover {
  color: #E63946;
}
.cookie-modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 6px;
  justify-content: flex-end;
}
.cookie-modal-actions .cookie-btn {
  min-width: 90px;
}

/* ==== FORM ELEMENTS (optional, for contact/inputs) ==== */
input, textarea, select {
  padding: 10px 12px;
  border: 1px solid #e2e6ee;
  border-radius: 7px;
  font-size: 1rem;
  font-family: 'Open Sans', Arial, sans-serif;
  background: #fafbfc;
  color: #1D3557;
  margin-bottom: 14px;
  width: 100%;
  transition: border 0.16s;
}
input:focus, textarea:focus, select:focus {
  border-color: #FFD166;
  outline: none;
}
label {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  color: #1D3557;
  margin-bottom: 7px;
}

/* ==== ADDITIONAL MINIMALISTIC DECORATION ==== */
section:hover {
  box-shadow: 0 6px 50px 0 rgba(29, 53, 87, 0.09);
  transition: box-shadow 0.24s;
}

/* ==== MEDIA QUERIES RESPONSIVENESS ==== */
@media (max-width: 600px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.3rem; }
  section { padding: 18px 2vw; }
  .container { padding: 0 3vw; }
}

/* ==== UTILITIES ==== */
.hide { display: none !important; }

/* ==== PRINT ==== */
@media print {
  header, footer, .cookie-banner, .cookie-modal-overlay { display: none !important; }
  section { box-shadow: none; border: none; }
}

/* ==== VISUAL HIERARCHY ==== */
hr {
  border: none;
  border-top: 1px solid #E5E5E5;
  margin: 32px 0;
}

/* ==== FOCUS STATES ACCESSIBILITY ==== */
a:focus, button:focus, .cta:focus, .cookie-btn:focus {
  outline: 2px solid #FFD166;
  outline-offset: 3px;
}

/* ==== Z-INDEX LAYERING ==== */
header       { z-index: 1001; }
.mobile-menu { z-index: 2999; }
.cookie-banner { z-index: 4500; }
.cookie-modal-overlay { z-index: 4999; }

/* ==== BRAND FONT-FACES (for best compatibility) ==== */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,600,500,400&display=swap');
@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,600,700&display=swap');

