/* ---------------------------------------------------------------
   CSS RESET & MONOCHROME SOPHISTICATED BASE STYLE for EmberRealm
--------------------------------------------------------------- */
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;
}
html { box-sizing: border-box; }
*, *::before, *::after { box-sizing: inherit; }
body {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  background: #fff;
  color: #1A1A1A;
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0.01em;
  min-height: 100vh;
  background-color: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #1A2341;
  text-decoration: underline;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #106169;
  text-decoration-thickness: 2px;
}

/* ---------------------------------------------------------------
   TYPOGRAPHY
--------------------------------------------------------------- */
h1, h2, h3 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #101010;
  font-weight: 700;
  letter-spacing: -0.01em;
}
h1 {
  font-size: 2.4rem;
  margin-bottom: 18px;
  line-height: 1.13;
  color: #101010;
}
h2 {
  font-size: 1.75rem;
  margin-bottom: 16px;
  color: #262626;
}
h3 {
  font-size: 1.22rem;
  margin-bottom: 10px;
  color: #434343;
}
p {
  font-size: 1rem;
  margin-bottom: 15px;
  color: #232323;
}
small, .small {
  font-size: 0.93rem;
}
strong, b {
  font-weight: 700;
}
ul, ol {
  padding-left: 1.4em;
  margin-bottom: 18px;
}
li {
  margin-bottom: 9px;
  line-height: 1.7;
}
blockquote {
  border-left: 4px solid #1A2341;
  color: #333;
  padding-left: 18px;
  margin-bottom: 18px;
  font-style: italic;
}

/* ---------------------------------------------------------------
   LAYOUT: CONTAINERS & FLEXBOX PATTERNS (MOBILE FIRST)
--------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}
main {
  flex: 1 0 auto;
}

section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 3px 24px 0 rgba(44,44,44,0.03);
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.text-section {
  max-width: 680px;
  margin: 0 auto;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  flex: 1 1 260px;
  margin-bottom: 20px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 16px rgba(26,35,65,0.07);
  position: relative;
  padding: 32px 24px;
  transition: box-shadow 0.18s;
}
.card:hover {
  box-shadow: 0 6px 28px rgba(26,35,65,0.14);
  z-index: 1;
}

.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: 13px;
  padding: 20px 28px 20px 22px;
  background: #F8F8FA;
  border-left: 4px solid #1A2341;
  border-radius: 11px;
  margin-bottom: 20px;
  color: #262626;
  box-shadow: 0 1px 12px rgba(34,34,34,0.05);
  font-size: 1.15rem;
  transition: box-shadow 0.17s, border-color 0.17s;
}
.testimonial-card:hover {
  box-shadow: 0 4px 22px rgba(26,35,65,0.10);
  border-left-color: #106169;
}
.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.testimonial-card p {
  margin-bottom: 2px;
  color: #222;
}
.testimonial-card span {
  color: #5B5B61;
  font-size: 1rem;
  font-style: italic;
}

.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.feature-grid > div {
  flex: 1 1 240px;
  min-width: 220px;
  background: #FAFAFC;
  border-radius: 13px;
  box-shadow: 0 1.5px 10px rgba(34,34,44,0.05);
  padding: 28px 22px 24px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow 0.17s, border 0.2s;
  border: 1px solid #EBEBF0;
}
.feature-grid > div img {
  width: 38px;
  height: 38px;
  margin-bottom: 14px;
  filter: grayscale(1) contrast(1.14);
}
.feature-grid > div:hover {
  border-color: #106169;
  box-shadow: 0 8px 32px rgba(26,35,65,0.15);
  z-index: 1;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

ol {
  margin: 0 0 16px 1.2em;
}

/* ---------------------------------------------------------------
   HERO SECTIONS
--------------------------------------------------------------- */
.hero {
  background: #1A2341;
  color: #fff;
  padding: 64px 0 60px 0;
  margin-bottom: 54px;
  border-radius: 0 0 34px 34px;
  box-shadow: 0 4px 24px rgba(26,35,65,0.07);
}
.hero .container {
  justify-content: center;
  align-items: center;
}
.hero .content-wrapper {
  align-items: flex-start;
}
.hero h1, .hero h2, .hero h3 {
  color: #fff;
}
.hero p {
  color: #ECECEF;
}
.hero .cta-button {
  margin-top: 18px;
}

