/* ================================================== */
/*                 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;
}

html {
  box-sizing: border-box;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  background: #fff;
  color: #222;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0.01em;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
ul, ol {
  list-style: none;
}
a {
  color: #1A365D;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #4EBFC7;
  outline: none;
}
button {
  font-family: inherit;
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
  outline: none;
}

/* ================================================== */
/*                    Fonts                           */
/* ================================================== */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600&family=Playfair+Display:wght@700&display=swap');

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  color: #1A365D;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: 18px;
  line-height: 1.18;
}
h1 { font-size: 2.5rem; margin-top: 18px; margin-bottom: 24px; }
h2 { font-size: 2rem; margin-top: 18px; margin-bottom: 18px; }
h3 { font-size: 1.36rem; margin-bottom: 12px; }
h4, h5, h6 { margin-bottom: 10px; }

.subheadline {
  font-size: 1.18rem;
  color: #4EBFC7;
  margin-bottom: 20px;
  font-weight: 600;
  letter-spacing: 0.02em;
  font-family: 'Open Sans', Arial, sans-serif;
}
p, li {
  font-family: 'Open Sans', Arial, sans-serif;
  color: #222;
  font-size: 1rem;
  line-height: 1.7;
}
strong {
  font-weight: 600;
}

/* ================================================== */
/*                Layout & Containers                 */
/* ================================================== */
.container {
  max-width: 1020px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
  background: transparent;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
}

.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 24px 0 0 0;
  align-items: stretch;
}
.features-grid > div {
  flex: 1 1 240px;
  background: #F9FBFA;
  border-radius: 16px;
  padding: 24px 20px;
  box-shadow: 0 2px 12px rgba(26,54,93,0.04);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow 0.16s, transform 0.16s;
}
.features-grid > div:hover {
  box-shadow: 0 4px 24px rgba(26,54,93,0.13);
  transform: translateY(-2px);
}
.features-grid img {
  margin-bottom: 14px;
  width: 46px;
  height: 46px;
}
.features-grid h3 {
  font-size: 1.19rem;
  color: #1A365D;
  margin-bottom: 10px;
  margin-top: 0;
}
.features-grid p {
  font-size: 1rem;
  color: #333;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 14px rgba(26,54,93,0.053);
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.15s;
}
.card:hover {
  box-shadow: 0 4px 28px rgba(26,54,93,0.13);
}
.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;
}

.visitor-stats {
  margin-top: 32px;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 1rem;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 20px;
  margin-bottom: 20px;
  background: #F1F7F4;
  color: #222;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(26,54,93,0.05);
  font-size: 1.09rem;
  line-height: 1.5;
  transition: box-shadow 0.13s;
}
.testimonial-card strong {
  color: #1A365D;
}
.testimonial-card span {
  font-size: 0.96rem;
  color: #155175;
  font-style: italic;
  margin-top: 3px;
}
.testimonial-card:hover {
  box-shadow: 0 4px 28px rgba(26,54,93,0.12);
  background: #e9f4f2;
}

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

/* --- Contact list --- */
.contact-list {
  margin-top: 10px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contact-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
}
.contact-list img {
  width: 18px;
  height: 18px;
}

/* ================================================== */
/*                   Header & Nav                      */
/* ================================================== */
header {
  background: #fff;
  padding: 0;
  border-bottom: 1px solid #F1F7F4;
  box-shadow: 0 1px 12px rgba(26,54,93,0.03);
  position: sticky;
  top: 0;
  z-index: 50;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 68px;
}
header img[alt='Primal Abyss'] {
  height: 44px;
  width: auto;
}
nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
nav a {
  font-size: 1rem;
  font-weight: 500;
  color: #1A365D;
  padding: 6px 8px;
  border-radius: 7px;
  transition: background 0.13s, color 0.13s;
}
nav a:hover, nav a:focus {
  background: #F1F7F4;
  color: #4EBFC7;
}
.cta-btn {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  padding: 10px 26px;
  border-radius: 24px;
  background: #1A365D;
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 8px rgba(26,54,93,0.07);
  border: none;
  margin-left: 22px;
  transition: background 0.18s, box-shadow 0.15s, color 0.2s, transform 0.14s;
  display: inline-block;
  outline: none;
}
.cta-btn:hover, .cta-btn:focus {
  background: #4EBFC7;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(26,54,93,0.16);
}

