/* =======================================
   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 {
  box-sizing: border-box;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
ul, ol {
  list-style: none;
  padding-left: 0;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
button {
  font: inherit;
  border: none;
  background: none;
  cursor: pointer;
  outline: none;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* =======================================
   Custom Properties (CSS Vars) Fallbacks
========================================== */
:root {
  --color-primary: #19563B;
  --color-secondary: #F7F5EC;
  --color-accent: #A06111;
  --color-bg: #fff;
  --color-text: #23262F;
  --color-gray-light: #e5e8eb;
  --color-gray: #8C9BA9;
  --color-gray-dark: #304157;
  --color-blue: #276D9D;
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Open Sans', Arial, Helvetica, sans-serif;
  --shadow-card: 0 2px 12px rgba(25, 86, 59, 0.10);
  --shadow-nav: 0 2px 16px rgba(25, 86, 59, 0.10);
}

body {
  background: var(--color-secondary);
  color: var(--color-text);
  font-family: var(--font-body);
  line-height: 1.75;
  font-size: 16px;
  min-height: 100vh;
  letter-spacing: 0.01em;
}

/* Typography */
h1, .hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.25rem;
  color: var(--color-primary);
  margin-bottom: 16px;
  line-height: 1.1;
}
h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--color-blue);
  margin-bottom: 16px;
  line-height: 1.2;
}
h3 {
  font-size: 1.2rem;
  font-family: var(--font-display);
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: 10px;
}
h4, h5, h6 {
  font-family: var(--font-body);
}
p, address, li, blockquote {
  font-size: 1rem;
  color: var(--color-text);
}
p.subtitle {
  font-size: 1.20rem;
  color: var(--color-gray-dark);
  margin-bottom: 20px;
}

strong {
  font-weight: 600;
  color: var(--color-primary);
}
em {
  color: var(--color-accent);
  font-style: italic;
}
blockquote {
  border-left: 4px solid var(--color-blue);
  padding-left: 16px;
  color: var(--color-gray-dark);
  font-style: italic;
  margin-bottom: 10px;
}


/* =======================================
   LAYOUT STRUCTURE - Flexbox Only
========================================== */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
main {
  padding-top: 60px;
  min-height: 60vh;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.card {
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow-card);
  padding: 32px 24px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 260px;
  flex: 1 1 300px;
}

.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;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
  flex: 1 1 280px;
  min-width: 240px;
  max-width: 480px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.testimonial-card:hover,
.testimonial-card:focus-within {
  box-shadow: 0 4px 24px rgba(25,86,59,0.13);
  transform: translateY(-2px) scale(1.02);
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* =======================================
   HEADER & NAVIGATION
========================================== */
header {
  background: #fff;
  box-shadow: var(--shadow-nav);
  position: sticky;
  top: 0;
  z-index: 25;
}
header nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  gap: 28px;
}
header nav > a img {
  height: 48px;
}
header nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}
header nav ul li {
  display: flex;
}
header nav ul li a {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-gray-dark);
  padding: 8px 12px;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}
header nav ul li a:hover,
header nav ul li a:focus {
  background: var(--color-gray-light);
  color: var(--color-blue);
}
.nav-cta-btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  padding: 10px 24px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 8px;
  font-size: 1rem;
  margin-left: 16px;
  transition: background 0.2s, box-shadow 0.2s;
  box-shadow: 0 1px 3px rgba(25,86,59,0.06);
}
.nav-cta-btn:hover,
.nav-cta-btn:focus {
  background: var(--color-accent);
  color: #fff;
  box-shadow: 0 4px 16px rgba(160,97,17,0.10);
}

/* =======================================
   BURGER MENU FOR MOBILE
========================================== */
.mobile-menu-toggle {
  display: none;
  background: var(--color-primary);
  color: #fff;
  font-size: 2rem;
  border-radius: 8px;
  padding: 4px 16px;
  margin-left: auto;
  transition: background 0.2s, color 0.2s;
  z-index: 34;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: var(--color-accent);
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100%;
  background: rgba(25,86,59,0.95);
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(0.4,0.7,0.2,1);
  z-index: 40;
  display: flex;
  flex-direction: column;
  justify-content: start;
  align-items: flex-start;
  padding: 0 0;
  overflow-y: auto;
}
.mobile-menu.open {
  transform: translateX(0%);
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2.3rem;
  margin: 22px 22px 0 0;
  background: none;
  color: #fff;
  z-index: 47;
  transition: color 0.2s;
}
.mobile-menu-close:focus,
.mobile-menu-close:hover {
  color: var(--color-accent);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-top: 40px;
  padding: 0 26px;
  gap: 18px;
}
.mobile-nav a {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.25rem;
  padding: 16px 0;
  border-bottom: 1px solid rgba(247,245,236, 0.08);
  transition: color 0.18s, background 0.18s;
}
.mobile-nav a:last-child {
  border-bottom: none;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--color-accent);
  background: rgba(255,255,255,0.10);
  border-radius: 4px;
}

