/* ======================================================= */
/* 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 {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
av, footer, header, main, section {
  display: block;
}
body {
  background: #F3F7FB;
  color: #223857;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  min-height: 100vh;
}
ul, ol {
  list-style: none;
}
a {
  color: #223857;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #75C2E8;
  outline: none;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  border: none;
  background: none;
  color: inherit;
}
button:focus, input:focus, select:focus, textarea:focus {
  outline: 2px solid #75C2E8;
  outline-offset: 2px;
}
img {
  max-width: 100%;
  height: auto;
}

/* ======================================================= */
/* FONT IMPORTS                                            */
/* ======================================================= */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;900&family=Open+Sans:wght@400;600;700&display=swap');

/* ======================================================= */
/* COLOR VARIABLES                                         */
/* ======================================================= */
:root {
  --primary: #223857;
  --secondary: #75C2E8;
  --accent: #F3F7FB;
  --text: #223857;
  --muted: #5b6c85;
  --white: #fff;
  --card-bg: #fff;
  --shadow: 0 2px 12px rgba(34,56,87,0.10);
  --radius: 10px;
}

/* ======================================================= */
/* TYPOGRAPHY & GLOBAL ELEMENTS                            */
/* ======================================================= */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--primary);
  line-height: 1.15;
}
h1 {
  font-size: 2.4rem;
  font-weight: 900;
  margin-bottom: 20px;
}
h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 18px;
}
h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 10px;
}

p, ul, ol {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 16px;
}
strong {
  font-weight: bold;
}
.subheadline {
  color: var(--muted);
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1.15rem;
  margin-bottom: 24px;
}

/* ======================================================= */
/* SPACING PATTERNS & LAYOUTS                              */
/* ======================================================= */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px 24px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  width: 100%;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  margin-top: 0;
  color: var(--primary);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ======================================================= */
/* HEADER & NAVIGATION                                     */
/* ======================================================= */
header {
  width: 100%;
  background: var(--white);
  box-shadow: 0 1px 10px rgba(34,56,87,0.07);
  position: sticky;
  top: 0;
  z-index: 90;
}
.main-nav {
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 20px 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
}
.main-nav > a img {
  height: 40px;
  vertical-align: middle;
}
.main-nav ul {
  display: flex;
  gap: 20px;
  align-items: center;
}
.main-nav li {
  list-style: none;
}
.main-nav a {
  font-family: 'Open Sans', Arial, sans-serif;
  color: var(--primary);
  font-weight: 600;
  font-size: 1rem;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: border-bottom 0.15s, color 0.15s;
}
.main-nav a:hover,
.main-nav a:focus {
  color: var(--secondary);
  border-bottom: 2px solid var(--secondary);
}
.main-nav .btn-primary {
  margin-left: 26px;
  font-size: 1rem;
}

/* Burger Menu */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--primary);
  cursor: pointer;
  margin-left: 20px;
  z-index: 102;
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(34, 56, 87, 0.96);
  transform: translateX(-100vw);
  transition: transform 0.35s cubic-bezier(.77,0,.18,1);
  z-index: 101;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 0 0 0 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 2.1rem;
  position: absolute;
  top: 28px;
  right: 28px;
  cursor: pointer;
  z-index: 103;
  transition: color 0.15s;
}
.mobile-menu-close:hover {
  color: var(--secondary);
}
.mobile-nav {
  margin: 90px 0 0 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 0 36px;
}
.mobile-nav a {
  font-size: 1.3rem;
  font-family: 'Montserrat', Arial, sans-serif;
  color: #fff;
  padding: 12px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.18s, border-bottom 0.18s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  color: var(--secondary);
  border-bottom: 2px solid var(--secondary);
}

/* Show/hide nav for mobile */
@media (max-width: 1023px) {
  .main-nav ul, .main-nav .btn-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 1024px) {
  .mobile-menu {
    display: none !important;
  }
}

/* ======================================================= */
/* BUTTONS & LINKS                                         */
/* ======================================================= */
.btn-primary {
  display: inline-block;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: #fff;
  background: var(--primary);
  border-radius: var(--radius);
  padding: 13px 32px;
  border: none;
  font-size: 1.08rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(34,56,87,0.11);
  transition: background 0.19s, color 0.19s, box-shadow 0.18s, transform 0.10s;
  text-align: center;
  text-decoration: none;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--secondary);
  color: var(--primary);
  box-shadow: 0 4px 20px rgba(34,56,87,0.13);
  transform: translateY(-2px) scale(1.03);
}
.read-more {
  color: var(--secondary);
  font-weight: 600;
  margin-top: 12px;
  display: inline-block;
  transition: text-decoration 0.2s, color 0.2s;
}
.read-more:hover, .read-more:focus {
  text-decoration: underline;
  color: var(--primary);
}