/**** Mobile Navigation ****/
.mobile-menu-toggle {
  display: none;
  background: none;
  font-size: 2rem;
  border: none;
  color: #1A365D;
  z-index: 120;
  transition: color 0.18s;
  padding: 4px 10px;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  color: #4EBFC7;
  background: #F1F7F4;
  border-radius: 40px;
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(255,255,255,0.97);
  box-shadow: 0 16px 60px rgba(26,54,93,0.13);
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(.23,.92,.54,1.19);
  z-index: 120;
}
.mobile-menu.open {
  transform: translateX(0%);
}
.mobile-menu-close {
  margin: 24px 0 0 24px;
  font-size: 2rem;
  color: #1A365D;
  background: none;
  border: none;
  z-index: 130;
  align-self: flex-start;
  transition: color 0.18s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  color: #4EBFC7;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  margin: 56px 0 0 32px;
  width: 100%;
}
.mobile-nav a {
  font-size: 1.28rem;
  color: #1A365D;
  font-weight: 600;
  border-radius: 10px;
  padding: 12px 14px 10px 5px;
  width: 90%;
  display: inline-block;
  transition: color 0.17s, background 0.13s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #4EBFC7;
  background: #F1F7F4;
}

@media (max-width: 990px) {
  nav {
    gap: 16px;
  }
}

@media (max-width: 900px) {
  nav {
    display: none;
  }
  .cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

@media (min-width: 901px) {
  .mobile-menu, .mobile-menu.open {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: none !important;
  }
}

/* ================================================== */
/*                      Main                          */
/* ================================================== */
main {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: #fff;
  position: relative;
  z-index: 1;
}

section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
}

@media (max-width: 768px) {
  section {
    margin-bottom: 38px;
    padding: 24px 7px;
  }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.36rem; }
  .container {
    padding: 0 8px;
  }
  .features-grid {
    flex-direction: column;
    gap: 16px;
  }
  .features-grid > div {
    padding: 18px 11px;
  }
  .testimonial-card {
    padding: 14px;
    font-size: 0.97rem;
  }
  .visitor-stats {
    gap: 8px;
  }
  .card-container, .content-grid {
    gap: 12px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
}

@media (max-width: 540px) {
  h1 { font-size: 1.46rem; }
  h2 { font-size: 1.06rem; }
}

/* ================================================== */
/*                     Footer                         */
/* ================================================== */
footer {
  background: #F1F7F4;
  padding: 46px 0 0 0;
  border-top: 1px solid #e5efe6;
  margin-top: 0px;
  font-size: 1rem;
}
footer .container {
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  justify-content: flex-start;
}
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 37px;
  margin: 24px 0 0 0;
  font-size: 0.97rem;
  color: #222;
}
.footer-contact span {
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-contact img {
  width: 17px;
  height: 17px;
  opacity: 0.68;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 0 0 18px 0;
  padding: 0;
}
footer nav a {
  color: #1A365D;
  font-size: 1rem;
  font-weight: 400;
  opacity: 0.9;
  transition: color 0.13s;
}
footer nav a:hover, footer nav a:focus {
  color: #4EBFC7;
}
footer img[alt='Primal Abyss'] {
  height: 38px;
}

@media (max-width: 900px) {
  .footer-contact {
    gap: 12px 8px;
    flex-direction: column;
  }
  footer .container {
    gap: 14px;
  }
  footer nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 4px;
  }
}

