/* --- CSS RESET & NORMALIZE (mobile-first, flexbox-based) --- */
html {
  box-sizing: border-box;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  background: #F2F4F8;
  color: #233554;
  min-height: 100vh;
  line-height: 1.6;
  letter-spacing: 0.01em;
  scroll-behavior: smooth;
}
img, svg {
  max-width: 100%;
  display: block;
}
a {
  color: #5DBAC8;
  text-decoration: none;
  transition: color 0.2s;
  word-break: break-word;
}
a:hover, a:focus {
  color: #233554;
}
ul,ol {
  margin-left: 1.5em;
  margin-bottom: 1.2em;
}
li {
  margin-bottom: 0.5em;
}
button, input, textarea, select {
  font: inherit;
  color: inherit;
  outline: none;
}
button {
  cursor: pointer;
  border: none;
  background: none;
}
h1, h2, h3, h4, h5 {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  color: #233554;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.2;
}
h1 { font-size: 2.25rem; margin-bottom: 20px; }
h2 { font-size: 1.7rem; margin-bottom: 18px; }
h3 { font-size: 1.25rem; margin-bottom: 12px; }
h4 { font-size: 1.05rem; margin-bottom: 8px; }

/* --- LAYOUT CONTAINERS --- */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 3px 18px rgba(35,53,84,0.07);
}
@media (max-width:768px) {
  .container { padding: 0 10px; }
  .section { margin-bottom: 40px; padding: 24px 10px; }
  .content-wrapper { gap: 22px; }
}

/* --- HEADER & NAVIGATION --- */
header {
  background: #fff;
  border-bottom: 1px solid #E3E7EF;
  position: relative;
  z-index: 50;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 16px 20px;
  gap: 12px;
}
header nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
header nav a {
  font-family: 'Montserrat', 'Open Sans', sans-serif;
  font-weight: 500;
  font-size: 1rem;
  color: #233554;
  padding: 6px 8px;
  position: relative;
  transition: color 0.18s;
}
header nav a:hover, header nav a:focus {
  color: #5DBAC8;
}
.cta-primary {
  background: #233554;
  color: #fff;
  border-radius: 6px;
  padding: 10px 26px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.02em;
  margin-left: 12px;
  box-shadow: 0 2px 8px rgba(35,53,84,0.09);
  transition: background 0.18s, box-shadow 0.22s;
}
.cta-primary:hover, .cta-primary:focus {
  background: #5DBAC8;
  color: #fff;
  box-shadow: 0 4px 14px rgba(93,186,200,0.13);
}
.cta-secondary {
  background: #5DBAC8;
  color: #fff;
  border-radius: 6px;
  padding: 10px 24px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.02em;
  margin-top: 8px;
  border: 1px solid #5DBAC8;
  transition: background 0.2s, color 0.2s, border 0.2s, box-shadow 0.23s;
}
.cta-secondary:hover, .cta-secondary:focus {
  background: #fff;
  color: #233554;
  border: 1px solid #233554;
  box-shadow: 0 4px 14px rgba(35,53,84,0.10);
}

/* --- MOBILE BURGER MENU --- */
.mobile-menu-toggle {
  display: none;
  background: #5DBAC8;
  border-radius: 5px;
  color: #fff;
  font-size: 2rem;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  margin-left: 12px;
  transition: background 0.18s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #233554;
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(35,53,84,0.97);
  z-index: 2000;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.77, 0.2, 0.05, 1.0);
  display: flex;
  flex-direction: column;
  padding: 0 0 0 0;
  justify-content: flex-start;
}
.mobile-menu.active { transform: translateX(0); }

.mobile-menu-close {
  font-size: 2rem;
  color: #fff;
  background: none;
  align-self: flex-end;
  margin: 24px 24px 0 0;
  border-radius: 4px;
  transition: background 0.18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #5DBAC8;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin: 60px 0 0 38px;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Montserrat', 'Open Sans', sans-serif;
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 10px 0;
  transition: color 0.18s, text-decoration 0.18s;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  color: #5DBAC8;
}
@media (max-width: 1120px) {
  header .container { padding-left: 8px; padding-right: 8px; }
}
@media (max-width: 900px) {
  header nav { gap: 18px; }
}
@media (max-width: 900px) {
  header nav { gap: 12px; }
}
@media (max-width: 820px) {
  header .cta-primary { padding: 10px 14px; margin-left: 0; }
}
@media (max-width: 768px) {
  header nav, .cta-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
    z-index: 1001;
  }
  header .container {
    justify-content: space-between; gap:14px;
  }
  .mobile-menu { display: flex; }
}

