/* ---- CSS RESET & NORMALIZER ---- */
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;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.55;
  background: #fff;
  color: #171717;
}
ol, ul {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
  border: 0;
}
button {
  border: none;
  font: inherit;
  background: none;
  cursor: pointer;
  color: inherit;
  outline: none;
  padding: 0;
}

/* ---- BRAND TYPOGRAPHY & COLORS ---- */
:root {
  --brand-primary: #205375;
  --brand-secondary: #2DB79F;
  --brand-accent: #F4F7FA;
  --color-white: #fff;
  --color-black: #111;
  --color-gray-light: #EBEBEB;
  --color-gray-mid: #B5B7BB;
  --color-gray-dark: #33343a;
  --shadow-soft: 0 2px 16px 0 rgba(40,40,40,0.1);  
  --font-display: 'Montserrat', Arial, 'Helvetica Neue', Helvetica, sans-serif;
  --font-body: 'Open Sans', Arial, 'Helvetica Neue', Helvetica, sans-serif;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--color-black);
  background: var(--color-white);
  transition: background 0.3s, color 0.3s;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--color-black);
  letter-spacing: 0.02em;
}
h1 {
  font-size: 2.5rem;
  line-height: 1.1;
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}
h4, h5, h6 { font-size: 1rem; }
p, li, .text-section p {
  font-size: 1rem;
  color: var(--color-gray-dark);
}
strong {
  color: var(--color-black);
  font-weight: 700;
}
.text-section {
  margin-bottom: 16px;
}

/* ---- CONTAINER & SPACING ---- */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}

/* ---- HEADER & NAVIGATION ---- */
header {
  width: 100%;
  padding-top: 12px;
  background: var(--color-white);
  box-shadow: 0 2px 8px rgba(34,37,41,0.04);
  border-bottom: 1px solid var(--color-gray-light);
  z-index: 30;
  position: relative;
}
header .container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 22px;
  min-height: 72px;
}
header img {
  height: 52px;
  margin-right: 28px;
}
.main-nav {
  display: flex;
  flex-direction: row;
  gap: 18px;
  align-items: center;
  flex: 1;
}
.main-nav a {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-black);
  padding: 8px 14px;
  position: relative;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--brand-accent);
  color: var(--brand-primary);
}
.cta-btn {
  margin-left: auto;
  background: var(--color-black);
  color: var(--color-white);
  border-radius: 32px;
  padding: 12px 34px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.08rem;
  box-shadow: var(--shadow-soft);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--brand-primary);
  color: var(--color-white);
  box-shadow: 0 4px 18px 2px rgba(32,42,75,0.12);
}
.mobile-menu-toggle {
  display: none;
  background: none;
  color: var(--color-black);
  font-size: 2rem;
  margin-left: 12px;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: background 0.2s;
  z-index: 40;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--brand-accent);
}

/* ---- MOBILE NAVIGATION ---- */
.mobile-menu {
  display: flex;
  flex-direction: column;
  background: var(--color-black);
  color: var(--color-white);
  position: fixed;
  top: 0; right: 0; left: 0; bottom: 0;
  transform: translateX(100%);
  transition: transform 0.36s cubic-bezier(0.77,0.2,0.05,1.0);
  z-index: 2000;
  padding-top: 54px;
  opacity: 0.98;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  top: 22px;
  right: 24px;
  background: none;
  color: var(--color-white);
  font-size: 2.3rem;
  line-height: 1;
  z-index: 2050;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: background 0.2s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--brand-primary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: flex-start;
  padding: 28px 36px;
}
.mobile-nav a {
  color: var(--color-white);
  font-size: 1.28rem;
  line-height: 1.5;
  font-family: var(--font-display);
  font-weight: 500;
  padding: 8px 0;
  transition: color 0.16s, border 0.16s;
  border-bottom: 1px solid transparent;
  width: 100%;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--brand-secondary);
  border-bottom: 1px solid var(--brand-secondary);
}

/* ---- HERO SECTION ---- */
.hero {
  background: var(--color-black);
  color: var(--color-white);
  padding: 64px 0;
}
.hero h1,
.hero p {
  color: var(--color-white);
}
.hero .cta-btn {
  background: var(--brand-secondary);
  color: var(--color-black);
  margin-top: 24px;
}
.hero .cta-btn:hover {
  background: var(--color-white);
  color: var(--brand-primary);
}

