/* CSS RESET & BASELINE (normalize + custom) */
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; }
*, *:before, *:after { box-sizing: inherit; }
img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea {
  font-family: inherit;
  font-size: 100%;
  background: none;
  border: none;
  outline: none;
  box-shadow: none;
}
a { color: inherit; text-decoration: none; transition: color .2s; }

body {
  background: #F6E9D3;
  color: #3A2212;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
  transition: background 0.4s;
}

:root {
  --primary: #3A2212;
  --secondary: #8B7355;
  --accent: #F6E9D3;
  --brand-yellow: #FFE187;
  --brand-pink: #F6B7B5;
  --brand-blue: #85A5D5;
  --shadow: 0 6px 32px rgba(58,34,18,0.07), 0 4px 12px rgba(58,34,18,0.08);
  --radius: 16px;
  --art-font: 'Merriweather', Georgia, serif;
  --body-font: 'Open Sans', Arial, sans-serif;
  --transition: all 0.19s cubic-bezier(.61,.23,.06,.99);
}

/* ------------------ LAYOUT STRUCTURE ------------------- */
.container {
  width: 100%;
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 16px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: flex-start;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: rgba(255, 225, 135, 0.06);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.text-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px 24px;
  flex: 1 1 260px;
  transition: box-shadow .18s, transform .18s;
  border: 2px solid var(--brand-yellow);
}
.card:hover {
  box-shadow: 0 10px 32px 0 rgba(51,34,18,0.22),0 2px 12px 0 rgba(58,34,18,0.10);
  transform: translateY(-4px) scale(1.01);
}

.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;
  flex-direction: row;
  align-items: center;
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-left: 8px solid var(--brand-blue);
  transition: box-shadow .17s, border-color .2s;
  color: #1C1713;
  font-size: 17px;
}
.testimonial-card:hover {
  box-shadow: 0 6px 32px 0 rgba(85,68,50,.13), 0 2px 10px 0 rgba(51,34,18,.09);
  border-left-color: var(--brand-pink);
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 24px 20px;
  margin-bottom: 24px;
}

/* ----------------------------------- NAVIGATION ----------------------------------- */
header {
  width: 100%;
  background: var(--primary);
  box-shadow: 0 1px 10px 0 rgba(58,34,18,.08);
  position: relative;
  z-index: 100;
}
header nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 22px;
  padding: 18px 0;
  justify-content: flex-start;
  overflow-x: auto;
}
header nav a {
  color: var(--accent);
  font-family: var(--art-font);
  font-size: 18px;
  padding: 5px 10px;
  border-radius: 9px;
  transition: background .16s, color .16s;
  font-weight: 700;
  letter-spacing: 0.6px;
}
header nav a:hover, header nav a.active {
  background: var(--brand-yellow);
  color: var(--primary);
}
header nav img {
  height: 44px;
  width: auto;
  margin-right: 22px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 3px 10px 0 rgba(255,225,135,0.09);
  padding: 6px;
}

/* --------------------------- MOBILE NAVIGATION -------------------------- */
.mobile-menu-toggle {
  display: none;
}
.mobile-menu {
  position: fixed;
  background: #fff;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 2222;
  box-shadow: 0 14px 38px 0 rgba(58,34,18,.19);
  transform: translateX(-105%);
  transition: transform .41s cubic-bezier(.82,.07,.18,.99);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 30px;
  gap: 20px;
}
.mobile-menu.open {
  transform: translateX(0%);
}
.mobile-menu-close {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 2.3em;
  background: none;
  color: var(--primary);
  border: none;
  cursor: pointer;
  z-index: 30;
  transition: color .18s;
}
.mobile-menu-close:hover {
  color: var(--brand-pink);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 18px 36px 15px 30px;
  width: 100%;
}
.mobile-nav a {
  color: var(--primary);
  font-family: var(--art-font);
  font-size: 22px;
  padding: 12px 0;
  border-radius: 5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  transition: background .16s, color .16s;
}
.mobile-nav a:hover {
  background: var(--brand-yellow);
  color: var(--secondary);
}

