:root {
  --bg: #f7f3ed;
  --paper: #fffcf8;
  --text: #24211c;
  --muted: #6f665b;
  --line: #e5ddd1;
  --accent: #c8a97e;
  --accent-deep: #a88a2f;
  --accent-soft: #efe2c7;
  --shadow-sm: 0 1px 2px rgba(36, 33, 28, 0.04), 0 2px 8px rgba(36, 33, 28, 0.04);
  --shadow-md: 0 4px 14px rgba(36, 33, 28, 0.06), 0 12px 28px rgba(36, 33, 28, 0.05);
  --shadow-lg: 0 12px 30px rgba(36, 33, 28, 0.08), 0 24px 60px rgba(36, 33, 28, 0.08);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: "Inter", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0.01em;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: rgba(247, 243, 237, 0.85);
  border-bottom: 1px solid var(--line);
}

.shell {
  width: min(1240px, 92vw);
  margin: 0 auto;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
}

.logo {
  font-family: "Inter", sans-serif;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: var(--text);
  font-size: 1.35rem;
  position: relative;
}
.logo::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 22px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.menu { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; }
.menu a {
  text-decoration: none;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 500;
  position: relative;
  transition: color 0.2s ease;
}
.menu a:hover { color: var(--text); }
.menu a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.menu a:hover::after { transform: scaleX(1); }

/* Hamburger toggle */
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  width: 44px;
  height: 44px;
  border-radius: 12px;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.nav-toggle:hover { background: var(--paper); border-color: #d6c7ad; }
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- HERO ---------- */
.hero {
  padding: 110px 0 70px;
  position: relative;
  isolation: isolate;
}

body[data-page="home"] .hero {
  padding: 130px 0 90px;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding-left: max(4vw, calc(50vw - 620px));
  padding-right: max(4vw, calc(50vw - 620px));
  background:
    radial-gradient(circle at 88% 20%, rgba(200, 169, 126, 0.28), transparent 55%),
    radial-gradient(circle at 12% 80%, rgba(168, 138, 47, 0.14), transparent 55%),
    linear-gradient(135deg, #fbf6ec 0%, #f4ebd9 60%, #efe2c7 100%);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

body[data-page="home"] .hero::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -120px;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 251, 240, 0.85) 0%, rgba(200, 169, 126, 0.15) 50%, transparent 75%);
  z-index: -1;
  filter: blur(8px);
}

body[data-page="home"] .hero::after {
  content: "";
  position: absolute;
  left: -80px;
  bottom: -80px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  border: 1px solid rgba(168, 138, 47, 0.18);
  z-index: -1;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.1rem, 5vw, 4.1rem);
  line-height: 1.06;
}

.hero p {
  color: var(--muted);
  max-width: 640px;
  font-size: 1.05rem;
  line-height: 1.75;
  margin-top: 18px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  font-family: "Inter", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-deep);
  font-weight: 600;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1.5px;
  background: var(--accent-deep);
  border-radius: 2px;
}

.actions { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
  border-color: #d6c7ad;
}
.btn.primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  border-color: transparent;
  color: #fff8ea;
  box-shadow: 0 6px 18px rgba(168, 138, 47, 0.25);
}
.btn.primary:hover {
  box-shadow: 0 10px 26px rgba(168, 138, 47, 0.35);
  border-color: transparent;
}

section { padding: 72px 0; }
section + section { margin-top: 8px; }
.section-title {
  margin: 0 0 12px;
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  position: relative;
}
.section-title::after {
  content: "";
  display: block;
  width: 44px;
  height: 3px;
  margin-top: 10px;
  background: linear-gradient(90deg, var(--accent-deep), var(--accent));
  border-radius: 3px;
}
.section-note {
  margin: 0 0 34px;
  color: var(--muted);
  font-size: 1.02rem;
  max-width: 720px;
  line-height: 1.7;
}

