/* --- CSS RESET & NORMALIZE --- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body, html { height: 100%; }
body {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  background-color: #F7FAFB;
  color: #244D64;
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
a { color: #244D64; text-decoration: none; transition: color 0.2s; }
a:focus { outline: 2px dashed #244D64; outline-offset: 2px; }
ul, ol { list-style: none; padding-left: 0; }
button { font-family: inherit; background: none; border: none; cursor: pointer; }

/* --- BASE TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #244D64;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: 18px;
  line-height: 1.2;
}
h1 { font-size: 2.375rem; margin-bottom: 24px; }
h2 { font-size: 1.75rem; margin-bottom: 22px; }
h3 { font-size: 1.25rem; margin-bottom: 16px; }
h4, h5, h6 { font-size: 1rem; }
.subheadline { font-family: 'Montserrat', Arial, Helvetica, sans-serif; font-size: 1.1rem; color: #497599; margin-bottom: 24px; }
p { margin-bottom: 16px; color: #244D64; }
strong { font-weight: 600; }

/* --- SPACING SYSTEM --- */
.section {
  background: #fff;
  box-shadow: 0 2px 12px rgba(36,77,100,0.02), 0 1.5px 4px rgba(36,77,100,0.04);
  margin-bottom: 60px;
  padding: 40px 20px;
  border-radius: 18px;
  transition: box-shadow 0.2s;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.card-container,
.category-grid,
.service-list,
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card,
.category-item,
.service-card,
.feature-item {
  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-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 20px;
  background: #F7FAFB;
  border-radius: 14px;
  box-shadow: 0 1px 8px rgba(36, 77, 100, 0.06);
  min-width: 230px; max-width: 350px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.testimonial-card:hover {
  box-shadow: 0 4px 15px rgba(36, 77, 100, 0.13);
  transform: translateY(-3px);
}
.testimonial-name {
  font-weight: 600; color: #244D64; font-size: 1rem;
}
.testimonial-rating {
  color: #FFA638; letter-spacing: 2px; font-size: 1.2rem;
}
.feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-bottom: 16px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: #FAFEFF;
  border-radius: 12px;
  gap: 15px;
  padding: 20px 16px;
  box-shadow: 0 1px 6px rgba(36, 77, 100, 0.04);
  min-width: 180px; max-width: 350px;
}

/* --- BUTTONS --- */
.cta-btn, .section a.cta-btn {
  display: inline-flex;
  align-items: center; justify-content: center;
  background: #244D64;
  color: #fff;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 1.07rem;
  padding: 13px 32px;
  border-radius: 24px;
  box-shadow: 0 2px 8px rgba(36,77,100,0.07);
  transition: background 0.18s, box-shadow 0.22s, transform 0.16s;
  border: 2px solid transparent;
}
.cta-btn:hover, .cta-btn:focus {
  background: #FFA638;
  color: #244D64;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 5px 16px rgba(36,77,100,0.14);
  border-color: #FFA638;
}

/* --- NAVIGATION --- */
header {
  width: 100%;
  background: #fff;
  border-bottom: 1px solid #E6EDF2;
  box-shadow: 0 2px 8px rgba(36, 77, 100, 0.04);
  position: sticky;
  top: 0;
  z-index: 60;
}
header nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  padding: 12px 0;
}
header nav a:not(:first-child) {
  padding: 7px 10px;
  margin-right: 8px;
  border-radius: 6px;
  font-size: 1rem;
  transition: background 0.17s, color 0.17s;
}
header nav a:not(.cta-btn):hover, header nav a:not(.cta-btn):focus {
  background: #F0F7FB;
  color: #244D64;
}
header nav a.cta-btn { margin-left: auto; }
header nav a img { height: 38px; margin-right: 12px; vertical-align: middle; }
.header-logo { margin-right: 24px; }

