/* ========= 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 {
  height: 100%;
  font-size: 16px;
  scroll-behavior: smooth;
}
body {
  min-height: 100vh;
  background: #F6F6F6;
  font-family: 'Roboto', Arial, sans-serif;
  color: #173F5F;
  -webkit-font-smoothing: antialiased;
  font-weight: 400;
  letter-spacing: 0.03em;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
ul, ol {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}
button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
}
table {
  border-collapse: collapse;
  width: 100%;
}
th, td {
  padding: 12px 16px;
  text-align: left;
}
blockquote {
  margin: 0 0 10px 0;
  padding-left: 20px;
  border-left: 4px solid #1871b2;
  color: #173F5F;
  background: #f8fbfd;
  font-style: italic;
}

/* ========== GEOMETRIC/STRUCTURED COLORS & TYPOGRAPHY ========== */
:root {
  --color-primary: #173F5F;
  --color-secondary: #FFFFFF;
  --color-bg: #F6F6F6;
  --color-accent: #1871b2;
  --color-accent-bright: #22A7F0;
  --color-text: #173F5F;
  --color-text-light: #306080;
  --radius: 12px;
  --shadow: 0 2px 12px 0 rgba(23,63,95,0.08), 0 1.5px 4px 0 rgba(23,63,95,0.06);
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-primary);
  font-weight: 700;
}
h1 {
  font-size: 2.25rem;
  margin-bottom: 20px;
}
h2 {
  font-size: 1.75rem;
  margin-bottom: 18px;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}
.lead {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: 10px;
}

/* ========== BUTTONS ========== */
.cta-btn {
  display: inline-block;
  padding: 12px 32px;
  background: var(--color-primary);
  color: var(--color-secondary);
  border-radius: var(--radius);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  box-shadow: var(--shadow);
  border: 2.5px solid transparent;
  transition: background 0.2s, color 0.2s, border 0.2s, transform 0.16s;
  text-transform: uppercase;
  margin-top: 16px;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--color-accent);
  color: var(--color-secondary);
  border: 2.5px solid var(--color-primary);
  transform: translateY(-2px) scale(1.025) skew(-2deg);
}

/* ========== HEADER & NAVIGATION ========== */
header {
  background: var(--color-secondary);
  border-bottom: 2.5px solid var(--color-accent);
  position: sticky;
  top: 0;
  z-index: 30;
  box-shadow: 0 2px 8px rgba(23,63,95,0.035);
}
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  min-height: 72px;
  justify-content: space-between;
  gap: 20px;
}
.brand-logo img {
  height: 50px;
  width: auto;
  display: block;
  margin-right: 18px;
}
.main-nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  align-items: center;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-primary);
  padding: 7px 0;
  transition: color 0.2s, border-bottom 0.2s;
  border-bottom: 2px solid transparent;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.main-nav a:hover, .main-nav a.active {
  color: var(--color-accent);
  border-bottom: 2px solid var(--color-accent);
}
.mobile-menu-toggle {
  display: none;
  background: var(--color-accent);
  color: var(--color-secondary);
  font-size: 2rem;
  border-radius: 8px;
  padding: 7px 17px;
  transition: background 0.23s;
  z-index: 40;
  margin-left: auto;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: var(--color-primary);
  color: var(--color-accent-bright);
}

/* ========== MOBILE MENU ========== */
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--color-primary);
  box-shadow: 0 0 60px rgba(10,32,51,0.2);
  z-index: 1000;
  transform: translateX(-100vw);
  transition: transform 0.4s cubic-bezier(0.58,0,0.19,1);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  top: 18px;
  right: 22px;
  background: transparent;
  color: var(--color-accent);
  font-size: 2.3rem;
  z-index: 1010;
  border: none;
  cursor: pointer;
  height: 42px;
  width: 42px;
  border-radius: 50%;
  transition: background 0.2s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: rgba(255,255,255,0.13);
  color: var(--color-accent-bright);
}
.mobile-nav {
  margin-top: 85px;
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 5px;
  padding: 0 34px;
}
.mobile-nav a {
  color: var(--color-secondary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  padding: 18px 0 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.10);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: color 0.2s;
  width: 100%;
}
.mobile-nav a:hover, .mobile-nav a.active {
  color: var(--color-accent);
}