@media (max-width: 1024px) {
  header nav {
    gap: 12px;
    padding: 10px 0;
  }
  header nav img {
    margin-right: 7px;
    height: 34px;
    padding: 2px;
  }
}
@media (max-width: 768px) {
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-flex;
    font-size: 2.3em;
    color: var(--accent);
    background: none;
    border: none;
    padding: 12px;
    align-items: center;
    position: absolute;
    right: 22px;
    top: 8px;
    z-index: 1111;
    cursor: pointer;
    border-radius: 9px;
    transition: background .12s, color .12s;
  }
  .mobile-menu-toggle:hover,
  .mobile-menu-toggle:focus { background: var(--brand-yellow); color: var(--primary); }
}

/* ----------------------------------- HERO & CTAS ----------------------------------- */
.cta {
  display: inline-block;
  background: var(--secondary);
  color: var(--accent);
  font-family: var(--art-font);
  font-size: 18px;
  border-radius: 100px;
  padding: 13px 34px;
  font-weight: bold;
  margin-top: 12px;
  letter-spacing: 0.7px;
  box-shadow: 0 2px 12px 0 rgba(58,34,18,0.10);
  position: relative;
  border: none;
  transition: background .2s, color .22s, outline .15s;
  outline: none;
  cursor: pointer;
}
.cta.primary {
  background: var(--brand-blue);
  color: var(--primary);
  box-shadow: 0 6px 24px 0 rgba(85,165,213,0.17);
}
.cta:hover, .cta:focus {
  background: var(--brand-pink);
  color: var(--primary);
  outline: 2px solid var(--secondary);
}

/* ---------------------------- TYPOGRAPHY -------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--art-font);
  color: var(--primary);
  font-weight: 700;
}
h1 {
  font-size: 2.8em;
  line-height: 1.09;
  margin-bottom: 10px;
  letter-spacing: 0.6px;
}
h2 {
  font-size: 2.1em;
  margin-bottom: 7px;
  letter-spacing: 0.32px;
}
h3 {
  font-size: 1.46em;
  margin-bottom: 5px;
}
h4 {
  font-size: 1.2em;
  font-family: var(--art-font);
}
p, ul, ol, li, table, span, em {
  font-family: var(--body-font);
  color: var(--primary);
}
ul, ol {
  margin-left: 25px;
  margin-bottom: 16px;
}
ul li, ol li {
  margin-bottom: 10px;
  font-size: 16.5px;
}
a {
  color: var(--brand-blue);
  border-bottom: 1px solid var(--brand-blue);
  border-radius: 2px;
}
a:hover {
  color: var(--primary);
  background: var(--brand-yellow);
}
strong {
  color: var(--secondary);
}
em {
  font-style: italic;
  color: var(--brand-pink);
}
hr {
  border: none;
  height: 1px;
  background: #f2d8b3;
  margin: 34px 0 20px;
}

/* ------------ TABLES ------------ */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 28px;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  font-size: 16px;
}
th, td {
  padding: 13px 10px;
  text-align: left;
  border-bottom: 1px solid #f1e1c6;
}
th {
  background: var(--brand-yellow);
  font-family: var(--art-font);
}
tr:last-child td {
  border-bottom: none;
}

/* ------------ FOOTER ------------ */
footer {
  background: var(--primary);
  color: var(--accent);
  padding: 54px 0 28px 0;
  margin-top: 70px;
}
footer .container {
  max-width: 850px;
}
footer .content-wrapper {
  align-items: center;
  gap: 12px;
}
footer .content-wrapper nav {
  display: flex;
  flex-direction: row;
  gap: 14px;
  justify-content: center;
  font-size: 16px;
  margin-bottom: 5px;
}
footer nav a {
  color: var(--brand-yellow);
  font-family: var(--body-font);
  background: none;
  padding: 2px 7px;
  border-radius: 6px;
  transition: background .12s, color .12s;
}
footer nav a:hover {
  background: var(--brand-pink);
  color: var(--primary);
}
footer img {
  height: 46px;
  margin-bottom: 8px;
}
footer p {
  font-size: 15.5px;
  margin-bottom: 0;
  color: #fffde1;
}

