/* =====================================================
   CSS RESET & BASELINE
   ===================================================== */
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;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  box-sizing: border-box;
  font-size: 16px;
  font-family: 'Noto Sans Lao', Arial, sans-serif;
  background: #fafafa;
  color: #191919;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  min-height: 100vh;
  line-height: 1.6;
  background-color: #fff;
  color: #191919;
  font-family: 'Noto Sans Lao', Arial, sans-serif;
}
img {
  max-width: 100%;
  display: block;
}
a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}
ul, ol {
  padding-left: 1.4em;
  margin-bottom: 1.2em;
}
li {
  margin-bottom: 0.3em;
}

/* =====================================================
   BRAND & TYPOGRAPHY – MONOCHROME SOPHISTICATED
   ===================================================== */
:root {
  --color-bg: #ffffff;
  --color-fg: #191919;
  --color-primary: #191919;
  --color-secondary: #ebebeb;
  --color-border: #ededed;
  --color-accent: #333;
  --card-bg: #f7f7f7;
  --shadow-main: 0 4px 24px rgba(40,40,50,0.10);
  --shadow-card: 0 2px 8px rgba(30,30,30,0.09);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 7px;
  --transition: 0.3s cubic-bezier(.4,0,.2,1);
}
body {
  background: var(--color-bg);
  color: var(--color-fg);
  font-family: 'Noto Sans Lao', Arial, sans-serif;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Noto Sans Lao', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: -0.012em;
  color: #191919;
}
h1 { font-size: 2.5rem; line-height: 1.15; margin-bottom: 16px; }
h2 { font-size: 2rem; margin-bottom: 14px; line-height: 1.20; }
h3 { font-size: 1.25rem; margin-bottom: 6px; }
h4, h5, h6 { font-size: 1.1rem; }
p, ul, ol {
  font-size: 1rem;
  color: #222;
}
section p, section ul, section ol {
  margin-bottom: 12px;
}
strong { color: #101010; font-weight: 600; }

/* =====================================================
   LAYOUT – FLEXBOX & CONTAINERS
   ===================================================== */
.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-main);
}

/* =====================================================
   HEADER / NAVIGATION
   ===================================================== */
header {
  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  position: sticky;
  top: 0;
  z-index: 30;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  gap: 16px;
}
.logo-link img {
  height: 44px;
  width: auto;
  display: block;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.main-nav a {
  font-size: 1rem;
  font-weight: 500;
  color: #222;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  letter-spacing: 0.01em;
  transition: border-color 0.17s, color 0.17s;
}
.main-nav a:hover, .main-nav a:focus {
  color: #000;
  border-bottom: 2px solid #101010;
}
.cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #191919;
  color: #fff;
  font-size: 1.08rem;
  font-weight: 600;
  padding: 12px 26px;
  border-radius: var(--radius-md);
  border: none;
  box-shadow: 0 2px 12px rgba(42,42,70,0.09);
  transition: background var(--transition), transform .12s;
  cursor: pointer;
  margin-left: 14px;
  letter-spacing: 0.01em;
}
.cta-primary:hover, .cta-primary:focus {
  background: #222;
  transform: translateY(-1px) scale(1.03);
}
.cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f4f4f4;
  color: #191919;
  font-size: 1rem;
  font-weight: 600;
  padding: 11px 22px;
  border-radius: var(--radius-md);
  border: 1px solid #ccc;
  box-shadow: 0 2px 12px rgba(42,42,70,0.07);
  transition: background var(--transition), color var(--transition);
  cursor: pointer;
  margin-top: 8px;
  margin-bottom: 10px;
}
.cta-secondary:hover, .cta-secondary:focus {
  background: #191919;
  color: #fff;
}

/* Mobile Burger Menu */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: #191919;
  cursor: pointer;
  z-index: 110;
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  transform: translateX(-100%);
  z-index: 120;
  box-shadow: 2px 0 28px rgba(0,0,0,0.12);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px 32px 32px 28px;
  transition: transform 0.33s cubic-bezier(.36,.36,.07,1);
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  border: none;
  font-size: 2.2rem;
  color: #101010;
  margin-bottom: 24px;
  cursor: pointer;
  transition: color 0.18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #555;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
}
.mobile-nav a {
  font-size: 1.20rem;
  color: #181818;
  padding: 10px 0;
  border-bottom: 1px solid #ebebeb;
  transition: background 0.18s, color 0.15s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #f3f3f3;
  color: #111;
  border-radius: 6px;
}

