/* ==== 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 {
  scroll-behavior: smooth;
  box-sizing: border-box;
  font-family: 'Roboto', Arial, sans-serif;
}
body {
  line-height: 1.5;
  min-height: 100vh;
  background: linear-gradient(135deg, #FAFAFA 0%, #FFD447 100%);
  color: #0e222b;
}
*, *:before, *:after { box-sizing: inherit; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color 0.2s; }
ul, ol { list-style: none; margin: 0; padding: 0; }
table { border-collapse: collapse; width: 100%; }
th, td { padding: 12px 16px; font-size: 16px; }
strong { font-weight: 700; }

/* ==== BRAND FONTS ==== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;900&family=Roboto:wght@400;500;700&display=swap');

body {
  font-family: 'Roboto', Arial, sans-serif;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 900;
  color: #03778F;
  letter-spacing: 0.5px;
}
h1 { font-size: 2.4rem; margin-bottom: 20px; }
h2 { font-size: 2rem; margin-bottom: 20px; }
h3 { font-size: 1.4rem; margin-bottom: 14px; }
h4, h5, h6 { font-size: 1.15rem; margin-bottom: 10px; }
p, ul, li, table, th, td, address {
  font-size: 1rem;
  color: #1c2833;
}
@media (min-width: 520px) {
  h1 { font-size: 2.8rem; }
  h2 { font-size: 2.125rem; }
  h3 { font-size: 1.45rem; }
}
@media (min-width: 768px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2.25rem; }
}

/* ==== GLOBAL SPACING ==== */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #FAFAFA;
  border-radius: 28px;
  box-shadow: 0 4px 32px 0 rgba(3, 119, 143, 0.07);
}