/* ======================================================= */
/* HERO SECTIONS                                           */
/* ======================================================= */
.hero {
  background: var(--accent);
  padding: 64px 0 56px 0;
  min-height: 285px;
  margin-bottom: 60px;
  box-shadow: 0 3px 16px rgba(34,56,87,0.06);
}
.hero .content-wrapper {
  align-items: flex-start;
  max-width: 680px;
  margin: 0 auto;
  gap: 0;
}
.hero h1 {
  font-size: 2.3rem;
  margin-bottom: 18px;
}
.hero .subheadline {
  font-size: 1.15rem;
  margin-bottom: 28px;
}

/* ======================================================= */
/* FEATURES & OFFERINGS                                     */
/* ======================================================= */
.features {
  background: none;
  margin-bottom: 60px;
  padding: 40px 0;
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 14px;
}
.feature-grid li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px 24px;
  flex-basis: calc(33.333% - 24px);
  max-width: calc(33.333% - 24px);
  min-width: 238px;
  gap: 10px;
  margin-bottom: 20px;
  transition: box-shadow 0.16s, transform 0.15s;
}
.feature-grid li:hover,
.feature-grid li:focus {
  box-shadow: 0 4px 22px rgba(34,56,87,0.19);
  transform: translateY(-2px) scale(1.02);
}
.feature-grid img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  margin-bottom: 10px;
}
.features ul, .features ol {
  margin: 0 0 0 24px;
  padding: 0;
}
.features li {
  margin-bottom: 10px;
  color: var(--primary);
  font-size: 1rem;
  line-height: 1.7;
}

@media (max-width: 1023px) {
  .feature-grid {
    flex-direction: column;
    gap: 20px;
  }
  .feature-grid li {
    flex-basis: 100%;
    max-width: 100%;
  }
}

/* ======================================================= */
/* SERVICES PAGE OFFERINGS                                 */
/* ======================================================= */
.services {
  margin-bottom: 60px;
  padding: 40px 0;
}
.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 20px 0 32px 0;
}
.service-list li {
  display: flex;
  flex-direction: column;
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 22px 22px 22px;
  flex-basis: calc(45% - 24px);
  min-width: 280px;
  gap: 14px;
  margin-bottom: 20px;
  transition: box-shadow 0.16s, transform 0.15s;
}
.service-list li:hover {
  box-shadow: 0 4px 20px rgba(34,56,87,0.15);
}
.service-price {
  margin-top: 8px;
  background: var(--secondary);
  color: #fff;
  border-radius: 7px;
  padding: 3px 14px;
  font-size: 0.98rem;
  font-weight: 700;
  display: inline-block;
}
@media (max-width: 1023px) {
  .service-list {
    flex-direction: column;
    gap: 18px;
  }
  .service-list li {
    flex-basis: 100%;
    min-width: unset;
  }
}