@media (max-width: 1024px) {
  .main-nav {
    gap: 16px;
  }
  .cta-primary {
    padding: 10px 18px;
    font-size: 1rem;
    margin-left: 8px;
  }
}

@media (max-width: 900px) {
  header .container {
    flex-direction: row;
    gap: 12px;
    padding-left: 8px; padding-right: 8px;
  }
  .main-nav { gap: 8px; }
}
@media (max-width: 860px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
}
@media (min-width: 861px) {
  .mobile-menu,
  .mobile-menu-toggle { display:none !important; }
}

/* =====================================================
   HERO SECTION
   ===================================================== */
.hero-section {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 32px 4px rgba(12,12,12,0.07);
  margin-top: 26px;
  margin-bottom: 48px;
  min-height: 260px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-section .container {
  flex-direction: column;
  min-height: 220px;
  justify-content: center;
  padding-top: 16px;
  padding-bottom: 16px;
}
.hero-section .content-wrapper {
  max-width: 650px;
  gap: 16px;
  padding-left: 0;
  padding-right: 0;
  z-index: 2;
}
.hero-section h1 {
  font-size: 2.3rem;
  color: #191919;
  margin-bottom: 12px;
  font-weight: 800;
  line-height: 1.18;
}
.hero-section p {
  font-size: 1.06rem;
  color: #222;
  margin-bottom: 18px;
}
@media (max-width: 600px) {
  .hero-section h1 { font-size: 1.4rem; }
  .hero-section .content-wrapper { gap: 12px; }
  .hero-section { margin-top: 12px; padding: 0; }
}

/* =====================================================
   FEATURE GRID (STRICT FLEXBOX)
   ===================================================== */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 20px;
  justify-content: flex-start;
}
.feature-grid > div {
  background: var(--card-bg);
  flex: 1 1 260px;
  min-width: 220px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 20px 18px 22px 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  max-width: 370px;
  margin-bottom: 0;
  transition: box-shadow var(--transition), transform .13s;
  position: relative;
  z-index: 2;
}
.feature-grid > div:hover, .feature-grid > div:focus-within {
  box-shadow: 0 6px 26px rgba(10,10,35,0.08);
  transform: translateY(-2px) scale(1.01);
}
.feature-grid img {
  width: 40px;
  height: 40px;
  margin-bottom: 2px;
}
.feature-grid h3 {
  font-size: 1.15rem;
  margin-bottom: 2px;
  color: #171717;
  font-weight: 700;
}
.feature-grid p {
  margin-bottom: 0;
  color: #313131;
  font-size: 1rem;
}
@media (max-width: 900px) {
  .feature-grid {
    gap: 18px;
  }
  .feature-grid > div {
    min-width: 180px;
    max-width: 100%;
    padding: 16px 10px;
  }
}
@media (max-width: 600px) {
  .feature-grid {
    flex-direction: column;
    gap: 16px;
  }
  .feature-grid > div {
    min-width: unset;
    width: 100%;
    padding: 14px 4px;
  }
}

/* =====================================================
   CARDS, CARD CONTAINER
   ===================================================== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 16px;
}
.card {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 28px 24px 24px 24px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: box-shadow .18s, transform .18s;
}
.card:hover {
  box-shadow: 0 8px 40px 2px rgba(30,30,60,0.09);
  transform: translateY(-2px) scale(1.015);
}

/* =====================================================
   TEXT-IMAGE SECTION (STRICT FLEXBOX)
   ===================================================== */
.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;
  }
}

/* =====================================================
   TESTIMONIAL SECTION & CARDS
   ===================================================== */