/* ==== HEADER ==== */
header {
  background: linear-gradient(120deg, #FFD447 0%, #03778F 100%);
  color: #fff;
  padding: 0 0 8px 0;
  box-shadow: 0 2px 20px 0 rgba(3,119,143,.08);
  position: sticky;
  top: 0; left: 0; right: 0;
  z-index: 30;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 16px 12px 16px;
  position: relative;
}
header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}
header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: #fafafa;
  font-size: 1rem;
  letter-spacing: 0.04em;
  padding: 6px 8px;
  border-radius: 6px;
  transition: background 0.18s, color 0.18s;
  position: relative;
}
header nav a:hover, header nav a:focus {
  color: #03778F;
  background: #FFD447;
  outline: none;
}
header img {
  height: 42px;
  min-width: 42px;
  object-fit: contain;
}
.cta-btn {
  background: linear-gradient(90deg, #FFD447, #03778F 90%);
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 800;
  letter-spacing: 0.06em;
  font-size: 1.1rem;
  padding: 12px 32px;
  border-radius: 32px;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 10px 0 rgba(3,119,143,0.10);
  margin-left: 14px;
  transition: box-shadow 0.2s, color 0.2s, background 0.22s;
  display: inline-block;
}
.cta-btn:hover, .cta-btn:focus {
  background: linear-gradient(90deg, #03778F 5%, #FFD447 95%);
  color: #03778F;
  box-shadow: 0 4px 18px 0 rgba(3,119,143,0.18);
  outline: none;
}

/* ==== MOBILE NAVIGATION ==== */
.mobile-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #03778F;
  color: #FFD447;
  font-size: 2rem;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  margin-left: 8px;
  z-index: 41;
  transition: background 0.2s, color 0.2s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #FFD447;
  color: #03778F;
  outline: none;
}
.mobile-menu {
  position: fixed;
  z-index: 1005;
  left: 0; top: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(105deg, #03778F 70%, #FFD447 100%);
  color: #fff;
  transform: translateX(-100vw);
  transition: transform 0.35s cubic-bezier(.4,.1,.22,1);
  box-shadow: 1px 0 24px 0 rgba(3,119,143,0.15);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  background: transparent;
  color: #FFD447;
  border: none;
  font-size: 2.2rem;
  margin: 20px 24px 0 0;
  font-family: 'Montserrat', Arial, sans-serif;
  cursor: pointer;
  transition: color 0.2s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #fff;
  outline: none;
}
.mobile-menu nav.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: flex-start;
  margin: 48px 36px;
}
.mobile-menu nav.mobile-nav a {
  color: #fff;
  font-size: 1.3rem;
  font-family: 'Montserrat', Arial, sans-serif;
  letter-spacing: 0.04em;
  border-radius: 8px;
  padding: 10px 6px 10px 2px;
  width: 100%;
  font-weight: 700;
  transition: color 0.2s, background 0.2s;
}
.mobile-menu nav.mobile-nav a:hover, .mobile-menu nav.mobile-nav a:focus {
  color: #FFD447;
  background: rgba(255,212,71,0.12);
  outline: none;
}
@media (min-width: 991px) {
  .mobile-menu, .mobile-menu-toggle { display: none !important; }
}
@media (max-width: 990px) {
  /* Hide desktop nav */
  header nav, header .cta-btn {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: flex !important;
  }
}
@media (max-width: 768px) {
  header .container {
    flex-direction: row;
    align-items: center;
    padding: 12px 10px 10px 10px;
    gap: 12px;
  }
  header img {
    height: 36px;
    min-width: 36px;
  }
}

/* ==== MAIN & SECTIONS ==== */
main {
  min-height: 70vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0 auto 0 auto;
}
section {
  width: 100%;
  display: flex;
  justify-content: center;
  background: transparent;
}
.section {
  background: #FAFAFA;
  box-shadow: 0 4px 24px 0 rgba(3,119,143,0.07);
  border-radius: 24px;
  margin-bottom: 60px;
  padding: 40px 20px;
}
@media (max-width: 600px) {
  .section {
    margin-bottom: 32px;
    padding: 27px 7px;
  }
}

/* ==== FLEX LAYOUT PATTERNS ==== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 10px 0 rgba(3,119,143,0.07);
  display: flex;
  flex-direction: column;
  padding: 24px 18px;
  max-width: 340px;
  min-width: 220px;
  flex: 1 1 240px;
  transition: box-shadow 0.22s, transform 0.22s;
}
.card:hover {
  box-shadow: 0 4px 22px 0 rgba(3,119,143,0.18);
  transform: translateY(-4px) scale(1.025);
}
.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) {
  .text-image-section {
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
  }
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #FFFDEB;
  border-radius: 16px;
  box-shadow: 0 3px 22px 0 rgba(3,119,143,0.11);
  margin-bottom: 20px;
  color: #1c2833;
}
.testimonial-card blockquote {
  font-size: 1.17rem;
  font-style: italic;
  line-height: 1.5;
  color: #0e222b;
  margin-right: 20px;
}
.testimonial-card p {
  margin: 0;
  color: #03778F;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.05rem;
  font-weight: bold;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 24px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

/* ==== BLOG SUMMARIES ==== */
.blog-summary {
  background: #FFFDEB;
  border-radius: 12px;
  margin-bottom: 24px;
  padding: 22px 20px 18px 20px;
  box-shadow: 0 1px 8px 0 rgba(3,119,143,0.055);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow 0.2s;
}
.blog-summary:hover {
  box-shadow: 0 3px 16px 0 rgba(3,119,143,0.15);
}
.blog-summary h3 {
  font-size: 1.1rem;
  color: #03778F;
}
.blog-summary .tag {
  display: inline-block;
  background: #FFD447;
  color: #03778F;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 8px;
  margin-right: 7px;
  margin-top: 8px;
  padding: 4px 14px 4px 11px;
  letter-spacing: 0.02em;
}

/* ==== TABLES (PRICELIST) ==== */
table {
  background: #fff;
  border-radius: 12px;
  margin: 18px 0 20px 0;
  box-shadow: 0 2px 8px 0 rgba(3,119,143,0.07);
  overflow: hidden;
}
th {
  background: #FFD447;
  color: #03778F;
  font-size: 1.1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 800;
  text-align: left;
  letter-spacing: 0.03em;
}
td {
  background: #fff;
  color: #1c2833;
  border-bottom: 1px solid #e0e0e0;
  min-width: 120px;
}
tr:last-child td {
  border-bottom: none;
}

/* ==== FOOTER ==== */
footer {
  background: linear-gradient(120deg, #03778F 70%, #FFD447 100%);
  color: #fff;
  padding: 28px 0 12px 0;
  margin-top: 40px;
  box-shadow: 0 -2px 22px 0 rgba(3,119,143,0.10);
}
footer .container {
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
footer img {
  height: 44px;
  margin-bottom: 10px;
}
footer nav {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 8px;
}
footer nav a {
  color: #FFD447;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  transition: color 0.18s;
}
footer nav a:hover, footer nav a:focus {
  color: #fff;
  text-decoration: underline;
  outline: none;
}
footer p {
  font-size: 0.97rem;
  color: #fff;
  text-align: center;
}

/* ==== LINKS & BUTTONS GENERAL ==== */
a, button {
  transition: background 0.16s, color 0.16s, box-shadow 0.19s;
  outline: none;
}
a:focus-visible {
  outline: 2px solid #03778F;
  outline-offset: 1px;
}
button:focus-visible {
  outline: 2px solid #FFD447;
  outline-offset: 2px;
}
button, .cta-btn {
  font-family: 'Montserrat', Arial, sans-serif;
}

/* ======= FORMS & INPUTS (FOR contact forms if present) ======= */
input, textarea, select {
  font-family: 'Roboto', Arial, sans-serif;
  background: #fff;
  border: 1px solid #03778F;
  border-radius: 8px;
  padding: 11px 14px;
  font-size: 1rem;
  margin-bottom: 14px;
  width: 100%;
  color: #1c2833;
  transition: border-color 0.18s, box-shadow 0.18s;
}
input:focus, textarea:focus, select:focus {
  border-color: #FFD447;
  box-shadow: 0 1px 9px rgba(3,119,143,0.14);
}
label {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  color: #03778F;
  font-size: 1rem;
  margin-bottom: 6px;
}

/* ==== UTILITY CLASSES ==== */
.hide {
  display: none !important;
}

/* ==== RESPONSIVE BREAKPOINTS ==== */
@media (max-width: 768px) {
  .container {
    padding: 0 7px;
  }
  .section {
    padding: 24px 7px;
    margin-bottom: 32px;
  }
  .testimonial-card {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
    padding: 15px 10px 13px 12px;
  }
  .card {
    min-width: 160px;
    max-width: 100%;
    padding: 15px 10px;
  }
  .content-grid, .card-container {
    gap: 12px;
  }
}
@media (max-width: 480px) {
  h1 {font-size: 1.7rem;}
  h2 {font-size: 1.25rem;}
  .cta-btn {font-size: 0.98rem; padding: 9px 18px;}
  .footer img {height: 36px !important;}
}

/* ==== COOKIE CONSENT BANNER ==== */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100vw;
  background: #03778F;
  color: #fff;
  box-shadow: 0 -2px 18px 0 rgba(3,119,143,0.15);
  padding: 18px 9px;
  font-size: 1rem;
  gap: 18px;
  animation: slideInUp 0.5s cubic-bezier(.22,.7,.45,1) 1;
}
@keyframes slideInUp {
  from { transform: translateY(110%); opacity:0; }
  to   { transform: translateY(0); opacity:1; }
}
.cookie-banner p {
  margin: 0 24px 0 0;
  flex:1 1 50%;
  color: #fff;
  font-size: 1rem;
}
.cookie-btn {
  background: #FFD447;
  color: #03778F;
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 9px 20px;
  border: none;
  border-radius: 18px;
  font-size: 1rem;
  margin-left: 10px;
  margin-bottom: 0;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 1px 8px 0 rgba(3,119,143,0.14);
  transition: background 0.21s, color 0.19s;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #fff;
  color: #03778F;
}
/* Cookie Settings Modal */
.cookie-modal {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(14,34,43,0.42);
  z-index: 1300;
  animation: fadeIn 0.24s cubic-bezier(.23,1,.32,1);
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.cookie-modal-content {
  background: #fff;
  color: #1c2833;
  border-radius: 18px;
  box-shadow: 0 3px 24px 0 rgba(3,119,143,0.14);
  max-width: 380px;
  width: 94vw;
  padding: 32px 24px 18px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  position: relative;
  animation: modalIn 0.32s cubic-bezier(.25,.8,.25,1);
}
@keyframes modalIn {
  from { transform: translateY(60px) scale(.98); opacity:0; }
  to   { transform: translateY(0) scale(1); opacity:1; }
}
.cookie-modal-content h3 {
  font-size: 1.17rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 800;
  color: #03778F;
  margin-bottom: 12px;
}
.cookie-modal-content label {
  color: #1c2833;
  font-size: 0.97rem;
  margin-bottom: 5px;
  font-weight: 500;
}
.cookie-modal-content .cookie-toggle {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 9px;
}
.cookie-modal-content .cookie-toggle input[type=checkbox] {
  width: 20px; height: 20px; accent-color: #03778F;
}
.cookie-modal-content .cookie-modal-close {
  position: absolute;
  right: 17px;
  top: 12px;
  background: transparent;
  color: #03778F;
  border: none;
  font-size: 1.7rem;
  cursor: pointer;
  font-family: 'Montserrat', Arial, sans-serif;
  transition: color 0.17s;
}
.cookie-modal-content .cookie-modal-close:hover, .cookie-modal-content .cookie-modal-close:focus {
  color: #FFD447;
  outline: none;
}
.cookie-modal-content .cookie-btn {
  margin: 12px 6px 0 0;
}

/* ==== ACCENT ELEMENTS, LISTS, ICONS ==== */
ul li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 14px;
  color: #1c2833;
}
ul li::before {
  content: '';
  display: inline-block;
  position: absolute;
  left: 0; top: 7px;
  width: 15px; height: 15px;
  background: radial-gradient(circle closest-side, #FFD447 55%, transparent 56%);
  border-radius: 50%;
}
ul.feature-list li::before {
  background: radial-gradient(circle closest-side, #03778F 75%, transparent 76%);
}

/* ==== ICONS IN FEATURES SECTION ==== */
section img[src*='icons/'], li img[src*='icons/'] {
  display: inline-block;
  vertical-align: middle;
  width: 28px;
  height: 28px;
  margin-right: 10px;
  margin-bottom: -6px;
}

/* ==== SPECIAL CASES ==== */
address {
  font-style: normal;
}

/* ==== SCROLLBAR STYLING ==== */
::-webkit-scrollbar {
  width: 11px;
  background: #FAFAFA;
}
::-webkit-scrollbar-thumb {
  background: #FFD447;
  border-radius: 12px;
}

/* ==== SELECTION COLOR ==== */
::selection {
  color: #fff;
  background: #03778F;
}

/* ==== MICRO-ANIMATIONS, TRANSITIONS ==== */
button, .cta-btn, a {
  transition: all 0.19s cubic-bezier(.46,1.34,.42,1);
}
.card, .testimonial-card, .blog-summary {
  transition: box-shadow 0.22s, transform 0.22s;
}
.card:hover, .testimonial-card:hover, .blog-summary:hover {
  transform: translateY(-3px) scale(1.018);
  box-shadow: 0 8px 24px 0 rgba(3,119,143,0.13);
}

/* ==== ENSURE NO OVERLAPS/PROPER SPACING ON MOBILE ==== */
@media (max-width: 480px) {
  .testimonial-card,
  .content-wrapper,
  .section {
    padding: 16px 3px !important;
    margin-bottom: 16px !important;
  }
  .card {
    margin-bottom: 12px;
    padding: 11px 4px;
  }
}

/* ==== COLOR UTILITIES ==== */
.bg-primary { background: #03778F !important; color: #fff !important; }
.bg-secondary { background: #FFD447 !important; color: #03778F !important; }
.bg-accent { background: #FAFAFA !important; color: #03778F !important; }

/* ==== ACCESSIBILITY FOCUS ==== */
a:active, a:focus, button:focus {
  outline: 2px solid #FFD447;
  outline-offset: 2px;
}

/* ==== Z-INDEX SAFEGUARDS FOR MENUS/MODALS ==== */
header { z-index: 105; }
.mobile-menu { z-index: 1005; }
.cookie-banner { z-index: 1200; }
.cookie-modal { z-index: 1300; }

/* ==== VISUAL HIERARCHY (Spacing) ==== */
.section + .section {
  margin-top: 24px;
}
.card-container .card, .content-grid > *, .blog-summary, .testimonial-card {
  margin-right: 0 !important;
  margin-left: 0 !important;
}

/* ==== PRINT FRIENDLY ==== */
@media print {
  header, footer, .cookie-banner, .mobile-menu { display: none !important; }
  body { background: #fff; color: #000; }
  .section, .card, .testimonial-card, .blog-summary, table { box-shadow: none !important; }
}
