/* --------------------
   CSS RESET & BASELINE
----------------------*/
html {
  box-sizing: border-box;
  font-size: 100%;
}
*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  background: #fff;
  color: #181A1B;
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, picture {
  max-width: 100%;
  display: block;
  height: auto;
}
ul, ol {
  margin-left: 24px;
  margin-bottom: 16px;
}
a {
  color: #232C3A;
  text-decoration: none;
  transition: color 0.2s;
  word-break: break-word;
}
a:hover, a:focus {
  color: #35B1DD;
  outline: none;
}
strong, b {
  font-weight: 600;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 700;
  color: #111216;
  letter-spacing: 0.01em;
  margin-bottom: 8px;
  line-height: 1.18;
}
h1 {
  font-size: 2.4rem;
  margin-bottom: 20px;
}
h2 {
  font-size: 1.8rem;
  margin-bottom: 18px;
}
h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}
p {
  margin-bottom: 12px;
}
main {
  background: #fff;
}

/* --------------------
    LAYOUT & CONTAINERS
----------------------*/
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 18px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px 40px 20px;
}

/* -----------------------------------
    FLEX LAYOUTS (NO CSS GRID ALLOWED)
-------------------------------------*/
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 14px rgba(0,0,0,0.07);
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px 20px;
  transition: box-shadow 0.2s;
}
.card:hover {
  box-shadow: 0 4px 18px rgba(0,0,0,0.13);
}
.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 {
  background: #f4f4f7;
  border-radius: 12px;
  color: #181A1B;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  flex-direction: column;
  transition: box-shadow 0.2s, background 0.2s;
}
.testimonial-card:hover {
  box-shadow: 0 4px 18px rgba(35,44,58,0.10);
  background: #ececed;
}
.feature-item {
  background: #fff;
  border-radius: 10px;
  padding: 26px 20px 22px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.07);
  margin-bottom: 20px;
  min-width: 180px;
  max-width: 320px;
  transition: box-shadow 0.2s, background 0.2s;
}
.feature-item img {
  max-width: 38px;
  margin-bottom: 6px;
  filter: grayscale(1) contrast(1.1);
  opacity: 0.90;
}
.feature-item:hover {
  background: #f5f6fa;
  box-shadow: 0 4px 16px rgba(35,44,58,0.07);
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: stretch;
  margin-top: 10px;
}
.icons-row {
  display: flex;
  gap: 30px;
  align-items: center;
  margin-top: 14px;
}

/* -------------------
    HERO SECTIONS
---------------------*/
.hero {
  background: linear-gradient(110deg, #232C3A 0%, #111216 98%);
  color: #F9F9F4;
  padding: 70px 0 66px 0;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero h1, .hero p {
  color: #FFF;
}
.hero h1 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 2.4rem;
  line-height: 1.15;
}
.hero p {
  font-size: 1.18rem;
  margin-bottom: 18px;
  color: #f5f5f5;
}
.hero .cta-primary {
  margin-top: 8px;
}

/* ----------------------
   BUTTONS & CTA STYLES
------------------------*/
.cta-primary {
  display: inline-flex;
  align-items: center;
  background: #232C3A;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  border: none;
  padding: 12px 30px;
  border-radius: 30px;
  box-shadow: 0 2px 12px rgba(35,44,58,0.07);
  cursor: pointer;
  letter-spacing: 0.035em;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.14s;
  margin-top: 8px;
}
.cta-primary:hover, .cta-primary:focus {
  background: #35B1DD;
  color: #fff;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 18px rgba(35,44,58,0.13);
  outline: none;
}

/* Button secondary styles for dialog/cookie banner etc. */
.button-secondary,
.cookie-banner .cookie-settings,
.cookie-banner .cookie-reject {
  display: inline-flex;
  align-items: center;
  background: #fff;
  color: #232C3A;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 0.97rem;
  font-weight: 500;
  border: 1px solid #232C3A;
  padding: 10px 22px;
  border-radius: 22px;
  margin-right: 8px;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
}
.button-secondary:hover, .cookie-banner .cookie-settings:hover, .cookie-banner .cookie-reject:hover {
  background: #232C3A;
  color: #fff;
  box-shadow: 0 3px 10px rgba(35,44,58,0.14);
}

/* -----------------
    NAVIGATION BAR
-------------------*/
.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  padding: 19px 24px 17px 24px;
  background: #fff;
  border-bottom: 1.5px solid #e9ecef;
  font-family: 'Montserrat', Arial, sans-serif;
  box-shadow: 0 2px 7px rgba(0,0,0,0.08);
  position: relative;
  z-index: 50;
}
.main-nav a {
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  padding: 8px 10px;
  color: #232C3A;
  border-radius: 6px;
  transition: background 0.18s, color 0.18s;
}
.main-nav .cta-primary {
  margin-left: 18px;
  margin-top: 0;
  color: #fff;
  padding: 10px 24px;
  font-size: 1rem;
}
.main-nav a:hover, .main-nav a:focus {
  background: #232C3A;
  color: #fff;
  outline: none;
}
.main-nav img {
  height: 32px;
  width: auto;
  margin-right: 8px;
}

