/* ==================== CSS RESET & BASE ==================== */
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  min-height: 100vh;
  background: #F5F7FA;
  color: #243447;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: #13636a;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover,
a:focus {
  color: #1A97A2;
  text-decoration: underline;
}
ul, ol {
  margin-left: 1.25rem;
}
button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: transparent;
  border: none;
}
button:focus, input:focus, textarea:focus, select:focus {
  outline: 2px solid #13636a;
  outline-offset: 2px;
}

/* ==================== CONTAINERS & LAYOUTS ==================== */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(36, 52, 71, 0.03);
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

/* Feature/Service/Card containers */
.card-container,
.feature-grid,
.blog-posts,
.case-studies-list,
.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 24px;
}

.card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(36,52,71,0.07);
  margin-bottom: 20px;
  position: relative;
  padding: 24px;
  transition: box-shadow 0.18s;
}
.card:hover { box-shadow: 0 6px 20px rgba(20,80,120,0.11); }

.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;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 24px 28px;
  border-radius: 12px;
  background: #F5F7FA;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(36,52,71,0.06);
  transition: box-shadow 0.18s;
  border-left: 5px solid #13636a;
}
.testimonial-card:hover {
  box-shadow: 0 8px 24px rgba(20,80,120,0.11);
}
.testimonial-card blockquote {
  color: #243447;
  font-size: 1.125rem;
  font-style: italic;
  margin-bottom: 8px;
}
.testimonial-card footer span {
  font-weight: 600;
  color: #13636a;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #F5F7FA;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 7px rgba(36,52,71,0.05);
}