/* --------------------- COOKIE CONSENT BANNER --------------------- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0; right: 0;
  width: 100vw;
  background: var(--brand-yellow);
  color: var(--primary);
  box-shadow: 0 -2px 18px 0 rgba(58,34,18,0.12);
  z-index: 9000;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 26px 20px 26px 20px;
  font-size: 1em;
  transition: transform .5s;
}
.cookie-banner.hide {
  transform: translateY(150%);
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 18px;
}
.cookie-btn {
  background: var(--primary);
  color: var(--brand-yellow);
  border-radius: 100px;
  padding: 9px 28px;
  font-family: var(--art-font);
  font-size: 16px;
  letter-spacing: 0.5px;
  margin: 0 3px;
  border: none;
  font-weight: 500;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.cookie-btn.settings {
  background: var(--brand-blue);
  color: var(--primary);
}
.cookie-btn.accept {
  background: var(--brand-pink);
  color: var(--primary);
  font-weight: bold;
}
.cookie-btn.reject {
  background: #fff;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}
.cookie-btn:hover {
  filter: brightness(1.04) saturate(1.1);
  box-shadow: 0 2px 8px 0 rgba(137,115,85,0.12);
}

/* ------------------- COOKIE PREFERENCES MODAL -------------------- */
.cookie-modal {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  z-index: 9999;
  background: rgba(58,34,18,.18);
  display: none;
  align-items: center;
  justify-content: center;
}
.cookie-modal.open {
  display: flex;
}
.cookie-modal-inner {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 8px 32px -2px rgba(58,34,18,0.21);
  padding: 36px 36px 28px 36px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 420px;
  width: 95vw;
  position: relative;
}
.cookie-modal-inner h3 {
  font-family: var(--art-font);
  margin-bottom: 5px;
  color: var(--secondary);
  font-size: 22px;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.cookie-category input[type="checkbox"] {
  accent-color: var(--brand-blue);
  width: 20px;
  height: 20px;
  cursor: pointer;
}
.cookie-category label {
  font-family: var(--body-font);
  font-size: 16px;
  color: var(--primary);
}
.cookie-modal-close {
  position: absolute;
  right: 16px;
  top: 12px;
  background: none;
  border: none;
  font-size: 2em;
  color: var(--primary);
  cursor: pointer;
  transition: color .13s;
}
.cookie-modal-close:hover {
  color: var(--brand-pink);
}

/* --------------- ARTISTIC DECOR & MICRO-INTERACTIONS -------------- */
.section {
  position: relative;
}
.section::before {
  content: '';
  display: block;
  position: absolute;
  left: -36px; top: -24px;
  width: 72px;
  height: 72px;
  background: radial-gradient(circle at 38px 38px, var(--brand-pink) 0%, transparent 70%);
  opacity: .12;
  z-index: 0;
  border-radius: 50%;
  pointer-events: none;
}
.section:nth-child(even)::after {
  content: '';
  display: block;
  position: absolute;
  right: -38px; bottom: -24px;
  width: 52px;
  height: 52px;
  background: radial-gradient(circle at 18px 18px, var(--brand-blue) 0%, transparent 75%);
  opacity: .09;
  border-radius: 50%;
  z-index: 0;
}

/* Use .artistic-tilt for cards with slightly rotated look */
.artistic-tilt {
  transform: rotate(-2deg);
  border: 2.5px dashed var(--brand-pink);
}

/* ------------- SPACING & FLEXBOX MOBILE-FIRST ------------ */
@media (max-width: 1024px) {
  .container { max-width: 96vw; padding: 0 6vw; }
  .section { padding: 32px 3vw; }
}
@media (max-width: 768px) {
  .container { max-width: 100vw; padding: 0 2vw; }
  .content-wrapper {
    gap: 18px;
    padding: 0;
  }
  .section {
    padding: 25px 2vw;
    margin-bottom: 38px;
  }
  .card {
    padding: 17px 8px;
    font-size: 15px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 17px 10px;
    font-size: 15.5px;
  }
  .feature-item {
    padding: 13px 8px;
  }
  .content-grid, .card-container, .text-image-section {
    flex-direction: column !important;
    gap: 14px;
  }
}

/* Spacing and layout rules (from instructions) */
.section { margin-bottom: 60px; padding: 40px 20px; }
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; }
.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; }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/* --------------- FORM & FOCUS -------------- */
input, textarea, select {
  border: 1.5px solid var(--brand-yellow);
  border-radius: 8px;
  font-size: 16px;
  padding: 11px;
  margin-bottom: 18px;
  width: 100%;
  background: #fff;
  transition: border .17s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--brand-blue);
  outline: none;
}

