/* 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;
}
/* HTML5 display-role reset for older browsers */
article,aside,details,figcaption,figure, 
footer,header,hgroup,menu,nav,section {
  display:block;
}
body {
  line-height:1.5;
  background-color:#F9F6F1;
  color:#2B2D2A;
}
ol,ul {
  list-style:none;
}
a {
  text-decoration:none;
  color:inherit;
}
img {
  max-width:100%;
  height:auto;
  display:block;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  background: none;
  border: none;
  outline: none;
}

/* ROOT COLORS & FONTS */
:root {
  --color-primary: #225F37;
  --color-secondary: #6FAA44;
  --color-accent: #F9F6F1;
  --color-earth: #B39A7A;
  --color-bark: #53472B;
  --color-light-earth: #EDE1D4;
  --color-green-dark: #183D25;
  --color-success: #6FAA44;
  --color-error: #B33E26;

  --font-display: 'Kanit', 'Segoe UI', Arial, sans-serif;
  --font-body: 'Noto Sans Lao', 'Segoe UI', Arial, sans-serif;
}

html {
  font-size:16px;
  box-sizing:border-box;
}
body {
  font-family: var(--font-body);
  background-color: var(--color-accent);
  color: #2B2D2A;
  min-height:100vh;
}

/* LAYOUT CONTAINERS */
.container {
  width:100%;
  max-width:1100px;
  margin-left:auto;
  margin-right:auto;
}
.content-wrapper {
  width:100%;
  display:flex;
  flex-direction:column;
  gap:24px;
}

.section {
  margin-bottom:60px;
  padding:40px 20px;
  background: var(--color-accent);
  border-radius:28px;
  box-shadow: 0 2px 24px 0 rgba(53,56,54,.06);
}

@media (max-width: 768px) {
  .container { padding-left: 0; padding-right: 0; }
  .section { padding:28px 10px; margin-bottom:32px; }
}

/* HEADER & NAVIGATION */
header {
  width:100%;
  background: var(--color-primary);
  box-shadow: 0 2px 16px rgba(50,60,47,0.10);
  position:sticky;
  top:0;
  z-index:20;
  display:flex;
  flex-direction:column;
}
.main-nav {
  display:flex;
  flex-direction:row;
  align-items:center;
  justify-content:space-between;
  gap:32px;
  padding:16px 20px;
}
.main-nav a {
  font-family: var(--font-display);
  color:#F9F6F1;
  font-weight:600;
  font-size:1.08rem;
  letter-spacing:0.01em;
  transition:color 0.2s;
  padding:7px 12px;
  border-radius:18px;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--color-secondary);
  color:var(--color-bark);
  transition: background 0.18s, color 0.18s;
}
.main-nav img {
  height:40px;
  margin-right:12px;
}
.mobile-menu-toggle {
  display:none;
  font-size:2rem;
  background:var(--color-secondary);
  color:#fff;
  padding:7px 14px;
  border-radius:12px;
  margin-right:16px;
  margin-top: -2px;
  cursor:pointer;
  z-index:21;
  transition: background 0.18s;
  border:none;
  outline:none;
}
.mobile-menu-toggle:active,
.mobile-menu-toggle:focus {
  background:var(--color-primary);
}
@media (max-width: 991px) {
  .main-nav a:not(:first-child) {
    font-size:1rem;
    padding:7px 8px;
  }
}
@media (max-width: 900px) {
  .main-nav a:not(:first-child) {
    display:none;
  }
  .mobile-menu-toggle {
    display:block;
  }
}

/* MOBILE MENU OVERLAY */
.mobile-menu {
  position:fixed;
  top:0; left:0; right:0; bottom:0;
  background:rgba(34,95,55,0.96);
  z-index:1000;
  display:flex;
  flex-direction:column;
  transform:translateX(100%);
  transition:transform 0.35s cubic-bezier(.88,.41,0,.94);
  pointer-events:none;
}
.mobile-menu.open {
  transform:translateX(0);
  pointer-events:auto;
}
.mobile-menu-close {
  position:absolute;
  top:24px;
  right:28px;
  background:var(--color-secondary);
  color:#fff;
  font-size:2.2rem;
  border-radius:50%;
  width:46px;
  height:46px;
  border:none;
  cursor:pointer;
  z-index:1002;
  box-shadow: 0 2px 12px 0 rgba(53,56,56,.1);
  transition: background 0.18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--color-earth);
  color:var(--color-bark);
}
.mobile-nav {
  margin-top:90px;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap: 28px;
}
.mobile-nav a {
  font-size:1.36rem;
  color:#F9F6F1;
  font-family: var(--font-display);
  font-weight:700;
  padding:14px 36px;
  border-radius:19px;
  transition:background 0.2s, color 0.2s;
  width:90vw;
  max-width:340px;
  text-align:center;
}
.mobile-nav a:active, .mobile-nav a:hover, .mobile-nav a:focus {
  background:var(--color-secondary);
  color: var(--color-bark);
}
@media (min-width: 901px) {
  .mobile-menu {
    display:none !important;
  }
}