/* Features as icon + text blocks */
.feature-grid li, .service-list li, .case-studies-list li, .blog-posts li {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(36,52,71,0.06);
  padding: 24px 22px;
  min-width: 230px;
  flex: 1 1 calc(33% - 24px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
  transition: box-shadow 0.18s, transform 0.18s;
}
.feature-grid li img, .service-list li img, .case-studies-list li img {
  width: 40px;
  height: 40px;
}
.feature-grid li:hover, .service-list li:hover, .blog-posts li:hover {
  box-shadow: 0 8px 24px rgba(36,52,71,0.10);
  transform: translateY(-2px) scale(1.012);
}

/* ========== TYPOGRAPHY / HEADINGS =========== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Open Sans', Arial, Helvetica, sans-serif;
  font-weight: 700;
  color: #243447;
}
h1 {
  font-size: 2.375rem;
  margin-bottom: 16px;
  letter-spacing: -1px;
}
h2 {
  font-size: 1.75rem;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}
h4 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}
.subheadline {
  color: #526377;
  font-size: 1.13rem;
  margin-bottom: 12px;
}
.text-section ul {
  list-style: disc inside;
  margin-bottom: 20px;
  margin-top: 8px;
  padding-left: 16px;
}
.text-section li {
  margin-bottom: 10px;
  color: #243447;
}
.text-section p, .text-section a {
  font-size: 1rem;
  color: #243447;
}
.price {
  font-size: 1.05rem;
  color: #1A97A2;
  font-weight: 600;
  margin-top: 8px;
}

/* ========== HEADER & NAVIGATION ========== */
header {
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(36,52,71,0.06);
  position: sticky;
  top: 0;
  z-index: 1000;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 32px;
}
header img {
  height: 38px;
  width: auto;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.main-nav a {
  font-family: 'Montserrat', 'Open Sans', Arial, Helvetica, sans-serif;
  font-weight: 500;
  color: #243447;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-bottom 0.2s;
  font-size: 1rem;
  letter-spacing: 0.02em;
}
.main-nav a:hover,
.main-nav a:focus {
  color: #13636a;
  border-bottom: 2px solid #1A97A2;
}

.cta-btn {
  background: #13636a;
  color: #fff;
  border-radius: 7px;
  padding: 13px 28px;
  font-family: 'Montserrat', 'Open Sans', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  box-shadow: 0 2px 7px rgba(16,87,97,0.09);
  letter-spacing: 0.03em;
  border: none;
  cursor: pointer;
  margin-left: 12px;
  transition: background 0.18s, color 0.18s, transform 0.13s;
  display: inline-block;
}
.cta-btn:hover, .cta-btn:focus {
  background: #1A97A2;
  color: #fff;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 4px 18px rgba(20,50,90,0.13);
  text-decoration: none;
}

/* ========== FOOTER ========== */
footer {
  background: #243447;
  color: #fff;
  padding: 32px 0 10px 0;
  margin-top: 60px;
}
footer .container {
  flex-direction: row;
  align-items: center;
  gap: 32px;
}
footer a {
  color: #F5F7FA;
  transition: color 0.2s;
}
footer a:hover, footer a:focus {
  color: #1A97A2;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-left: 24px;
}
footer p {
  margin-left: auto;
  font-size: 0.98rem;
  color: #c8d0d9;
}

/* ========== BLOG/BUTTON STYLES ========== */
.blog-cta {
  background: none;
  display: inline-block;
  color: #13636a;
  font-weight: 600;
  font-family: 'Montserrat', 'Open Sans', Arial, Helvetica, sans-serif;
  transition: color 0.18s;
  margin-top: 6px;
}
.blog-cta:hover, .blog-cta:focus {
  color: #1A97A2;
}

/* ========== MAP/EMBEDDED SECTION ========== */
.map-embed {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
  padding: 18px 0;
}
.map-embed img {
  border-radius: 8px;
  background: #F5F7FA;
  width: 80px;
  height: 80px;
  box-shadow: 0 2px 7px rgba(36,52,71,0.03);
}

/* ========== RESPONSIVE STYLES ========== */
@media (max-width: 1100px) {
  .container {
    max-width: 97vw;
  }
}
@media (max-width: 920px) {
  .main-nav {
    gap: 18px;
  }
  .footer-nav {
    gap: 10px;
  }
  .content-wrapper, .container {
    padding-left: 10px;
    padding-right: 10px;
  }
}
@media (max-width: 768px) {
  .section {
    padding: 28px 5px;
    margin-bottom: 32px;
  }
  header .container, footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    min-height: unset;
  }
  .main-nav {
    display: none;
  }
  footer .container {
    gap: 10px;
    padding: 0 12px;
  }
  .footer-nav {
    margin-left: 0;
    margin-top: 12px;
    gap: 9px;
  }
  .content-wrapper {
    gap: 18px;
  }
  .feature-grid,
  .service-list,
  .blog-posts,
  .case-studies-list {
    flex-direction: column;
    gap: 18px;
  }
  .feature-grid li,
  .service-list li,
  .blog-posts li,
  .case-studies-list li {
    min-width: 0;
    width: 100%;
    flex: 1 1 100%;
    padding: 17px 13px;
  }
  .map-embed {
    flex-direction: column;
    gap: 7px;
    align-items: flex-start;
  }
  h1 { font-size: 1.68rem; }
  h2 { font-size: 1.25rem; }
}
@media (max-width: 520px) {
  .container {
    padding-left: 3px;
    padding-right: 3px;
  }
  .section {
    border-radius: 0;
    padding: 12px 2px;
  }
}

/* ========== MOBILE NAVIGATION (BURGER MENU) ========== */
.mobile-menu-toggle {
  display: none;
  background: #13636a;
  color: #fff;
  border-radius: 6px;
  padding: 9px 16px;
  font-size: 1.35rem;
  font-weight: 700;
  border: none;
  margin-left: auto;
  cursor: pointer;
  transition: background 0.18s;
  z-index: 2001;
}
.mobile-menu-toggle:focus {
  outline: 2px solid #1A97A2;
}
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
  }
  .cta-btn {
    margin-left: 0;
  }
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw; height: 100vh;
  background: #243447;
  z-index: 2000;
  transform: translateX(100%);
  transition: transform 0.33s cubic-bezier(0.79,0,0.01,1);
  padding: 0 0 0 0;
  box-shadow: -8px 0 16px rgba(36,52,71,0.11);
  visibility: hidden;
}
.mobile-menu.open {
  visibility: visible;
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 18px 18px 0 0;
  font-size: 2.0rem;
  background: none;
  color: #F5F7FA;
  border-radius: 7px;
  cursor: pointer;
  border: none;
  transition: background 0.16s;
  z-index: 2002;
  padding: 0 10px;
}
.mobile-menu-close:focus {
  outline: 2px solid #1A97A2;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  width: 100%;
  margin: 24px 0 0 40px;
  z-index: 2001;
}
.mobile-nav a {
  font-family: 'Montserrat', 'Open Sans', Arial, Helvetica, sans-serif;
  color: #F5F7FA;
  font-weight: 500;
  font-size: 1.25rem;
  padding: 11px 0;
  border-bottom: 2px solid transparent;
  border-radius: 3px;
  width: 100%;
  transition: color 0.22s, background 0.16s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #1A97A2;
  background: rgba(19,99,106,0.09);
}
@media (min-width: 769px) {
  .mobile-menu {
    display: none !important;
  }
}