/* ---------------------------------------------------------------
   BUTTONS & CTA STYLES
--------------------------------------------------------------- */
.cta-button, .primary-cta {
  display: inline-block;
  background: #1A2341;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.09rem;
  padding: 13px 38px;
  border-radius: 100px;
  border: none;
  letter-spacing: 0.04em;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.18s, color 0.18s, box-shadow 0.17s, outline 0.17s;
  box-shadow: 0 2px 10px rgba(26,35,65,0.07);
}
.cta-button:hover, .primary-cta:hover,
.cta-button:focus, .primary-cta:focus {
  background: #106169;
  color: #fff;
  box-shadow: 0 4px 18px rgba(16,97,105,0.16);
  outline: 2px solid #106169;
}
.secondary-cta {
  display: inline-block;
  color: #1A2341;
  background: #fff;
  border: 1.5px solid #1A2341;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.06rem;
  font-weight: 600;
  border-radius: 100px;
  padding: 11px 32px;
  margin-left: 14px;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.16s, border-color 0.19s, background 0.19s;
  box-shadow: 0 2px 10px rgba(34, 34, 34, 0.05);
}
.secondary-cta:hover, .secondary-cta:focus {
  color: #fff;
  background: #106169;
  border-color: #106169;
}
button:focus, .cta-button:focus, .secondary-cta:focus {
  outline: 2px solid #106169;
}

/* ---------------------------------------------------------------
   HEADER & NAVBAR
--------------------------------------------------------------- */
header {
  width: 100%;
  background: #fff;
  padding: 0;
  margin-bottom: 0;
  box-shadow: 0 2px 10px rgba(26,35,65,0.05);
  position: relative;
  z-index: 1000;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
}
.logo img {
  height: 44px;
  width: auto;
  display: block;
  margin-right: 0.5rem;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #1A2341;
  font-weight: 500;
  text-decoration: none;
  font-size: 1rem;
  letter-spacing: 0.01em;
  padding: 8px 16px;
  border-radius: 6px;
  transition: background 0.14s, color 0.16s;
}
.main-nav a:hover, .main-nav a:focus {
  background: #F1F3F6;
  color: #106169;
}
.main-nav a.primary-cta {
  background: #1A2341;
  color: #fff;
  margin-left: 16px;
  font-weight: 700;
}
.main-nav a.primary-cta:hover, .main-nav a.primary-cta:focus {
  background: #106169;
  color: #fff;
}

/* Hide mobile menu toggle on desktop */
.mobile-menu-toggle {
  display: none !important;
}

/* ---------------------------------------------------------------
   FOOTER
--------------------------------------------------------------- */
footer {
  background: #181824;
  color: #fff;
  padding: 46px 0 24px;
  border-radius: 32px 32px 0 0;
  margin-top: 72px;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}
.footer-logo img {
  width: 48px;
  height: auto;
  margin-bottom: 12px;
}
.footer-nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-nav a {
  color: #B8B8D6;
  font-weight: 500;
  font-size: 1rem;
  text-decoration: underline transparent;
  transition: color 0.18s, text-decoration 0.18s;
}
.footer-nav a:focus, .footer-nav a:hover {
  color: #fff;
  text-decoration-color: #106169;
}
.footer-contact {
  color: #D5D5DD;
  font-size: 0.99rem;
  line-height: 1.6;
}
footer p {
  font-size: 0.93rem;
  color: #767687;
}

/* ---------------------------------------------------------------
   FORM STYLES (BLOG SUBSCRIBE)
--------------------------------------------------------------- */
form {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
}
input[type="email"] {
  border: 1.5px solid #BDBDD3;
  border-radius: 8px;
  padding: 11px 15px;
  font-size: 1rem;
  color: #222;
  outline: none;
  font-family: 'Open Sans', Arial, sans-serif;
  background: #fff;
  transition: border 0.19s, box-shadow 0.18s;
  width: 235px;
  max-width: 100%;
}
input[type="email"]:focus {
  border-color: #106169;
  box-shadow: 0 0 0 2px #DFF2F2;
}
button[type="submit"] {
  background: #1A2341;
  color: #fff;
  border-radius: 100px;
  border: none;
  padding: 11px 24px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
}
button[type="submit"]:hover, button[type="submit"]:focus {
  background: #106169;
  outline: 2px solid #106169;
}