/* SECTION LAYOUTS & UTILITIES */
.text-section {
  padding:0;
  display:flex;
  flex-direction:column;
  gap:20px;
}
.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:flex-start; gap:18px; }
}
.card-container {
  display:flex;
  flex-wrap:wrap;
  gap:24px;
}
.card {
  margin-bottom:20px;
  background: var(--color-accent);
  border-radius:22px;
  box-shadow:0 2px 12px 0 rgba(53,56,56,.06);
  padding:28px 22px;
  position:relative;
  display:flex;
  flex-direction:column;
  gap:20px;
}
.card-content {
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:10px;
}
.content-grid {
  display:flex;
  flex-wrap:wrap;
  gap:20px;
  justify-content:space-between;
}
.feature-item {
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:15px;
  padding-bottom:8px;
}
.features {
  display:flex;
  flex-wrap:wrap;
  gap:20px;
}
@media (max-width: 600px) {
  .content-grid, .card-container, .features { flex-direction:column; gap:14px; }
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-family:var(--font-display);
  margin-bottom:10px;
  color:var(--color-primary);
  font-weight:700;
  letter-spacing:-0.015em;
}
h1 { font-size:2.5rem; line-height:1.18; }
h2 { font-size:2rem; line-height:1.23; }
h3 { font-size:1.325rem; line-height:1.35; color:var(--color-secondary); }
p, li {
  font-family:var(--font-body);
  font-size:1.09rem;
  line-height:1.7;
  color:#383927;
}
ul,ol { margin-left:0; padding-left:0; }
li { margin-bottom:12px; padding-left:36px; position:relative; }
li img {
  width:22px; height:22px; position:absolute; left:0; top:2px;
}
blockquote {
  font-style:italic;
  margin:0 0 10px 0;
  padding-left:14px;
  border-left:4px solid var(--color-secondary);
  color: #225F37;
  background:rgba(106,170,68,0.08);
  border-radius:10px;
  font-size:1.13rem;
}
.text-section > ul li {
  margin-bottom:10px;
}
@media (max-width:600px) {
  h1 { font-size:2rem; }
  h2 { font-size:1.45rem; }
  h3 { font-size:1.11rem; }
  p,li { font-size:0.98rem; }
}

/* CALL-TO-ACTION BUTTONS */
.cta {
  display:inline-block;
  background:var(--color-secondary);
  color:#fff;
  font-family:var(--font-display);
  font-size:1.13rem;
  font-weight:700;
  letter-spacing:.05em;
  border-radius:28px;
  padding:13px 38px;
  margin-top:12px;
  margin-bottom:10px;
  box-shadow:0 2px 14px 0 rgba(98,144,63,.11);
  border:none;
  transition:background 0.16s, transform 0.18s;
  cursor:pointer;
  outline:none;
}
.cta:hover, .cta:focus, .cta:active {
  background:var(--color-primary);
  color:var(--color-accent);
  transform: translateY(-2px) scale(1.032);
}

/* TESTIMONIAL CARD */
.testimonial-card {
  display:flex;
  align-items:center;
  gap:20px;
  margin-top:16px;
  margin-bottom:20px;
  padding:20px;
  background:var(--color-light-earth);
  border-radius:18px;
  box-shadow:0 2px 14px 0 rgba(53,56,54,.10);
  color: #183D25;
  flex-wrap:wrap;
  min-width:0;
  overflow-wrap:break-word;
}
.testimonial-card blockquote {
  color: var(--color-green-dark);
  font-size:1.03rem;
  margin-bottom:5px;
  background:transparent;
  border-left:3px solid var(--color-secondary);
}
.testimonial-card p {
  font-style:normal;
  font-weight:500;
  color: var(--color-primary);
  font-size:0.97rem;
  margin-bottom:0;
  margin-top:2px;
}
@media (max-width:600px) {
  .testimonial-card { flex-direction:column; align-items:flex-start; gap:14px; padding:13px; }
}

