/* ==== CSS RESET & NORMALIZER ==== */
html { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; margin: 0; padding: 0; }
body { min-height: 100vh; background: #fff; color: #222; font-family: 'Roboto', Arial, sans-serif; font-weight: 400; font-size: 16px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
img, picture, video, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; cursor: pointer; }
ul, ol { padding-left: 24px; }
ul { list-style: disc inside; }
ol { list-style: decimal inside; }
h1, h2, h3, h4 { font-family: 'Montserrat', Arial, sans-serif; font-weight: 600; line-height: 1.2; }
h1 { font-size: 2.5rem; margin-bottom: 16px; }
h2 { font-size: 1.75rem; margin-bottom: 20px; }
h3 { font-size: 1.25rem; margin-bottom: 10px; }
h4 { font-size: 1rem; margin-bottom: 6px; }
p { margin-bottom: 1.2em; }
address { font-style: normal; margin-bottom: 1.2em; }
section {margin-bottom: 60px; padding: 40px 20px; background: #fff;}

/* ==== BRAND COLORS & VARIABLES ==== */
:root {
  --color-primary: #19587D;
  --color-secondary: #19A26D;
  --color-accent: #F3F7FA;
  --color-text: #202830;
  --color-text-secondary: #42616D;
  --color-bg: #fff;
  --color-border: #E3EAEE;
  --shadow-card: 0 4px 24px rgba(25, 88, 125, 0.05);
  --shadow-light: 0 1.5px 6px rgba(25, 88, 125, 0.04);
  --shadow-hover: 0 4px 24px rgba(25, 88, 125, 0.09);
  --radius: 14px;
}

/* ==== LAYOUT ==== */
body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: 'Roboto', Arial, sans-serif;
}
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
}
.text-section,
.text-image-section {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: center;
}
@media (max-width: 768px) {
  .text-section, .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
  .container { padding: 0 10px; }
  section {padding: 32px 8px; margin-bottom: 40px;}
}

/* ==== HEADER & NAVIGATION ==== */
header {
  background: #fff;
  box-shadow: var(--shadow-light);
  border-bottom: 1px solid var(--color-border);
  position: sticky; top: 0; z-index: 90;
}
header .container {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 68px;
  gap: 16px;
}
.logo-link {
  display: flex; align-items: center; height: 52px;
}
.main-nav {
  display: flex; align-items: center; gap: 24px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  color: var(--color-primary);
  padding: 8px 8px;
  position: relative;
  transition: color 0.18s;
}
.main-nav a.cta.primary {
  background: var(--color-secondary);
  color: #fff;
  padding: 10px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  letter-spacing: 0.03em;
  box-shadow: var(--shadow-card);
  margin-left: 20px;
  border: none;
  transition: background 0.18s, box-shadow 0.21s;
}
.main-nav a:hover:not(.cta),
.main-nav a:focus:not(.cta) {
  color: var(--color-secondary);
}
.main-nav a.cta.primary:hover,
.main-nav a.cta.primary:focus {
  background: #17815c;
  box-shadow: var(--shadow-hover);
}

/* ==== MOBILE NAV ==== */
.mobile-menu-toggle {
  display: none;
  background: var(--color-accent);
  color: var(--color-primary);
  border: none;
  font-size: 2rem;
  padding: 6px 12px;
  border-radius: var(--radius);
  cursor: pointer;
  margin-left: 14px;
  transition: background 0.15s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover { background: var(--color-secondary); color: #fff; }
.mobile-menu {
  position: fixed; left: 0; right: 0; top: 0; bottom: 0;
  background: #fff;
  z-index: 120;
  transform: translateX(100%);
  transition: transform 0.34s cubic-bezier(.69,.19,.25,1);
  box-shadow: 0 0 44px rgba(25,88,125,0.13);
  display: flex; flex-direction: column;
  padding: 36px 20px 24px 20px;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2rem;
  background: none;
  border: none;
  color: var(--color-primary);
  margin-bottom: 20px;
  cursor: pointer;
  line-height: 1;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.13rem;
  color: var(--color-primary);
  padding: 14px 0 14px 0;
  border-bottom: 1px solid var(--color-border);
  transition: color 0.18s;
}
.mobile-nav a:hover, .mobile-nav a:focus { color: var(--color-secondary); background: var(--color-accent); }

@media (max-width: 1060px) {
  .main-nav { gap: 14px; }
  .main-nav a.cta.primary { padding: 8px 18px; font-size: 1rem; }
}
@media (max-width: 900px) {
  .main-nav { gap: 8px; }
}
@media (max-width: 820px) {
  .main-nav { gap: 0px; }
  .main-nav a { font-size: 0.97rem; }
}
@media (max-width: 768px) {
  .main-nav { display: none; }
  .mobile-menu-toggle { display: block; }
  .logo-link img { height: 40px; }
}

/* ==== TYPOGRAPHY ==== */
h1, .hero-title {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600; color: var(--color-primary);
  margin-bottom: 0.25em
}
h2 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  margin-bottom: 0.17em;
  color: var(--color-primary);
}
h3, h4 { color: var(--color-primary); }
p, li { color: var(--color-text-secondary); font-size: 1.02rem; }
strong, b { font-weight: 600; color: var(--color-primary); }

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.2rem; }
  h3 { font-size: 1rem; }
}

