/* ================= CSS RESET & BASE ================== */
html { box-sizing: border-box; }
*, *::before, *::after { box-sizing: inherit; margin: 0; padding: 0; }
html, body { height: 100%; font-size: 16px; }
body {
  min-height: 100vh;
  background: #fff;
  color: #1a2733;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: 0.01em;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: #22507A; text-decoration: none; transition: color 0.2s; }
a:hover, a:focus { color: #6CA8C2; text-decoration: underline; }
ul, ol { margin: 0 0 1em 1.2em; padding: 0; }
li { margin-bottom: 0.5em; }
strong{ font-weight: 600; }

/* ========= BRAND FONTS ========== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  color: #1a2733;
  margin-bottom: 16px;
  letter-spacing: 0.01em;
}
h1 { font-size: 2.75rem; line-height: 1.15; margin-bottom: 24px; }
h2 { font-size: 2rem; line-height: 1.23; margin-bottom: 20px; }
h3 { font-size: 1.3rem; margin-bottom: 12px; }
h4, h5, h6 { font-size: 1.1rem; font-weight: 500; }
p, .text-section p { color: #212b36; margin-bottom: 1.2em; }

/* =========== CONTAINERS & SECTIONS ========== */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: stretch;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(34,80,122,0.06);
}

/* ============= MAIN LAYOUT ============= */
main {
  flex: 1 0 auto;
  width: 100%;
}

/* ========= HEADER & NAVIGATION ========== */
header {
  width: 100%;
  background: #fff;
  box-shadow: 0 2px 14px rgba(34,80,122,0.06);
  position: sticky;
  top: 0;
  z-index: 100;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 24px;
}
header img {
  height: 44px; width: auto;
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}
.main-nav a {
  color: #22507A;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  font-size: 1.05rem;
  padding: 8px 0;
  transition: color 0.2s;
}
.main-nav a:hover, .main-nav a:focus {
  color: #6CA8C2;
}
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  background: #22507A;
  color: #fff;
  border: none;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.08rem;
  border-radius: 28px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(34,80,122,0.08);
  transition: background 0.18s, box-shadow 0.18s, color 0.18s;
  margin-left: 16px;
  outline: none;
  text-align: center;
  min-height: 46px;
  min-width: 180px;
}
.cta-button:hover, .cta-button:focus {
  background: #6CA8C2;
  color: #fff;
  box-shadow: 0 4px 18px rgba(108,168,194,0.08);
  text-decoration: none;
}

/* ========== MOBILE MENU ========== */
.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  font-size: 2rem;
  color: #22507A;
  cursor: pointer;
  margin-left: 16px;
  padding: 8px;
  border-radius: 8px;
  transition: background 0.15s;
  z-index: 1002;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #F5F7FA;
}
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: rgba(34,80,122, 0.06);
  backdrop-filter: blur(2px);
  transform: translateX(100%);
  transition: transform 0.45s cubic-bezier(0.6, 0.04, 0.98, 0.34);
  z-index: 1300;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-end;
  opacity: 0;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: all;
  opacity: 1;
}
.mobile-menu-close {
  background: transparent;
  border: none;
  font-size: 2.1rem;
  color: #22507A;
  margin: 32px 32px 0 0;
  cursor: pointer;
  align-self: flex-end;
  padding: 8px;
  transition: background 0.18s;
  border-radius: 8px;
  z-index: 1310;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #F5F7FA;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 62px 38px 20px 38px;
  width: 88vw;
  max-width: 340px;
  background: #fff;
  box-shadow: -2px 0 18px rgba(34,80,122,0.09);
  min-height: 100vh;
  z-index: 1305;
  align-items: flex-start;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  font-size: 1.13rem;
  color: #22507A;
  padding: 10px 0 10px 6px;
  border-radius: 4px;
  width: 100%;
  transition: background 0.13s, color 0.17s;
  margin-left: 0;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #F5F7FA;
  color: #6CA8C2;
  text-decoration: none;
}

@media (max-width: 1024px) {
  header .container { padding: 0 18px; }
  .main-nav { gap: 10px; }
}
@media (max-width: 900px) {
  .main-nav { gap: 6px; }
  .cta-button { min-width: 110px; font-size: 1rem; }
}
@media (max-width: 850px) {
  .main-nav,
  .cta-button { display: none !important; }
  .mobile-menu-toggle { display: block; }
}