/* --- BURGER MENU --- */
.mobile-menu-toggle {
  display: none;
  background: #fff;
  color: #244D64;
  font-size: 2rem;
  border-radius: 10px;
  border: none;
  padding: 8px 14px;
  margin-left: auto;
  transition: background 0.13s;
  position: relative;
  z-index: 102;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #EAEFF2;
  color: #FFA638;
}
.mobile-menu {
  position: fixed;
  top: 0; right: 0;
  width: 88vw; max-width: 340px; height: 100vh;
  background: #fff;
  box-shadow: -2px 0 16px rgba(36,77,100,0.07);
  transform: translateX(110%);
  transition: transform 0.31s cubic-bezier(.54,0,.51,1.01);
  z-index: 110;
  display: flex;
  flex-direction: column;
  padding: 0;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2rem;
  color: #244D64;
  background: none; border: none;
  margin: 21px 24px 7px 0;
  cursor: pointer;
  transition: color 0.16s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover { color: #FFA638; }
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 28px 0 0 0;
  padding: 0 18px;
}
.mobile-nav a {
  font-size: 1.05rem;
  color: #244D64;
  padding: 13px 0;
  border-bottom: 1px solid #E6EDF2;
  transition: background 0.15s, color 0.15s;
  border-radius: 7px;
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:focus, .mobile-nav a:hover {
  color: #FFA638;
  background: #F8F2EB;
}

/* --- MAIN SECTION CARDS & GRIDS --- */
.service-list, .feature-grid {
  gap: 28px;
  flex-wrap: wrap;
}
.service-card {
  background: #F7FAFB;
  border: 1px solid #E6EDF2;
  border-radius: 15px;
  box-shadow: 0 1px 6px rgba(36, 77, 100, 0.03);
  padding: 24px 18px 22px 18px;
  flex: 1 1 220px;
  min-width: 220px;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  transition: box-shadow 0.18s, border 0.18s, transform 0.16s;
}
.service-card:hover {
  border-color: #FFA638;
  box-shadow: 0 3px 14px rgba(255,166,56,0.10);
  transform: translateY(-3px);
}
.service-card img { height: 42px; margin-bottom: 8px; }
.service-card h3 { font-size: 1.17rem; color: #244D64; }
.service-card p { color: #335471; font-size: 1rem; }
.service-card a { color: #244D64; font-weight: 600; text-decoration: underline; margin-top: 3px; transition: color 0.16s; font-size: 0.98rem; }
.service-card a:hover { color: #FFA638; }
.service-price { font-size: 1.12rem; color: #FFA638; font-weight: 600; margin-top: 5px; }

.category-grid {
  gap: 24px;
  flex-wrap: wrap;
}
.category-item {
  background: #FAFEFF;
  border-radius: 15px;
  box-shadow: 0 1px 6px rgba(36, 77, 100, 0.04);
  padding: 22px 16px;
  flex: 1 1 200px;
  min-width: 180px;
  max-width: 330px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 13px;
  transition: box-shadow 0.16s, background 0.16s, transform 0.12s;
}
.category-item:hover {
  background: #F1FBFF;
  box-shadow: 0 2px 10px rgba(36,77,100,0.08);
  transform: translateY(-2px) scale(1.02);
}
.category-item img { height: 40px; }
.category-item h3 { color: #244D64; font-size: 1.08rem; }
.category-item p { color: #497599; font-size: 0.98rem; }

/* --- CONTACT & FOOTER --- */
footer {
  width: 100%; background: #FAFEFF; border-top: 1px solid #E6EDF2; margin-top: 40px;
}
footer .container {
  display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 36px 14px 28px 14px;
}
footer nav {
  display: flex; gap: 18px; flex-wrap: wrap;
}
footer nav a {
  font-size: 0.97rem; color: #497599; border-radius: 5px; padding: 3px 8px; transition: background 0.18s, color 0.16s;
}
footer nav a:focus,footer nav a:hover { color: #244D64; background: #F0F7FB; }
footer img { height: 37px; margin-bottom: 10px; }
footer p, footer small { color: #497599; font-size: 0.97rem; text-align: center; }
footer small { font-size: 0.93rem; }

/* --- ADDITIONAL SECTIONS --- */
.contact-info {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-bottom: 14px;
  align-items: flex-start;
}
.text-section { flex: 1 1 230px; max-width: 305px; }
.map-location {
  background: #FAFEFF;
  border-radius: 12px;
  padding: 18px 14px;
  color: #244D64;
  margin-bottom: 18px;
}
.tutorial-links { margin-top: 14px; }
.tutorial-links ul { display: flex; flex-direction:column; gap: 4px; }
.tutorial-links li a { color: #244D64; text-decoration: underline dotted; font-weight: 500; }
.tutorial-links li a:hover { color: #FFA638; }

/* --- LIST ELEMENTS WITH ICONS --- */
ul li, .section ul li {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 13px; color: #244D64; font-size: 1rem;
}
ul li img {
  height: 29px;
  width: 29px;
  min-width: 29px;
  margin-right: 1px;
  background: #E6EDF2;
  border-radius: 50%;
  padding: 4px;
}

/* --- COOKIE BANNER & MODAL --- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 1300;
  display: flex;
  justify-content: center;
  background: #fff;
  box-shadow: 0 -3px 24px rgba(36,77,100,0.13);
  padding: 28px 12px 21px 12px;
  border-top: 1.5px solid #E6EDF2;
  animation: cookieSlideUp 0.4s cubic-bezier(.19,1,.22,1);
}
@keyframes cookieSlideUp {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-banner-content {
  display: flex;
  flex-direction: column;
  gap: 11px;
  max-width: 500px;
  color: #244D64;
  align-items: flex-start;
}
.cookie-actions {
  display: flex; gap: 15px; flex-wrap: wrap;
}
.cookie-btn, .cookie-banner .cta-btn {
  background: #244D64;
  color: #fff;
  border-radius: 20px;
  padding: 8px 26px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  border: none;
  font-weight: 600;
  margin-top: 3px;
  cursor: pointer;
  transition: background 0.16s, color 0.16s, box-shadow 0.18s;
  box-shadow: 0 1px 5px rgba(36,77,100,0.04);
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #FFA638;
  color: #244D64;
  outline: none;
}
.cookie-btn--secondary {
  background: #F7FAFB;
  color: #244D64;
  border: 1.1px solid #244D64;
}
.cookie-btn--secondary:hover, .cookie-btn--secondary:focus {
  background: #FFA638;
  color: #244D64;
  border-color: #FFA638;
}

/* --- COOKIE MODAL --- */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom:0;
  background: rgba(36,77,100,0.27);
  z-index: 1400;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: modalOverlayIn 0.26s cubic-bezier(.43,0,.62,1);
}
@keyframes modalOverlayIn {
  from { opacity: 0; } to { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  border-radius: 17px;
  max-width: 380px;
  width: 96vw;
  padding: 33px 22px 21px 22px;
  box-shadow: 0 6px 28px rgba(36,77,100,0.19);
  animation: modalIn 0.35s cubic-bezier(.19,1,.22,1);
  display: flex;
  flex-direction: column;
  gap: 19px;
  position: relative;
}
@keyframes modalIn {
  from { transform: translateY(36px) scale(0.94); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}
.cookie-modal-close {
  position: absolute; top: 15px; right: 14px;
  font-size: 1.5rem; color: #244D64;
  background: none; border: none; cursor: pointer; transition: color 0.16s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus { color: #FFA638; }
.cookie-settings-section {
  display: flex; flex-direction: column; gap: 13px; margin: 14px 0 10px 0;
}
.cookie-setting-row {
  display: flex; align-items: center;
  gap: 18px;
  background: #F7FAFB;
  padding: 10px 0 10px 10px;
  border-radius: 12px;
}
.cookie-setting-row label {
  font-weight: 600; color: #244D64;
  flex-grow: 1;
}
.cookie-switch {
  width: 42px; height: 24px; position: relative; display: inline-block;
}
.cookie-switch input { opacity: 0; width: 0; height: 0; }
.cookie-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #BFCFD6;
  border-radius: 20px;
  transition: background-color 0.16s;
}
.cookie-switch input:checked + .cookie-slider { background-color: #244D64; }
.cookie-slider::before {
  content: "";
  position: absolute;
  height: 18px; width: 18px;
  left: 3px; bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.19s;
  box-shadow: 0 1px 2px rgba(36,77,100,.14);
}
.cookie-switch input:checked + .cookie-slider::before {
  transform: translateX(18px);
}
.cookie-setting-disabled {
  opacity: 0.7;
  pointer-events: none;
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 1200px) {
  .container { max-width: 97vw; }
  .service-card, .category-item, .feature-item { min-width: 170px; max-width: 95vw; }
}
@media (max-width: 900px) {
  .service-list, .category-grid, .feature-list, .feature-grid, .testimonial-list, .card-container {
    flex-direction: column;
    gap: 23px;
    align-items: stretch;
  }
  .service-card, .category-item, .feature-item { width: 100%; min-width: 0; max-width: 100%; }
  .testimonial-list { flex-direction: column; }
  .content-grid { flex-direction: column; gap: 19px; }
  .footer .container { gap: 9px; }
}
@media (max-width: 768px) {
  .section { padding: 30px 7px; margin-bottom: 42px; border-radius: 11px; }
  .container { padding: 0 7px; }
  .text-image-section { flex-direction: column; gap: 18px; align-items: flex-start; }
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .footer .container { flex-direction: column; align-items: center; padding: 26px 8px 19px 8px; }
}
@media (max-width: 530px) {
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.1rem; }
  .section { padding: 20px 3px; margin-bottom: 23px; border-radius: 8px; }
  .service-card, .category-item, .feature-item,  .testimonial-card { padding: 12px 7px; border-radius: 8px; }
}

/* --- MICROINTERACTIONS & TRANSITIONS --- */
.card, .service-card, .category-item, .feature-item, .testimonial-card {
  transition: box-shadow 0.16s, transform 0.16s, background 0.13s;
}
.card:hover, .service-card:hover, .category-item:hover, .feature-item:hover {
  box-shadow: 0 5px 14px rgba(36,77,100,0.10);
  transform: translateY(-2px) scale(1.01);
}

/* --- ACCESSIBILITY FOCUS --- */
a:focus, button:focus, .cta-btn:focus, .cookie-btn:focus {
  outline: 2px dashed #FFA638;
  outline-offset: 3px;
}

/* --- UTILITIES --- */
.hide { display: none !important; }
.visible { display: block !important; }

/* --- END OF STYLE.CSS --- */