/* ---------- FEATURED LIST ---------- */
.featured-list { display: grid; gap: 34px; }
.featured-item {
  display: grid;
  grid-template-columns: 440px 1fr;
  gap: 30px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.featured-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.featured-item:nth-child(even) { grid-template-columns: 1fr 440px; }
.featured-item:nth-child(even) .visual { order: 2; }
.featured-item:nth-child(even) .content { order: 1; }

.visual {
  min-height: 420px;
  background: #efe8de;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.content { padding: 38px 34px; display: flex; flex-direction: column; justify-content: center; }
.content h3 { margin: 0; font-size: 2rem; }
.meta { color: var(--muted); margin-top: 8px; font-size: 0.92rem; }
.desc { margin-top: 16px; line-height: 1.72; color: #4d453d; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0 24px; }
.chip {
  font-size: 0.75rem;
  border: 1px solid var(--line);
  color: #5d544a;
  border-radius: 999px;
  padding: 5px 10px;
  background: #f6f0e7;
}

/* ---------- GRID + CARDS ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 30px 26px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(200, 169, 126, 0.0) 0%, rgba(200, 169, 126, 0.08) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #d8c8ad;
}
.card:hover::before { opacity: 1; }

.card h3 {
  margin: 0 0 8px;
  font-size: 1.2rem;
  line-height: 1.35;
}
.card .desc {
  margin-top: 6px;
  font-size: 0.97rem;
  color: #4d453d;
}

/* Icon container inside cards */
.icon-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent-soft) 0%, #f8eed7 100%);
  color: var(--accent-deep);
  margin-bottom: 18px;
  border: 1px solid rgba(168, 138, 47, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.icon-circle svg {
  width: 26px;
  height: 26px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Card with accent strip on top */
.card.card-accent::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-deep), var(--accent));
  pointer-events: none;
}

/* ---------- FAQ ---------- */
.faq details {
  background: var(--paper);
  border: 1px solid #d9cebf;
  border-radius: 14px;
  padding: 18px 22px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.faq details[open] {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}
.faq summary {
  cursor: pointer;
  font-size: 1.02rem;
  font-weight: 600;
  color: #2f2a23;
  line-height: 1.5;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-weight: 700;
  font-size: 1.1rem;
  transition: transform 0.25s ease, background 0.25s ease;
}
.faq details[open] summary::after {
  content: "−";
  background: var(--accent);
  color: #fff8ea;
  transform: rotate(180deg);
}
.faq p { color: #4d453d; margin: 14px 0 4px; line-height: 1.75; font-size: 0.98rem; }

label {
  display: block;
  color: #4d453d;
  font-size: 0.9rem;
  font-weight: 500;
}

input,
select,
textarea {
  width: 100%;
  margin-top: 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  background: #fffdf9;
  color: var(--text);
  font: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(200, 169, 126, 0.18);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

/* ---------- PRODUCTS ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.product-tile {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.product-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.product-cover {
  width: 100%;
  height: 330px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #efe8de;
}
.product-tile .inner { padding: 22px; }

/* ---------- DETAIL ---------- */
.detail-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: start;
}
.detail-wrap img {
  width: 100%;
  height: 620px;
  object-fit: cover;
  background: #efe7dc;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
}
.detail-wrap article h3 { margin-top: 28px; }
.detail-wrap article ul,
.detail-wrap article ol {
  line-height: 1.78;
  color: #4b4339;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  font-size: 0.95rem;
  color: var(--muted);
}
.breadcrumbs a { text-decoration: none; color: var(--muted); }
.breadcrumbs a:hover { color: var(--text); }

.faq-wide { padding-top: 20px; }

body[data-page="detail"] .hero { padding-bottom: 14px; }
body[data-page="detail"] #detailTitle { margin-bottom: 6px; }
body[data-page="detail"] .detail-wrap { margin-top: 0; }
body[data-page="detail"] #detailDesc { margin-top: 8px; }

/* ---------- FOOTER ---------- */
.footer {
  margin-top: 80px;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background: linear-gradient(180deg, #0d0d0c 0%, #0b0b0b 100%);
  color: #ece4d8;
}
.footer-main { padding: 56px 0 44px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.25fr;
  gap: 30px;
}
.footer h3 {
  margin: 0 0 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  color: #fff8ef;
}
.footer-brand {
  display: inline-block;
  font-family: "Inter", sans-serif;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: #ffffff;
  font-size: 1.35rem;
  margin-bottom: 14px;
  position: relative;
}
.footer-brand::after {
  content: "";
  display: block;
  width: 26px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  margin-top: 6px;
}
.footer p,
.footer li,
.footer a {
  color: #c9bdad;
  text-decoration: none;
  line-height: 1.75;
  font-size: 0.96rem;
}
.footer a:hover { color: #fff8ef; }
.footer ul { list-style: none; margin: 0; padding: 0; }

.footer-bottom {
  border-top: 1px solid #222;
  background: linear-gradient(90deg, #a88a2f 0%, #c8a97e 100%);
  color: #f7f2e4;
  font-size: 0.9rem;
}
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 0;
}

/* ---------- TIMELINE / KPI ---------- */
.timeline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.kpi {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.kpi .card { text-align: center; padding: 28px 18px; }
.kpi .card h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  background: linear-gradient(135deg, var(--accent-deep), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.kpi .card .desc { margin-top: 6px; font-size: 0.92rem; color: var(--muted); }

/* ---------- CTA BANNER ---------- */
.cta-banner {
  position: relative;
  background:
    radial-gradient(circle at 20% 50%, rgba(255, 251, 240, 0.5), transparent 50%),
    linear-gradient(135deg, #2a241c 0%, #1c1814 100%);
  color: #f7eed8;
  border-radius: 22px;
  padding: 52px 48px;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.cta-banner::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 169, 126, 0.35), transparent 70%);
}
.cta-banner-text { flex: 1 1 380px; position: relative; }
.cta-banner-text h2 {
  margin: 0 0 10px;
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  color: #fff8ea;
}
.cta-banner-text p { color: #d6c7ad; margin: 0; line-height: 1.7; max-width: 540px; }
.cta-banner .btn { position: relative; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 920px) {
  .featured-item,
  .featured-item:nth-child(even),
  .detail-wrap {
    grid-template-columns: 1fr;
  }
  .featured-item:nth-child(even) .visual,
  .featured-item:nth-child(even) .content { order: initial; }
  .grid-3 { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; }
  .kpi { grid-template-columns: 1fr 1fr; }
  section { padding: 48px 0; }
  .hero { padding: 60px 0 30px; }
  body[data-page="home"] .hero { padding: 70px 0 50px; padding-left: 4vw; padding-right: 4vw; }
  .visual { min-height: 260px; }
  .content { padding: 26px 22px; }
  .content h3 { font-size: 1.5rem; }
  .detail-wrap img { height: 360px; }
  .product-cover { height: 280px; }
  .footer-grid { grid-template-columns: 1fr; gap: 18px; }
  .footer-main { padding: 38px 0 30px; }
  .footer-bottom-inner { flex-direction: column; align-items: center; text-align: center; }
  .cta-banner { padding: 32px 24px; }

  /* Hamburger drawer */
  .nav-toggle { display: inline-flex; }
  .nav { padding: 16px 0; flex-wrap: nowrap; }
  .menu {
    position: fixed;
    top: var(--header-h, 72px);
    left: 0;
    right: 0;
    background: rgba(255, 252, 248, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    flex-direction: column;
    gap: 0;
    padding: 8px 6vw 18px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease;
    max-height: calc(100vh - var(--header-h, 72px));
    overflow-y: auto;
    z-index: 4;
  }
  .menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .menu a {
    display: block;
    padding: 14px 4px;
    border-bottom: 1px solid var(--line);
    font-size: 1.05rem;
    color: var(--text);
    width: 100%;
  }
  .menu a:last-child { border-bottom: none; }
  .menu a::after { display: none; }
}

@media (max-width: 560px) {
  .shell { width: 92vw; }
  .hero h1 { font-size: clamp(1.85rem, 8vw, 2.4rem); line-height: 1.1; }
  .hero p { font-size: 0.98rem; }
  .section-title { font-size: 1.5rem; }
  section { padding: 40px 0; }
  .actions { gap: 10px; }
  .actions .btn { flex: 1 1 auto; justify-content: center; }
  .card { padding: 24px 22px 22px; }
  .icon-circle { width: 46px; height: 46px; border-radius: 12px; margin-bottom: 14px; }
  .icon-circle svg { width: 22px; height: 22px; }
  .kpi { grid-template-columns: 1fr 1fr; gap: 12px; }
  .kpi .card { padding: 22px 14px; }
  .kpi .card h3 { font-size: 1.6rem; }
  .featured-item { border-radius: 18px; }
  .visual { min-height: 220px; }
  .product-cover { height: 240px; }
  .detail-wrap img { height: 300px; }
  .cta-banner { padding: 28px 20px; border-radius: 18px; }
  .cta-banner-text h2 { font-size: 1.4rem; }
  .faq details { padding: 14px 16px; }
  .faq summary { font-size: 0.98rem; gap: 12px; }
  .breadcrumbs { font-size: 0.85rem; flex-wrap: wrap; }
  .footer { margin-top: 60px; }
  .grid-3 .grid-3 { grid-template-columns: 1fr; }
}

@media (hover: none) {
  .card:hover,
  .featured-item:hover,
  .product-tile:hover,
  .btn:hover { transform: none; }
}