button:focus, .cta:focus, .cookie-btn:focus, .mobile-menu-toggle:focus, .mobile-menu-close:focus, .cookie-modal-close:focus {
  outline: 2.5px solid var(--brand-blue);
  outline-offset: 2px;
}

/* ----------- LISTS, OL, UL ---------- */
ul, ol {
  margin-left: 32px;
  padding-left: 0;
}
ul {
  list-style-type: disc;
}
ol {
  list-style-type: decimal;
}
ul ul {
  list-style-type: circle;
  margin-bottom: 7px;
}
ul ul li {
  font-size: 15.5px;
}

/* ----------- ANIMATIONS & MICRO-INTERACTIONS --------- */
.card, .cta, .feature-item, .testimonial-card, .cookie-btn, .mobile-menu {
  transition: var(--transition);
}

.card:active, .cta:active {
  transform: scale(.98);
}

.section, .card, .feature-item, .testimonial-card, .cookie-banner, .cookie-modal-inner {
  will-change: transform, box-shadow;
}

/* Extra: Artistic dash/brush underline for H1-H2 */
h1, h2 {
  position: relative;
  z-index: 1;
}
h1:after, h2:after {
  content: '';
  position: absolute;
  left: 0; bottom: -8px;
  width: 48px; height: 7px;
  background: var(--brand-yellow);
  border-radius: 18px;
  opacity: 0.53;
  z-index: -1;
}

h2:after { width: 32px; height: 6px; left: 0; }
h3, h4 { color: var(--secondary); }

/* ---------------- RESPONSIFFY TABLES ------------------ */
@media (max-width: 600px) {
  table, thead, tbody, th, td, tr { display: block; }
  th { position: absolute; left: -9999px; top: -9999px; }
  tr { margin-bottom: 19px; }
  td {
    position: relative;
    padding-left: 46%;
    min-height: 21px;
    font-size: 14px;
    border-bottom: 1px solid #faecc5;
  }
  td:before {
    position: absolute;
    left: 12px;
    width: 42%;
    top: 8px;
    white-space: nowrap;
    color: var(--secondary);
    font-family: var(--art-font);
    font-weight: bold;
    font-size: 15px;
  }
  td:nth-child(1):before { content: 'Kuki'; }
  td:nth-child(2):before { content: 'Tujuan'; }
  td:nth-child(3):before { content: 'Tempoh'; }
}

/* -------------------- ACCESSIBILITY ------------------- */
[tabindex]:focus, a:focus-visible {
  outline: 2.5px dashed var(--brand-blue);
  outline-offset: 2px;
}

/* ----------------- MISC UTILITY CLASSES --------------- */
.mt-2 { margin-top: 16px; }
.mt-4 { margin-top: 32px; }
.mb-2 { margin-bottom: 16px; }
.mb-4 { margin-bottom: 32px; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-bold { font-weight: 700; }
.bg-pink { background: var(--brand-pink); color: var(--primary); }
.bg-blue { background: var(--brand-blue); color: var(--primary); }
.bg-yellow { background: var(--brand-yellow); color: var(--primary); }

/* Force high contrast in testimonial text */
.testimonial-card p, .testimonial-card span {
  color: #1C1713;
  font-family: var(--body-font);
  font-size: 1em;
}

/* ---------------------------------- END ------------------------------------------ */