/* --- 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;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.6;
  background: #F8F6F3;
  color: #21302A;
}
ol, ul {
  list-style: none;
}
a {
  background: transparent;
  text-decoration: none;
  color: inherit;
}
img {
  max-width: 100%;
  display: block;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

/* --- BRAND FONTS & COLORS: Elegant Classic --- */
:root {
  --primary: #017454;
  --primary-dark: #016148;
  --secondary: #F7C948;
  --secondary-dark: #FDBF21;
  --accent: #FFFFFF;
  --muted-bg: #F8F6F3;
  --border: #E3DED6;
  --text-main: #21302A;
  --text-muted: #626262;
  --shadow-lg: 0 8px 32px rgba(40,56,46,0.08), 0 1.5px 4px rgba(40,56,46,0.12);
  --shadow: 0 2px 12px rgba(131, 139, 138, 0.07);
  --radius: 14px;
  --radius-sm: 8px;
  --transition: .2s cubic-bezier(.4,.2,.3,1);
  --font-display: 'Montserrat', 'Georgia', serif;
  --font-body: 'Roboto', 'Georgia', serif;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  src: local('Montserrat'), url('https://fonts.googleapis.com/css?family=Montserrat:700&display=swap');
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  src: local('Montserrat'), url('https://fonts.googleapis.com/css?family=Montserrat:400&display=swap');
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  src: local('Roboto'), url('https://fonts.googleapis.com/css?family=Roboto:400&display=swap');
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  background: var(--muted-bg);
  color: var(--text-main);
  letter-spacing: .02em;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: .03em;
  color: var(--primary);
  margin-bottom: 18px;
}
h1 {
  font-size: 2.25rem;
  line-height: 1.15;
  margin-bottom: 20px;
}
h2 {
  font-size: 1.7rem;
  margin-bottom: 18px;
}
h3 {
  font-size: 1.3rem;
  color: var(--text-main);
}
h4, h5, h6 {
  color: var(--text-muted);
  font-size: 1.05rem;
}

p, ul, ol, blockquote {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 18px;
  color: var(--text-muted);
}
strong, b {
  color: var(--primary-dark);
  font-weight: bold;
}

blockquote {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--secondary-dark);
  border-left: 3px solid var(--primary);
  background: #f4f2ea;
  padding: 16px 22px;
  margin: 25px 0 23px 0;
  border-radius: var(--radius-sm);
}

/* --- MAIN LAYOUT SPACING CONTAINERS --- */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: flex-start;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.card {
  background: var(--accent);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 22px 24px;
  min-width: 260px;
  max-width: 370px;
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  margin-bottom: 24px;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #F8F6F3;
  border: 1px solid var(--border);
  padding: 20px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  box-shadow: 0 2px 16px rgba(40,56,46,0.06);
  transition: box-shadow var(--transition), border-color var(--transition);
}
.testimonial-card p {
  color: #212A23;
  font-size: 1.08rem;
  font-style: italic;
}
.testimonial-card span {
  font-family: var(--font-display);
  font-size: 0.97rem;
  color: var(--secondary-dark);
  margin-left: 12px;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
}

.newsletter {
  display: flex;
  align-items: center;
  gap: 18px;
  background: #F4F2EA;
  border-radius: var(--radius-sm);
  padding: 14px 24px;
  font-size: 1.06rem;
  color: var(--primary);
  margin-top: 16px;
  margin-bottom: 16px;
}

.text-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}
.text-section article {
  margin-bottom: 16px;
}

/* --- HEADER --- */
header {
  width: 100%;
  background: var(--accent);
  box-shadow: 0 2px 22px rgba(40,56,46,0.07);
  position: sticky;
  top: 0;
  z-index: 30;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 0;
}
.logo {
  display: flex;
  align-items: center;
  margin-right: 28px;
}
.logo img {
  height: 48px;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
}
.main-nav a {
  font-family: var(--font-display);
  color: var(--primary-dark);
  font-weight: 500;
  font-size: 1.05rem;
  position: relative;
  transition: color var(--transition);
  padding: 4px 0;
}
.main-nav a:after {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  background: var(--secondary);
  transition: width var(--transition);
  margin: 0 auto;
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--primary);
}
.main-nav a:hover:after, .main-nav a:focus:after {
  width: 80%;
}

.btn-primary {
  padding: 11px 32px;
  background: var(--primary);
  color: var(--accent);
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin-left: 26px;
  margin-right: 16px;
  box-shadow: 0 2px 10px rgba(1,141,106,0.05);
  border: none;
  cursor: pointer;
  transition: background var(--transition), box-shadow var(--transition), color var(--transition);
  display: inline-block;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--secondary);
  color: var(--primary-dark);
  box-shadow: 0 4px 18px rgba(247,201,72,0.13);
}