/* ---- FEATURES SECTION ---- */
.features {
  background: var(--color-white);
}
.features .content-wrapper {
  gap: 34px;
}
.features h2 {
  color: var(--brand-primary);
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 10px;
}
.feature-grid li {
  background: var(--brand-accent);
  border-radius: 18px;
  flex: 1 1 220px;
  min-width: 200px;
  max-width: 278px;
  padding: 24px 18px 18px 18px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  transition: box-shadow 0.2s, transform 0.18s;
}
.feature-grid li:hover {
  box-shadow: 0 4px 32px 0 rgba(32,42,75,0.08);
  transform: translateY(-3px) scale(1.022);
}
.feature-grid img {
  width: 44px;
  height: 44px;
  margin-bottom: 6px;
  filter: grayscale(100%) contrast(140%);
}
.feature-grid h3 {
  font-size: 1.1rem;
  color: var(--brand-primary);
  margin-bottom: 6px;
}
.feature-grid p,
.features ul li p { color: var(--color-gray-dark); font-size: 0.99rem; }

.features ul:not(.feature-grid) {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.features ul:not(.feature-grid) li {
  background: var(--color-white);
  border-left: 4px solid var(--brand-primary);
  padding: 18px 20px;
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
}

/* ---- SERVICES OVERVIEW & DETAIL ---- */
.services-overview, .services-detail {
  background: var(--brand-accent);
  padding: 40px 0;
}
.services-overview h2, .services-detail h2 {
  color: var(--brand-primary);
}
.service-list,
.services-detail ul {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 18px;
}
.service-list li, .services-detail ul li {
  background: var(--color-white);
  border-left: 4px solid var(--brand-secondary);
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
  padding: 22px 28px 22px 22px;
  margin-bottom: 20px;
  min-width: 200px;
  flex: 1 1 260px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow 0.19s, border 0.2s;
}
.service-list li:hover, .services-detail ul li:hover {
  box-shadow: 0 6px 36px 0 rgba(32,83,117,0.09);
  border-left: 4px solid var(--brand-primary);
}
.service-list strong, .services-detail strong {
  color: var(--brand-primary);
  font-weight: 700;
}

/* ---- TESTIMONIALS ---- */
.testimonials {
  background: var(--color-white);
  padding: 40px 0;
}
.testimonials .content-wrapper {
  gap: 32px;
}
.testimonials h2 {
  color: var(--brand-primary);
  margin-bottom: 8px;
}
.testimonial-card {
  background: var(--color-white);
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--color-gray-light);
  max-width: 620px;
  padding: 30px 32px 18px 32px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  transition: box-shadow 0.16s;
}
.testimonial-card p {
  font-size: 1.13rem;
  font-style: italic;
  color: var(--color-black);
  margin-bottom: 6px;
  line-height: 1.5;
}
.testimonial-card span {
  color: var(--brand-primary);
  font-size: 1rem;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.01em;
}
.testimonial-card:hover {
  box-shadow: 0 6px 32px 0 rgba(32,83,117,0.09);
}

/* ---- CONTACT SHORT & SECTION ---- */
.contact-short, .contact-section {
  background: var(--color-black);
  color: var(--color-white);
  padding: 48px 0;
  text-align: left;
}
.contact-short h2,
.contact-section h1, .contact-section h2 {
  color: var(--brand-secondary);
}
.contact-short .cta-btn, .contact-section .cta-btn {
  background: var(--brand-secondary);
  color: var(--color-black);
}
.contact-short .cta-btn:hover, .contact-section .cta-btn:hover {
  background: var(--color-white);
  color: var(--brand-primary);
}
.contact-section .text-section {
  margin-bottom: 10px;
}

/* ---- GENERIC TEXT SECTION ---- */
.text-section {
  margin-bottom: 22px;
}
.text-section ul {
  margin-top: 10px;
  margin-bottom: 0;
  padding-left: 22px;
  list-style: disc inside none;
  color: var(--color-gray-dark);
}
.text-section li {
  margin-bottom: 8px;
}
.text-section a {
  color: var(--brand-primary);
  transition: color 0.18s;
}
.text-section a:hover, .text-section a:focus {
  color: var(--brand-secondary);
  text-decoration: underline;
}

