/* ===== 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, menu, 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, 
main, 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; }
*, *:before, *:after { box-sizing: inherit; }
body { line-height: 1; background: #F6F6F6; }
menu, ol, ul { list-style: none; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ====== BRAND VARIABLES (fallbacks) ====== */
:root {
  --color-primary: #143652;
  --color-secondary: #2FA85E;
  --color-accent: #F6F6F6;
  --color-white: #ffffff;
  --color-black: #181A1C;
  --color-muted: #8AA1B1;
  --radius-lg: 20px;
  --radius-md: 12px;
  --radius-sm: 6px;
  --shadow-md: 0 4px 16px 0 rgba(10,30,58,0.10);
  --shadow-lg: 0 8px 32px 0 rgba(10,30,58,0.15);
  --font-display: 'Oswald', Arial, sans-serif;
  --font-body: 'Roboto', Arial, sans-serif;
}


/* ====== BASE TYPOGRAPHY ====== */
body {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--color-primary);
  background: linear-gradient(135deg, #F6F6F6 60%, #e6f4ed 100%);
  min-height: 100vh;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--color-primary);
  letter-spacing: 0.02em;
  line-height: 1.1;
}
h1 { font-size: 2.5rem;  }
h2 { font-size: 2rem;    }
h3 { font-size: 1.25rem; }
h4, h5, h6 { font-size: 1.1rem; }
p, li, ul, ol {
  margin-bottom: 10px;
  line-height: 1.7;
  font-size: 1rem;
  color: var(--color-black);
}
strong { color: var(--color-primary); font-weight: 700; }
.text-section a { color: var(--color-secondary); text-decoration: underline; }
.text-section a:hover { color: var(--color-primary); text-decoration: none; }

/* ===== HEADER ===== */
header {
  background: linear-gradient(90deg, var(--color-primary) 60%, var(--color-secondary) 120%);
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  box-shadow: var(--shadow-md);
  position: relative;
  z-index: 1001;
}
header img {
  height: 48px;
  margin-right: 22px;
}
header nav {
  display: flex;
  gap: 16px;
}
header nav a {
  color: var(--color-white);
  font-family: var(--font-body);
  font-weight: 500;
  padding: 10px 8px;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  transition: background 0.2s;
}
header nav a:hover, header nav a:focus {
  background: rgba(47,168,94,0.10);
  color: var(--color-secondary);
}
.btn-primary {
  background: var(--color-secondary);
  color: var(--color-white);
  font-family: var(--font-display);
  font-weight: 700;
  border: none;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  font-size: 1.1rem;
  letter-spacing: 0.01em;
  margin-left: 24px;
  cursor: pointer;
  transition: background 0.2s, transform 0.12s, box-shadow 0.2s;
  outline: none;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-2px) scale(1.03);
  box-shadow: var(--shadow-lg);
}
.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--color-white);
  font-size: 2.1rem;
  padding: 8px;
  margin-left: 18px;
  cursor: pointer;
  z-index: 1002;
  line-height: 1;
  border-radius: var(--radius-md);
  transition: background 0.2s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: rgba(47,168,94,0.15);
}