/* ---------------------------------------------------------------
   MOBILE NAVIGATION (BURGER, OVERLAY, SLIDE)
--------------------------------------------------------------- */
.mobile-menu-toggle {
  display: inline-block;
  background: none;
  font-size: 2.15rem;
  color: #1A2341;
  border: none;
  padding: 7px 15px;
  margin-left: 10px;
  cursor: pointer;
  z-index: 2100;
  border-radius: 6px;
  line-height: 1;
  transition: background 0.14s, color 0.16s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #F4F8FB;
  color: #106169;
  outline: 2px solid #106169;
}
.mobile-menu {
  position: fixed;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(26,35,65,0.96);
  box-shadow: 0 0 60px 0 rgba(0,0,0,0.24);
  z-index: 2400;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transform: translateX(-100vw);
  transition: transform 0.35s cubic-bezier(.77,0,.18,1);
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: all;
  opacity: 1;
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 2.38rem;
  font-weight: 700;
  align-self: flex-end;
  margin: 20px 22px 10px 0;
  cursor: pointer;
  z-index: 2500;
  padding: 2px 12px;
  border-radius: 6px;
  transition: background 0.16s, color 0.18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #106169;
  background: #23233b;
  outline: 2px solid #fff;
}
.mobile-nav {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
}
.mobile-nav a {
  display: block;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.14rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 14px 0;
  width: 100vw;
  text-align: center;
  text-decoration: none;
  border-radius: 0;
  transition: background 0.14s, color 0.13s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #23233b;
  color: #106169;
}
.mobile-nav .primary-cta {
  background: #106169;
  color: #fff;
  border-radius: 100px;
  margin: 16px 0 0 0;
  padding: 14px 33px;
  font-size: 1.1rem;
  font-weight: 700;
  display: inline-block;
}
.mobile-nav .primary-cta:hover, .mobile-nav .primary-cta:focus {
  background: #fff;
  color: #106169;
}

/* Hide main-nav and show burger on mobile */
@media (max-width: 1020px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-block !important;
  }
}
@media (max-width: 768px) {
  .container {
    padding: 0 14px;
  }
  .footer-logo img {
    width: 40px;
  }
}

/* ---------------------------------------------------------------
   RESPONSIVE ADJUSTMENTS & FLEX LAYOUTS
--------------------------------------------------------------- */
@media (max-width: 1020px) {
  .feature-grid,
  .testimonial-slider,
  .card-container,
  .content-grid {
    gap: 18px;
  }
  .feature-grid > div {
    min-width: 180px;
    padding: 20px 16px 16px;
  }
  .section {
    padding: 28px 8px;
  }
  section {
    padding: 28px 8px;
  }
}
@media (max-width: 900px) {
  .feature-grid, .testimonial-slider, .card-container, .content-grid {
    flex-direction: column;
    gap: 18px;
  }
  .feature-grid > div,
  .card-container > .card,
  .card {
    max-width: 100%;
    width: 100%;
    min-width: 0;
  }
  .footer-nav {
    flex-direction: column;
    gap: 14px;
  }
}
@media (max-width: 768px) {
  .hero {
    padding: 38px 0 35px 0;
    margin-bottom: 36px;
    border-radius: 0 0 20px 20px;
  }
  h1 { font-size: 1.62rem; }
  h2 { font-size: 1.24rem; }
  h3 { font-size: 1rem; }
  .card, .feature-grid > div {
    padding: 18px 10px 15px 10px;
    font-size: 0.98rem;
  }
  .testimonial-card {
    padding: 13px 12px 14px 10px;
    font-size: 1rem;
  }
  section, .section {
    padding: 20px 2px;
    margin-bottom: 30px;
    border-radius: 9px;
  }
  .footer-logo img {
    width: 34px;
  }
}
@media (max-width: 580px) {
  header .container {
    padding: 0 4px;
  }
  .feature-grid, .testimonial-slider, .card-container, .content-grid {
    gap: 12px;
  }
}
@media (max-width: 768px) {
  .text-image-section, .content-grid {
    flex-direction: column;
    align-items: flex-start;
  }
  .container {
    padding: 0 7px;
  }
  .footer-nav {
    gap: 6px;
  }
}