/* Hamburger mobile menu button */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2.0rem;
  color: #232C3A;
  cursor: pointer;
  margin-left: auto;
  z-index: 1051;
  transition: color 0.2s;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  color: #35B1DD;
  outline: none;
}

@media (max-width: 1024px) {
  .main-nav {
    gap: 14px;
    padding: 16px 6px 13px 8px;
  }
  .main-nav .cta-primary {
    margin-left: 0;
  }
}

@media (max-width: 900px) {
  .main-nav {
    gap: 8px;
    flex-wrap: wrap;
    font-size: .97rem;
  }
  .main-nav a {
    padding-left: 4px;
    padding-right: 4px;
  }
}

/* Mobile Nav Overlay */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(35,44,58,0.97);
  color: #fff;
  transform: translateX(100%);
  transition: transform 0.36s cubic-bezier(.61,.07,.52,.89);
  z-index: 1050;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100vw;
  height: 100vh;
  padding: 24px 18px 0 18px;
  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.1rem;
  align-self: flex-end;
  cursor: pointer;
  margin-bottom: 18px;
  transition: color 0.2s;
  z-index: 1100;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: #35B1DD;
  outline: none;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  align-items: flex-start;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  padding: 12px 0;
  margin-left: 4px;
  border-bottom: 1px solid rgba(248,248,248, 0.13);
  transition: color 0.18s, background 0.18s;
  border-radius: 4px;
  display: block;
  width: 100%;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: #232c3a;
  color: #35B1DD;
}
/* Hide desktop nav + show burger on mobile */
@media (max-width: 820px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
    position: absolute;
    right: 18px;
    top: 17px;
  }
  .mobile-menu {
    display: flex;
  }
}
@media (min-width: 821px) {
  .mobile-menu {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: none !important;
  }
}

/* -----------------
     FOOTER STYLES
-------------------*/
footer {
  background: #232C3A;
  color: #FFF;
  padding: 42px 0 18px 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.footer-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  justify-content: center;
  margin-bottom: 24px;
}
.footer-menu a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  padding: 9px 12px;
  border-radius: 5px;
  background: transparent;
  transition: background 0.15s, color 0.15s;
}
.footer-menu a:hover, .footer-menu a:focus {
  background: #fff;
  color: #232C3A;
}
.footer-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 16px;
}
.footer-logo img {
  height: 48px;
  filter: grayscale(1) brightness(1.4) contrast(1.1);
}
.footer-contact {
  text-align: center;
  font-size: .98rem;
  color: #f5f5f5;
  opacity: .84;
  margin-bottom: 8px;
}

/* ------------------------
   SPECIAL CONTENT BLOCKS
--------------------------*/
.text-section {
  margin-bottom: 18px;
}
.text-section ul {
  list-style: disc;
  margin-bottom: 12px;
}
.text-section li {
  margin-bottom: 8px;
}