/* ===== MOBILE NAV MENU ===== */
.mobile-menu {
  display: none;
  flex-direction: column;
  align-items: flex-start;
  position: fixed;
  top: 0; left: 0;
  height: 100vh;
  width: 100vw;
  background: linear-gradient(120deg, var(--color-primary) 75%, var(--color-secondary) 120%);
  z-index: 1200;
  padding: 24px 24px 24px 36px;
  transition: transform 0.4s cubic-bezier(.7,.2,.19,1.01), opacity 0.3s;
  transform: translateX(-100vw);
  opacity: 0;
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0);
  opacity: 1;
}
.mobile-menu-close {
  background: transparent;
  color: var(--color-secondary);
  font-size: 2.1rem;
  border: none;
  align-self: flex-end;
  margin-bottom: 18px;
  cursor: pointer;
  transition: color 0.15s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--color-white);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 10px;
  width: 100%;
}
.mobile-nav a {
  color: var(--color-white);
  font-family: var(--font-display);
  font-size: 1.24rem;
  font-weight: 600;
  line-height: 1.3;
  padding: 12px 4px 12px 0;
  border-radius: var(--radius-sm);
  transition: background 0.12s, padding-left 0.12s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: rgba(47,168,94,0.18);
  color: var(--color-secondary);
  padding-left: 10px;
}
@media (max-width: 1100px) {
  header nav { gap: 7px; }
  .btn-primary { margin-left: 10px; padding: 11px 16px; }
}
@media (max-width: 900px) {
  header nav { gap: 2px; }
  .btn-primary { margin-left: 4px; padding: 10px 8px; font-size: 1rem; }
}
@media (max-width: 768px) {
  header nav, .btn-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* ====== MAIN & CONTAINER LAYOUTS ====== */
main {
  min-height: 60vh;
  margin-bottom: 50px;
}
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
  width: 100%;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
@media (max-width: 768px) {
  .section { padding: 34px 8px; margin-bottom: 34px; }
  .container { padding: 0 7px; }
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.text-section {
  margin-bottom: 20px;
  padding: 12px 0;
  color: var(--color-black);
  line-height: 1.65;
}
.text-section h2 {
  margin-top: 8px;
  margin-bottom: 11px;
  font-size: 1.3rem;
  color: var(--color-primary);
}

/* ===== LAYOUT PATTERNS (CARD, FLEX, GRID) ===== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  background: #fff;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 25px 22px 27px 22px;
  min-width: 240px;
  justify-content: flex-start;
  transition: box-shadow 0.18s, transform 0.16s;
}
.card:hover, .card:focus-within {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px) scale(1.02);
}
.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: 12px;
  padding: 22px 34px 22px 20px;
  margin-bottom: 20px;
  margin-right: 8px;
  border-radius: var(--radius-md);
  background: #fafbfc;
  box-shadow: var(--shadow-md);
  max-width: 480px;
  min-width: 220px;
  color: #222;
}
.testimonial-card span {
  font-size: 1.2rem;
  color: var(--color-secondary);
  font-weight: 700;
  letter-spacing: .2em;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ICONS IN LISTS */
ul li > img, ol li > img {
  height: 26px;
  width: 26px;
  margin-right: 12px;
  vertical-align: middle;
  display: inline-block;
  margin-bottom: -6px;
}
ul, ol {
  margin-left: 0px;
  padding-left: 0;
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
ul li, ol li {
  display: flex;
  align-items: flex-start;
  color: var(--color-black);
  font-size: 1.03rem;
  font-family: var(--font-body);
  padding-left: 0;
  line-height: 1.65;
  background: none;
  border: 0;
  border-radius: 0;
}

/* BADGES */
.badge {
  display: inline-block;
  background: var(--color-primary);
  color: var(--color-white);
  padding: 3px 15px;
  border-radius: 13px;
  letter-spacing: 0.08em;
  font-size: 0.98rem;
  font-weight: 500;
  margin-top: 10px;
  margin-bottom: 6px;
}

/* ====== FORMS (if any future) ====== */
input, textarea, select, button {
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
}
input, textarea, select {
  border: 1.5px solid #CFD8E1;
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  transition: border 0.16s, box-shadow 0.13s;
  background: #f8fafb;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 2px rgba(47,168,94,0.10);
}

/* ====== FOOTER ====== */
footer {
  width: 100%;
  background: var(--color-primary);
  padding: 38px 0 20px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  color: var(--color-white);
  font-size: 0.97rem;
  box-shadow: var(--shadow-md);
  margin-top: 50px;
}
footer nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
footer nav a {
  color: var(--color-accent);
  font-family: var(--font-body);
  font-weight: 500;
  transition: color 0.18s;
  font-size: 1rem;
}
footer nav a:hover, footer nav a:focus {
  color: var(--color-secondary);
  text-decoration: underline;
}
footer .text-section {
  color: var(--color-white);
  margin-bottom: 4px;
  font-size: 0.97rem;
  text-align: center;
  font-family: var(--font-body);
}

/* ===== RESPONSIVE FLEX LAYOUTS ===== */
@media (max-width: 900px) {
  .card-container, .content-grid, .text-image-section, .feature-list-wrapper {
    gap: 12px;
  }
}
@media (max-width: 768px) {
  .content-wrapper {
    gap: 18px;
  }
  .container {
    padding: 0 4px;
  }
  .testimonial-card { padding: 18px 12px 18px 12px; }
  .card { padding: 17px 7px 22px 10px; }
  .content-grid, .card-container {
    flex-direction: column;
    gap: 12px;
    justify-content: flex-start;
  }
  .text-image-section {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
}

/* ===== HIERARCHY & SPACING ===== */
.section h2 {
  margin-bottom: 22px;
  font-family: var(--font-display);
  color: var(--color-primary);
}
.section h3 {
  color: var(--color-secondary);
  margin-bottom: 7px;
  font-size: 1.15rem;
}
.section p {
  color: var(--color-black);
  margin-bottom: 7px;
}


/* ====== INTERACTIVE ELEMENTS ====== */
.btn-primary {
  box-shadow: var(--shadow-md);
  transition: background 0.15s, color 0.18s, box-shadow 0.15s, transform 0.15s;
}
.btn-primary:active {
  background: var(--color-secondary);
  color: #eefaed;
  box-shadow: 0 1px 2px rgba(20,54,82,0.09);
}
div[class*='card']:hover, .feature-item:hover {
  box-shadow: var(--shadow-lg);
}

/* ===== COOKIE CONSENT BANNER ===== */
.cookie-banner {
  position: fixed;
  left: 0; bottom: 0;
  width: 100vw;
  background: linear-gradient(90deg,#fff 60%,#E7F2EA 100%);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  box-shadow: 0 -4px 18px rgba(0,32,50,.09);
  padding: 18px 32px 18px 18px;
  z-index: 1300;
  font-size: 1rem;
  transition: transform .4s cubic-bezier(.7,.2,.19,1.01), opacity .4s;
}
.cookie-banner p {
  margin-bottom: 0;
  max-width: 450px;
  font-family: var(--font-body);
}
.cookie-actions {
  display: flex; gap: 22px;
  align-items: center;
}
.cookie-actions .btn-cookie {
  border: 0;
  padding: 10px 24px;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  margin-right: 0;
  margin-bottom: 0;
  cursor: pointer;
  background: var(--color-secondary);
  color: var(--color-white);
  transition: background 0.14s, color 0.10s, box-shadow 0.13s;
  box-shadow: 0 1px 6px 0 rgba(20,54,82,0.06);
}
.btn-cookie.settings {
  background: var(--color-primary);
}
.btn-cookie.reject {
  background: #eee;
  color: var(--color-primary);
}
.btn-cookie:hover, .btn-cookie:focus {
  filter: brightness(1.06);
  box-shadow: 0 2px 9px 0 rgba(47,168,94,.12);
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
}
@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 5px 15px 10px;
    gap: 13px;
    font-size: 0.98rem;
  }
  .cookie-banner p {max-width: 93vw;}
}

/* ===== COOKIE SETTINGS MODAL ===== */
.cookie-modal {
  display: none;
  flex-direction: column;
  position: fixed;
  left: 50%; top: 50%;
  transform: translate(-50%,-50%) scale(1);
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 42px rgba(20,54,82, 0.16);
  padding: 34px 32px 22px 30px;
  z-index: 1350;
  min-width: 310px;
  min-height: 230px;
  transition: opacity 0.26s cubic-bezier(.69,.28,.07,1), transform 0.37s cubic-bezier(.77,.16,.32,1);
  opacity: 0;
  pointer-events: none;
}
.cookie-modal.open {
  display: flex;
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%,-50%) scale(1.01);
}
.cookie-modal h3 {
  color: var(--color-primary);
  font-size: 1.24rem;
  margin-bottom: 9px;
}
.cookie-category {
  display: flex;
  gap: 14px;
  align-items: center;
  margin: 14px 0 7px 0;
}
.cookie-switch {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.96rem;
  background: #f8fafb;
  border-radius: 14px;
  padding: 2px 16px 2px 8px;
}
.cookie-switch input[type="checkbox"] {
  appearance: none;
  width: 36px; height: 18px;
  background: #c8e6d9;
  border-radius: 14px;
  position: relative;
  outline: none;
  margin-right: 7px;
  transition: background 0.11s;
  cursor: pointer;
}
.cookie-switch input[type="checkbox"]:checked {
  background: var(--color-secondary);
}
.cookie-switch input[type="checkbox"]:before {
  content: '';
  display: block;
  position: absolute;
  left: 2px; top: 2px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(20,54,82,0.10);
  transition: left 0.11s;
}
.cookie-switch input[type="checkbox"]:checked:before {
  left: 20px;
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 18px;
  margin-top: 22px;
}
.cookie-modal .btn-cookie {
  padding: 10px 24px;
  font-size: 1rem;
}
.cookie-modal-close {
  position: absolute;
  right: 13px; top: 13px;
  background: transparent;
  color: var(--color-secondary);
  font-size: 1.8rem;
  border: none;
  cursor: pointer;
  z-index: 30;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: var(--color-primary);
}
@media (max-width: 600px) {
  .cookie-modal {
    min-width: 65vw;
    max-width: 96vw;
    padding: 18px 8px 16px 16px;
  }
  .cookie-modal h3 {
    font-size: 1.05rem;
  }
}


/* ======= GENERAL HELPERS & MICRO-ANIMATIONS ======= */
.show { display: block !important; }
.hide { display: none !important; }
.fade-in {
  animation: fade-in-bounce 0.7s cubic-bezier(.7,.2,.19,1.01) both;
}
@keyframes fade-in-bounce {
  from { opacity:0; transform: translateY(16px) scale(.97);} 
  to { opacity:1; transform: translateY(0) scale(1);}
}
.hover-raise:hover {
  box-shadow: var(--shadow-lg) !important;
  transition: box-shadow 0.15s, transform 0.14s;
  transform: scale(1.01);
}

/* ===== MISC: BADGES, STRONG, ETC ===== */
strong {
  font-weight: 700;
  color: var(--color-primary);
}
span.badge { font-variant: small-caps; }

/* ===== PRINT/ACCESSIBLE ===== */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal { display: none !important; }
}

/* ======= CUSTOM SCROLLBAR FOR MODAL & MOBILE MENU ======= */
.mobile-menu, .cookie-modal {
  scrollbar-width: thin;
  scrollbar-color: var(--color-secondary) #e6ebf1;
}
.mobile-menu::-webkit-scrollbar, .cookie-modal::-webkit-scrollbar {
  width: 7px;
  background: #f1f7f3;
}
.mobile-menu::-webkit-scrollbar-thumb, .cookie-modal::-webkit-scrollbar-thumb {
  background: var(--color-secondary);
  border-radius: 6px;
}

/* ======= OVERRIDES/FIXES ======= */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--color-secondary);
  outline-offset: 2px;
}

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