/* ========== COOKIE CONSENT BANNER ========== */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  width: 100%;
  z-index: 3000;
  background: #243447;
  color: #fff;
  box-shadow: 0 -2px 18px rgba(36,52,71,0.13);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  gap: 18px;
  font-size: 1rem;
  animation: slideUpBanner 0.45s; 
}
@keyframes slideUpBanner {
  from { transform: translateY(100%); opacity:0; }
  to { transform: translateY(0); opacity:1; }
}
.cookie-banner__text {
  flex: 1 1 100%;
  color: #fff;
  font-size: 1rem;
  margin-right: 24px;
}
.cookie-banner__buttons {
  display: flex;
  flex-direction: row;
  gap: 14px;
}
.cookie-btn {
  padding: 8px 22px;
  border-radius: 6px;
  border: none;
  font-family: 'Montserrat', 'Open Sans', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.17s, color 0.17s;
}
.cookie-accept {
  background: #13636a;
  color: #fff;
}
.cookie-accept:hover, .cookie-accept:focus {
  background: #1A97A2;
}
.cookie-reject {
  background: #f5f7fa;
  color: #243447;
}
.cookie-reject:hover, .cookie-reject:focus {
  background: #ededf3;
  color: #1A97A2;
}
.cookie-settings {
  background: none;
  border: 1px solid #fff;
  color: #fff;
}
.cookie-settings:hover, .cookie-settings:focus {
  background: #1A97A2;
  border: 1px solid #1A97A2;
}
@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
    padding: 16px 8px 12px 8px;
  }
  .cookie-banner__buttons {
    gap: 9px;
  }
}

/* COOKIE PREFERENCES MODAL */
.cookie-modal-backdrop {
  position: fixed;
  z-index: 3010;
  inset: 0;
  background: rgba(36,52,71,0.51);
  opacity: 1;
  animation: fadeInModal 0.22s;
}
@keyframes fadeInModal {
  from { opacity:0; }
  to { opacity:1; }
}
.cookie-modal {
  position: fixed;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  z-index: 3050;
  background: #fff;
  color: #243447;
  padding: 34px 26px 22px 26px;
  border-radius: 13px;
  box-shadow: 0 16px 38px rgba(36,52,71,0.20), 0 1.5px 6px rgba(20,80,120,0.09);
  min-width: 294px;
  max-width: 94vw;
  width: 420px;
  display: flex;
  flex-direction: column;
  gap: 19px;
  animation: slideDownModal 0.23s;
}
@keyframes slideDownModal {
  from { opacity:0; transform: translate(-50%,-35%); }
  to   { opacity:1; transform: translate(-50%,-50%); }
}
.cookie-modal h2 {
  color: #13636a;
  font-size: 1.25rem;
  margin-bottom: 5px;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cookie-category {
  display: flex;
  align-items: flex-start;
  gap: 13px;
}
.cookie-category-toggle {
  margin-right: 10px;
}
.cookie-category label {
  font-weight: 500;
  cursor: pointer;
}
.cookie-category .always-on {
  background: #13636a;
  color: #fff;
  border-radius: 4px;
  font-size: 0.95em;
  padding: 2px 9px;
  margin-left: 5px;
}
.cookie-modal .cookie-btn {
  margin-top: 14px;
  width: 100%;
}
.cookie-modal-close {
  position: absolute;
  top: 13px; right: 16px;
  background: none;
  border: none;
  font-size: 1.55rem;
  color: #243447;
  cursor: pointer;
  border-radius: 4px;
  padding: 0 5px;
}
.cookie-modal-close:focus {
  outline: 2px solid #1A97A2;
}
@media (max-width: 520px) {
  .cookie-modal {
    width: 98vw;
    max-width: 99vw;
    padding: 18px 5px 14px 11px;
    border-radius: 6px;
  }
  .cookie-modal h2 { font-size: 1.1rem; }
}

/* ========== ACCESSIBILITY UTILITIES ========== */
.sr-only {
  position:absolute;
  left:-10000px;
  width:1px;
  height:1px;
  top:auto;
  overflow:hidden;
}

/* ========== MISCELLANEOUS ========== */
::-webkit-scrollbar {
  width: 8px;
  background: #F5F7FA;
}
::-webkit-scrollbar-thumb {
  background: #B9C8D5;
  border-radius: 4px;
}

/* ========== END ========== */