/* FOOTER */
footer {
  background: var(--color-primary);
  color:#F9F6F1;
  font-family:var(--font-body);
  padding:30px 0 22px 0;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:14px;
}
.footer-nav {
  display:flex;
  flex-wrap:wrap;
  gap:24px;
  margin-bottom:7px;
}
.footer-nav a {
  color:#F9F6F1;
  font-weight:400;
  font-size:1rem;
  opacity:0.85;
  transition:opacity 0.18s, color 0.19s;
}
.footer-nav a:hover, .footer-nav a:focus {
  opacity:1;
  color:var(--color-secondary);
}
footer p {
  color:#edebeb;
  font-size:0.97rem;
  margin-top:1px;
}
@media (max-width:650px) {
  .footer-nav{ gap:14px; }
  footer { padding:22px 0 12px 0; }
}

/* COOKIE CONSENT BANNER */
.cookie-banner {
  position:fixed;
  left:0;
  right:0;
  bottom:0;
  background: var(--color-light-earth);
  color: var(--color-bark);
  box-shadow: 0 -2px 18px rgba(44,55,33,0.12);
  z-index:9000;
  display:flex;
  flex-direction:row;
  justify-content:center;
  align-items:center;
  padding:22px 16px 22px 16px;
  gap:32px;
  border-radius:38px 38px 0 0;
  font-size:1rem;
  opacity:1;
  transform:translateY(0);
  transition:transform 0.39s cubic-bezier(.74,.04,.21,.84);
}
.cookie-banner.hide {
  transform:translateY(120%);
  pointer-events:none;
  opacity:0;
}
.cookie-banner__text {
  font-size:1.06rem;
  color:#3F3627;
  max-width:510px;
  padding-right:16px;
}
@media (max-width:600px) {
  .cookie-banner { flex-direction:column; gap:14px; padding:16px 9px; font-size:0.96rem; align-items:stretch; }
  .cookie-banner__text{ padding-right:0; }
}
.cookie-banner__actions {
  display:flex;
  flex-direction:row;
  gap:14px;
  align-items:center;
}
.cookie-btn {
  background: var(--color-secondary);
  color: #fff;
  border:none;
  border-radius:22px;
  padding:10px 23px;
  font-weight:700;
  font-family: var(--font-display);
  font-size:1.01rem;
  box-shadow:0 2px 12px 0 rgba(53,56,54,.07);
  cursor:pointer;
  transition:background 0.19s, color 0.16s;
  margin-right: 0;
}
.cookie-btn.cookie-btn-settings {
  background: var(--color-primary);
  color:#fff;
}
.cookie-btn.cookie-btn-settings:hover, .cookie-btn.cookie-btn-settings:focus {
  background: var(--color-bark);
}
.cookie-btn:hover, .cookie-btn:focus {
  background:var(--color-earth);
  color:var(--color-bark);
}
.cookie-btn.cookie-btn-reject {
  background:var(--color-bark);
  color:#fff;
}
.cookie-btn.cookie-btn-reject:hover, .cookie-btn.cookie-btn-reject:focus {
  background:var(--color-error);
  color:#fff;
}