@media (max-width: 1024px) {
  .container {
    max-width: 960px;
  }
}
@media (max-width: 860px) {
  .container {
    max-width: 700px;
  }
  header nav ul {
    gap: 10px;
  }
  .nav-cta-btn {
    margin-left: 6px;
  }
}
@media (max-width: 768px) {
  .container {
    max-width: 98vw;
    padding: 0 10px;
  }
  header nav ul, .nav-cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (max-width: 568px) {
  header nav > a img {
    height: 36px;
  }
}

/* =======================================
   HERO SECTIONS
========================================== */
.hero {
  background: linear-gradient(90deg, #F7F5EC 65%, #D6E6F2 100%);
  padding: 48px 0 48px 0;
  margin-bottom: 60px;
  border-bottom: 2px solid var(--color-gray-light);
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}
.hero .content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  max-width: 600px;
}
.hero .cta-btn {
  margin-top: 14px;
}

/* =======================================
   BUTTONS & CTAS
========================================== */
.cta-btn,
button,
input[type="submit"] {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  background: var(--color-primary);
  color: #fff;
  padding: 12px 28px;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 8px;
  border: none;
  box-shadow: 0 1px 6px rgba(25,86,59,0.12);
  transition: background 0.2s, box-shadow 0.22s, color 0.2s, transform 0.16s;
  letter-spacing: 0.015em;
  display: inline-block;
}
.cta-btn:hover,
.cta-btn:focus,
button:hover,
button:focus,
input[type="submit"]:hover,
input[type="submit"]:focus {
  background: var(--color-accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(160,97,17,0.09);
  transform: translateY(-1.5px) scale(1.01);
}

/* Buttons inside banners/modals */
.cookie-btn {
  min-width: 130px;
  margin-right: 14px;
  border-radius: 6px;
  font-size: 1rem;
}
.cookie-btn:last-child { margin-right: 0; }

/* =======================================
   CARD & FEATURE LISTS & ICONS
========================================== */
section ul {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 18px;
}
section ul li {
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  padding: 20px 18px 20px 20px;
  margin-bottom: 0;
  min-width: 230px;
  flex: 1 1 260px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1rem;
  color: var(--color-gray-dark);
  transition: box-shadow 0.18s, transform 0.16s;
}
section ul li img {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  margin-right: 10px;
}
section ul li span { font-size: 1rem; }
section ul li:hover {
  box-shadow: 0 3px 13px rgba(25,86,59,0.13);
  transform: translateY(-1px) scale(1.02);
}

/* =======================================
   ADDRESS BLOCKS
========================================== */
address {
  font-style: normal;
  color: var(--color-blue);
  font-size: 1rem;
  line-height: 1.65;
  margin-top: 6px;
  margin-bottom: 6px;
}
address a {
  color: var(--color-accent);
  word-break: break-all;
  text-decoration: underline;
}
address a:hover {
  color: var(--color-blue);
}

/* =======================================
   FOOTER
========================================== */
footer {
  background: #fff;
  box-shadow: 0 -2px 8px rgba(25,86,59,0.07);
  padding: 42px 0 0 0;
  margin-top: 80px;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 38px;
  border-top: 1.5px solid var(--color-gray-light);
  padding: 32px 0 18px 0;
}
footer img {
  max-width: 120px;
  margin-bottom: 12px;
}
footer ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
footer ul li a {
  color: var(--color-blue);
  font-size: 1rem;
  transition: color 0.16s;
}
footer ul li a:hover {
  color: var(--color-accent);
}
footer div p {
  color: var(--color-gray-dark);
  font-size: 0.93rem;
  margin-bottom: 5px;
}
footer a[mailto*='@'] {
  color: var(--color-accent);
  text-decoration: underline;
  font-size: 0.98rem;
}

/* =======================================
   THANK YOU PAGE CONTACT SECTION
========================================== */
.thank-you-contact {
  background: #fff;
  border-radius: 10px;
  box-shadow: var(--shadow-card);
  padding: 20px 22px;
  margin-top: 30px;
}

/* =======================================
   COOKIE CONSENT BANNER & MODAL
========================================== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: #fff;
  color: var(--color-text);
  box-shadow: 0 -2px 14px rgba(25, 86, 59, 0.10);
  z-index: 1200;
  padding: 22px 18px 18px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  animation: banner-slidein 0.6s;
}
@keyframes banner-slidein {
  0% { transform: translateY(100%); opacity: 0; }
  80% { opacity: 1; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 14px;
  margin-top: 4px;
  flex-wrap: wrap;
}

.cookie-banner .cookie-btn {
  background: var(--color-blue);
  color: #fff;
  border-radius: 6px;
  font-weight: 500;
  font-size: 1rem;
  padding: 9px 18px;
  border: none;
  transition: background 0.2s, color 0.2s;
  box-shadow: 0 1px 4px rgba(39,109,157,0.07);
}
.cookie-banner .cookie-btn.reject {
  background: #FFF2E3;
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
}
.cookie-banner .cookie-btn.settings {
  background: var(--color-gray-light);
  color: var(--color-gray-dark);
  border: 1px solid var(--color-gray);
}
.cookie-banner .cookie-btn:hover,
.cookie-banner .cookie-btn:focus {
  background: var(--color-accent);
  color: #fff;
}

/* Cookie Preferences Modal */
.cookie-modal-backdrop {
  position: fixed;
  z-index: 1300;
  left:0; right:0; top:0; bottom:0;
  background: rgba(25,86,59,0.40);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.32s;
  opacity: 0;
  pointer-events: none;
  animation: none;
}
.cookie-modal-backdrop.open {
  opacity: 1;
  pointer-events: all;
  animation: fade-in-bg 0.35s;
}
@keyframes fade-in-bg {
  from { opacity: 0; } to { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 32px rgba(25,86,59,0.22);
  min-width: 320px;
  max-width: 98vw;
  width: 420px;
  padding: 30px 24px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.36s cubic-bezier(.39,.69,.21,1.2);
  animation: none;
}
.cookie-modal-backdrop.open .cookie-modal {
  opacity: 1;
  transform: translateY(0);
  animation: modal-slidein 0.35s ease;
}
@keyframes modal-slidein {
  from { transform: translateY(40px); opacity: 0; }
  to { transform: translateY(0px); opacity: 1;}
}
.cookie-modal h3 {
  color: var(--color-primary);
  font-size: 1.18rem;
  margin-bottom: 4px;
  font-family: var(--font-display);
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--color-secondary);
  border-radius: 6px;
  margin-bottom: 8px;
  padding: 10px 14px;
}
.cookie-modal .cookie-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cookie-modal .toggle-switch {
  width: 34px;
  height: 20px;
  background: var(--color-gray-light);
  border-radius: 10px;
  position: relative;
  cursor: pointer;
  transition: background 0.2s;
}
.cookie-modal .toggle-switch[data-checked="true"] {
  background: var(--color-blue);
}
.cookie-modal .toggle-knob {
  display: block;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  top: 1px; left: 1px;
  transition: transform 0.21s;
  box-shadow: 0 1px 2px rgba(39,109,157,0.09);
}
.cookie-modal .toggle-switch[data-checked="true"] .toggle-knob {
  transform: translateX(14px);
}
.cookie-modal .cookie-actions {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}
.cookie-modal .cookie-actions .cookie-btn {
  padding: 9px 20px;
  font-size: 1rem;
}

/* Essential cookies (always enabled) */
.cookie-modal .cookie-category.cookie-essential .toggle-switch {
  opacity: 0.5;
  cursor: not-allowed;
}
.cookie-modal .cookie-category.cookie-essential .toggle-knob {
  background: var(--color-gray);
}

/* =======================================
   RESPONSIVE DESIGN – MOBILE FIRST
========================================== */
@media (max-width: 980px) {
  .content-grid, .card-container {
    gap: 16px;
  }
  .testimonial-card {
    min-width: 200px;
    max-width: 98vw;
  }
}
@media (max-width: 768px) {
  .section { padding: 30px 8px; }
  .hero { padding: 32px 0 36px 0; }
  .content-wrapper { gap: 18px; }
  .card,
  section ul li {
    min-width: 94vw;
    flex: 1 1 96vw;
    padding: 16px 10px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    min-width: 98vw;
    max-width: 99vw;
    padding: 15px 8px;
  }
  .card-container,
  .content-grid,
  .text-image-section {
    flex-direction: column;
    gap: 14px;
  }
}

@media (max-width: 480px) {
  .hero h1, h1 { font-size: 1.31rem; }
  h2 { font-size: 1.05rem; }
  .container { padding: 0 5px; }
  .footer .container { padding: 0 2px; }
  .cookie-modal { min-width: 90vw; padding: 18px 4px; }
}

/* =======================================
   UTILITY: VISIBLY HIDDEN FOR ACCESSIBILITY
========================================== */
.visually-hidden {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

/* =======================================
   ADDITIONAL MICRO-INTERACTIONS & EFFECTS
========================================== */
a, button, .cta-btn, input[type="submit"] {
  transition: background 0.2s, color 0.2s, box-shadow 0.18s, transform 0.14s;
}
.card, .testimonial-card, section ul li {
  will-change: transform, box-shadow;
}

/* =======================================
   END OF CSS
========================================== */