.text-section ul, .content-wrapper ul, .content-wrapper ol {
  margin-bottom: 12px;
  padding-left: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.text-section li, .content-wrapper li {
  font-size: 1.02rem; color: var(--color-text-secondary);
  padding-left: 8px;
}

/* ==== BUTTONS/CTAS ==== */
.cta, .btn, button[type="submit"] {
  appearance: none; border: none;
  border-radius: var(--radius);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  background: var(--color-primary);
  color: #fff;
  padding: 14px 32px;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  transition: background 0.21s, box-shadow 0.23s, transform 0.14s;
  outline: none;
  display: inline-block;
}
.cta.primary {
  background: var(--color-secondary);
  color: #fff;
}
.cta.secondary {
  background: var(--color-primary);
  color: #fff;
}
.cta:hover, .cta:focus, .btn:hover, .btn:focus {
  background: #133f5b;
  box-shadow: var(--shadow-hover);
  transform: translateY(-1px) scale(1.02);
}
.cta.primary:hover, .cta.primary:focus {
  background: #17815c; color: #fff;
}
.cta.secondary:hover, .cta.secondary:focus {
  background: #133f5b;
}
@media (max-width: 768px) {
  .cta, .btn { font-size: 0.98rem; padding: 12px 18px; }
}

/* ==== CARD & FLEX PATTERNS ==== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 28px 22px;
  min-width: 240px;
  flex: 1 1 320px;
  transition: box-shadow 0.19s;
}
.card:hover,
.card:focus-within {
  box-shadow: var(--shadow-hover);
}
.content-grid {
  display: flex; flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.text-image-section { align-items: center; gap: 30px; flex-wrap: wrap; }
@media (max-width:768px) {
  .card-container, .content-grid { flex-direction: column; gap: 16px; }
  .card { min-width: 0; }
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--color-accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow-light);
  margin-bottom: 20px;
  border-left: 4px solid var(--color-secondary);
  max-width: 580px;
  transition: box-shadow 0.17s, border-color 0.17s;
}
.testimonial-card p:first-child {
  color: var(--color-text);
  font-size: 1.1em;
}
.testimonial-card strong { color: var(--color-primary); }
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: var(--shadow-card);
  border-left-color: var(--color-primary);
}
.feature-item {
  display: flex; flex-direction: column; align-items: flex-start;
  gap: 15px;
  padding: 18px 0;
}
.team-bio {
  background: var(--color-accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow-light);
  margin-bottom: 20px;
  padding: 20px 18px;
  flex: 1 1 250px;
  min-width: 240px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
@media (max-width: 800px) {
  .team-bio { min-width: 0; }
  .content-wrapper { gap: 12px; }
}

/* ==== FOOTER ==== */
footer {
  background: var(--color-accent);
  border-top: 1px solid var(--color-border);
  color: var(--color-primary);
  padding: 30px 0;
}
footer .container { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; justify-content: space-between; }
.footer-brand { flex: 0 0 auto; margin-right: 26px; }
.footer-brand img { height: 40px; }
.footer-nav {
  display: flex; flex-wrap: wrap; gap: 16px 26px;
  flex: 1 1 350px;
  align-items: flex-start;
}
.footer-nav a {
  color: var(--color-primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  transition: color 0.15s;
  padding: 4px 0;
}
.footer-nav a:hover { color: var(--color-secondary); }
.footer-contact-short {
  flex: 1 1 300px;
  color: var(--color-text-secondary);
  font-size: 0.98rem;
  display: flex; flex-direction: column; gap: 7px;
}
.footer-contact-short a { color: var(--color-secondary); }
@media (max-width: 900px) {
  footer .container { flex-direction: column; gap: 22px; align-items: flex-start; }
  .footer-brand { margin-bottom: 12px; }
}
@media (max-width: 600px) {
  .footer-nav { flex-direction: column; gap: 2px; }
  footer .footer-contact-short { font-size: 0.95rem; }
}

/* ==== MICRO-INTERACTIONS & ANIMATIONS ==== */
a, .cta, .btn, button {
  transition: background 0.17s, color 0.18s, box-shadow 0.15s, transform 0.17s;
}
section, .card, .testimonial-card, .team-bio { transition: box-shadow 0.18s; }

/* ==== ACCESSIBILITY ==== */
:focus-visible { outline: 2px solid var(--color-secondary); outline-offset: 2px; }

/* ==== COOKIE BANNER ==== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 2000;
  background: #fff;
  border-top: 2px solid var(--color-primary);
  box-shadow: 0 -2px 19px rgba(25,88,125,.13);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 26px 20px 18px 20px;
  gap: 13px;
  opacity: 1; pointer-events: all; transition: opacity 0.33s, transform 0.31s;
  font-size: 1rem;
}
.cookie-banner.hide { opacity: 0; pointer-events: none; }
.cookie-banner p { color: var(--color-text); text-align: center; margin-bottom: 0; }
.cookie-banner .cookie-actions {
  display: flex; flex-wrap: wrap;
  gap: 12px; margin-top: 2px; justify-content: center;
}
.cookie-banner button {
  min-width: 110px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 26px;
  padding: 10px 18px;
  border: none;
  transition: background 0.16s, box-shadow 0.18s;
  cursor: pointer;
  background: var(--color-secondary);
  color: #fff;
  margin: 0 1px;
}
.cookie-banner .cookie-reject {
  background: var(--color-primary);
  color: #fff;
}
.cookie-banner .cookie-settings {
  background: transparent;
  color: var(--color-secondary);
  border: 1.2px solid var(--color-secondary);
}
.cookie-banner button:hover, .cookie-banner button:focus {
  box-shadow: 0 1.5px 8px rgba(25,88,125,.11);
  transform: translateY(-2px);
}

/* ==== COOKIE MODAL ==== */
.cookie-modal-backdrop {
  position: fixed; left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(25, 88, 125, 0.19);
  z-index: 2100;
  display: flex; align-items: center; justify-content: center;
  opacity: 1; pointer-events: all;
  transition: opacity 0.27s;
}
.cookie-modal-backdrop.hide { opacity: 0; pointer-events: none; }

.cookie-modal {
  background: #fff;
  border-radius: var(--radius);
  max-width: 430px;
  width: 100%;
  box-shadow: 0 8px 40px rgba(25,88,125,.15);
  padding: 34px 28px 28px 28px;
  display: flex; flex-direction: column;
  gap: 24px;
  position: relative;
  animation: cookieModalIn 0.35s cubic-bezier(.67,.2,.2,1);
}
@keyframes cookieModalIn { from { transform: translateY(38px) scale(.96); opacity: 0; } to { transform: translateY(0) scale(1); opacity: 1; } }

.cookie-modal h2 {
  font-size: 1.25rem;
  margin-top: 0;
  margin-bottom: 8px;
}
.cookie-modal .cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cookie-modal .category-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
}
.cookie-modal .category-label {
  font-size: 1rem;
  color: var(--color-text);
}
.cookie-modal .cookie-toggle {
  appearance: none;
  width: 38px;
  height: 20px;
  background: var(--color-accent);
  border-radius: 20px;
  position: relative;
  outline: none;
  margin-left: 8px;
  transition: background 0.18s;
  cursor: pointer;
}
.cookie-modal .cookie-toggle:checked { background: var(--color-secondary); }
.cookie-modal .cookie-toggle::before {
  content: '';
  position: absolute; top: 2px; left: 2px;
  width: 16px; height: 16px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0.5px 4px rgba(0,0,0,0.09);
  transform: translateX(0);
  transition: transform 0.15s;
}
.cookie-modal .cookie-toggle:checked::before {
  transform: translateX(18px);
}
.cookie-modal .category-row[data-essential] .cookie-toggle {
  background: var(--color-secondary); opacity: 0.7; pointer-events: none; }
.cookie-modal .category-row[data-essential] .category-label {
  color: #999;
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 10px;
  justify-content: flex-end;
}
.cookie-modal .btn-save {
  background: var(--color-secondary);
  color: #fff;
}
.cookie-modal .btn-cancel {
  background: transparent;
  color: var(--color-secondary);
  border: 1.2px solid var(--color-secondary);
}
.cookie-modal .btn-save:hover, .cookie-modal .btn-cancel:hover {
  box-shadow: 0 1.5px 8px rgba(25,88,125,.09);
  transform: translateY(-2px);
}
.cookie-modal-close {
  position: absolute; top: 12px; right: 16px; border: none; background: none; cursor: pointer; font-size: 1.5rem; color: var(--color-primary); }

@media (max-width: 500px) {
  .cookie-modal { padding: 24px 8px 18px 8px; }
}

/* ==== SPACING AND FLEX PATTERNS (MANDATORY) ==== */
.section { margin-bottom: 60px; padding: 40px 20px; }
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; }
.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; }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/* ==== PREVENT OVERLAPPING AND SPACING CONSISTENCY ==== */
.card, .testimonial-card, .team-bio,
.content-wrapper, .footer-brand, .footer-nav, .footer-contact-short {
  min-width: 0;
}
section .content-wrapper:not(:last-child) { margin-bottom: 20px; }

/* ==== FORMS (GENERIC) ==== */
input, select, textarea {
  font-family: inherit;
  font-size: 1rem;
  border-radius: var(--radius);
  border: 1.2px solid var(--color-border);
  background: #fff;
  padding: 13px 10px;
  margin-bottom: 18px;
  color: var(--color-text-secondary);
  width: 100%; box-sizing: border-box;
  transition: border-color 0.19s, box-shadow 0.19s;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 2px rgba(25,162,109,0.18);
  outline: none;
}

/* ==== HIDE INACCESSIBLE ELEMENTS ON DESKTOP ==== */
@media (min-width: 769px) {
  .mobile-menu, .mobile-menu-toggle { display: none !important; }
}

/* ==== PRINT CUSTOMIZATION ==== */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal-backdrop { display: none !important; }
  body { color: #111; background: #fff; }
  section { background: #fff; page-break-inside: avoid; }
}