/* --- HERO SECTION --- */
.hero {
  background: #233554;
  color: #fff;
  border-radius: 0 0 20px 20px;
  margin-bottom: 48px;
  box-shadow: 0 8px 24px rgba(35,53,84,0.10);
  min-height: 220px;
}
.hero .container { padding-top: 62px; padding-bottom: 58px; }
.hero .content-wrapper { align-items: flex-start; max-width: 700px; gap: 18px; }
.hero h1 {
  color: #fff;
  margin-bottom: 10px;
}
.hero p {
  font-size: 1.175rem;
  color: #F2F4F8;
  margin-bottom: 20px;
}
.hero .cta-primary {
  background: #5DBAC8;
  color: #233554;
}
.hero .cta-primary:hover, .hero .cta-primary:focus {
  background: #fff;
  color: #233554;
}
@media (max-width: 768px) {
  .hero { min-height: 130px; margin-bottom: 30px; border-radius: 0 0 12px 12px; }
  .hero .container { padding-top: 36px; padding-bottom: 28px; }
  .hero .content-wrapper { gap: 12px; }
  .hero p { font-size: 1rem; }
}

/* --- FEATURE GRID (used as ul.feature-grid) --- */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 16px;
  margin-bottom: 0;
  list-style: none;
  justify-content: flex-start;
}
.feature-grid li {
  flex: 1 1 210px;
  min-width: 210px;
  max-width: 320px;
  background: #F2F4F8;
  border-radius: 10px;
  padding: 24px 22px 22px 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  box-shadow: 0 2px 8px rgba(35,53,84,0.05);
  transition: box-shadow 0.22s, transform 0.18s;
}
.feature-grid li:hover, .feature-grid li:focus {
  box-shadow: 0 6px 18px rgba(35,53,84,0.13);
  transform: translateY(-2px) scale(1.015);
}
.feature-grid img { width: 38px; height: 38px; margin-bottom: 5px; }
.feature-grid h3 {
  color: #233554;
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 4px;
}
.feature-grid p {
  color: #466187;
  font-size: .98rem;
}
@media (max-width: 900px) {
  .feature-grid { gap: 14px; }
  .feature-grid li { padding: 16px 10px; min-width: 140px; }
}
@media (max-width: 768px) {
  .feature-grid { flex-direction: column; gap: 16px; }
  .feature-grid li { width: 100%; min-width: 0; max-width: 100%; }
}

/* --- SERVICES LIST (ul.service-list) --- */
.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  list-style: none;
  margin-bottom: 15px;
}
.service-list li {
  flex: 1 1 220px;
  min-width: 220px; max-width: 340px;
  background: #fff;
  border-radius: 10px;
  padding: 22px 20px 18px 20px;
  display: flex; flex-direction: column; align-items: flex-start;
  box-shadow: 0 2px 8px rgba(35,53,84,0.05);
  margin-bottom: 0;
  transition: box-shadow 0.22s, transform 0.18s;
}
.service-list li:hover, .service-list li:focus {
  box-shadow: 0 6px 18px rgba(35,53,84,0.13);
  transform: translateY(-2px) scale(1.012);
}
.service-list h3 {
  color: #5DBAC8;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 1.09rem;
}
.service-list p {
  color: #233554;
  font-size: .98rem;
}
@media (max-width: 768px) {
  .service-list { flex-direction: column; gap: 14px; }
  .service-list li { min-width: 0; max-width: 100%; }
}

/* --- TESTIMONIAL CARD --- */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #F2F4F8;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 7px rgba(35,53,84,0.08);
  transition: box-shadow 0.2s, background 0.18s;
}
.testimonial-card p {
  color: #233554;
  font-size: 1.07rem;
  flex: 1;
  margin-bottom: 0;
}
.testimonial-card strong {
  color: #5DBAC8;
  font-weight: 600;
  font-size: 1.04rem;
}
.testimonial-card > div {
  min-width: 130px;
  color: #466187;
  font-size: 0.98rem;
  line-height: 1.3;
}
.testimonial-card:hover, .testimonial-card:focus {
  box-shadow: 0 8px 22px rgba(93,186,200,0.14);
  background: #e6eef4;
}
@media (max-width: 768px) {
  .testimonial-card { flex-direction: column; gap: 8px; align-items: flex-start; }
  .testimonial-card > div { min-width: 0; }
}