/* Hide main nav and show burger on mobile */
@media (max-width: 990px) {
  .main-nav, .cta-btn {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .container {
    justify-content: space-between;
    min-height: 64px;
  }
}
@media (min-width: 991px) {
  .mobile-menu {
    display: none !important;
  }
}

/* ========== HERO SECTION ========== */
.hero {
  background: linear-gradient(110deg, #F6F6F6 60%, #E3ECF6 100%);
  border-bottom: 2.5px solid var(--color-accent);
  display: flex;
  align-items: center;
  min-height: 290px;
  padding-top: 32px;
  padding-bottom: 32px;
  margin-bottom: 60px;
}
.hero .content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  max-width: 670px;
}

/* ========== MAIN LAYOUT SECTIONS & SPACING ========== */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}
.content-wrapper, .text-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 12px;
}
.features-grid > div {
  background: var(--color-secondary);
  border-radius: var(--radius);
  padding: 30px 20px 22px 20px;
  min-width: 220px;
  flex: 1 1 205px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border: 2.5px solid #e6ecfc;
  min-height: 210px;
  margin-bottom: 20px;
  position: relative;
}
.features-grid img {
  height: 42px;
  margin-bottom: 18px;
}

/* SECTIONS: CARD-CONTAINER/FLEX LAYOUTS */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  flex: 1 1 270px;
  min-width: 240px;
  background: var(--color-secondary);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 20px;
  border: 2px solid #e6ecfc;
  display: flex;
  flex-direction: column;
}
.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;
}
@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: #FFFFFF;
  border-radius: var(--radius);
  margin-bottom: 22px;
  box-shadow: 0 2.5px 18px 0 rgba(23,63,95,0.10);
  border-left: 8px solid var(--color-accent);
  font-size: 1.10rem;
  color: #173F5F;
  transition: box-shadow 0.21s, border-left 0.18s;
}
.testimonial-card:hover {
  box-shadow: 0 6px 24px 0 rgba(23,63,95,0.16);
  border-left: 8px solid var(--color-primary);
}
.rating-summary {
  margin-top: 14px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.13rem;
  color: var(--color-accent);
  background: #e6f6ff;
  padding: 12px 20px;
  border-radius: var(--radius);
  display: inline-block;
  font-weight: 600;
  margin-bottom: 12px;
}

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

/* FAQ Section */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.faq-item {
  background: var(--color-secondary);
  border-left: 5px solid var(--color-accent);
  border-radius: var(--radius);
  box-shadow: 0 2px 10px 0 rgba(23,63,95,0.07);
  padding: 20px 24px 16px 22px;
  margin-bottom: 12px;
  transition: box-shadow 0.17s;
}
.faq-item:hover {
  box-shadow: 0 4px 16px 0 rgba(23,63,95,0.12);
}

/* Table Styling */
table {
  background: #fff;
  border-radius: var(--radius);
  margin: 24px 0;
  box-shadow: var(--shadow);
  border: 2px solid #e6ecf6;
  font-size: 1rem;
}
th {
  background: #e7f1fb;
  color: var(--color-primary);
  letter-spacing: 0.04em;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.05rem;
  text-transform: uppercase;
}
tr:not(:last-child) {
  border-bottom: 1px solid #e6ecfc;
}
th, td {
  padding: 13px 18px;
}

/* ========== FOOTER ========== */
footer {
  background: var(--color-primary);
  color: var(--color-secondary);
  padding: 40px 0 24px 0;
  font-size: 1rem;
  width: 100%;
  border-top: 4px solid var(--color-accent);
  box-shadow: 0 -2px 8px 0 rgba(23,63,95,0.06);
}
footer .container {
  flex-direction: row;
  align-items: flex-start;
  gap: 36px;
  justify-content: flex-start;
}
.footer-nav, .footer-legal, .footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-nav a, .footer-legal a {
  color: var(--color-secondary);
  font-weight: 600;
  text-transform: uppercase;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 0.98rem;
  margin-bottom: 3px;
  letter-spacing: 0.04em;
}
.footer-nav a:hover, .footer-legal a:hover {
  color: var(--color-accent);
  text-decoration: underline;
}
.footer-contact strong {
  color: var(--color-accent);
}
.footer-contact {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 0.97rem;
  line-height: 1.6;
  margin-top: 8px;
  max-width: 270px;
}
@media (max-width: 900px) {
  footer .container {
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
  }
}

