/* 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;
}
body {
  line-height: 1.5;
  background: #fff;
  color: #191919;
  min-height: 100vh;
}
ul, ol {
  margin-left: 18px;
}
img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
  display: inline-block;
}
a {
  color: #222;
  text-decoration: none;
  transition: color 0.18s;
}
a:hover, a:focus {
  color: #245B36;
  outline: none;
}
html {
  scroll-behavior: smooth;
}

/* BRAND MONOCHROME SOPHISTICATED PALLETTE */
:root {
  --main-black: #191919;
  --main-dkgray: #2d2d2d;
  --main-mdgray: #616161;
  --main-ltgray: #ededed;
  --main-white: #fff;
  --brand-primary: #245B36;
  --brand-secondary: #55896C;
  --brand-accent: #F9EFE3;
}

/* TYPOGRAPHY - SOPHISTICATED */
body {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 16px;
  background: var(--main-white);
  color: var(--main-black);
  letter-spacing: 0.01em;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Noto Sans Lao', 'Roboto', Arial, sans-serif;
  font-weight: 600;
  color: var(--main-black);
  letter-spacing: 0.015em;
  line-height: 1.12;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.4rem;
  margin-bottom: 14px;
}
h4, h5, h6 {
  font-size: 1.1rem;
}
p, ul, ol {
  font-size: 1rem;
  margin-bottom: 16px;
  color: var(--main-dkgray);
}
strong, b {
  color: var(--main-black);
  font-weight: bold;
}


/* CONTAINER BASE */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* FLEX PRESENTATION COMPONENTS */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}
@media (max-width: 768px) {
  .section {
    padding: 28px 8px;
  }
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
  width: 100%;
}
.text-section {
  max-width: 720px;
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 20px;
  }
}

.card-container,
.card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 40px;
}
.card {
  background: var(--main-white);
  border-radius: 16px;
  box-shadow: 0 2px 14px 0 rgba(28,28,28,0.07);
  padding: 32px 24px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  min-width: 260px;
  max-width: 400px;
  border: 1.5px solid var(--main-ltgray);
  transition: box-shadow 0.2s, border-color 0.2s;
}
.card:hover {
  box-shadow: 0 4px 18px 0 rgba(34,34,34,0.13);
  border-color: var(--main-mdgray);
}

/* Features presentation */
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  padding: 24px 18px;
  background: var(--main-ltgray);
  border-radius: 10px;
  margin-bottom: 20px;
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

/* Testimonials */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 28px 24px;
  border-radius: 12px;
  background: #fafafd;
  border: 1px solid #dadada;
  margin-bottom: 20px;
  box-shadow: 0 2px 12px 0 rgba(50,50,50,0.08);
  color: var(--main-black);
  transition: box-shadow 0.18s;
}
.testimonial-card:hover {
  box-shadow: 0 4px 24px 0 rgba(40,40,40,0.15);
}
.testimonial-card blockquote, .testimonial-card p {
  color: var(--main-black);
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.6;
}
.testimonial-card span {
  font-size: 1rem;
  color: var(--main-mdgray);
}

/* NAVIGATION */
.main-nav {
  display: flex;
  gap: 24px;
  align-items: center;
}
.main-nav a {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  letter-spacing: 0.01em;
  color: var(--main-black);
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.14s, border-color 0.16s;
}
.main-nav a:hover {
  color: var(--brand-primary);
  border-bottom: 2px solid var(--brand-primary);
}
.btn-primary {
  display: inline-block;
  padding: 12px 32px;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  background: var(--main-black);
  color: var(--main-white);
  border: none;
  border-radius: 26px;
  box-shadow: 0 2px 12px 0 rgba(35,35,35,0.07);
  cursor: pointer;
  margin-left: 18px;
  letter-spacing: 0.04em;
  transition: background 0.16s, color 0.18s, box-shadow 0.16s;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--brand-primary);
  color: var(--main-white);
  box-shadow: 0 4px 18px 0 rgba(36,91,54,0.14);
  outline: none;
}

/* HEADER, LOGO & NAV FLEX */
header {
  background: var(--main-white);
  box-shadow: 0 2px 6px 0 rgba(38,38,38,0.05);
  padding: 0;
  z-index: 30;
}
header > .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}
header img {
  max-height: 46px;
  margin-right: 18px;
}
@media (max-width: 900px) {
  .main-nav {
    gap: 16px;
  }
}
@media (max-width: 768px) {
  header > .container {
    flex-direction: row;
    height: 58px;
    gap: 0;
  }
  .main-nav {
    display: none;
  }
  .btn-primary {
    margin-left: 0;
  }
}


/* HAMBURGER MENU */
.mobile-menu-toggle {
  display: none;
  background: none;
  font-size: 2rem;
  border: none;
  color: var(--main-black);
  margin-left: 12px;
  cursor: pointer;
  z-index: 101;
  transition: color 0.16s;
}
.mobile-menu-toggle:focus {
  outline: 2px solid var(--brand-primary);
}
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
  }
}

/* MOBILE MENU OVERLAY */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(30,30,30,0.92);
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.6,0.07,0.34,0.98);
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  margin: 20px 32px 0 0;
  cursor: pointer;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 48px 36px 0 36px;
  width: 80vw;
  max-width: 340px;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.15rem;
  font-weight: 500;
  padding: 14px 0 10px 0;
  border-bottom: 1px solid rgba(220,220,220,0.11);
  transition: color 0.15s;
}
.mobile-nav a:last-child {
  border-bottom: none;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  color: var(--brand-accent);
  outline: none;
}