/* --- CARD CONTAINER --- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card { margin-bottom: 20px; position: relative; }

/* --- GENERAL FLEX SECTION/TEXT-IMAGE SECTION --- */
.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) {
  .content-grid, .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
}

/* --- TEXT SECTION (about/company/contact blocks) --- */
.text-section {
  background: #F2F4F8;
  border-radius: 10px;
  padding: 22px 20px;
  margin-bottom: 20px;
  box-shadow: 0 1px 6px rgba(35,53,84,0.04);
}
.text-section ul, .text-section ol {
  margin-bottom: 0.2em;
}
.text-section h3 {
  font-size: 1.12rem;
  color: #5DBAC8;
  margin-bottom: 6px;
}

/* --- TEAM LIST --- */
.team-list {
  margin-top: 12px;
  padding-left: 1em;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

/* --- PRICING TABLE (TABLES) --- */
.pricing-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  box-shadow: 0 1px 8px rgba(35,53,84,0.08);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 16px;
}
.pricing-table th, .pricing-table td {
  padding: 14px 12px;
  border-bottom: 1px solid #E3E7EF;
  font-size: 1rem;
  text-align: left;
}
.pricing-table th {
  background: #5DBAC8;
  color: #fff;
  letter-spacing: 0.01em;
  font-weight: 700;
}
.pricing-table tr:last-child td {
  border-bottom: none;
}
@media (max-width: 600px) {
  .pricing-table th, .pricing-table td { font-size: 0.97rem; padding: 10px 7px; }
}

/* --- BUTTONS --- */
button, .cta-primary, .cta-secondary {
  cursor: pointer;
  transition: background 0.18s, color 0.18s, box-shadow 0.20s;
}
button:active, .cta-primary:active, .cta-secondary:active {
  transform: scale(0.98);
}