.mobile-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.1rem;
  color: var(--primary);
  background: none;
  border: none;
  cursor: pointer;
  z-index: 51;
  width: 44px;
  height: 44px;
  margin-left: 22px;
  border-radius: 50%;
  transition: background var(--transition);
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #ededeb;
}

/* --- MOBILE MENU --- */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(34,42,38,0.04);
  z-index: 100;
  visibility: hidden;
  opacity: 0;
  transition: opacity var(--transition), visibility var(--transition);
  pointer-events: none;
}
.mobile-menu.active {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu nav {
  background: var(--accent);
  box-shadow: 2px 0 36px rgba(34,42,38,0.11);
  position: fixed;
  top: 0; left: 0;
  width: 84vw;
  max-width: 340px;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 34px 24px 24px 24px;
  transform: translateX(-104%);
  transition: transform var(--transition);
}
.mobile-menu.active nav {
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  left: 15px;
  top: 20px;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  font-size: 1.45rem;
  background: #EBE5DA;
  color: var(--primary-dark);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 120;
  transition: background var(--transition);
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--secondary-dark);
  color: #fff;
}
.mobile-nav {
  margin-top: 38px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.19rem;
  color: var(--primary-dark);
  padding: 10px 8px;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--primary);
  color: var(--accent);
}

/* Hide nav/burger on desktop vs mobile */
@media (min-width: 981px) {
  .mobile-menu-toggle, .mobile-menu { display: none !important; }
}
@media (max-width: 980px) {
  .main-nav, .btn-primary {
    display: none !important;
  }
}

/* --- LISTS & ICONS --- */
ul {
  padding-left: 0;
}
ul li {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 1.09rem;
  margin-bottom: 16px;
  color: var(--text-muted);
  line-height: 1.55;
  font-family: var(--font-body);
}
ul li img {
  height: 26px;
  width: 26px;
  flex-shrink: 0;
  margin-right: 7px;
}

/* --- FOOTER --- */
footer {
  padding: 0;
  background: var(--accent);
  box-shadow: 0 -2px 16px rgba(40,56,46,0.02);
  font-size: 0.99rem;
  font-family: var(--font-body);
}
footer .container {
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  padding: 46px 20px 30px 20px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1 1 160px;
}
.footer-nav a {
  color: var(--text-muted);
  font-family: var(--font-display);
  transition: color var(--transition);
  padding: 2px 0;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--primary-dark);
}
.company-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  flex: 2 1 350px;
  margin-bottom: 16px;
}
.company-info img {
  height: 33px;
  margin-bottom: 3px;
}
.company-info address {
  font-style: normal;
  color: var(--text-main);
}
.newsletter {
  flex: 2 1 290px;
}

/* --- INTERACTIVE ELEMENTS --- */
a, button {
  outline-color: var(--primary-dark);
  outline-offset: 2px;
}
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--secondary);
}

