/* ----------------------------------------------------------- */
/* 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 {
  box-sizing: border-box;
}
body {
  line-height: 1.5;
  min-height: 100vh;
  background: #FAFBFD;
  color: #233D4D;
}
ol, ul {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
}
img, svg {
  max-width: 100%;
  display: block;
}
button, input, textarea, select {
  font: inherit;
  border: none;
  background: none;
  outline: none;
  box-sizing: border-box;
}
button {
  cursor: pointer;
}

/* ----------------------------------------------------------- */
/* CUSTOM PROPERTIES: SOFT PASTEL PALETTE BASED ON BRAND      */
/* ----------------------------------------------------------- */
:root {
  /* Brand */
  --primary: #1A3C57;
  --secondary: #5FB3A5;
  --accent: #F6FBF8;

  /* Pastel background variants */
  --pastel-blue: #ddebf6; /* hero & sections bg */
  --pastel-green: #e7f7f2;
  --pastel-yellow: #fff8e3;
  --pastel-lavender: #f4ecfb;
  --pastel-pink: #fff1f4;
  --card-bg: #ffffff;
  --testimonial-bg: #f5f7fa;

  /* Texts */
  --text-main: #22364a;
  --text-muted: #6c7885;
  --text-on-primary: #fff;
  --heading: #22364a;
  --link-hover: #337ead;

  /* Others */
  --card-shadow: 0 4px 20px rgba(40,90,120,0.07);
  --btn-shadow: 0 2px 8px rgba(95,179,165,0.15);
  --radius-s: 12px;
  --radius-m: 20px;
  --transition: 0.25s cubic-bezier(.52,.01,.31,1);
}