/* --- FOOTER --- */
footer {
  background: #233554;
  color: #fff;
  margin-top: 42px;
  padding: 38px 0 23px 0;
}
footer .container {
  display: flex;
  flex-direction: row;
  gap: 28px;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
footer nav a {
  color: #5DBAC8;
  font-size: 1rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  margin-bottom: 3px;
  transition: color 0.18s;
}
footer nav a:hover, footer nav a:focus {
  color: #fff;
  text-decoration: underline;
}
.social-links {
  display: flex;
  flex-direction: row;
  gap: 18px;
  align-items: center;
}
.social-links a {
  display: flex;
  background: #5DBAC8;
  border-radius: 50%;
  width: 36px; height: 36px;
  align-items: center; justify-content: center;
  transition: background 0.18s, transform 0.16s;
}
.social-links a:hover, .social-links a:focus {
  background: #fff;
  transform: scale(1.08);
}
.social-links img {
  width: 22px; height: 22px;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: #CCE3EF;
  font-size: .98rem;
}
.footer-contact address,
.footer-contact span {
  color: #CCE3EF;
  font-style: normal;
}
@media (max-width: 850px) {
  footer .container {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 0 10px;
  }
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 4000;
  background: #233554;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 20px 8vw 20px 8vw;
  box-shadow: 0 -2px 18px rgba(35,53,84,0.13);
  transition: transform 0.32s;
}
.cookie-banner.hide {
  transform: translateY(120%);
}
.cookie-banner__text {
  font-size: 1.02rem;
  margin-right: 18px;
}
.cookie-banner__actions {
  display: flex;
  flex-direction: row;
  gap: 12px;
}
.cookie-btn {
  border-radius: 5px;
  border: none;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.98rem;
  font-weight: 600;
  padding: 9px 20px;
  color: #fff;
  background: #5DBAC8;
  box-shadow: 0 2px 5px rgba(93,186,200,0.10);
  transition: background 0.18s, color 0.18s;
}
.cookie-btn.settings {
  background: none;
  color: #5DBAC8;
  border: 1px solid #5DBAC8;
}
.cookie-btn.reject {
  background: #7C8CBD;
  color: #fff;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #5DBAC8;
  color: #fff;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #233554;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #233554;
  color: #fff;
}
@media (max-width: 650px) {
  .cookie-banner { flex-direction: column; align-items: flex-start; gap: 12px; padding: 18px 5vw; }
  .cookie-banner__text { margin-right: 0; margin-bottom: 0.6em; }
}

/* --- COOKIE MODAL POPUP --- */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right:0; bottom:0;
  background: rgba(35,53,84,0.80);
  z-index: 4100;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cookie-modal {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(35,53,84,0.13);
  padding: 32px 28px 20px 28px;
  width: 97vw;
  max-width: 410px;
  color: #233554;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
}
.cookie-modal h2 {
  color: #233554;
  font-size: 1.2rem;
  margin-bottom: 10px;
}
.cookie-modal ul {
  margin-bottom: 0.5em;
  list-style: none;
  padding-left: 0;
  gap: 0;
}
.cookie-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.cookie-toggle-text {
  font-size: 1rem;
}
.cookie-toggle-switch {
  width: 39px;
  height: 22px;
  background: #E3E7EF;
  border-radius: 14px;
  position: relative;
  transition: background 0.13s;
  display: flex;
  align-items: center;
}
.cookie-toggle-switch[data-checked="true"] {
  background: #5DBAC8;
}
.cookie-toggle-slider {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #fff;
  position: absolute;
  left: 2px; top: 2px;
  transition: left 0.18s;
}
.cookie-toggle-switch[data-checked="true"] .cookie-toggle-slider {
  left: 19px;
}
.cookie-modal-actions {
  display: flex;
  gap: 14px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.cookie-modal .modal-close {
  position: absolute;
  right: 13px;
  top: 12px;
  font-size: 1.37rem;
  color: #233554;
  background: none;
  border-radius: 3px;
  transition: background 0.2s;
}
.cookie-modal .modal-close:hover, .cookie-modal .modal-close:focus {
  background: #5DBAC8;
  color: #fff;
}
@media (max-width: 530px) {
  .cookie-modal { padding: 22px 7px 16px 7px; }
}

/* --- SPACING: CARDS / FLEXBOX GAPS (MANDATORY) --- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
}
.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;
  align-items: center;
  gap: 20px;
  padding: 20px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* --- FORM ELEMENTS (contact forms, not present but future proofed)--- */
input[type="text"],
input[type="email"],
input[type="number"],
input[type="tel"],
textarea {
  border: 1px solid #E3E7EF;
  border-radius: 6px;
  background: #fff;
  padding: 10px 12px;
  font-size: 1rem;
  color: #233554;
  margin-bottom: 12px;
  transition: border 0.15s;
}
input:focus, textarea:focus {
  border: 1.5px solid #5DBAC8;
}
::placeholder { color: #A5B4C1; }

/* --- ANIMATIONS & MICRO-INTERACTIONS --- */
.section, .testimonial-card, .feature-grid li, .service-list li, .text-section, .card, .cookie-banner, .cookie-modal {
  transition: box-shadow 0.2s, background 0.2s, transform 0.18s;
}

/* --- GENERAL UTILITIES --- */
.hide { display: none !important; }
.text-center { text-align: center !important; }
.mt-2 { margin-top: 12px; }

/* --- RESPONSIVITY: FONT & FLEX ALIGNMENTS --- */
@media (max-width: 600px) {
  h1 { font-size: 1.37rem; }
  h2 { font-size: 1.09rem; }
}

/* --- Z-INDEX --- */
header { z-index: 50; }
.mobile-menu { z-index: 2000; }
.cookie-banner { z-index: 4000; }
.cookie-modal-overlay { z-index: 4100; }

/* --- SCROLLBAR (professional touch) --- */
::-webkit-scrollbar { width: 9px; background: #e7e7e7; }
::-webkit-scrollbar-thumb { background: #c0cedb; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: #5DBAC8; }

/* --- ACCESSIBILITY: FOCUS STATES --- */
a:focus, button:focus, .cta-primary:focus, .cta-secondary:focus {
  outline: 2px solid #5DBAC8;
  outline-offset: 2px;
}

/* --- PRINT OPTIMIZATION --- */
@media print {
  header, footer, .cookie-banner, .mobile-menu { display: none !important; }
  .container, .section { box-shadow: none !important; background: #fff !important; }
}