/* ================================================== */
/*              Cookie Consent Banner                 */
/* ================================================== */
#cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: #F1F7F4;
  color: #222;
  box-shadow: 0 -2px 20px rgba(26,54,93,0.13);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 22px 34px;
  z-index: 1000;
  gap: 24px;
  font-size: 1rem;
  transition: transform 0.36s cubic-bezier(.43,.77,.57,1.02),opacity 0.28s;
}
#cookie-banner.hide {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}
#cookie-banner .cookie-msg {
  flex: 1 1 auto;
  color: #1A365D;
}
#cookie-banner .cookie-actions {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-shrink: 0;
}
#cookie-banner button {
  font-size: 1rem;
  padding: 8px 22px;
  border-radius: 18px;
  font-weight: 600;
  border: none;
  background: #fff;
  color: #1A365D;
  box-shadow: 0 1px 4px rgba(26,54,93,0.05);
  transition: background 0.13s, color 0.13s, box-shadow 0.13s;
}
#cookie-banner button.accept {
  background: #1A365D;
  color: #fff;
}
#cookie-banner button.accept:hover, #cookie-banner button.accept:focus {
  background: #4EBFC7;
  color: #fff;
}
#cookie-banner button.reject {
  background: #fff;
  color: #1A365D;
  border: 1px solid #E3ECE7;
}
#cookie-banner button.reject:hover, #cookie-banner button.reject:focus {
  background: #E3ECE7;
  color: #1A365D;
}
#cookie-banner button.settings {
  background: #F1F7F4;
  color: #155175;
  border: 1px solid #E3ECE7;
}
#cookie-banner button.settings:hover, #cookie-banner button.settings:focus {
  background: #e9f4f2;
  color: #1A365D;
}

@media (max-width: 700px) {
  #cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 17px 12px;
    gap: 16px;
    font-size: 0.97rem;
  }

  #cookie-banner .cookie-actions {
    gap: 10px;
  }
}

/* Cookie Modal Overlay */
#cookie-modal-overlay {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  background: rgba(26,54,93,0.18);
  z-index: 2001;
  display: none;
  align-items: center;
  justify-content: center;
  transition: opacity 0.22s;
}
#cookie-modal-overlay.open {
  display: flex;
}
#cookie-modal {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 32px rgba(26,54,93,0.17);
  padding: 38px 30px 24px 30px;
  max-width: 370px;
  width: 93vw;
  color: #1A365D;
  display: flex;
  flex-direction: column;
  gap: 25px;
}
#cookie-modal h2 {
  margin: 0 0 18px 0; font-size: 1.23rem;
}
#cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
}
#cookie-modal .cookie-category label {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  color: #222;
  font-weight: 500;
  margin-right: 12px;
}
#cookie-modal .switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 22px;
}
#cookie-modal .switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
#cookie-modal .slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #e6f0ed;
  border-radius: 14px;
  transition: 0.2s;
}
#cookie-modal .switch input:checked + .slider {
  background: #4EBFC7;
}
#cookie-modal .slider:before {
  position: absolute;
  content: "";
  height: 15px;
  width: 15px;
  left: 4px;
  bottom: 4px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
}
#cookie-modal .switch input:checked + .slider:before {
  transform: translateX(17px);
}
#cookie-modal .cookie-modal-actions {
  display: flex;
  gap: 11px;
  margin-top: 23px;
  align-items: center;
  justify-content: flex-end;
}
#cookie-modal button {
  font-size: 1rem;
  padding: 8px 20px;
  border-radius: 17px;
  font-weight: 600;
  border: none;
  background: #1A365D;
  color: #fff;
}
#cookie-modal button.secondary {
  background: #fff;
  color: #1A365D;
  border: 1px solid #d2e5e0;
}
#cookie-modal button:hover, #cookie-modal button:focus {
  background: #4EBFC7;
  color: #fff;
}
#cookie-modal .desc {
  font-size: 0.97rem;
  color: #155175;
  margin-bottom: 7px;
}
/* Always enabled - gray toggle, locked */
#cookie-modal .switch.always .slider {
  background: #e0e7ec;
}
#cookie-modal .switch.always .slider:before {
  background: #bbc9cd;
}
#cookie-modal .switch.always input + .slider {
  pointer-events: none;
}

@media (max-width: 600px) {
  #cookie-modal {
    padding: 19px 8px 14px 8px;
    max-width: 98vw;
  }
}

/* ================================================== */
/*                  Miscellaneous                     */
/* ================================================== */
::-webkit-scrollbar { width: 8px; background: #F1F7F4; }
::-webkit-scrollbar-thumb { background: #e2e7ec; border-radius: 8px; }
::-webkit-selection, ::selection {
  background: #dff4ff;
}

/* Give enough space between cards/sections as per requirements */
section:not(:last-of-type), .card:not(:last-child), .testimonial-card:not(:last-child) {
  margin-bottom: 20px !important;
}

/* Responsive utilities */
@media (max-width:600px) {
  .section {
    margin-bottom: 34px;
    padding: 15px 3px;
  }
  .card {
    padding: 12px 6px;
  }
}
