/* RESET & BASE STYLES ------------------------------------------- */
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;
  min-height: 100vh;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  background: #16232f;
  color: #F4EDE1;
  font-size: 16px;
}
*, *::before, *::after {
  box-sizing: inherit;
}
a {
  color: #80ffd6;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #f4ede1;
  text-decoration: underline;
}
ul, ol {
  margin-left: 24px;
  margin-bottom: 20px;
}
img {
  max-width: 100%;
  display: block;
}
button {
  font-family: inherit;
  background: none;
  border: none;
  outline: none;
  cursor: pointer;
}

/* BRAND TYPOGRAPHY ------------------------------------------------------ */
h1, .hero h1 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 2.2rem;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 1px;
  color: #F4EDE1;
  margin-bottom: 24px;
  text-shadow: 0 4px 60px #20455F33;
}
h2 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.5rem;
  line-height: 1.3;
  font-weight: 700;
  color: #AFBECA;
  margin-bottom: 16px;
  text-shadow: 0 2px 30px #20455F33;
}
h3 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.17rem;
  font-weight: 600;
  letter-spacing: 0.6px;
  margin-bottom: 10px;
  color: #80ffd6;
}
p, li {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 16px;
}
.subtitle {
  color: #AFBECA;
  font-size: 1.15rem;
  margin-bottom: 20px;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-weight: 400;
}
strong {
  font-weight: 700;
  color: #F4EDE1;
}