/* COOKIE PREFERENCES MODAL */
.cookie-modal {
  position:fixed;
  left:0; right:0;
  top:0; bottom:0;
  background:rgba(34,95,55,0.35);
  z-index:9999;
  display:flex;
  justify-content:center;
  align-items:center;
  pointer-events:none;
  opacity:0;
  transition:opacity 0.25s;
}
.cookie-modal.open {
  pointer-events:auto;
  opacity:1;
  transition:opacity 0.33s;
}
.cookie-modal__dialog {
  background: var(--color-accent);
  border-radius:26px;
  box-shadow:0 5px 24px 0 rgba(53,56,54,.12);
  max-width:390px;
  width:92vw;
  padding:36px 26px 24px 26px;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:22px;
  position:relative;
  animation: modalFadeIn 0.32s cubic-bezier(.74,.04,.21,.84);
}
@keyframes modalFadeIn {
  from { opacity:0; transform:translateY(60px) scale(0.9); }
  to { opacity:1; transform:translateY(0) scale(1); }
}
.cookie-modal__close {
  position:absolute;
  top:10px;
  right:13px;
  font-size:1.5rem;
  color:var(--color-bark);
  background: transparent;
  border:none;
  cursor:pointer;
  z-index:10002;
  transition:color 0.17s;
}
.cookie-modal__close:hover, .cookie-modal__close:focus {
  color:var(--color-secondary);
}
.cookie-modal__title {
  font-family:var(--font-display);
  color:var(--color-primary);
  font-weight:700;
  font-size:1.25rem;
}
.cookie-modal__category {
  display:flex;
  align-items:center;
  gap:13px;
  margin-bottom:13px;
}
.cookie-modal__category-label {
  font-family:var(--font-body);
  font-size:1.04rem;
  color:var(--color-bark);
}
.cookie-modal__toggle {
  width:40px;
  height:22px;
  border-radius:99px;
  background: var(--color-light-earth);
  position:relative;
  cursor:pointer;
  transition:background 0.2s;
  border:none;
}
.cookie-modal__toggle[aria-checked="true"] {
  background: var(--color-success);
}
.cookie-modal__toggle-thumb {
  width:20px;
  height:20px;
  border-radius:50%;
  background: #fff;
  position:absolute;
  top:1px;
  left:1px;
  transition:left .19s;
}
.cookie-modal__toggle[aria-checked="true"] .cookie-modal__toggle-thumb {
  left:19px;
}
.cookie-modal__essential {
  opacity:0.68; pointer-events:none; font-style:italic; }

.cookie-modal__desc {
  font-size:0.98rem;
  color:#4c402c;
  margin-bottom:10px;
}
.cookie-modal__actions {
  display:flex;
  flex-direction:row;
  gap:14px;
  align-items:center;
}
@media (max-width: 500px) {
  .cookie-modal__dialog { padding:19px 7px 17px 13px; min-width:0; }
}

/* ANIMATIONS & TRANSITIONS */
.section, .card, .cta, .testimonial-card, .cookie-btn, .main-nav a {
  transition: box-shadow 0.17s, background 0.15s, color 0.18s, transform 0.26s;
}
.card:hover, .testimonial-card:hover {
  box-shadow:0 4px 24px 0 rgba(53,56,56,0.15);
  transform: translateY(-3px) scale(1.011);
}

/* ORGANIC & EARTHY EFFECTS */
.section {
  background:
    linear-gradient(110deg, #F9F6F1 85%, #EDE1D4 100%);
  border-radius: 40px 28px 50px 36px / 34px 44px 36px 28px; /* organic shape */
  box-shadow: 0 4px 34px 0 rgba(53,56,54,.13), 0 1.5px 8px rgba(120,120,80,.07);
}
.card {
  border-radius: 22px 28px 32px 24px/22px 36px 22px 26px;
  background:linear-gradient(120deg, #F9F6F1 70%, #EDE1D4 100%);
  box-shadow:0 2px 20px 0 rgba(53,56,56,.11);
}
.testimonial-card {
  border-radius: 18px 30px 24px 18px;
}

/* MISC STYLES */
h1, h2, h3 {
  text-shadow: 0 2px 2px #ede1d4b0;
}
ul li strong {
  color:var(--color-primary);
}

/* RESPONSIVE PADDING/MARGIN TWEAKS */
@media (max-width: 768px) {
  .content-wrapper, .card-content, .feature-item { gap:14px; }
  .section { margin-bottom:30px; }
}

/* SPACING BETWEEN CARDS AND SECTIONS */
.card + .card, .testimonial-card + .testimonial-card,
.section + .section, .testimonial-card + .text-section, .card + .testimonial-card {
  margin-top:22px !important;
}

/* BUTTON / FOCUS ACCESSIBILITY */
button:focus, .cta:focus, .main-nav a:focus, .mobile-nav a:focus,.cookie-btn:focus {
  outline:2.5px solid var(--color-secondary);
  outline-offset:2px;
  background:var(--color-light-earth);
  color:var(--color-bark);
}

/* ICONS IN LI */
ul li img {
  vertical-align:middle;
  margin-right:11px;
  position:relative;
  top:2px;
}

/* ACCESSIBILITY - COLOR CONTRAST */
.testimonial-card,
.cookie-banner,
.cookie-modal__dialog {
  color: #1f2322;
  background: #F9F6F1;
}
.testimonial-card blockquote { color: #225F37; }
.testimonial-card p { color: #225F37; }

/* ENSURE NO FLEX OVERLAP - MIN WIDTHS */
*, *:before, *:after {
  min-width:0;
}

/* HELPERS */
.hide { display:none !important; }

/* END OF NATURE_ORGANIC THEME */