/* FAQ layout blocks (e.g. .faq-entry) */
.faq-entry {
  background: #f3f3f5;
  border-radius: 8px;
  padding: 18px 18px 14px 18px;
  margin-bottom: 12px;
  box-shadow: 0 1px 9px rgba(0,0,0,0.04);
}
.faq-entry h3 {
  font-size: 1.09rem;
  margin-bottom: 4px;
}
.faq-entry p {
  font-size: .99rem;
}

/* Newsletter callout section */
.newsletter-callout {
  background: #232C3A;
  color: #fff;
  text-align: center;
}
.newsletter-callout h2, .newsletter-callout p {
  color: #fff;
  margin-bottom: 9px;
}
.newsletter-callout .cta-primary {
  background: #35B1DD;
  color: #232C3A;
}
.newsletter-callout .cta-primary:hover {
  background: #fff;
  color: #232C3A;
}

/* Legal section block */
.legal {
  margin-bottom: 60px;
  padding: 40px 20px 40px 20px;
  background: #f5f5fa;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.legal h1, .legal h2 {
  margin-bottom: 13px;
}
.legal ul, .legal p {
  margin-bottom: 10px;
}

/* Icon in text block */
.text-section img {
  height: 18px;
  width: 18px;
  display: inline-block;
  margin-right: 9px;
  vertical-align: middle;
  opacity: .81;
}

/* ----------------------
   TESTIMONIALS SECTION
------------------------*/
.testimonials {
  background: #f7f7fa;
  margin-bottom: 60px;
  padding: 40px 20px 40px 20px;
  border-radius: 16px;
}
.testimonial-card {
  background: #fff;
  color: #181A1B;
  border-left: 5px solid #232C3A;
  margin-bottom: 20px;
  font-size: 1.09rem;
  box-shadow: 0 1px 7px rgba(35,44,58,0.07);
}
.testimonial-name {
  color: #232C3A;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 0.98rem;
  font-weight: 600;
  margin-top: 6px;
  opacity: .8;
}

/* ---------------------
   COOKIE BANNER STYLES
-----------------------*/
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #232C3A;
  color: #fff;
  box-shadow: 0 -2px 14px rgba(35,44,58,0.12);
  padding: 18px 20px 16px 20px;
  z-index: 4000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  width: 100vw;
  font-size: 0.99rem;
  animation: cookie-slide-in 0.5s cubic-bezier(.68,-.55,.27,1.55);
}
@keyframes cookie-slide-in {
  from { transform: translateY(50%); opacity: 0;}
  to   { transform: translateY(0);   opacity: 1;}
}
.cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 5px;
  align-items: center;
  justify-content: center;
}
.cookie-banner .cta-primary {
  background: #35B1DD;
  color: #232C3A;
  padding: 9px 24px;
  font-size: 0.97rem;
  border-radius: 22px;
}
.cookie-banner .cta-primary:hover {
  background: #f9f9f4;
  color: #232C3A;
}
.cookie-banner .cookie-reject {
  background: #fff;
  color: #232C3A;
  border: 1px solid #232C3A;
  padding: 9px 22px;
}
.cookie-banner .cookie-reject:focus, .cookie-banner .cookie-settings:focus {
  outline: 2px solid #35B1DD;
}
.cookie-banner .cookie-settings {
  background: transparent;
  color: #fff;
  border: 1px solid #fff;
  padding: 9px 22px;
}
.cookie-banner .cookie-settings:hover {
  background: #fff;
  color: #232C3A;
}

