/* ============================================================
   Hippotatus Studio — styles.css
   - Màu sắc dùng biến CSS: đổi ở :root là đổi cả trang
   - 2 theme: dark (mặc định) và light, chuyển qua data-theme
   ============================================================ */

:root {
  --bg: #0e0d0b;
  --bg-alt: #161412;
  --text: #f2ede4;
  --muted: #a89f8f;
  --accent: #d8a24a;          /* vàng gold */
  --accent-soft: rgba(216, 162, 74, 0.14);
  --line: rgba(242, 237, 228, 0.14);
  --card: #171512;
  --radius: 14px;
  --font-display: Georgia, "Times New Roman", serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

[data-theme="light"] {
  --bg: #faf7f0;
  --bg-alt: #f1ece1;
  --text: #1d1a15;
  --muted: #6f6656;
  --accent: #a86f1c;
  --accent-soft: rgba(168, 111, 28, 0.10);
  --line: rgba(29, 26, 21, 0.14);
  --card: #ffffff;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 760px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand {
  font-family: var(--font-display); font-size: 1.4rem; letter-spacing: 0.04em;
  color: var(--text); text-decoration: none;
}
.main-nav { display: flex; gap: 28px; }
.main-nav a { color: var(--muted); text-decoration: none; font-size: 0.95rem; }
.main-nav a:hover { color: var(--text); }
.header-actions { display: flex; align-items: center; gap: 12px; }

/* ---------- Nút bấm ---------- */
.btn {
  display: inline-block; padding: 12px 26px; border-radius: 999px;
  background: var(--accent); color: #141210; font-weight: 600;
  text-decoration: none; border: 1px solid var(--accent);
}
.btn:hover { filter: brightness(1.08); }
.btn-small { padding: 8px 18px; font-size: 0.9rem; }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--accent); }

.theme-toggle {
  background: transparent; border: 1px solid var(--line); color: var(--text);
  width: 38px; height: 38px; border-radius: 50%; cursor: pointer; font-size: 1rem;
}
.theme-toggle:hover { border-color: var(--accent); }

/* ---------- Hero ---------- */
.hero { padding: 110px 0 90px; }
.kicker {
  text-transform: uppercase; letter-spacing: 0.28em; font-size: 0.78rem;
  color: var(--accent); margin-bottom: 18px;
}
.hero h1 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1.08; margin-bottom: 24px;
}
.hero h1 .accent { color: var(--accent); }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 640px; margin-bottom: 34px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Section chung ---------- */
.section { padding: 84px 0; }
.section-alt { background: var(--bg-alt); }
.section h2 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: 14px;
}
.muted { color: var(--muted); }

/* ---------- Accordion dịch vụ ---------- */
.accordion { margin-top: 34px; border-top: 1px solid var(--line); }
.accordion-item { border-bottom: 1px solid var(--line); }
.accordion-head {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  background: none; border: none; color: var(--text); cursor: pointer;
  font-size: 1.15rem; font-family: var(--font-display); text-align: left;
  padding: 22px 4px;
}
.accordion-head .plus { font-size: 1.6rem; color: var(--accent); transition: transform 0.25s; }
.accordion-item.open .accordion-head .plus { transform: rotate(45deg); }
.accordion-body { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.accordion-body ul { list-style: none; padding: 0 4px 26px; }
.accordion-body li { padding: 10px 0; border-top: 1px dashed var(--line); color: var(--muted); }
.accordion-body li strong { color: var(--text); }

/* ---------- Quy trình ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 36px; }
.step {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 22px;
}
.step-num { font-family: var(--font-display); color: var(--accent); font-size: 1.1rem; }
.step h3 { margin: 12px 0 8px; font-size: 1.1rem; }
.step p { color: var(--muted); font-size: 0.95rem; }

/* ---------- Dự án ---------- */
.work-card {
  display: block; margin-top: 28px; padding: 30px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--text); text-decoration: none; transition: border-color 0.25s, transform 0.25s;
}
.work-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.work-card h3 { font-family: var(--font-display); font-size: 1.5rem; margin-bottom: 8px; }
.work-card p { color: var(--muted); margin-bottom: 12px; }
.card-link { color: var(--accent); font-weight: 600; }

/* ---------- Báo giá ---------- */
#bao-gia .btn { margin-top: 22px; }

/* ---------- Liên hệ ---------- */
.contact-list { margin-top: 30px; border-top: 1px solid var(--line); }
.contact-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 4px; border-bottom: 1px solid var(--line);
  color: var(--text); text-decoration: none;
}
.contact-item:hover .contact-value { color: var(--accent); }
.contact-label { color: var(--muted); }
.contact-value { font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 30px 0; }
.footer-inner {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 8px; font-size: 0.92rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .main-nav { display: none; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .hero { padding: 72px 0 60px; }
  .section { padding: 60px 0; }
}