/* ---- PAGE SECTIONS: PRIVACY, TERMS, COOKIE, GDPR ---- */
.privacy-section, .terms-section, .gdpr-section, .cookie-section, .thank-you-section {
  background: var(--brand-accent);
  padding: 60px 0;
}
.privacy-section h1, .terms-section h1, .gdpr-section h1, .cookie-section h1, .thank-you-section h1 {
  color: var(--brand-primary);
  margin-bottom: 18px;
}

/* ---- FOOTER ---- */
footer {
  background: var(--color-black);
  padding: 34px 0 26px 0;
  color: var(--color-white);
  width: 100%;
}
footer .container {
  display: flex;
  flex-direction: column;
}
.footer-menu {
  display: flex;
  flex-direction: row;
  gap: 28px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.footer-menu a {
  color: var(--color-white);
  font-size: 1rem;
  opacity: 0.83;
  transition: color 0.13s, opacity 0.12s;
}
.footer-menu a:hover, .footer-menu a:focus {
  color: var(--brand-secondary);
  opacity: 1;
}
.social-icons {
  display: flex;
  flex-direction: row;
  gap: 16px;
  margin-bottom: 9px;
}
.social-icons img {
  width: 28px;
  height: 28px;
  filter: grayscale(100%) brightness(150%);
  opacity: 0.85;
  transition: filter 0.2s, opacity 0.2s;
}
.social-icons img:hover {
  filter: grayscale(0%) brightness(110%);
  opacity: 1;
}
footer p {
  margin-top: 8px;
  font-size: 0.99rem;
  color: var(--color-gray-mid);
  opacity: 0.75;
}

/* ---- FLEXBOX LAYOUTS FOR SPACING ---- */
/* Layout class helpers - required */
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; background: var(--color-white); border-radius: 14px; box-shadow: var(--shadow-soft); }
.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; }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/* ---- BUTTONS, LINKS, INTERACTIONS ---- */
button, .cta-btn, .mobile-menu-close, .mobile-menu-toggle {
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
:focus-visible {
  outline: 2px solid var(--brand-secondary);
  outline-offset: 2px;
}

/* ---- RESPONSIVE DESIGN ---- */
@media (max-width: 1080px) {
  .container { max-width: 94vw; }
}
@media (max-width: 900px) {
  .main-nav {
    gap: 8px;
  }
  .features .feature-grid {
    gap: 18px;
  }
}
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.45rem; }
  .hero { padding: 40px 0; }
  .section, .privacy-section, .terms-section, .gdpr-section, .cookie-section, .thank-you-section {
    padding: 32px 0;
  }
  footer .container { padding: 0 10px; }
  .footer-menu { gap: 15px; }
  .feature-grid {
    flex-direction: column;
    gap: 20px;
  }
  .service-list, .services-detail ul { flex-direction: column; gap: 18px; }
  .card-container, .content-grid { flex-direction: column; gap: 18px; }
  .main-nav { display: none !important; }
  .cta-btn { margin-left: 0; }
  header .container {
    gap: 8px;
    min-height: 56px;
  }
  .mobile-menu-toggle {
    display: block;
    z-index: 1100;
  }
  .mobile-menu {
    display: flex;
  }
}
@media (max-width: 540px) {
  .container {
    padding: 0 8px;
    max-width: 100vw;
  }
  h1 { font-size: 1.32rem; }
  h2 { font-size: 1.04rem; }
  .hero, .section { padding: 18px 0; }
  .footer-menu {
    flex-direction: column;
    gap: 8px;
    margin-bottom: 8px;
  }
  .social-icons img {
    width: 22px; height: 22px;
  }
  .feature-grid li, .service-list li, .services-detail ul li {
    min-width: 0;
    padding: 16px 10px;
  }
  .testimonial-card {
    padding: 16px 12px 9px 12px;
  }
}

.text-image-section {
  flex-direction: row;
  align-items: center;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}