/* ============= GLOBAL FLEX SECTIONS (PATTERNS) ============== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 14px rgba(34,80,122,0.06);
  margin-bottom: 20px;
  position: relative;
  flex: 1 1 220px;
  min-width: 220px;
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: box-shadow 0.2s, transform 0.15s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 6px 26px rgba(108,168,194, 0.13);
  transform: translateY(-2px) scale(1.01);
}
.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;
  justify-content: space-between;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #F5F7FA;
  border-radius: 14px;
  box-shadow: 0 1.5px 10px rgba(34,80,122,0.04);
  margin-bottom: 20px;
  flex: 1 1 250px;
  font-size: 1.13rem;
  color: #1a2733;
  transition: box-shadow 0.16s;
  word-break: break-word;
}
.testimonial-card strong {
  font-size: 1rem;
  color: #22507A;
  margin-left: 6px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* =============== SPECIAL GRIDS AND FEATURE ELEMENTS =============== */
.feature-grid, .pricing-tables {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  align-items: stretch;
}
.feature-grid > div {
  flex: 1 1 240px;
  background: #F5F7FA;
  border-radius: 14px;
  padding: 28px 22px;
  min-width: 220px;
  box-shadow: 0 1.5px 10px rgba(34,80,122,0.04);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  transition: box-shadow 0.2s, transform 0.18s;
}
.feature-grid > div:hover {
  box-shadow: 0 6px 22px rgba(34,80,122, 0.10);
  transform: translateY(-2px) scale(1.01);
}
.feature-grid img {
  width: 36px; height: 36px; margin-bottom: 4px;
}

.pricing-tables {
  gap: 32px;
  margin-bottom: 20px;
  align-items: flex-start;
}
.pricing-tables table {
  border-collapse: collapse;
  min-width: 280px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1.5px 8px rgba(34,80,122,0.05);
  overflow: hidden;
  font-size: 1rem;
}
.pricing-tables th, .pricing-tables td {
  padding: 13px 22px;
  text-align: left;
  border-bottom: 1px solid #F5F7FA;
}
.pricing-tables th {
  background: #F5F7FA;
  color: #22507A;
  font-weight: 600;
}
.pricing-tables tr:last-child td { border-bottom: none; }
.pricing-tables ul {
  margin: 0;
  padding: 14px 0 0 20px;
  list-style: disc;
  font-size: 0.98rem;
  color: #3A4A58;
}

.certifications {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #F5F7FA;
  border-radius: 12px;
  padding: 16px 18px;
  margin-top: 16px;
}
.certifications img { vertical-align: middle; width: 27px; height: 27px; margin-right: 8px; }


/* ============== FOOTER ============== */
footer {
  background: #F5F7FA;
  border-top: 1.5px solid #E9EDEF;
  padding: 0 0 0 0;
  margin-top: 60px;
}
footer .container { padding: 0 20px; }
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  padding: 40px 0 18px 0;
  border-radius: 0;
  box-shadow: none;
}
footer h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
  color: #1a2733;
  letter-spacing: 0.01em;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
footer nav a {
  font-size: 0.99rem;
  color: #22507A;
  font-weight: 500;
  letter-spacing: 0.01em;
  opacity: 0.97;
}
footer nav a:hover, footer nav a:focus {
  color: #6CA8C2;
}
footer p {
  font-size: 0.98rem;
  color: #435267;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
}
footer img {
  display: inline-block;
  width: 18px; height: 18px;
  margin-right: 8px;
  vertical-align: middle;
}
footer .content-wrapper > div { min-width: 215px; }

/* ============= SPECIAL CLASSES & COMPONENTS ============ */
.text-section, .text-section p, .contact-details, .opening-hours, .map-embed {
  font-size: 1.08rem;
  color: #222931;
  margin-bottom: 1.2em;
  word-break: break-word;
}
.opening-hours, .contact-details, .map-embed {
  background: #F5F7FA;
  border-radius: 12px;
  padding: 14px 18px;
  margin: 0 0 16px 0;
}
text-section h2 { margin-top: 32px; }