/* --- TABLES, FORMS --- */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}
th, td {
  border-bottom: 1px solid var(--border);
  padding: 12px 8px;
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: var(--accent);
  color: var(--text-main);
  box-shadow: 0 -3px 36px rgba(40,56,46,0.11);
  padding: 18px 24px;
  z-index: 1000;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
  justify-content: center;
  font-size: 1.03rem;
  transition: transform var(--transition), opacity var(--transition);
}
.cookie-banner.hidden {
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner .cookie-banner-text {
  flex: 1;
  max-width: 480px;
}
.cookie-banner .cookie-btns {
  display: flex;
  gap: 16px;
}
.cookie-banner button {
  padding: 8px 18px;
  font-size: 1.01rem;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border var(--transition);
  font-family: var(--font-display);
}
.cookie-banner .accept {
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  border: 1px solid var(--primary);
}
.cookie-banner .accept:hover, .cookie-banner .accept:focus {
  background: var(--secondary-dark);
  border: 1px solid var(--secondary-dark);
}
.cookie-banner .reject {
  background: #ebe5da;
  color: var(--primary-dark);
  font-weight: 500;
  border: 1px solid #e1e1dd;
}
.cookie-banner .reject:hover, .cookie-banner .reject:focus {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.cookie-banner .settings {
  background: var(--secondary);
  color: var(--primary-dark);
  border: 1px solid #f2db90;
  font-weight: 500;
}
.cookie-banner .settings:hover, .cookie-banner .settings:focus {
  background: #fffbe5;
  border-color: var(--secondary-dark);
}

/* Cookie Modal */
.cookie-modal {
  position: fixed;
  inset: 0;
  background: rgba(34, 42, 38, 0.38);
  z-index: 1120;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
.cookie-modal.active {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal .modal-content {
  background: var(--accent);
  border-radius: var(--radius);
  box-shadow: 0 8px 46px rgba(40,56,46,0.11);
  padding: 38px 30px 24px 30px;
  max-width: 490px;
  min-width: 255px;
  color: var(--text-main);
  display: flex;
  flex-direction: column;
  gap: 28px;
  position: relative;
  animation: fadeInUp .32s cubic-bezier(.4,.9,.4,1);
}
.cookie-modal .modal-close {
  position: absolute;
  right: 13px;
  top: 13px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 1.25rem;
  background: #ebe5da;
  color: var(--primary-dark);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition);
}
.cookie-modal .modal-close:hover, .cookie-modal .modal-close:focus {
  background: var(--secondary-dark);
  color: #fff;
}
.cookie-modal h2 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}
.cookie-modal .cookie-cat {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.cookie-modal label {
  font-size: 1.07rem;
}
.cookie-modal input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--primary);
  margin-right: 6px;
}
.cookie-modal .modal-btns {
  display: flex;
  gap: 18px;
  justify-content: flex-end;
  margin-top: 10px;
}
.cookie-modal .modal-btns button {
  padding: 8px 17px;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  border: 1px solid #e1e1dd;
  background: #ebe5da;
  color: var(--primary-dark);
  transition: background var(--transition), color var(--transition), border var(--transition);
}
.cookie-modal .modal-btns .save {
  background: var(--primary);
  color: #fff;
  border: 1px solid var(--primary);
  font-weight: 600;
}
.cookie-modal .modal-btns .save:hover, .cookie-modal .modal-btns .save:focus {
  background: var(--secondary-dark);
  color: var(--primary-dark);
  border-color: var(--secondary-dark);
}

@keyframes fadeInUp {
  from {
    transform: translateY(40px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* --- RESPONSIVE LAYOUTS (MOBILE-FIRST) --- */
@media (max-width: 980px) {
  .container {
    max-width: 100%;
    padding: 0 12px;
  }
  .section {
    padding: 28px 9px;
    margin-bottom: 36px;
  }
  header .container, footer .container {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
    padding: 16px 10px 12px 10px;
  }
  .footer-nav, .company-info, .newsletter {
    flex: 1 1 100%;
    margin-bottom: 12px;
  }
}
@media (max-width: 768px) {
  .text-image-section,
  .content-grid {
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
  }
  .newsletter {
    padding: 13px 8px;
    font-size: 1rem;
  }
  .testimonial-card {
    flex-direction: column;
    gap: 10px;
    padding: 15px 8px;
  }
  .card {
    min-width: 80vw;
    max-width: 95vw;
    padding: 14px 7px;
  }
  .cookie-modal .modal-content {
    padding: 22px 12px 16px 12px;
    min-width: unset;
    max-width: calc(100vw - 44px);
  }
}
@media (max-width: 520px) {
  .section {
    padding: 19px 3px;
    margin-bottom: 27px;
  }
  h1 {
    font-size: 1.36rem;
  }
  h2 {
    font-size: 1.17rem;
  }
  .btn-primary {
    padding: 8px 15px;
    font-size: 0.98rem;
    margin-left: 0;
  }
}

/* --- ELEGANT MICRO-INTERACTIONS --- */
section, .card, .testimonial-card, .btn-primary, .newsletter, .cookie-banner, .cookie-modal .modal-content {
  transition: box-shadow 180ms cubic-bezier(.44,.18,.43,1), border 180ms cubic-bezier(.44,.18,.43,1), background 150ms cubic-bezier(.44,.18,.43,1);
}
.card:hover, .card:focus-within {
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

/* --- UTILITIES --- */
.muted {
  color: var(--text-muted);
}
.mb-0 { margin-bottom: 0 !important; }
.mb-8 { margin-bottom: 8px !important; }
.mt-12 { margin-top: 12px !important; }

/* Ensure minimum gap between all content sections/cards */
section + section, .content-wrapper + .content-wrapper, .testimonial-card + .testimonial-card {
  margin-top: 24px;
}

/* Ensure no content overlapping and correct z-index on position elements */
[style*="position: absolute"]:not(.mobile-menu-close):not(.modal-close) {
  position: static !important;
}
/* No absolute for content cards/text blocks, only for close icons as above */