/* LAYOUT CONTAINERS ----------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 16px;
  position: relative;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.text-section {
  margin-bottom: 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #22364b;
  border-radius: 20px;
  box-shadow: 0 4px 26px #20455F26;
  padding: 32px;
  margin-bottom: 20px;
  position: relative;
  transition: transform 0.17s, box-shadow 0.17s;
  color: #F4EDE1;
}
.card:hover, .card:focus-within {
  transform: translateY(-6px) scale(1.012);
  box-shadow: 0 10px 48px #80ffd666, 0 1.5px 10px #20455F26;
  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;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  background: #F4EDE1;
  color: #16232f;
  padding: 20px;
  border-radius: 18px;
  margin-bottom: 20px;
  box-shadow: 0 5px 24px #20455F33;
  border: 1.5px solid #AFBECA;
  transition: box-shadow 0.23s;
}
.testimonial-card:hover {
  box-shadow: 0 8px 34px #20455F66;
}
.testimonial-meta {
  font-size: 1.05em;
  color: #20455F;
  font-weight: 600;
  display: flex;
  gap: 10px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.blog-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 44px;
}
.blog-grid > div {
  background: #22364b;
  border-radius: 18px;
  flex: 1 1 290px;
  min-width: 270px;
  padding: 28px 20px 18px 20px;
  box-shadow: 0 4px 18px #20455F18;
  margin-bottom: 15px;
  transition: box-shadow 0.16s, transform 0.16s;
  color: #F4EDE1;
  position: relative;
}
.blog-grid > div:hover {
  box-shadow: 0 7px 26px #80ffd633, 0 1px 10px #20455F13;
  transform: translateY(-2px) scale(1.01);
  z-index: 2;
}
.category {
  color: #80ffd6;
  background: #20455F;
  padding: 3px 11px;
  border-radius: 10px;
  font-size: 0.9em;
  letter-spacing: 0.6px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  display: inline-block;
  margin-top: 8px;
}
.category-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}
.category-filters button {
  background: #22364b;
  border: 1.7px solid #80ffd6;
  color: #80ffd6;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1em;
  border-radius: 12px;
  margin-right: 7px;
  padding: 7px 20px;
  margin-bottom: 4px;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
}
.category-filters button:hover, .category-filters button:focus {
  background: #80ffd6;
  color: #20455F;
}

/* BUTTONS & CTA --------------------------------------------------------- */
.cta {
  display: inline-block;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.07rem;
  letter-spacing: 1px;
  padding: 13px 38px;
  border-radius: 999px;
  margin: 16px 4px 16px 0;
  font-weight: 700;
  border: none;
  transition: background 0.19s, color 0.19s, box-shadow 0.25s, transform 0.15s;
  box-shadow: 0 5px 30px #80ffd633, 0 2px 10px #20455F13;
  background: #20455F;
  color: #80ffd6;
  position: relative;
  overflow: hidden;
}
.cta.primary {
  background: linear-gradient(97deg, #20455F 30%, #80ffd6 120%);
  color: #1f2f42;
  border: 1.5px solid #80ffd6;
  box-shadow: 0 6px 36px #80ffd644, 0 1.5px 10px #20455F18;
}
.cta.secondary {
  background: #80ffd6;
  color: #20455F;
  border: 1.5px solid #80ffd6;
}
.cta:hover, .cta:focus {
  background: #80ffd6;
  color: #20455F;
  transform: scale(1.04);
  box-shadow: 0 12px 40px #80ffd633, 0 2px 15px #20455F13;
  z-index: 2;
}
.cta:active {
  transform: scale(0.99);
}
 
/* HEADER & NAV ---------------------------------------------------------- */
header {
  background: #16232f;
  box-shadow: 0 6px 30px #20455F10;
  position: sticky;
  top: 0;
  z-index: 40;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 7px 16px;
}
.desktop-nav {
  display: flex;
  gap: 24px;
  align-items: center;
  margin: 0 14px;
}
.desktop-nav a {
  color: #AFBECA;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  letter-spacing: 0.7px;
  border-radius: 18px;
  padding: 8px 17px;
  transition: background 0.15s, color 0.15s;
}
.desktop-nav a:hover, .desktop-nav a:focus {
  color: #80ffd6;
  background: #20455F;
}
header .cta.primary {
  margin-left: auto;
  margin-right: 15px;
}
.mobile-menu-toggle {
  font-size: 2rem;
  color: #80ffd6;
  background: none;
  border: none;
  border-radius: 6px;
  padding: 4px 13px;
  display: none;
  z-index: 60;
}

/* MOBILE NAVIGATION ----------------------------------------------------- */
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: #16232f;
  color: #F4EDE1;
  z-index: 1000;
  transform: translateX(-100vw);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.38s cubic-bezier(.87,.12,.47,.99), opacity 0.3s;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  position: absolute;
  top: 18px;
  right: 22px;
  font-size: 2rem;
  background: none;
  color: #80ffd6;
  border: none;
  border-radius: 6px;
  padding: 4px 13px;
  z-index: 1100;
  transition: background 0.13s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #22364b;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 84px 28px 24px 32px;
  width: 100vw;
}
.mobile-nav a {
  padding: 16px 8px 8px 8px;
  color: #80ffd6;
  font-size: 1.35em;
  font-family: 'Montserrat', Arial, sans-serif;
  letter-spacing: 1.1px;
  border-radius: 14px;
  margin-bottom: 2px;
  transition: background 0.15s, color 0.15s;
  min-width: 90vw;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #20455F;
  color: #F4EDE1;
}
@media (max-width: 1100px) {
  .container {
    max-width: 100%;
    padding: 0 8px;
  }
}
@media (max-width: 950px) {
  .desktop-nav {
    gap: 9px;
  }
}
@media (max-width: 840px) {
  .desktop-nav a {
    padding: 7px 11px;
    font-size: 0.97em;
  }
}
@media (max-width: 768px) {
  .desktop-nav, header .cta.primary {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
}

/* HERO SECTION ---------------------------------------------------------- */
.hero {
  width: 100%;
  padding: 52px 0 30px 0;
  background: linear-gradient(109deg, #22364b 50%, #20455F 110%);
  box-shadow: 0 14px 44px #20455F33;
}
.hero .container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 325px;
}
.hero .content-wrapper {
  text-align: center;
  align-items: center;
  padding: 26px 0;
}

/* CARDS, FEATURES & SECTIONS -------------------------------------------- */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
  margin: 28px 0 13px 0;
}
.feature-grid > div {
  background: #22364b;
  border-radius: 17px;
  box-shadow: 0 4px 20px #20455F18;
  padding: 25px 16px 18px 16px;
  min-width: 210px;
  flex: 1 1 210px;
  color: #F4EDE1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 8px;
  transition: box-shadow 0.17s, transform 0.16s;
}
.feature-grid > div:hover {
  box-shadow: 0 8px 30px #80ffd633;
  transform: scale(1.01) translateY(-3px);
}
.feature-grid img {
  width: 35px;
  margin-bottom: 15px;
}