.testimonial-section {
  margin-top: 16px;
  margin-bottom: 60px;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fbfbfb;
  border-radius: var(--radius-md);
  box-shadow: 0 2px 12px rgba(11,11,14,0.06);
  border-left: 4px solid #191919;
  margin-bottom: 20px;
  color: #101010;
  max-width: 700px;
  transition: box-shadow var(--transition), border-color .19s;
}
.testimonial-card p {
  font-size: 1.05rem;
  font-style: italic;
  color: #191919;
  margin-right: 8px;
  flex: 1;
}
.testimonial-card span {
  color: #333;
  font-weight: 600;
  letter-spacing: 0.01em;
  min-width: 140px;
  font-size: 0.99rem;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 3px 34px 2px rgba(14,14,22,0.13);
  border-left: 4px solid #111;
}
@media (max-width: 700px){
  .testimonial-card {
    flex-direction: column;
    gap: 10px;
    padding: 16px 10px;
    min-width: unset;
    max-width: 100%;
  }
  .testimonial-card span { min-width: unset; }
}

/* =====================================================
   LAYOUT PATTERNS: FLEXBOX UTILITY CLASSES
   ===================================================== */
.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;
}

/* =====================================================
   LIST & SECTION STYLING
   ===================================================== */
ul, ol {
  margin-bottom: 12px;
}
ul li,
ol li {
  margin-bottom: .55em;
  color: #202020;
  font-size: 1rem;
  padding-left: 2px;
}
ul li strong {
  color: #181818;
}

/* =====================================================
   FOOTER
   ===================================================== */
footer {
  background: #191919;
  color: #e3e3e3;
  padding: 44px 0 18px 0;
  margin-top: 80px;
  font-size: 1rem;
}
footer .container {
  flex-direction: column;
  gap: 20px;
}
.footer-nav {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: flex-start;
  margin-bottom: 10px;
}
.footer-nav a {
  color: #e3e3e3;
  opacity: .92;
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: border-color 0.13s, opacity .17s;
}
.footer-nav a:hover, .footer-nav a:focus {
  border-bottom: 1px solid #fff;
  opacity: 1;
}
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  font-size: 1rem;
  align-items: flex-start;
}
.footer-contact img {
  height: 20px;
  margin-right: 6px;
  vertical-align: middle;
}
.footer-copyright {
  margin-top: 6px;
  font-size: 0.97rem;
  color: #bcbcbc;
}
@media (max-width: 620px) {
  footer .container {
    gap: 12px;
    padding: 0 7px;
  }
  .footer-nav { gap: 14px; }
  .footer-contact { gap: 10px; flex-direction: column; }
}

/* =====================================================
   BUTTONS & INTERACTIVE
   ===================================================== */
