/* RESET & BASE TYPOGRAPHY - NATURE-ORGANIC, MOBILE-FIRST */
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, 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;
}
article, aside, details, figcaption, figure, footer, header, hgroup, main, nav, section {
  display: block;
}
body {
  line-height: 1.6;
  background: #F8F6F2;
  color: #2A2C24;
  font-family: 'Noto Sans Khmer', Arial, sans-serif;
  min-height: 100vh;
  font-size: 16px;
  letter-spacing: 0.01em;
}
img {
  max-width: 100%;
  height: auto;
}
a {
  color: #2e6240;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #14213D;
}
nav a {
  font-weight: 500;
  margin-right: 24px;
  font-family: 'Noto Sans Khmer', Arial, sans-serif;
  font-size: 16px;
}
nav a:last-child { margin-right: 0; }

/* COLOR THEORY: NATURE/ORGANIC PALETTE */
:root {
  --color-primary: #14213D; /* dark blue, trusted */
  --color-secondary: #FCA311; /* sunlight earth */
  --color-accent: #E5E5E5; /* neutral stone */
  --color-bg-deep: #ece6da; /* warm sand */
  --color-green-accent: #2e6240; /* plant */
  --color-card: #F8F6F2;
  --color-card-shadow: rgba(61, 54, 28, 0.12);
  --color-border: #CFC7B1;
  --color-alert: #B46F19;
  --font-display: 'Noto Serif Khmer', serif;
  --font-body: 'Noto Sans Khmer', Arial, sans-serif;
}

/* -------- CONTAINER & LAYOUTS -------- */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 0px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-bg-deep);
  border-radius: 32px 32px 32px 56px/40px 32px 48px 32px; /* organic shape */
  box-shadow: 0 4px 32px var(--color-card-shadow);
  border: 1px solid var(--color-border);
}

@media (max-width: 768px) {
  .section {
    padding: 24px 8px;
    border-radius: 24px 20px 32px 20px/20px 28px 16px 24px;
  }
}

/* ----- TYPOGRAPHY & HEADINGS ----- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-green-accent);
  font-weight: 700;
}
h1 {
  font-size: 2.2rem;
  line-height: 1.25;
  margin-bottom: 12px;
  letter-spacing: 0.01em;
}
h2 {
  font-size: 1.5rem;
  margin-bottom: 8px;
  color: var(--color-primary);
}
h3 {
  font-size: 1.17rem;
  color: var(--color-alert);
  margin-bottom: 4px;
}
p, ul, ol, dl, table {
  font-family: var(--font-body);
  font-size: 1rem;
  margin-bottom: 8px;
}
strong {
  color: var(--color-primary);
  font-weight: 600;
}
ul, ol {
  list-style: none;
  margin-left: 0;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 1rem;
  line-height: 1.6;
}
dt {
  font-weight: 600;
  margin-bottom: 3px;
}
dd {
  margin-bottom: 12px;
}

/* --- BUTTONS & INTERACTIVE --- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-green-accent);
  color: #FFF;
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 700;
  border: none;
  border-radius: 32px 16px 40px 18px/24px 40px 30px 22px;
  padding: 15px 32px;
  box-shadow: 0 2px 16px var(--color-card-shadow);
  cursor: pointer;
  margin-top: 8px;
  transition: background 0.16s, box-shadow 0.16s, transform 0.16s;
  outline: none;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
  box-shadow: 0 6px 32px #cbb87c5a;
  transform: translateY(-2px) scale(1.03) rotate(-1deg);
}

/* ------- FLEX UTILITIES & LAYOUTS ------- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--color-card);
  border-radius: 24px 32px 22px 12px/20px 24px 32px 24px;
  box-shadow: 0 2px 18px var(--color-card-shadow);
  padding: 32px 24px 24px 24px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  position: relative;
  gap: 16px;
  border: 1px solid var(--color-border);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}
.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;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  background: #FFF;
  color: #2A2C24;
  border-radius: 32px 20px 36px 22px/28px 36px 22px 24px;
  padding: 20px;
  min-width: 220px;
  max-width: 480px;
  box-shadow: 0 2px 16px rgba(44, 91, 52, 0.13);
  border: 1.5px solid var(--color-border);
  margin-bottom: 20px;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: box-shadow 0.22s;
}
.testimonial-card:hover {
  box-shadow: 0 8px 40px #98beaa44;
}
.testimonial-card p {
  color: var(--color-primary);
  font-size: 1.1rem;
}
.testimonial-card span {
  align-self: flex-end;
  font-size: 0.98em;
  color: var(--color-green-accent);
}

.text-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 10px;
  font-size: 16px;
}
.map {
  margin-top: 14px;
  border-radius: 20px;
  background: #E9EEE8;
  padding: 12px;
  box-shadow: 0 2px 10px #c9dbd2aa;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* TABLES - PRICING */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
  background: #F8F6F2;
  box-shadow: 0 1px 8px rgba(44, 91, 52, 0.08);
  border-radius: 20px 16px 20px 14px/18px 20px 12px 21px;
  overflow: hidden;
}
th, td {
  padding: 16px 10px;
  border-bottom: 1px solid var(--color-border);
  font-family: var(--font-body);
  font-size: 17px;
}
th {
  background: #DEEDDE;
  color: var(--color-green-accent);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
}
tr:last-child td {
  border-bottom: none;
}