/* ========== COOKIE BANNER ========== */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0;
  width: 100vw;
  z-index: 2000;
  background: #173F5F;
  color: #fff;
  font-family: 'Roboto', Arial, sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 28px 14px 18px 14px;
  box-shadow: 0 -2px 20px rgba(23,63,95,0.08);
  transition: transform 0.45s cubic-bezier(0.7,0,0.21,1);
  border-top: 3.5px solid var(--color-accent);
  gap: 25px;
  font-size: 1.06rem;
}
.cookie-banner.hide {
  transform: translateY(120%);
}
.cookie-banner .cookie-btn {
  margin-left: 24px;
  margin-right: 9px;
  padding: 9px 24px;
  border-radius: 9px;
  border: 1.8px solid #e6ecfc;
  background: var(--color-accent);
  color: #fff;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  transition: background 0.21s, color 0.21s, border 0.17s;
  cursor: pointer;
  text-transform: uppercase;
}
.cookie-banner .cookie-btn:hover, .cookie-banner .cookie-btn:focus {
  background: #fff;
  color: var(--color-primary);
  border: 1.8px solid var(--color-accent);
}
.cookie-banner .cookie-btn-alt {
  background: #fff;
  color: var(--color-accent);
  border: 1.8px solid var(--color-accent);
}
.cookie-banner .cookie-btn-alt:hover, .cookie-banner .cookie-btn-alt:focus {
  background: var(--color-accent);
  color: #fff;
}

/* COOKIE MODAL PREFERENCES */
.cookie-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-55%) scale(1);
  background: #f8fbfd;
  border-radius: var(--radius);
  z-index: 2100;
  max-width: 97vw;
  min-width: 320px;
  width: 410px;
  padding: 34px 28px;
  box-shadow: 0 6px 34px 0 rgba(10,32,51,0.10);
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1.07rem;
  color: #173F5F;
  border: 2.3px solid var(--color-accent);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: opacity 0.35s cubic-bezier(.85,0,.21,1);
}
.cookie-modal.hide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s cubic-bezier(.75,0,.15,1);
}
.cookie-modal .cookie-modal-header {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.23rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--color-primary);
  display: flex;
  gap: 14px;
  align-items: center;
}
.cookie-modal .cookie-modal-close {
  margin-left: auto;
  background: transparent;
  border: none;
  color: var(--color-accent);
  font-size: 1.7rem;
  cursor: pointer;
  border-radius: 50%;
  height: 34px;
  width: 34px;
  transition: color 0.2s, background 0.2s;
}
.cookie-modal .cookie-modal-close:hover, 
.cookie-modal .cookie-modal-close:focus {
  background: #e7f1fb;
  color: var(--color-primary);
}
.cookie-modal-categories {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 14px;
}
.cookie-modal-category {
  background: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 8px;
  padding: 14px 14px;
  border: 2px solid #e8eff8;
}
.cookie-modal-category label {
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  color: var(--color-primary);
}
.cookie-modal-category .toggle-switch {
  margin-left: auto;
}
.cookie-modal-actions {
  display: flex;
  gap: 14px;
  justify-content: flex-end;
  margin-top: 22px;
}

/* Toggle switch styling */
.toggle-switch {
  width: 44px;
  height: 24px;
  border-radius: 50px;
  background: #e6e9ef;
  position: relative;
  cursor: pointer;
  transition: background 0.16s;
  flex-shrink: 0;
}
.toggle-switch input {
  display: none;
}
.toggle-switch .slider {
  position: absolute;
  top: 3px; left: 3px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #a6b5cc;
  transition: all 0.2s;
  box-shadow: 0 1px 3px 0 rgba(40,70,110,0.07);
}
.toggle-switch input:checked + .slider {
  left: 23px;
  background: var(--color-accent);
}
.toggle-switch.disabled {
  opacity: 0.6;
  pointer-events: none;
}

/* ========== UTILITIES AND GENERAL SPACING ========== */
.mt-1 { margin-top: 8px !important; }
.mt-2 { margin-top: 16px !important; }
.mb-1 { margin-bottom: 8px !important; }
.mb-2 { margin-bottom: 16px !important; }

.location-placeholder {
  background: #e7f1fb;
  border-radius: var(--radius);
  padding: 16px 18px;
  font-style: italic;
  color: #0d2540;
  box-shadow: 0 2px 10px rgba(23,63,95,0.08);
  margin-top: 10px;
  margin-bottom: 20px;
}
address {
  font-style: normal;
  margin-bottom: 10px;
}