/* Cookie Consent Banner */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #232323;
  color: #fff;
  padding: 24px 20px 24px 20px;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  box-shadow: 0 -2px 10px 0 rgba(24,24,24,0.08);
  font-size: 1rem;
}
.cookie-banner p {
  flex: 2;
  margin-bottom: 0;
  color: #fff;
}
.cookie-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.cookie-btn, .cookie-settings-btn {
  font-family: 'Roboto', Arial, sans-serif;
  padding: 8px 24px;
  border-radius: 19px;
  font-size: 1rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: background 0.14s, color 0.14s, box-shadow 0.12s;
}
.cookie-btn.accept {
  background: var(--brand-primary);
  color: #fff;
}
.cookie-btn.reject {
  background: transparent;
  border: 1px solid #fff;
  color: #fff;
}
.cookie-settings-btn {
  background: #fff;
  color: var(--brand-primary);
  border: none;
}
.cookie-btn:focus, .cookie-settings-btn:focus {
  outline: 2px solid var(--brand-primary);
}
.cookie-btn:hover, .cookie-settings-btn:hover {
  box-shadow: 0 2px 8px 0 rgba(36,91,54,0.07);
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s;
}

/* Cookie Preferences Modal */
.cookie-modal {
  position: fixed;
  z-index: 1005;
  left: 0; right: 0;
  top: 0; bottom: 0;
  background: rgba(36,36,36,0.67);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.19s;
  opacity: 1;
}
.cookie-modal.hidden {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal-content {
  background: #fff;
  color: var(--main-black);
  padding: 36px 28px 28px 28px;
  border-radius: 18px;
  box-shadow: 0 8px 48px 0 rgba(36,36,36,0.12);
  max-width: 390px;
  width: 95%;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cookie-modal h2 {
  margin-bottom: 8px;
  font-size: 1.2rem;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.cookie-category label {
  font-weight: 500;
  color: var(--main-dkgray);
}
.cookie-category input[type="checkbox"] {
  accent-color: var(--brand-primary);
  width: 18px; height: 18px;
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 14px;
  margin-top: 8px;
  justify-content: flex-end;
}
.cookie-modal-close {
  background: none;
  border: none;
  color: var(--main-mdgray);
  font-size: 2rem;
  position: absolute;
  top: 12px;
  right: 16px;
  cursor: pointer;
}
.cookie-modal-close:focus {
  color: var(--brand-primary);
  outline: none;
}


/* FOOTER */
footer {
  background: #f5f5f7;
  color: var(--main-mdgray);
  font-size: 1rem;
  padding: 36px 0 14px 0;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 12px;
}
.footer-nav a {
  color: var(--main-black);
  font-size: 1rem;
  border-bottom: 1px solid transparent;
  transition: border-color 0.12s;
  padding-bottom: 2px;
}
.footer-nav a:hover {
  color: var(--brand-primary);
  border-bottom: 1px solid var(--brand-primary);
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.98rem;
}
.footer-contact img {
  width: 16px;
  height: 16px;
  margin-right: 6px;
}
footer p {
  margin-bottom: 0;
  color: var(--main-mdgray);
}
@media (max-width: 900px) {
  footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .footer-contact {
    margin-top: 12px;
  }
}


/* GENERAL LAYOUT & UTILITIES */
ul, ol {
  padding-left: 1.15em;
  margin-bottom: 16px;
  color: var(--main-mdgray);
}
ul li, ol li {
  margin-bottom: 6px;
}
li img {
  margin-right: 8px;
  vertical-align: middle;
  height: 22px;
  width: 22px;
}

/* Responsiveness & Spacing */
@media (max-width: 900px) {
  .container {
    padding: 0 10px;
  }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.3rem; }
}
@media (max-width: 500px) {
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.1rem; }
  .btn-primary {
    font-size: 1rem;
    padding: 10px 20px;
  }
  .testimonial-card,
  .card {
    padding: 18px 8px;
  }
}

/* Animations & Micro-Interactions */
.btn-primary, .cookie-btn, .cookie-settings-btn {
  transition: background 0.16s, color 0.18s, box-shadow 0.14s;
}
section,
.section {
  transition: background 0.2s;
}

/* Accent links */
.text-section a:not(.btn-primary):not(.btn), .content-wrapper a:not(.btn-primary):not(.btn) {
  text-decoration: underline;
  color: var(--brand-primary);
  font-weight: 500;
}
.text-section a:not(.btn-primary):not(.btn):hover {
  color: var(--main-black);
}

/* Lists in feature/why blocks */
ul li, ol li {
  line-height: 1.5;
}

/* Accessibility focus state */
a:focus, button:focus, .btn-primary:focus {
  outline: 2px solid var(--brand-primary);
  outline-offset: 2px;
}

/* Prevent overlap and ensure spacing between sections */
section + section, .section + .section {
  margin-top: 20px;
}
.content-wrapper > * + * {
  margin-top: 0;
}

/* Z-index for overlays */
.mobile-menu,
.cookie-banner,
.cookie-modal {
  z-index: 200;
}

/* Hide scroll when mobile menu/modal open */
body.menu-open, body.cookie-modal-open {
  overflow: hidden;
}

/* Card grid for portfolio/blog if needed */
.card-grid {
  margin-bottom: 0;
}

/* Newsletter and accent highlights */
.newsletter {
  background: var(--main-ltgray);
  border-radius: 12px;
  padding: 24px 20px;
  font-size: 1rem;
}

/* Misc visually hidden for accessibility */
.visually-hidden {
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0 0 0 0);
  border:0;
}