/* Cookie consent modal */
.cookie-modal {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%) scale(1);
  background: #fff;
  color: #232C3A;
  box-shadow: 0 7px 40px rgba(35,44,58,0.28);
  border-radius: 16px;
  z-index: 4500;
  min-width: 320px;
  max-width: 95vw;
  padding: 36px 28px 28px 28px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  animation: cookie-modal-fadein 0.34s cubic-bezier(.44,.09,.49,1.23);
}
@keyframes cookie-modal-fadein {
  from { opacity: 0; transform: translate(-50%,-40%) scale(0.93); }
  to   { opacity: 1; transform: translate(-50%,-50%) scale(1); }
}
.cookie-modal h2 {
  margin-bottom: 12px;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 7px;
  border-bottom: 1px solid #e5e6e8;
}
.cookie-modal .cookie-switch {
  display: flex;
  align-items: center;
}
.cookie-modal .cookie-switch input[type="checkbox"] {
  accent-color: #35B1DD;
  width: 22px; height: 22px;
}
.cookie-modal .cookie-essential {
  color: #232C3A;
  opacity: 0.8;
  font-size: 0.97rem;
  font-weight: 700;
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 18px;
}
.cookie-modal .cta-primary,
.cookie-modal .button-secondary {
  padding: 8px 18px;
}
.cookie-modal .modal-close {
  position: absolute;
  right: 18px;
  top: 18px;
  font-size: 1.6rem;
  color: #232C3A;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 2;
  transition: color 0.2s;
}
.cookie-modal .modal-close:hover,
.cookie-modal .modal-close:focus {
  color: #35B1DD;
}

/* Overlay for modal */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(35,44,58,.29);
  z-index: 4499;
}

/* --------------
   RESPONSIVE
----------------*/
@media (max-width: 1024px) {
  .container {
    max-width: 96vw;
    padding: 0 11px;
  }
  .hero {
    padding: 46px 0 41px 0;
    min-height: 200px;
  }
}
@media (max-width: 900px) {
  .footer-menu {
    gap: 10px;
    font-size: 0.95rem;
  }
  .footer-logo img {
    height: 36px;
  }
  .card,
  .feature-item {
    min-width: 150px;
    max-width: 100%;
    padding: 20px 12px;
  }
}
@media (max-width: 768px) {
  .section,.legal,.testimonials {
    padding: 22px 8px 26px 8px;
    margin-bottom: 38px;
  }
  h1 {
    font-size: 1.5rem;
    margin-bottom: 13px;
  }
  h2 {
    font-size: 1.15rem;
    margin-bottom: 10px;
  }
  .feature-grid {
    flex-direction: column;
    gap: 18px;
  }
  .icons-row {
    gap: 15px;
  }
  .content-grid {
    flex-direction: column;
    gap: 14px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
  .main-nav {
    font-size: 0.99rem;
  }
}
@media (max-width: 560px) {
  .hero {
    padding: 28px 0 27px 0;
    min-height: 120px;
  }
  .contact .text-section {
    font-size: 0.97rem;
  }
  footer {
    padding: 27px 0 10px 0;
  }
  .footer-menu {
    flex-direction: column;
    gap: 4px;
    margin-bottom: 18px;
  }
}

/*---------------
   MICROINTERACTIONS
------------------*/
.card, .feature-item, .testimonial-card, .faq-entry {
  transition: box-shadow .21s cubic-bezier(.47,0,.36,1.41), background .21s;
}
.card:hover, .feature-item:hover, .testimonial-card:hover, .faq-entry:hover {
  box-shadow: 0 6px 24px rgba(35,44,58,0.11);
}
input:focus, textarea:focus, select:focus, button:focus {
  outline: 2px solid #35B1DD;
  outline-offset: 2px;
}

/* Hide scroll when cookie modal is open (used via body.modal-open) */
body.modal-open {
  overflow-y: hidden;
}

/* Typography scale for sophistication */
:root {
  --type-xs: 0.90rem;
  --type-sm: 1.00rem;
  --type-md: 1.1rem;
  --type-lg: 1.18rem;
  --type-xl: 1.4rem;
  --type-xxl: 2.1rem;
}

/* Utility classes for spacing if needed */
.mt-32 { margin-top: 32px; }
.mb-24 { margin-bottom: 24px; }
.mt-8 { margin-top: 8px; }
.ms-auto { margin-left: auto; }
.text-center { text-align: center; }

/* For accessibility: always high contrast in testimonials and reviews */
.testimonial-card, .testimonial-card p, .testimonial-card .testimonial-name {
  color: #181A1B;
  background: #fff;
}

/* Overriding background for .testimonials if needed */
.testimonials {
  background: #f8f8fa;
}

/* Hide visually (for a11y) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