/* ----------------------------------------------------------- */
/* FONTS                                                     */
/* ----------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,600,500,400,300&display=swap');
@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,500,600,700&display=swap');
body {
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 16px;
  color: var(--text-main);
  background: var(--accent);
}
h1, h2, h3, h4, h5, h6 {
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 700;
  color: var(--heading);
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.25rem;
  margin-bottom: 20px;
}
h2 {
  font-size: 1.5rem;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
}
p, ul, li {
  font-size: 1rem;
}
p {
  margin-bottom: 16px;
  color: var(--text-main);
}
.subheadline {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 18px;
}
strong {
  font-weight: 600;
}

/* ----------------------------------------------------------- */
/* HEADER & NAVIGATION                                       */
/* ----------------------------------------------------------- */
header {
  background: var(--accent);
  box-shadow: 0 4px 14px rgba(28,70,120,0.03);
  position: relative;
  z-index: 100;
}
.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
.main-nav a {
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 500;
  color: var(--primary);
  background: transparent;
  padding: 7px 14px;
  border-radius: var(--radius-s);
  transition: background var(--transition), color var(--transition);
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--pastel-green);
  color: var(--secondary);
}
.cta-button {
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 600;
  color: var(--text-on-primary);
  background: linear-gradient(90deg, #76e6cd 0%, #b6e5f7 100%);
  background-color: var(--secondary);
  padding: 12px 28px;
  border-radius: var(--radius-m);
  margin-left: 10px;
  box-shadow: var(--btn-shadow);
  box-sizing: border-box;
  border: none;
  font-size: 1rem;
  transition: filter var(--transition), transform var(--transition), box-shadow var(--transition);
  outline: none;
  display: inline-block;
  cursor: pointer;
}
.cta-button:hover, .cta-button:focus {
  filter: brightness(1.075);
  transform: translateY(-2px) scale(1.025);
  box-shadow: 0 6px 16px rgba(95,179,165,0.17);
}

/* HEADER LOGO */
.header-inner img {
  height: 38px;
  width: auto;
}

/* MOBILE NAVIGATION (BURGER) */
.mobile-menu-toggle {
  font-size: 2rem;
  color: var(--primary);
  background: var(--accent);
  border: none;
  border-radius: 6px;
  padding: 6px 13px 4px 13px;
  display: none;
  transition: background var(--transition);
}
.mobile-menu-toggle:active, .mobile-menu-toggle:focus {
  background: var(--pastel-blue);
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(240,245,246,0.98);
  z-index: 200;
  transform: translateX(100%);
  transition: transform 0.34s cubic-bezier(.77,0,.18,1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  visibility: visible;
  opacity: 1;
  pointer-events: all;
  transition-delay: 0s;
}
.mobile-menu-close {
  font-size: 2.2rem;
  color: var(--primary);
  background: transparent;
  border: none;
  margin: 20px;
  align-self: flex-end;
  padding: 4px 13px;
  border-radius: 8px;
  transition: background var(--transition);
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--pastel-pink);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 34px 32px 22px 32px;
  align-items: flex-start;
}
.mobile-nav a {
  font-family: "Montserrat", Arial, sans-serif;
  color: var(--primary);
  font-weight: 600;
  padding: 12px 4px;
  font-size: 1.2rem;
  border-radius: 7px;
  width: 100%;
  transition: background var(--transition), color var(--transition);
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--pastel-blue);
  color: var(--secondary);
}
@media (max-width: 980px) {
  .header-inner {
    gap: 10px;
  }
  .main-nav {
    gap: 10px;
  }
  .cta-button {
    padding: 10px 22px;
    font-size: 1rem;
  }
}
@media (max-width: 900px) {
  .main-nav {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
}


/* ----------------------------------------------------------- */
/* LAYOUT - SECTION SPACING & FLEXBOX MANDATORY PATTERNS       */
/* ----------------------------------------------------------- */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--accent);
}
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--card-bg);
  border-radius: var(--radius-m);
  box-shadow: var(--card-shadow);
  padding: 24px 18px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover {
  box-shadow: 0 8px 28px rgba(40,90,120,0.11);
  transform: translateY(-3px) scale(1.017);
}
.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;
  background: var(--testimonial-bg);
  border-radius: var(--radius-m);
  box-shadow: var(--card-shadow);
  margin-bottom: 20px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Responsive columns for feature grids etc */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: flex-start;
}
.feature-grid > div {
  min-width: 260px;
  flex: 1 1 250px;
  background: var(--card-bg);
  border-radius: var(--radius-m);
  padding: 22px 14px 18px 14px;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 20px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.feature-grid > div:hover {
  box-shadow: 0 8px 28px rgba(40,90,120,0.10);
  transform: translateY(-4px) scale(1.020);
}
.feature-grid img {
  margin-bottom: 12px;
  height: 36px;
}
.feature-grid h3 {
  margin-bottom: 8px;
}

/* About preview & Services preview list */
.about-preview ul,
.services-preview ul,
.values ul,
.trust ul,
.comparison ul,
.calculation-examples ul,
.faq ul,
.categories-tags ul,
.latest-articles ul,
.next-steps-info ul {
  padding-left: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 8px;
}

/* ----------------------------------------------------------- */
/* HERO, CTA, BADGE, STAR/AVATAR & CARDS                      */
/* ----------------------------------------------------------- */
.hero {
  padding: 64px 0 54px 0;
  margin-bottom: 50px;
  background: var(--pastel-blue);
  display: flex;
  align-items: center;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.hero h1 {
  color: var(--primary);
  font-size: 2.45rem;
  line-height: 1.13;
  margin-bottom: 16px;
}
.hero .cta-button {
  margin-top: 12px;
}

.cta {
  margin-bottom: 0;
  background: var(--pastel-lavender);
  padding: 50px 0;
}
.cta .cta-button {
  margin-top: 16px;
}

/* About, Values, Trust, Privacy, etc. */
.about, .about-preview, .values, .trust, .privacy-policy, .gdpr-policy, .terms-of-service, .cookie-policy, .thank-you, .contact, .map, .blog-list, .newsletter-signup {
  padding: 40px 0 40px 0;
  margin-bottom: 60px;
  background: var(--pastel-green);
}
.services-preview, .comparison {
  background: var(--pastel-yellow);
}

/* Table styling for comparison/pricing */
table {
  width: 100%;
  background: var(--card-bg);
  border-radius: var(--radius-s);
  box-shadow: var(--card-shadow);
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  margin-bottom: 16px;
}
thead {
  background: var(--pastel-blue);
}
th, td {
  font-size: 1rem;
  padding: 13px 10px;
  text-align: left;
  color: var(--primary);
}
th {
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 600;
  background: var(--pastel-blue);
}
tbody tr:nth-child(even) {
  background: #f9fafc;
}
tbody tr:nth-child(odd) {
  background: var(--card-bg);
}

/* Testimonials */
.testimonials-preview, .testimonials, .review-list {
  background: var(--pastel-pink);
}
.testimonials-preview h2, .testimonials h1 {
  color: #56466B;
}
.review-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.testimonial-card {
  background: var(--testimonial-bg);
  color: var(--text-main);
  box-shadow: 0 2px 10px rgba(90,98,126,0.06);
  border-radius: var(--radius-m);
  padding: 20px 32px 18px 20px;
  font-size: 1.09rem;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow var(--transition), transform var(--transition);
}
.testimonial-card p {
  margin-bottom: 10px;
}
.testimonial-card span {
  color: var(--primary);
  font-size: 0.97rem;
  font-weight: 600;
  margin-top: 6px;
}
.star-average, .average-rating {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 13px;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 1.08rem;
  color: var(--secondary);
  font-weight: 600;
}
.star-average img, .average-rating img {
  height: 28px;
}
.star-rating-graph {
  margin-top: 20px;
}

/* BADGES */
.badges {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 18px;
}
.badges img {
  height: 34px;
  border-radius: 50%;
  background: #f7fafc;
  box-shadow: 0 1px 4px rgba(112,173,166,0.07);
  padding: 8px;
}

/* Blog Cards/Posts */
.featured-posts {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
.featured-posts article {
  background: var(--card-bg);
  border-radius: var(--radius-s);
  box-shadow: var(--card-shadow);
  padding: 18px 18px 10px 20px;
  flex: 1 1 200px;
  min-width: 200px;
  max-width: 370px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.featured-posts article:hover {
  box-shadow: 0 6px 18px rgba(90,98,126,0.08);
  transform: translateY(-3px) scale(1.012);
}
.featured-posts h3 {
  margin-bottom: 8px;
  color: var(--primary);
}
.featured-posts a {
  color: var(--secondary);
  border-bottom: 1.5px solid var(--secondary);
  font-weight: 500;
  transition: color var(--transition), border-color var(--transition);
}
.featured-posts a:hover {
  color: var(--primary);
  border-bottom: 1.5px solid var(--primary);
}
.latest-articles ul li a {
  color: var(--secondary);
  transition: color var(--transition);
  border-bottom: 1px dotted var(--secondary);
}
.latest-articles ul li a:hover {
  color: var(--primary);
}

.categories-tags ul li {
  font-family: "Montserrat", Arial, sans-serif;
  display: inline-block;
  background: var(--pastel-blue);
  color: var(--primary);
  border-radius: 10px;
  padding: 5px 18px;
  margin-right: 8px;
  margin-bottom: 8px;
  font-size: 0.97rem;
}

/* Contact block */
.contact-info-blocks {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-bottom: 10px;
}
.contact-details {
  background: var(--pastel-blue);
  border-radius: var(--radius-s);
  box-shadow: 0 1px 6px rgba(95,179,165,0.07);
  padding: 18px 15px 13px 15px;
  min-width: 160px;
  flex: 1 1 180px;
}
.contact-details h2 {
  margin-bottom: 7px;
  color: var(--secondary);
  font-weight: 600;
  font-size: 1rem;
}
.contact-note {
  font-size: 1.04rem;
  color: var(--text-muted);
  background: var(--pastel-lavender);
  border-radius: 10px;
  padding: 11px 18px;
  margin-top: 0px;
}
.embedded-map-placeholder {
  background: var(--pastel-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 120px;
  border-radius: var(--radius-m);
  box-shadow: 0 2px 8px rgba(180,217,230,0.09);
}

/* Thank you page */
.next-steps-info ul li {
  color: var(--text-muted);
  font-size: 1.01rem;
}

/* ----------------------------------------------------------- */
/* FOOTER                                                     */
/* ----------------------------------------------------------- */
footer {
  background: var(--pastel-blue);
  padding: 36px 0 26px 0;
  margin-top: 40px;
}
.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 26px;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-inner > * {
  flex: 0 1 200px;
}
.footer-inner a img {
  height: 29px;
}
.footer-links {
  display: flex;
  gap: 13px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.footer-links a {
  color: var(--primary);
  font-weight: 500;
  font-size: 1rem;
  transition: color var(--transition);
}
.footer-links a:hover {
  color: var(--secondary);
}
.contact-info {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.68;
}
.contact-info img {
  height: 14px;
  margin-right: 5px;
  transform: translateY(2.5px);
}
.social-media-links {
  display: flex;
  gap: 9px;
  padding-top: 8px;
}
.social-media-links a img {
  height: 26px;
  opacity: 0.85;
  transition: opacity var(--transition), transform var(--transition);
}
.social-media-links a img:hover {
  opacity: 1;
  transform: scale(1.10);
}

/* ----------------------------------------------------------- */
/* BUTTONS, INTERACTIVE & MICROINTERACTIONS                   */
/* ----------------------------------------------------------- */
button {
  transition: background var(--transition), color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.cta-button:active {
  filter: brightness(0.96);
  transform: scale(0.99);
}

/* All links */
a {
  transition: color var(--transition), border-color var(--transition);
}
a:focus {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
}

/* ----------------------------------------------------------- */
/* COOKIE CONSENT BANNER & MODAL                              */
/* ----------------------------------------------------------- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #fff;
  color: var(--primary);
  box-shadow: 0 -2px 30px rgba(55,70,110,0.13);
  padding: 26px 18px 18px 18px;
  z-index: 250;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 22px;
  border-radius: 22px 22px 0 0;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInUp 0.7s var(--transition);
}
@keyframes fadeInUp {
  0% { transform: translateY(40px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-banner-text {
  max-width: 420px;
}
.cookie-banner-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.cookie-btn {
  padding: 8px 20px;
  border-radius: 10px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  background: var(--secondary);
  color: var(--text-on-primary);
  box-shadow: var(--btn-shadow);
  transition: background var(--transition), color var(--transition), transform var(--transition);
}
.cookie-btn.reject {
  background: #e7e4fb;
  color: #56466B;
}
.cookie-btn.settings {
  background: var(--pastel-blue);
  color: var(--primary);
}
.cookie-btn:hover, .cookie-btn:focus {
  filter: brightness(1.075);
  transform: translateY(-1.5px);
}

/* Cookie modal (modal overlay) */
.cookie-modal-overlay {
  position: fixed;
  z-index: 260;
  inset: 0;
  background: rgba(64, 70, 100, 0.13);
  opacity: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.23s var(--transition);
}
@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 8px 32px rgba(55,70,110,0.15);
  max-width: 420px;
  width: calc(100vw - 38px);
  padding: 30px 23px 25px 23px;
  color: var(--primary);
  position: relative;
  animation: fadeInUp 0.32s var(--transition);
}
.cookie-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--primary);
  border-radius: 8px;
  padding: 2px 8px;
  transition: background var(--transition);
  z-index: 16;
}
.cookie-modal-close:hover { background: var(--pastel-blue); }
.cookie-modal h3 {
  color: var(--primary);
  margin-bottom: 12px;
  font-size: 1.23rem;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 13px;
  background: var(--pastel-blue);
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 1rem;
}
.cookie-category input[type="checkbox"] {
  width: 24px;
  height: 24px;
  accent-color: var(--secondary);
}
.cookie-category.essential label {
  color: #a1a1a1;
  font-style: italic;
}
.cookie-modal-actions {
  display: flex;
  gap: 14px;
  margin-top: 14px;
  justify-content: flex-end;
}

/* ----------------------------------------------------------- */
/* MEDIA QUERIES (MOBILE-FIRST, FLEX DIRECTIONS, GAPS)         */
/* ----------------------------------------------------------- */
@media (max-width: 1150px) {
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }
}
@media (max-width: 900px) {
  .header-inner, .footer-inner {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  .footer-inner > * {
    flex: none;
  }
}
@media (max-width: 768px) {
  h1 {
    font-size: 1.46rem;
  }
  h2 {
    font-size: 1.12rem;
  }
  h3 {
    font-size: 1rem;
  }
  .section, .about, .about-preview, .values, .trust, .privacy-policy, .gdpr-policy, .terms-of-service, .cookie-policy, .thank-you, .contact, .map, .blog-list, .newsletter-signup {
    padding: 30px 0 30px 0;
    margin-bottom: 34px;
  }
  .hero {
    padding: 30px 0 24px 0;
    margin-bottom: 32px;
  }
  .subheadline {
    font-size: 1rem;
  }
  .feature-grid {
    flex-direction: column;
    gap: 15px;
  }
  .card-container, .content-grid, .badges, .contact-info-blocks, .review-list, .featured-posts {
    flex-direction: column;
    gap: 14px;
  }
  .testimonial-card {
    padding: 15px 10px 13px 10px;
    font-size: 0.98rem;
  }
  .content-wrapper {
    gap: 17px;
  }
  .footer-inner {
    gap: 17px;
    flex-direction: column;
    align-items: flex-start;
  }
  .contact-details {
    min-width: 120px;
    padding: 10px 8px 7px 12px;
  }
  .cta {
    padding: 24px 0;
    margin-bottom: 0;
  }
  .text-image-section {
    flex-direction: column;
    gap: 17px;
    align-items: flex-start;
  }
  .cookie-banner {
    flex-direction: column;
    padding: 18px 8px 12px 8px;
    max-width: 97vw;
    gap: 19px;
  }
}
@media (max-width: 470px) {
  .hero {
    padding: 20px 0 12px 0;
  }
  .footer-inner {
    gap: 7px;
    padding-left: 4px; padding-right: 4px;
  }
  .footer-links {
    flex-direction: column;
    gap: 2px;
  }
}

/* ----------------------------------------------------------- */
/* PRINT STYLES                                               */
/* ----------------------------------------------------------- */
@media print {
  .main-nav, .mobile-menu, .mobile-menu-toggle, .footer-inner > .social-media-links, .cookie-banner, .cookie-modal-overlay {
    display: none !important;
  }
  .cta-button, button {
    display: none !important;
  }
}