/* Responsive content wrapper & grids */
@media (max-width: 900px) {
  .container {
    max-width: 100vw;
    padding: 0 9px;
    gap: 13px;
  }
}
@media (max-width: 600px) {
  .hero {
    min-height: 180px;
    padding-top: 17px;
    padding-bottom: 21px;
  }
  .features-grid > div {
    min-width: 100%;
  }
  .card {
    min-width: 100%;
  }
  section {
    padding: 26px 7px;
  }
  th, td {
    padding: 10px 8px;
    font-size: 0.95rem;
  }
}

/* ========== GEOMETRIC/STRUCTURED DESIGN SHAPES & ANGULAR ASPECTS ========== */
.features-grid > div, .card, .faq-item, .testimonial-card, table, .cookie-modal, .location-placeholder {
  /* Keep geometric consistency */
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.features-grid > div:before {
  content: "";
  display: block;
  position: absolute;
  top: -14px; left: 18px;
  background: var(--color-accent);
  height: 9px; width: 54px;
  clip-path: polygon(0 0, 100% 0, 90% 100%, 10% 100%);
  border-radius: 7px;
  opacity: 0.16;
  z-index: 1;
}

/* ANGULAR SCHEME: Fonts, cards, layout */
h1, h2, h3, .cta-btn, .main-nav a, .footer-nav a, .footer-legal a, .mobile-nav a, .rating-summary {
  font-family: 'Montserrat', Arial, sans-serif;
  font-variant: normal;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-weight: 800;
}
.features-grid > div h3, .card h3 {
  font-style: normal;
  font-weight: 700;
  font-size: 1.18rem;
  margin-bottom: 7px;
}

/* ========== INTERACTIVE STATES & EFFECTS ========== */
.card, .features-grid > div, .faq-item {
  transition: box-shadow 0.2s, border 0.17s, transform 0.13s;
}
.card:hover, .features-grid > div:hover, .faq-item:hover {
  box-shadow: 0 7px 28px 0 rgba(23,63,95,0.20);
  transform: translateY(-3px) scale(1.015) skew(-1deg);
  border: 2.5px solid var(--color-accent);
  z-index: 3;
}
a, button, .cta-btn, .footer-nav a, .footer-legal a, .main-nav a, .mobile-nav a {
  outline: none;
  transition: color 0.19s, border 0.18s, background 0.17s, box-shadow 0.18s;
}
a:focus, .cta-btn:focus, .footer-nav a:focus, .mobile-nav a:focus {
  box-shadow: 0 0 0 2.5px #2196f3, 0 0 2px 2px #e6e6e6;
  border-radius: 7px;
}

/* ========== RESPONSIVE FLEX DIRECTION ========== */
@media (max-width: 860px) {
  .features-grid, .card-container, .content-grid {
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
  }
}

/* ========== MISC - FORMS & MODALS ========== */
input, select, textarea {
  border-radius: 7px;
  border: 2px solid #a8b8c8;
  padding: 11px 15px;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  width: 100%;
  background: #fff;
  margin-bottom: 13px;
  box-shadow: 0 1px 4px rgba(60,90,130,0.03);
  outline: none;
  transition: border 0.17s;
}
input:focus, select:focus, textarea:focus {
  border: 2px solid var(--color-accent);
}

/* ========== PRINT & ACCESSIBILITY ========== */
@media print {
  header, nav, .cookie-banner, .cookie-modal, footer {
    display: none !important;
  }
  section, main {
    box-shadow: none !important;
    background: #fff !important;
  }
}

/* ========== Z-INDEX LAYERS ========== */
header { z-index: 30; }
.mobile-menu { z-index: 1000; }
.cookie-banner { z-index: 2000; }
.cookie-modal { z-index: 2100; }

/* ========== THANK-YOU UPGRADE ========== */
.thank-you {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  background: #e6f6ff;
  padding: 50px 20px;
  margin-top: 60px;
  border-radius: var(--radius);
  box-shadow: 0 6px 32px rgba(23,63,95,0.09);
}

/* ========== GEOMETRIC ILLUSTRATIVE DECOR (OPTIONAL) ========== */
.section-deco {
  position: absolute;
  top: -18px;
  left: 32px;
  width: 66px;
  height: 12px;
  background: var(--color-accent);
  opacity: 0.13;
  border-radius: 6px;
  z-index: 0;
  clip-path: polygon(0 0, 95% 0, 100% 70%, 100% 100%, 0 100%);
}

/* Prevent flex overlaps in smaller containers */
@media (max-width: 450px) {
  .container, .content-wrapper, .text-section {
    gap: 7px !important;
  }
  .section, section {
    padding: 12px 3px;
  }
}