button, .button, .btn {
  font-family: inherit;
  cursor: pointer;
  transition: background .13s, color .13s, box-shadow .13s, border-color .13s;
  border: none;
  outline: none;
}
button:focus, .button:focus, .btn:focus {
  outline: 2px dashed #999;
  outline-offset: 2px;
}
a:focus {
  outline: 2px solid #888;
  outline-offset: 2px;
}
::-webkit-input-placeholder { color: #b0b0b0; }
::-moz-placeholder { color: #b0b0b0; }
:-ms-input-placeholder { color: #b0b0b0; }
::placeholder { color: #b0b0b0; }

/* =====================================================
   COOKIE CONSENT BANNER & MODAL
   ===================================================== */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0;
  width: 100vw;
  background: #111111f7;
  color: #fff;
  padding: 18px 16px 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 -2px 46px 0 rgba(20,20,20,0.20);
  z-index: 1001;
  gap: 12px;
  opacity: 1;
  transform: translateY(0);
  transition: opacity .32s cubic-bezier(.55, .12, .22, .97), transform .29s cubic-bezier(.44, .15, .24, 1);
}
.cookie-banner.hide {
  opacity: 0;
  transform: translateY(100%);
  pointer-events: none;
}
.cookie-banner-text {
  font-size: 0.97rem;
  color: #fff;
  margin-bottom: 6px;
}
.cookie-banner-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.cookie-banner-buttons .cookie-btn {
  border-radius: 22px;
  border: none;
  padding: 10px 24px;
  font-size: 1rem;
  font-weight: 500;
  background: #fff;
  color: #191919;
  margin: 0;
  min-width: 124px;
  box-shadow: 0 1px 9px 1px rgba(30,30,30, 0.07);
  transition: background 0.17s, color 0.17s, box-shadow 0.18s;
}
.cookie-btn.settings {
  background: #222;
  color: #fff;
  border: 1px solid #fff;
  margin-left: 6px;
}
.cookie-banner-buttons .cookie-btn:hover,
.cookie-banner-buttons .cookie-btn:focus {
  background: #191919;
  color: #fff;
  box-shadow: 0 2px 12px rgba(18,18,18,0.12);
}
.cookie-btn.reject {
  background: #eaebec;
  color: #181818;
}

/* Cookie modal */
.cookie-modal-overlay {
  position: fixed;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  background: rgba(24,24,24,0.77);
  z-index: 1500;
  display: flex; align-items: center; justify-content: center;
  opacity: 1;
  pointer-events: all;
  animation: fadeinmodal .23s;
}
@keyframes fadeinmodal {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  color: #191919;
  border-radius: var(--radius-lg);
  padding: 38px 20px 24px 22px;
  min-width: 280px;
  max-width: 95vw;
  min-height: 210px;
  box-shadow: 0 7px 44px 3px rgba(10,10,20,0.18);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  animation: popin .28s cubic-bezier(.16,.72,.39,1.09);
}
@keyframes popin {
  from { transform: scale(.95); opacity:0; }
  to { transform: scale(1); opacity:1; }
}
.cookie-modal-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 7px;
}
.cookie-modal-close {
  position: absolute; top: 16px; right: 20px;
  background: none; border: none;
  font-size: 1.9rem;
  color: #222;
  padding: 0;
  transition: color 0.13s;
  cursor: pointer;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: #888;
}
.cookie-category {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  font-size:1.05rem;
  margin-bottom:7px;
}
.cookie-switch {
  display: flex;
  align-items: center;
  gap: 5px;
}
.cookie-switch input[type="checkbox"] {
  width: 40px; height: 20px;
  appearance: none;
  background: #dedede;
  border-radius: 12px;
  position: relative;
  transition: background 0.17s;
  vertical-align: middle;
}
.cookie-switch input[type="checkbox"]:checked {
  background: #191919;
}
.cookie-switch input[type="checkbox"]:before {
  content: '';
  position: absolute;
  top: 2px; left: 2px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.20s;
}
.cookie-switch input[type="checkbox"]:checked:before {
  transform: translateX(20px);
}
.cookie-switch label {
  margin-left: 8px;
  font-size: 1rem;
}
.cookie-category.cookie-essential label, .cookie-category.cookie-essential {
  color: #444;
  font-weight: 600;
  opacity:.92;
}
.cookie-category.cookie-essential input {
  pointer-events: none;
  filter: grayscale(65%) opacity(.65);
}

/* =====================================================
   RESPONSIVE SPACING & FLEX DIRECTION
   ===================================================== */
@media (max-width: 900px){
  .container { padding: 0 8px; }
  .content-wrapper { gap: 12px; }
  .section { padding: 24px 8px; }
}

@media (max-width:768px){
  .container { max-width: 99vw; padding: 0 2vw; }
  .footer-contact { flex-direction: column; gap: 10px; }
  .feature-grid { flex-direction: column; }
  .content-grid { flex-direction: column; gap:14px; }
  .footer-nav { gap: 10px; }
}

/* =====================================================
   UTILITIES & EXTRAS (EFFECTS, ICONS, SPACING)
   ===================================================== */
hr {
  border: 0; height: 1px;
  background: #eaeaea;
  margin: 18px 0;
}
[tabindex="0"]:focus, .focus-visible {
  outline: 2px solid #555;
  outline-offset: 2px;
}

/* ==========================
   ICON Helpers
   ========================== */
.icon {
  display: inline-block;
  vertical-align: middle;
  width: 1.35em; height: 1.35em;
}

/* ==========================
   Misc & extra breathing space
   ========================== */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* ==========================
   TRANSITIONS
   ========================== */
*, *:before, *:after {
  transition-property: background, color, box-shadow, border-color, transform;
  transition-duration: .17s;
}

/* End: CSS */