/* HEADER & NAVIGATION */
header {
  background: #ffd;
  box-shadow: 0 2px 12px #ebdfb86e;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 32px 12px 24px 32px;
  border-color: var(--color-border);
  margin-bottom: 20px;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 10px;
  padding-bottom: 10px;
}
header nav {
  display: flex;
  align-items: center;
  gap: 0;
}
header a img {
  height: 48px;
  width: auto;
  border-radius: 16px 36px 15px 28px;
}
header .btn-primary {
  margin-left: 18px;
  padding: 10px 22px;
  font-size: 15px;
}
.mobile-menu-toggle {
  font-size: 2rem;
  background: none;
  border: none;
  color: var(--color-green-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 12px;
  padding: 4px 12px;
  border-radius: 24px;
  cursor: pointer;
  z-index: 990;
  transition: background 0.2s, color 0.2s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #b9e1be65;
  color: var(--color-secondary);
}
/* Hide toggle on desktop */
@media (min-width: 1001px) {
  .mobile-menu-toggle {
    display: none;
  }
  .mobile-menu {
    display: none!important;
  }
}
@media (max-width: 1000px) {
  header nav {
    display: none;
  }
}

/* --------- MOBILE MENU OVERLAY --------- */
.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(235,237,221,0.98);
  z-index: 2000;
  transform: translateX(-100%);
  transition: transform 0.45s cubic-bezier(.74,-0.08,.29,1.44);
  box-shadow: 8px 0 36px #ebdfb864;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  font-size: 2.2rem;
  background: none;
  border: none;
  color: var(--color-green-accent);
  align-self: flex-end;
  margin: 20px 24px 0 0;
  cursor: pointer;
  padding: 7px 14px;
  border-radius: 22px;
  z-index: 2001;
  transition: background 0.2s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: #b4c9b066;
  color: var(--color-secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  margin-top: 40px;
  margin-left: 32px;
}
.mobile-nav a {
  font-size: 1.18rem;
  padding: 12px 20px;
  color: var(--color-green-accent);
  border-radius: 28px;
  background: transparent;
  transition: background 0.18s, color 0.18s;
  font-family: var(--font-body);
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #d0eeca;
  color: var(--color-primary);
}

/* ----------- FOOTER ----------- */
footer {
  background: #EAEEED;
  margin-top: 60px;
  padding: 28px 0 16px 0;
  border-radius: 44px 22px 32px 32px/22px 40px 32px 16px;
  box-shadow: 0 6px 48px #c9dbd218;
  color: var(--color-green-accent);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 12px;
}
footer nav a {
  color: var(--color-primary);
  font-size: 16px;
  transition: color 0.16s;
}
footer nav a:hover {
  color: var(--color-secondary);
}
footer img {
  height: 42px;
  margin-bottom: 6px;
}
footer p {
  font-size: 14px;
  color: #444D34;
}
@media (max-width: 600px) {
  footer nav {
    font-size: 15px;
    gap: 14px;
  }
  footer {
    padding-left: 8px;
    padding-right: 8px;
    font-size: 15px;
  }
}

/* --------- COOKIE CONSENT BANNER -------- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #FFF8E1;
  color: #493821;
  box-shadow: 0 -2px 22px #c9dbd277;
  padding: 22px 18px 18px 18px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  justify-content: center;
  border-radius: 22px 22px 0 0 / 16px 30px 0 0;
  font-family: var(--font-body);
  animation: slideupBanner 0.50s;
}
@keyframes slideupBanner {
  from { transform: translateY(100px); opacity:0; }
  to   { transform: translateY(0); opacity:1; }
}
.cookie-banner__actions {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.cookie-banner button {
  font-family: var(--font-body);
  border: none;
  padding: 11px 22px;
  border-radius: 22px 30px 18px 14px/18px 14px 22px 22px;
  font-weight: 600;
  background: var(--color-green-accent);
  color: #FFF;
  cursor: pointer;
  margin-right: 4px;
  font-size: 15px;
  transition: background 0.13s, color 0.13s, box-shadow 0.15s;
  box-shadow: 0 2px 10px #c9dbd28a;
}
.cookie-banner button:hover,
.cookie-banner button:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
  box-shadow: 0 4px 22px #e1d9b0ba;
}
.cookie-banner .btn-settings {
  background: #fff;
  color: var(--color-green-accent);
  border: 1px solid #BACFA1;
}
.cookie-banner .btn-settings:hover,
.cookie-banner .btn-settings:focus {
  background: #D6EDDD;
  color: var(--color-primary);
}

/* COOKIE MODAL */
.cookie-modal {
  position: fixed;
  z-index: 3050;
  left: 50%;
  top: 50%;
  width: 97vw;
  max-width: 410px;
  background: #FFFFFF;
  border-radius: 32px 16px 32px 40px/26px 20px 36px 18px;
  box-shadow: 0 8px 64px #ece9b073, 0 2px 20px #b6cfa355;
  padding: 34px 20px 20px 20px;
  transform: translate(-50%, -50%) scale(1.04);
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: popupIn 0.36s;
}
@keyframes popupIn {
  from { opacity: 0; transform: translate(-50%, -36%) scale(0.75); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1.04); }
}
.cookie-modal__title {
  font-family: var(--font-display);
  color: var(--color-green-accent);
  font-size: 1.2rem;
  margin-bottom: 2px;
}
.cookie-modal__close {
  background: none;
  border: none;
  font-size: 2rem;
  color: #B46F19;
  position: absolute;
  right: 18px;
  top: 18px;
  cursor: pointer;
  z-index: 3051;
}
.cookie-modal__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cookie-modal__toggle-group {
  display: flex; flex-direction: column; gap: 14px;
}
.cookie-modal__toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  font-family: var(--font-body);
}
.cookie-toggle-input {
  appearance: none;
  width: 40px; height: 22px;
  background: #d9e9d9;
  border-radius: 16px;
  position: relative;
  outline: none;
  transition: background 0.2s;
}
.cookie-toggle-input:checked {
  background: #52bb54;
}
.cookie-toggle-input:after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: left 0.18s;
  box-shadow: 0 2px 8px #b1bbac72;
}
.cookie-toggle-input:checked:after {
  left: 21px;
}
/* Essential cookies label */
.cookie-modal__toggle .essential {
  color: #B46F19;
  font-weight: 600;
}