/* Blog Category Filter */
.blog-category-filter {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.blog-category-filter span {
  font-weight: 700;
  color: var(--muted);
}
.blog-category-filter a {
  color: var(--primary);
  background: var(--accent);
  border-radius: 8px;
  padding: 4px 14px;
  font-size: 0.98rem;
  font-weight: 600;
  transition: background 0.15s, color 0.15s;
}
.blog-category-filter a:hover {
  background: var(--secondary);
  color: #fff;
}

.blog-post-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.blog-post-list li {
  display: flex;
  flex-direction: column;
  background: var(--card-bg);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: 28px 22px;
  flex-basis: calc(33% - 18px);
  min-width: 250px;
  margin-bottom: 20px;
  transition: box-shadow 0.16s, transform 0.14s;
  gap: 8px;
}
.blog-post-list li:hover {
  box-shadow: 0 5px 24px rgba(34,56,87,0.16);
  transform: translateY(-3px) scale(1.02);
}
@media (max-width: 900px) {
  .blog-post-list {
    flex-direction: column;
    gap: 16px;
  }
  .blog-post-list li {
    flex-basis: 100%;
    min-width: unset;
  }
}

/* ======================================================= */
/* TESTIMONIALS                                            */
/* ======================================================= */
.testimonials {
  background: none;
  margin-bottom: 60px;
  padding: 40px 0 20px 0;
}
.testimonials .content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.testimonial-card blockquote {
  font-size: 1.14rem;
  color: var(--primary);
  line-height: 1.6;
  margin: 0 0 6px 0;
}
.testimonial-author {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
  margin-left: 14px;
}
.testimonial-rating-summary {
  margin-top: 24px;
  background: var(--accent);
  padding: 16px 24px;
  border-radius: 7px;
  font-size: 1.1rem;
  color: var(--primary);
  box-shadow: 0 1px 5px rgba(34,56,87,0.07);
  font-weight: 600;
}

/* ======================================================= */
/* CALL TO ACTION (CTA) SECTIONS                           */
/* ======================================================= */
.cta {
  background: var(--primary);
  color: #fff;
  padding: 44px 0;
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: 0 4px 20px rgba(34,56,87,0.09);
  margin-bottom: 0;
}
.cta .container {
  max-width: 900px;
}
.cta .content-wrapper {
  align-items: center;
  gap: 24px;
}
.cta h2, .cta p {
  color: #fff;
}
.cta h2 {
  font-size: 2.0rem;
}
.cta .btn-primary {
  background: var(--secondary);
  color: var(--primary);
}
.cta .btn-primary:hover, .cta .btn-primary:focus {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 6px 29px rgba(117,194,232,0.14);
}

/* ======================================================= */
/* ABOUT & LEGAL SECTIONS                                  */
/* ======================================================= */
.about, .legal, .contact {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 60px;
  padding: 40px 0 28px 0;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.text-section ul, .legal ul {
  list-style: disc inside;
  margin-left: 20px;
  margin-bottom: 8px;
}
.text-section p, .legal p {
  margin-bottom: 12px;
}

/* Contact Info */
.brand-contact {
  margin-top: 18px;
  font-size: 1rem;
  color: var(--primary);
}
.brand-contact p {
  margin-bottom: 6px;
}

/* Map section on contact.html (".map-location") -----------------------------------------------------*/
.map-location {
  background: var(--accent);
  border-radius: 8px;
  padding: 12px 18px;
  margin-top: 13px;
  font-size: 0.97rem;
  color: var(--primary);
}

/* ======================================================= */
/* FOOTER                                      */
/* ======================================================= */
footer {
  background: var(--primary);
  color: #fff;
  padding: 0;
}
footer section {
  padding: 34px 0 20px 0;
  background: var(--primary);
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}
.footer-navigation {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 22px;
  font-size: 0.95rem;
}
.footer-navigation a {
  color: #fff;
  text-decoration: none;
  transition: color 0.15s;
  font-family: 'Open Sans', Arial, sans-serif;
  opacity: 0.89;
  padding: 2px 0;
}
.footer-navigation a:hover, .footer-navigation a:focus {
  color: var(--secondary);
  opacity: 1;
}
footer .brand-contact {
  color: #fff;
  font-size: 0.97rem;
  margin-top: 0;
}
footer .brand-contact a {
  color: #fff;
  border-bottom: 1px dotted #75C2E8;
  transition: color 0.15s, border-bottom 0.18s;
}
footer .brand-contact a:hover {
  color: var(--secondary);
  border-bottom: 1px solid var(--secondary);
}

/* =================== RESPONSIVE LAYOUT =======================*/
@media (max-width: 900px) {
  .footer-navigation {
    flex-direction: column;
    gap: 10px 0;
  }
  footer .content-wrapper {
    flex-direction: column;
    gap: 14px;
  }
}

/* ======================================================= */
/* MODALS, BANNERS & COOKIE CONSENT                        */
/* ======================================================= */
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  z-index: 6000;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px;
  width: 100vw;
  background: #223857;
  color: #fff;
  font-size: 1rem;
  padding: 20px 20px 20px 20px;
  box-shadow: 0 -3px 12px rgba(34,56,87,0.12);
  transition: transform 0.35s cubic-bezier(.77,0,.18,1), opacity 0.32s;
}
.cookie-banner.hide {
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner .cookie-message{
  max-width: 490px;
  font-size: 1rem;
  color: #fff;
  margin-bottom: 8px;
  flex: 1 1 320px;
}
.cookie-banner .cookie-buttons {
  display: flex;
  gap: 12px;
  align-items: center;
  flex: 1 1 auto;
}
.cookie-banner .btn-cookie {
  background: var(--secondary);
  color: var(--primary);
  border-radius: 8px;
  padding: 8px 22px;
  border: none;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.14s, color 0.14s, box-shadow 0.14s;
  box-shadow: 0 2px 7px rgba(117,194,232,0.13);
}
.cookie-banner .btn-cookie:hover, .cookie-banner .btn-cookie:focus {
  background: #fff;
  color: var(--primary);
}
.cookie-banner .btn-cookie.settings {
  background: none;
  border: 1.5px solid var(--secondary);
  color: var(--secondary);
}
.cookie-banner .btn-cookie.settings:hover {
  background: var(--secondary);
  color: var(--primary);
}

/* Cookie Modal Popup */
.cookie-modal {
  position: fixed;
  left: 0; top: 0;
  width: 100vw;
  height: 100vh;
  z-index: 6100;
  background: rgba(34,56,87,0.63);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 1;
  pointer-events: all;
  transition: opacity 0.22s;
  animation: fadein 0.18s ease-out;
}
.cookie-modal.hide {
  opacity: 0;
  pointer-events: none;
}
@keyframes fadein {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.cookie-modal .cookie-modal-content {
  background: #fff;
  color: var(--primary);
  padding: 34px 26px 26px 26px;
  border-radius: 13px;
  box-shadow: 0 6px 34px rgba(34,56,87,0.25);
  max-width: 480px;
  width: 90%;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cookie-modal .cookie-modal-close {
  position: absolute;
  top: 13px;
  right: 15px;
  font-size: 2rem;
  color: var(--primary);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.18s;
}
.cookie-modal .cookie-modal-close:hover {
  color: var(--secondary);
}
.cookie-modal h3 {
  font-size: 1.3rem;
  font-weight: bold;
  margin-bottom: 7px;
}
.cookie-modal .cookie-category-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cookie-modal .cookie-category-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  background: var(--accent);
  padding: 10px 16px;
  border-radius: 7px;
  font-size: 1rem;
  color: var(--primary);
}
.cookie-modal .cookie-switch {
  display: flex;
  align-items: center;
  gap: 7px;
}
.cookie-modal input[type='checkbox'] {
  width: 22px;
  height: 22px;
  accent-color: var(--secondary);
  border-radius: 7px;
  cursor: pointer;
}
.cookie-modal .cookie-actions {
  margin-top: 14px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.cookie-modal .btn-cookie {
  padding: 8px 22px;
  border-radius: 8px;
}
/* Modal text / Essential always enabled */
.cookie-modal .cookie-category-label.essential {
  color: var(--muted);
  font-weight: 600;
}

/* ======================================================= */
/* MEDIA QUERIES & RESPONSIVE DESIGN                       */
/* ======================================================= */
@media (max-width: 1200px) {
  .container {
    max-width: 98vw;
  }
}
@media (max-width: 900px) {
  .container {
    padding: 0 12px;
  }
  .section, .about, .legal, .contact {
    padding: 24px 0 18px 0;
  }
  .hero {
    padding: 40px 0 36px 0;
  }
}
@media (max-width: 768px) {
  .main-nav {
    flex-direction: row;
    padding: 14px 7px 15px 7px;
  }
  .content-wrapper, .cta .content-wrapper {
    gap: 16px;
    padding: 0 1px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
  .hero .content-wrapper {
    align-items: flex-start;
    padding: 0 1px;
  }
  .cta .container {
    padding: 0 3px;
  }
  .feature-grid {
    gap: 13px;
  }
  .feature-grid li, .service-list li, .blog-post-list li {
    padding: 22px 12px;
    min-width: unset;
  }
  .cta {
    padding: 34px 0;
    border-radius: 0;
  }
  .card-container,
  .content-grid,
  .service-list,
  .blog-post-list {
    flex-direction: column;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .cookie-banner .cookie-message {
    font-size: 0.98rem;
    max-width: 250px;
  }
  .cookie-banner {
    flex-direction: column;
    gap: 10px;
    padding: 14px 2px;
  }
  .cookie-modal .cookie-modal-content {
    padding: 18px 7px 14px 7px;
    min-width: unset;
    max-width: 95vw;
  }
}

/* ======================================================= */
/* ANIMATIONS                                              */
/* ======================================================= */
.card, .feature-grid li, .testimonial-card, .service-list li, .blog-post-list li {
  transition: box-shadow 0.22s, transform 0.18s;
}
.card:hover, .feature-grid li:hover, .testimonial-card:hover, .service-list li:hover, .blog-post-list li:hover {
  box-shadow: 0 8px 28px rgba(34,56,87,0.12), 0 1.5px 4px rgba(117,194,232,0.06);
  transform: translateY(-5px) scale(1.03);
}
@media (hover: none) {
  .card:hover, .feature-grid li:hover, .testimonial-card:hover, .service-list li:hover, .blog-post-list li:hover {
    box-shadow: var(--shadow);
    transform: none;
  }
}

/* ======================================================= */
/* UTILITIES                                               */
/* ======================================================= */
.hidden { display: none !important; }

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