/* ---- COOKIE CONSENT BANNER ---- */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--color-black);
  color: var(--color-white);
  z-index: 3000;
  padding: 28px 18px 19px 18px;
  box-shadow: 0 -4px 38px 0 rgba(34,37,41,0.13);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  opacity: 0.96;
  animation: cookieBannerSlideIn 0.7s cubic-bezier(0.65,0.15,0.4,1.2);
}
@keyframes cookieBannerSlideIn {
  from { transform: translateY(120%); opacity:0; }
  to { transform: translateY(0); opacity:0.98; }
}
.cookie-banner p, .cookie-banner span {
  color: var(--color-white);
  opacity: 0.91;
  font-size: 1rem;
  margin-bottom: 0;
}
.cookie-banner .banner-actions {
  display: flex;
  flex-direction: row;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
}
.cookie-btn, .cookie-banner button {
  border-radius: 32px;
  background: var(--color-white);
  color: var(--color-black);
  padding: 10px 22px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  margin: 0;
  border: none;
  transition: background 0.18s, color 0.16s, box-shadow 0.18s;
  box-shadow: var(--shadow-soft);
}
.cookie-btn.accept {
  background: var(--brand-secondary);
  color: var(--color-black);
}
.cookie-btn.accept:hover { background: var(--brand-primary); color:var(--color-white); }
.cookie-btn.reject {
  background: var(--color-white);
  color: var(--brand-primary);
  border: 1px solid var(--brand-primary);
}
.cookie-btn.reject:hover { background: var(--color-gray-light); color:var(--color-black); }
.cookie-btn.settings {
  background: var(--color-black);
  color: var(--brand-secondary);
  border: 1px solid var(--brand-secondary);
}
.cookie-btn.settings:hover { background: var(--brand-secondary); color:var(--color-black); }

@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 18px 6px 8px 6px;
  }
  .cookie-banner .banner-actions {
    flex-direction: column;
    gap: 9px;
    align-items: stretch;
  }
}

/* ---- COOKIE SETTINGS MODAL ---- */
.cookie-modal-overlay {
  position: fixed;
  z-index: 3500;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(22,22,22, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s;
  animation: modalFadeIn 0.3s cubic-bezier(0.68,0.04,0.43,0.95);
}
@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: var(--color-white);
  color: var(--color-black);
  border-radius: 18px;
  box-shadow: 0 12px 64px 0 rgba(20,20,20,0.21);
  min-width: 320px;
  max-width: 98vw;
  min-height: 240px;
  padding: 30px 34px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
  z-index: 3550;
}
.cookie-modal h2 {
  font-size: 1.18rem;
  margin-bottom: 9px;
  color: var(--brand-primary);
}
.cookie-modal button.close {
  position: absolute;
  top: 16px; right: 18px;
  background: var(--color-black);
  color: var(--color-white);
  border-radius: 50%;
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  transition: background 0.18s;
  z-index: 3600;
}
.cookie-modal button.close:hover { background: var(--brand-primary); }
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--color-gray-light);
}
.cookie-category:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.cookie-category label {
  font-size: 1rem;
  font-weight: 500;
}
.cookie-toggle {
  appearance: none;
  width: 44px;
  height: 28px;
  background: var(--color-gray-light);
  border-radius: 16px;
  position: relative;
  outline: none;
  transition: background 0.18s;
}
.cookie-toggle:checked {
  background: var(--brand-secondary);
}
.cookie-toggle:before {
  content: '';
  position: absolute;
  top: 4px; left: 4px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--color-white);
  box-shadow: var(--shadow-soft);
  transition: left 0.18s;
}
.cookie-toggle:checked:before {
  left: 20px;
}
.cookie-category input[disabled] {
  opacity: 0.6;
  pointer-events: none;
}

/* ---- ANIMATIONS ---- */
.cta-btn, .cookie-btn, .main-nav a, .mobile-nav a, .feature-grid li, .service-list li, .testimonial-card {
  transition: box-shadow 0.17s, background 0.18s, color 0.18s, transform 0.17s;
}

/* ---- MISC. ACCESSIBILITY & USABILITY ---- */
::-webkit-input-placeholder { color: var(--color-gray-mid); opacity: 1; }
::-moz-placeholder { color: var(--color-gray-mid); opacity: 1; }
:-ms-input-placeholder { color: var(--color-gray-mid); opacity: 1; }
::placeholder { color: var(--color-gray-mid); opacity: 1; }

/* ---- END ---- */