/* ========== BUTTONS & LINK EFFECTS =========== */
button, .cta-button {
  transition: background 0.17s, color 0.15s, box-shadow 0.13s, transform 0.16s;
  outline: none;
}
button:focus-visible, .cta-button:focus-visible { outline: 2px solid #22507A; }

/* ============ COOKIE CONSENT BANNER ============== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #fff;
  border-top: 1.5px solid #E9EDEF;
  box-shadow: 0 -2px 24px rgba(34,80,122, 0.07);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
  justify-content: center;
  padding: 20px 8vw;
  z-index: 1600;
  font-size: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.33s;
}
.cookie-banner.visible {
  opacity: 1;
  pointer-events: all;
}
.cookie-banner .cookie-text {
  flex: 2 1 320px;
  color: #1a2733;
  text-align: left;
  margin-right: 24px;
}
.cookie-banner .cookie-actions {
  flex: 1 1 auto;
  display: flex;
  gap: 18px;
}
.cookie-banner button {
  padding: 10px 20px;
  border: none;
  border-radius: 16px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  background: #F5F7FA;
  color: #22507A;
  cursor: pointer;
  transition: background 0.14s, color 0.14s;
  box-shadow: 0 1px 4px rgba(34,80,122,0.047);
}
.cookie-banner button.accept {
  background: #22507A;
  color: #fff;
}
.cookie-banner button.accept:focus, .cookie-banner button.accept:hover {
  background: #6CA8C2;
  color: #fff;
}
.cookie-banner button.reject {
  background: #fff;
  color: #22507A;
  border: 1.5px solid #22507A;
}
.cookie-banner button.reject:focus, .cookie-banner button.reject:hover {
  background: #F5F7FA;
  color: #1a2733;
  border-color: #6CA8C2;
}
.cookie-banner button.settings {
  background: #6CA8C2;
  color: #fff;
}
.cookie-banner button.settings:focus, .cookie-banner button.settings:hover {
  background: #22507A;
  color: #fff;
}

/* ========== COOKIE MODAL (Preferences) ========== */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(34,80,122, 0.18);
  z-index: 1700;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.32s;
}
.cookie-modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.cookie-modal {
  position: fixed;
  left: 50%;
  bottom: 6vw;
  transform: translate(-50%, 80px) scale(0.98);
  background: #fff;
  box-shadow: 0 8px 32px rgba(34,80,122, 0.12);
  border-radius: 18px;
  padding: 36px 32px 26px 32px;
  max-width: 430px;
  min-width: 290px;
  width: 92vw;
  z-index: 1800;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s, transform 0.29s, visibility 0.07s;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.cookie-modal.open {
  opacity: 1;
  transform: translate(-50%, 0px) scale(1);
  visibility: visible;
}
.cookie-modal h2{
  font-size:1.25rem; margin-bottom: 8px;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  background: #F5F7FA;
  padding: 10px 16px;
  border-radius: 8px;
  min-height: 36px;
}
.cookie-category label{
  font-size: 1rem;
  color: #1a2733;
}
.cookie-category .toggle {
  display: flex; align-items: center; gap: 8px;
}
.cookie-category input[type=checkbox] { accent-color: #6CA8C2; width: 22px; height: 22px; }
.cookie-category input[type=checkbox][disabled] { opacity: 0.48; }
.cookie-modal .modal-actions {
  display: flex;
  flex-direction: row;
  gap: 16px;
  margin-top: 12px;
  justify-content: flex-end;
}
.cookie-modal button {
  padding: 8px 18px;
  font-size: 1rem;
  border-radius: 16px;
  border: none;
  background: #22507A;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  transition: background 0.16s;
}
.cookie-modal button.close-modal {
  background: #F5F7FA;
  color: #22507A;
  border: 1.5px solid #22507A;
}
.cookie-modal button.close-modal:hover, .cookie-modal button.close-modal:focus {
  background: #6CA8C2;
  color: #fff;
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 1023px) {
  .feature-grid, .pricing-tables { flex-direction: column; gap: 24px 0; }
  .feature-grid > div, .card, .testimonial-card { min-width: unset; }
}
@media (max-width: 900px) {
  .container { max-width: 95vw; }
  .section { padding: 28px 10px; }
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.3rem; }
}
@media (max-width: 768px) {
  .container { padding-left: 10px; padding-right: 10px; }
  .content-wrapper { gap: 16px; }
  .main-nav, .cta-button { display: none !important; }
  header .container { gap: 9px; }
  h1 { font-size: 1.35rem; }
  h2 { font-size: 1.08rem; }
  h3 { font-size: 1.01rem; }
  .feature-grid, .pricing-tables { flex-direction: column; gap: 18px 0; }
  .section { margin-bottom: 38px; padding: 20px 5px; border-radius: 8px; }
  .card, .feature-grid > div, .testimonial-card{ padding: 14px 7px; border-radius: 8px; }
  .testimonials { padding: 12px 0; }
  .text-image-section { flex-direction: column; align-items: flex-start; gap: 18px; }
  .footer .content-wrapper { flex-direction: column; gap: 18px; padding: 24px 0 8px 0; }
  .cookie-banner { flex-direction: column; align-items: flex-start; gap: 16px; padding: 17px 3vw; }
  .cookie-banner .cookie-text { margin-right: 0; font-size: 0.97rem; }
  .cookie-banner .cookie-actions{ flex-direction: row; }
  .cookie-modal { padding: 20px 6px 16px 12px; min-width: 80vw; }
}
@media (max-width: 460px) {
  .container { padding-left: 5px; padding-right: 5px; }
  h1 { font-size: 1.09rem; }
  .cookie-banner { padding: 10px 4px 16px; }
}

/* ================ VISUAL HIERARCHY & SPACING =============== */
.section:not(:last-child) { margin-bottom: 60px; }
.section > *:not(:last-child), .content-wrapper > *:not(:last-child),
.feature-grid > div:not(:last-child), .testimonial-card:not(:last-child) { margin-bottom: 20px; }

/* ================ MICRO-INTERACTIONS =============== */
.cta-button:active { transform: scale(0.97); box-shadow: 0 1px 7px rgba(98,168,194,0.07); }
.card:active, .feature-grid > div:active { transform: scale(0.991); }
.testimonial-card:active { transform: scale(0.99); }
.mobile-nav a:active { background: #E9EDEF; color: #4e749a; }

/* ================ TABLE SPECIALS =============== */
table { width: 100%; background: #fff; border-radius: 10px; border-collapse: collapse; }
thead tr { background: #F5F7FA; }
th, td { font-size: 1.04rem; }
th { color: #22507A; font-weight: 600; padding: 10px 8px; }
td { color: #293950; padding: 10px 8px; }
tr:nth-child(even) td { background: #fafbfc; }

/* ================ FORMS (for future proofing) =============== */
input, textarea, select {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  border: 1.5px solid #E9EDEF;
  border-radius: 12px;
  padding: 12px 15px;
  background: #fff;
  margin-bottom: 16px;
  width: 100%;
  transition: border-color 0.16s, box-shadow 0.14s;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: #6CA8C2;
  box-shadow: 0 2px 10px rgba(108,168,194,0.07);
}
label { font-size: 1rem; font-family: 'Montserrat', Arial, sans-serif; font-weight: 500; color: #1a2733; display: block; margin-bottom: 6px; }

/* ================ UTILITIES =============== */
.gap-8 { gap: 8px !important; }
.gap-16 { gap: 16px !important; }
.gap-24 { gap: 24px !important; }
.mb-0 { margin-bottom: 0 !important; }
.mt-32 { margin-top: 32px !important; }
.text-center { text-align: center; }
.rounded { border-radius: 14px !important; }
.shadowed { box-shadow: 0 1.5px 10px rgba(34,80,122,0.08) !important; }
.bg-accent { background: #F5F7FA !important; }
.color-primary { color: #22507A !important; }

/* =============== ACCESSIBILITY IMPROVEMENTS =============== */
:focus-visible { outline: 2px solid #22507A; outline-offset: 1.5px; }

/* =============== OVERLAY AND Z-INDEX REFINEMENTS ============== */
.mobile-menu, .cookie-banner, .cookie-modal-overlay, .cookie-modal { z-index: 1500; }

/* ---- END ---- */