.cookie-modal__actions {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}
.cookie-modal .btn-primary,
.cookie-modal button:not(.cookie-modal__close) {
  min-width: 96px;
}

@media (max-width: 768px) {
  .cookie-modal {
    padding: 18px 8px 16px 8px;
    max-width: 99vw;
  }
}

/* --- RESPONSIVE CONTENT LAYOUTS --- */
@media (max-width: 950px) {
  .container {
    padding-left: 4vw;
    padding-right: 4vw;
  }
}
@media (max-width: 700px) {
  h1 { font-size: 1.48rem; }
  h2 { font-size: 1.13rem; }
  .section { padding: 18px 3vw; }
}
@media (max-width: 600px) {
  h1, h2, h3 {
    word-break: break-word;
  }
  .card-container, .content-grid {
    gap: 14px;
  }
  .card {
    padding: 18px 10px;
    border-radius: 16px 21px 12px 10px/14px 17px 11px 11px;
  }
  .testimonial-card {
    padding: 13px;
    border-radius: 17px 13px 24px 11px/10px 17px 11px 15px;
    font-size: 14px;
  }
}

/* --- MICRO-ANIMATIONS --- */
.btn-primary:active,
.mobile-menu-toggle:active,
.mobile-menu-close:active {
  transform: scale(0.97) rotate(-0.5deg);
}
.card, .testimonial-card, .btn-primary {
  transition: box-shadow 0.17s, transform 0.16s, background 0.11s, color 0.11s;
}
.card:hover {
  box-shadow: 0 8px 40px #98beaa24;
}

/* --- ORGANIC DECORATIVE SHAPES (BG / ICONS) --- */
section img[alt*="icon-"], .text-section img {
  width: 32px;
  height: 32px;
  margin-right: 7px;
  vertical-align: middle;
  background: #E9EEE8;
  border-radius: 50% 80% 45% 46%;
  padding: 4px;
  box-shadow: 0 1px 10px #d3e6d5cf;
}

/* --- SPECIAL: FAQ/PRICING PAGE --- */
dt, dd {
  font-size: 1rem;
  line-height: 1.6;
  font-family: var(--font-body);
}
dt { color: var(--color-green-accent); }

/* --- ACCESSIBILITY: FOCUS VISIBLE --- */
:focus-visible {
  outline: 2px solid #6BC146;
  outline-offset: 2px;
  border-radius: 7px;
}

/* MINIMUM INTERELEMENT SPACING BETWEEN CARDS & SECTIONS */
.section + .section { margin-top: 20px; }
.card + .card { margin-top: 20px; }
.testimonial-card + .testimonial-card { margin-top: 20px; }

/* --- Hide elements visually but keep for screen readers --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