/* ---------------------------------------------------------------
   COOKIE CONSENT BANNER & MODAL (FIXED, MODAL, ACCESSIBLE)
--------------------------------------------------------------- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  z-index: 21000;
  background: #222328;
  color: #fff;
  padding: 27px 14px 21px 14px;
  box-shadow: 0 -8px 32px rgba(34,34,34,0.16);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  font-size: 1rem;
  animation: cookieBannerIn 0.32s cubic-bezier(.7,0,.18,1);
}
@keyframes cookieBannerIn {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner-buttons {
  margin-top: 5px;
  display: flex;
  gap: 16px;
}
.cookie-banner button, .cookie-banner .cookie-settings-btn {
  background: #1A2341;
  color: #fff;
  border: none;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  padding: 8px 28px;
  border-radius: 100px;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, outline 0.17s;
  margin-left: 0;
}
.cookie-banner button.accept {
  background: #106169;
}
.cookie-banner button.reject {
  background: #353548;
  color: #E3E3ED;
}
.cookie-banner button:hover, .cookie-banner .cookie-settings-btn:hover,
.cookie-banner button:focus, .cookie-banner .cookie-settings-btn:focus {
  background: #fff;
  color: #106169;
  outline: 2px solid #106169;
}
.cookie-banner .cookie-settings-btn {
  background: transparent;
  color: #fff;
  border: 1.3px solid #fff;
  padding: 8px 24px;
  margin-left: 13px;
}

/* Cookie Modal */
.cookie-modal-overlay {
  position: fixed;
  z-index: 25000;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(17, 19, 28, 0.64);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s;
}
.cookie-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  background: #fff;
  color: #16171C;
  border-radius: 16px;
  max-width: 420px;
  width: 94vw;
  padding: 34px 26px 24px 26px;
  box-shadow: 0 6px 48px rgba(26,35,65,0.18);
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  animation: cookieModalIn 0.35s cubic-bezier(.7,0,.18,1);
}
.cookie-banner a {
  color: white;
}
.cookie-modal form {
  flex-direction: column;
}
@keyframes cookieModalIn {
  from { transform: translateY(40px) scale(0.95); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}
.cookie-modal .cookie-modal-close {
  position: absolute;
  right: 20px; top: 18px;
  background: none;
  border: none;
  color: #23233b;
  font-size: 1.9rem;
  padding: 2px 8px;
  cursor: pointer;
  font-weight: 700;
  border-radius: 6px;
  transition: background 0.13s, color 0.16s;
}
.cookie-modal .cookie-modal-close:hover,
.cookie-modal .cookie-modal-close:focus {
  background: #F3F7FB;
  color: #106169;
  outline: 2px solid #106169;
}
.cookie-modal h2 {
  font-size: 1.19rem;
  font-family: 'Montserrat', Arial, sans-serif;
  color: #1A2341;
  margin-bottom: 1px;
}
.cookie-modal label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  color: #23233B;
  cursor: pointer;
}
.cookie-toggle {
  width: 38px; height: 22px;
  background: #EBEBF0;
  border-radius: 99px;
  position: relative;
  transition: background 0.13s;
  margin-left: 13px;
}
.cookie-toggle input[type="checkbox"] {
  opacity: 0;
  width: 0; height: 0;
  position: absolute;
}
.cookie-toggle .slider {
  position: absolute;
  left: 2px; top: 2px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #A4A6AE;
  transition: background 0.16s, transform 0.16s;
}
.cookie-toggle input:checked + .slider {
  background: #106169;
  transform: translateX(16px);
}
.cookie-modal-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 15px;
  margin-top: 14px;
}
.cookie-modal .save-btn {
  background: #106169;
  color: #fff;
  padding: 7px 22px;
  border-radius: 100px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.17s, color 0.16s;
}
.cookie-modal .save-btn:hover, .cookie-modal .save-btn:focus {
  background: #1A2341;
  color: #fff;
}

/* Hide cookie banner/modal on small screens if needed */
@media (max-width: 485px) {
  .cookie-modal {
    padding: 19px 5px 15px 8px;
    max-width: 96vw;
  }
  .cookie-banner {
    font-size: 0.95rem;
    padding: 14px 5px 10px 7px;
  }
}

/* ---------------------------------------------------------------
   MISCELLANEOUS
--------------------------------------------------------------- */
hr {
  border: none;
  border-bottom: 1px solid #DCDEED;
  margin: 32px 0;
}
::-webkit-input-placeholder { color: #8A8A95; opacity: 1; }
::-moz-placeholder { color: #8A8A95; opacity: 1; }
:-ms-input-placeholder { color: #8A8A95; opacity: 1; }
::placeholder { color: #8A8A95; opacity: 1; }

/* Decorative only: Visually hide elements */
.visually-hidden, .sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(1px, 1px, 1px, 1px) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

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