/* CONTACTS -------------------------------------------------------------- */
.contact-info {
  background: #22364b;
  border-radius: 18px;
  padding: 24px 26px;
  color: #F4EDE1;
  margin-bottom: 28px;
  box-shadow: 0 4px 18px #20455F19;
  font-size: 1.08em;
}
.contact-info p {
  margin-bottom: 7px;
}
.contact-info a {
  color: #80ffd6;
  word-break: break-all;
}
.contact-info img {
  display: inline-block;
  vertical-align: middle;
  width: 21px;
  margin-left: 3px;
}

/* FOOTER --------------------------------------------------------------- */
footer {
  background: #16232f;
  box-shadow: 0 -3px 24px #20455F12;
  padding: 37px 0 0 0;
  margin-top: 40px;
  color: #AFBECA;
  font-size: 0.98em;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.brand-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 17px;
  margin-bottom: 11px;
  color: #AFBECA;
}
.brand-footer img {
  width: 47px;
}
.footer-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 23px;
  align-items: center;
  margin-bottom: 8px;
}
.footer-menu a {
  color: #AFBECA;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1em;
  letter-spacing: 0.5px;
  border-radius: 10px;
  padding: 6px 12px;
  transition: background 0.13s, color 0.13s;
}
.footer-menu a:hover, .footer-menu a:focus {
  background: #20455F;
  color: #80ffd6;
}
.social-icons {
  display: flex;
  gap: 13px;
  margin-bottom: 5px;
}
.social-icons img {
  width: 28px;
  filter: drop-shadow(0 1.5px 0 #80ffd633);
  transition: filter 0.18s, transform 0.14s;
}
.social-icons img:hover {
  filter: drop-shadow(0 3px 12px #80ffd677) brightness(1.09);
  transform: scale(1.09);
}

/* TABLET & MOBILE RESPONSIVE -------------------------------------------- */
@media (max-width: 1020px) {
  .feature-grid { gap: 15px; }
  .content-grid { flex-direction: column; gap: 18px; }
  .card-container { gap: 16px; }
}
@media (max-width: 900px) {
  .blog-grid { gap: 15px; }
  .category-filters { gap: 8px; }
}
@media (max-width: 768px) {
  body { font-size: 15px; }
  h1, .hero h1 { font-size: 1.45rem; }
  h2 { font-size: 1.12rem; }
  .section, .container, .content-wrapper, .content-wrapper.text-section {
    padding: 18px 8px !important;
  }
  .hero {
    padding: 30px 0 13px 0;
  }
  .hero .container {
    min-height: 180px;
  }
  .content-grid, .feature-grid, .card-container, .footer-menu, .social-icons, .brand-footer {
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
  }
  .blog-grid > div, .feature-grid > div, .card {
    min-width: 98%;
    width: 100%;
    padding: 17px 7px;
  }
  .testimonial-card {
    border-radius: 12px;
    padding: 11px 7px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 17px;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
}

@media (max-width: 510px) {
  .footer-menu, .social-icons, .brand-footer {
    gap:9px;
  }
  .category-filters {
    font-size: 0.93em;
  }
}

/* UTILITY CLASSES & SPACING --------------------------------------------- */
.mb-20 { margin-bottom: 20px; }
.mb-24 { margin-bottom: 24px; }
.mt-24 { margin-top: 24px; }
.p-0   { padding: 0 !important; }
.pt-20 { padding-top: 20px !important; }
.pb-40 { padding-bottom: 40px !important; }

/* COOKIE CONSENT -------------------------------------------------------- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #20455F;
  color: #F4EDE1;
  box-shadow: 0 -3px 46px #20455F55;
  padding: 18px 14px 18px 18px;
  z-index: 9999;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  font-size: 1em;
  animation: cookieBannerIn 0.6s cubic-bezier(.67,-0.02,.54,1.09) 1;
}
@keyframes cookieBannerIn {
  0% { transform: translateY(100%); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-banner button {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1em;
  font-weight: 600;
  border-radius: 999px;
  border: 1.5px solid #80ffd6;
  background: #22364b;
  color: #80ffd6;
  margin-left: 13px;
  padding: 8px 28px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, box-shadow 0.13s;
  box-shadow: 0 1px 10px #80ffd631;
}
.cookie-banner button.accept {
  background: #80ffd6;
  color: #20455F;
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: #80ffd6;
  color: #20455F;
  box-shadow: 0 2px 17px #80ffd644;
}
.cookie-banner button.settings {
  background: transparent;
  color: #80ffd6;
  border: 1.5px solid #80ffd6;
}

@media (max-width: 700px) {
  .cookie-banner {
    padding: 12px 4px 12px 7px;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
}

/* COOKIE MODAL ---------------------------------------------------------- */
.cookie-modal {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 10000;
  width: 100vw;
  height: 100vh;
  background: rgba(32,69,95,.85);
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: auto;
  opacity: 1;
  animation: cookieModalShow 0.24s cubic-bezier(.67,-0.02,.54,1.09) 1;
}
@keyframes cookieModalShow {
  0% { opacity: 0; transform: scale(.94); }
  100% { opacity: 1; transform: scale(1); }
}
.cookie-modal .modal-content {
  background: #16232f;
  border-radius: 19px;
  max-width: 390px;
  padding: 32px 20px 19px 25px;
  box-shadow: 0 22px 90px #20455F99, 0 5px 18px #80ffd622;
  color: #F4EDE1;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.cookie-modal h2 {
  font-size: 1.18em;
  color: #80ffd6;
  margin-bottom: 9px;
}
.cookie-modal fieldset {
  border: none;
  padding: 0;
  margin: 0 0 13px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cookie-modal label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1em;
  color: #AFBECA;
  font-family: 'Open Sans', Arial, sans-serif;
}
.cookie-modal input[type="checkbox"] {
  accent-color: #80ffd6;
  width: 1.3em;
  height: 1.3em;
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 14px;
}
.cookie-modal button {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1em;
  font-weight: 600;
  border-radius: 999px;
  padding: 8px 25px;
  margin-left: 0;
  border: 1.5px solid #80ffd6;
  background: #22364b;
  color: #80ffd6;
  transition: background 0.14s, color 0.14s, box-shadow 0.12s;
  box-shadow: 0 1px 10px #80ffd624;
}
.cookie-modal button.accept {
  background: #80ffd6;
  color: #20455F;
}
.cookie-modal button:focus, .cookie-modal button:hover {
  background: #80ffd6;
  color: #20455F;
}
.cookie-modal .modal-close {
  background: transparent;
  border: none;
  color: #80ffd6;
  font-size: 1.5em;
  position: absolute;
  top: 21px; right: 31px;
  cursor: pointer;
}
@media (max-width: 500px) {
  .cookie-modal .modal-content {
    max-width: 92vw;
    padding: 14px 5px 11px 9px;
    border-radius: 10px;
  }
}

/* SLICK MICRO-INTERACTIONS ---------------------------------------------- */
.cta, .card, .feature-grid > div, .testimonial-card, .blog-grid > div, .category-filters button {
  will-change: transform, box-shadow;
}
.card::after, .feature-grid > div::after, .cta.primary::after {
  content: '';
  display: block;
  position: absolute;
  width: 45%;
  height: 35%;
  top: -18px; right: -22px;
  background: radial-gradient(circle, #80ffd6AA 0%, #20455F00 100%);
  opacity: 0.08;
  filter: blur(2.5px);
  pointer-events: none;
  z-index: 1;
}
.card:active, .blog-grid > div:active, .category-filters button:active { transform: scale(0.97); }

/* VISUAL HIERARCHY: HEADINGS -------------------------------------------- */
.section > .container > .content-wrapper > h2,
.container > .content-wrapper.text-section > h1 {
  margin-bottom: 18px;
}
.card h3, .feature-grid h3 {
  margin-bottom: 9px;
}

/* MISCELLANEOUS --------------------------------------------------------- */
/* Spacing for all cards, sections */
section, .section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card, .testimonial-card {
  margin-bottom: 20px;
}
.content-grid, .card-container, .feature-grid {
  gap: 20px;
}

/* Ensure no content overlap --------------------------------------------- */
@media (max-width: 400px) {
  .cookie-banner, .footer-menu, .social-icons, .brand-footer {
    font-size: 0.89em;
    gap: 4px;
  }
}

/* Print: Hide cookie banner & modal ------------------------------------- */
@media print {
  .cookie-banner, .cookie-modal, .mobile-menu { display:none !important; }
}

/* END OF CSS ----------------------------------------------------------- */
