/* ============================================================
   FAME — Hangzhou Fame Industry Co., Ltd.
   Redesigned site stylesheet (SEO + GEO optimized, responsive)
   ============================================================ */

:root {
  /* Brand palette — deep charcoal navy + warm brass */
  --ink: #1b2a3a;
  --ink-2: #24384d;
  --ink-3: #33495f;
  --accent: #b98a4e;
  --accent-dark: #9d7440;
  --accent-soft: #efe4d2;
  --bg: #ffffff;
  --bg-soft: #f5f2ec;
  --bg-dark: #141f2b;
  --text: #2b3643;
  --muted: #64707c;
  --line: #e3ddd2;
  --success: #2e7d5b;
  --warning: #b3622e;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px rgba(27, 42, 58, 0.08);
  --shadow-lg: 0 24px 60px rgba(27, 42, 58, 0.16);
  --container: 1200px;
  --font-head: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", "Segoe UI", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

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

img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink-2); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-dark); }

h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.25; font-weight: 700; }
h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 0.6em; }
h3 { font-size: clamp(1.15rem, 2vw, 1.45rem); }
p { margin-bottom: 1em; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.25s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 12px 24px rgba(185, 138, 78, 0.35); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.6); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-3); color: #fff; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-head); font-weight: 700; font-size: 1.5rem; color: var(--ink); letter-spacing: 0.06em; }
.brand:hover { color: var(--ink); }
.brand-logo { height: 40px; width: auto; display: block; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 10px;
  background: linear-gradient(135deg, var(--ink), var(--ink-3));
  display: flex; align-items: center; justify-content: center;
  color: var(--accent-soft); font-size: 1.15rem;
}
.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; }
.nav-links a { display: block; padding: 10px 16px; font-weight: 600; font-size: 0.95rem; color: var(--ink); border-radius: 999px; }
.nav-links a:hover, .nav-links a.active { background: var(--accent-soft); color: var(--accent-dark); }
.nav-cta { margin-left: 10px; padding: 11px 22px !important; background: var(--ink); color: #fff !important; }
.nav-cta:hover { background: var(--ink-3); color: #fff !important; }

/* Dropdown */
.has-dropdown { position: relative; }
.dropdown {
  position: absolute; top: 100%; left: 0; min-width: 620px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 18px; display: none;
  grid-template-columns: 1fr 1fr; gap: 4px 24px; z-index: 120;
}
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { display: grid; }
.dropdown a { padding: 7px 10px; border-radius: 8px; font-size: 0.9rem; }
.dropdown a:hover { background: var(--bg-soft); }

.nav-toggle { display: none; background: none; border: 0; font-size: 1.6rem; cursor: pointer; color: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff;
  background: linear-gradient(120deg, rgba(20, 31, 43, 0.94), rgba(36, 56, 77, 0.72)),
              url("../assets/img/hero-bathroom.jpg") center/cover no-repeat;
  padding: 120px 0 130px;
}
.hero-inner { max-width: 680px; }
.hero .eyebrow {
  display: inline-block; padding: 7px 16px; margin-bottom: 22px;
  background: rgba(239, 228, 210, 0.18); border: 1px solid rgba(239, 228, 210, 0.45);
  border-radius: 999px; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-soft);
}
.hero h1 { color: #fff; margin-bottom: 20px; }
.hero p.lead { font-size: 1.18rem; color: rgba(255, 255, 255, 0.88); margin-bottom: 34px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats {
  margin-top: 64px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.25); padding-top: 30px;
}
.hero-stats .stat b { display: block; font-family: var(--font-head); font-size: 2rem; color: #fff; }
.hero-stats .stat span { font-size: 0.85rem; color: rgba(255, 255, 255, 0.75); }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-soft { background: var(--bg-soft); }
.section-dark { background: var(--bg-dark); color: #fff; }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head .kicker {
  display: inline-block; color: var(--accent-dark); font-weight: 800;
  font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 10px;
}
.section-head p { color: var(--muted); }

/* ---------- Cards / Grids ---------- */
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform 0.25s, box-shadow 0.25s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card-img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-soft); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.card:hover .card-img img { transform: scale(1.05); }
.card-body { padding: 22px; }
.card-body h3 { margin-bottom: 8px; }
.card-body p { color: var(--muted); font-size: 0.92rem; margin-bottom: 14px; }
.card-link { font-weight: 700; font-size: 0.9rem; color: var(--accent-dark); }

/* Category chips */
.chips { display: flex; flex-wrap: wrap; gap: 12px; }
.chip {
  padding: 10px 20px; border-radius: 999px; background: #fff;
  border: 1px solid var(--line); font-weight: 600; font-size: 0.9rem; color: var(--ink);
  text-decoration: none; display: inline-block; transition: all 0.15s ease;
}
.chip:hover { border-color: var(--accent); color: var(--accent-dark); background: var(--accent-soft); box-shadow: 0 2px 8px rgba(0,0,0,0.08); transform: translateY(-1px); }

/* ---------- Features / icon list ---------- */
.feature { display: flex; gap: 18px; }
.feature-icon {
  flex: 0 0 52px; width: 52px; height: 52px; border-radius: 14px;
  background: var(--accent-soft); color: var(--accent-dark);
  display: flex; align-items: center; justify-content: center; font-size: 1.4rem;
}
.feature h3 { font-size: 1.1rem; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: 0.92rem; }

/* ---------- Stats band ---------- */
.stats-band { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; text-align: center; }
.stats-band .stat b { display: block; font-family: var(--font-head); font-size: 2.2rem; color: var(--accent); }
.stats-band .stat span { font-size: 0.85rem; color: var(--muted); }
.section-dark .stats-band .stat span { color: rgba(255, 255, 255, 0.72); }

/* ---------- Table ---------- */
.table-wrap { overflow-x: auto; margin: 18px 0 26px; }
table { width: 100%; border-collapse: collapse; font-size: 0.92rem; background: #fff; }
th, td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); }
th { background: var(--ink); color: #fff; font-weight: 700; }
tr:nth-child(even) td { background: var(--bg-soft); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 860px; margin: 0 auto; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 12px; overflow: hidden; }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 18px 22px; font-weight: 700; color: var(--ink);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.4rem; color: var(--accent-dark); font-weight: 400; }
.faq-item[open] summary::after { content: "−"; }
.faq-item[open] { border-color: var(--accent); }
.faq-item .faq-a { padding: 0 22px 20px; color: var(--muted); font-size: 0.95rem; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { padding: 18px 0; font-size: 0.85rem; color: var(--muted); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.breadcrumb li::after { content: "/"; margin-left: 8px; color: var(--line); }
.breadcrumb li:last-child::after { content: ""; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent-dark); }
.breadcrumb li[aria-current] { color: var(--ink); font-weight: 600; }

/* ---------- Page hero (inner) ---------- */
.page-hero { background: linear-gradient(120deg, var(--ink), var(--ink-3)); color: #fff; padding: 64px 0; }
.page-hero h1 { color: #fff; margin-bottom: 10px; }
.page-hero p { color: rgba(255, 255, 255, 0.82); max-width: 720px; }

/* ---------- Content / article ---------- */
.prose { max-width: 820px; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.3em; }
.prose ul, .prose ol { margin: 0 0 1.2em 1.4em; }
.prose li { margin-bottom: 0.5em; }
.prose blockquote { border-left: 4px solid var(--accent); padding: 14px 20px; background: var(--bg-soft); margin: 1.2em 0; color: var(--ink); font-style: italic; }
.meta-line { display: flex; gap: 18px; flex-wrap: wrap; color: var(--muted); font-size: 0.85rem; margin-bottom: 26px; }
.author-box { display: flex; gap: 16px; align-items: center; background: var(--bg-soft); border-radius: var(--radius); padding: 20px; margin: 30px 0; }
.author-box .avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--font-head); font-weight: 700; }
.author-box b { display: block; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--ink), var(--ink-3)); color: #fff; padding: 70px 0; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, 0.8); max-width: 640px; margin: 0 auto 30px; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { font-weight: 700; font-size: 0.88rem; color: var(--ink); }
.form-group input, .form-group select, .form-group textarea {
  padding: 13px 15px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 0.95rem; background: #fff; color: var(--text);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: 2px solid var(--accent); border-color: transparent;
}
.form-note { font-size: 0.8rem; color: var(--muted); grid-column: 1 / -1; }

/* ---------- Contact blocks ---------- */
.contact-block { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.contact-block h3 { margin-bottom: 10px; }
.contact-block p { color: var(--muted); font-size: 0.93rem; margin-bottom: 6px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-dark); color: rgba(255, 255, 255, 0.78); padding: 70px 0 0; font-size: 0.92rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 40px; padding-bottom: 46px; }
.site-footer h4 { color: #fff; font-family: var(--font-body); font-weight: 800; font-size: 0.95rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 18px; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: rgba(255, 255, 255, 0.72); }
.site-footer a:hover { color: var(--accent-soft); }
.footer-brand { font-family: var(--font-head); font-size: 1.5rem; color: #fff; display: block; margin-bottom: 14px; }
.footer-certs { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.cert-tag { padding: 6px 14px; border: 1px solid rgba(255, 255, 255, 0.35); border-radius: 999px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.14); padding: 22px 0; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 0.82rem; color: rgba(255, 255, 255, 0.55); }
.social-links a { color: var(--accent-soft); text-decoration: none; font-weight: 600; }
.social-links a:hover { color: var(--accent); text-decoration: underline; }
.lang-switch { display: flex; align-items: center; gap: 6px; font-size: 0.8rem; margin-left: 18px; white-space: nowrap; }
.lang-switch a { color: var(--ink); text-decoration: none; padding: 3px 7px; border-radius: 6px; border: 1px solid transparent; transition: all 0.15s ease; }
.lang-switch a:hover { border-color: var(--accent); color: var(--accent-dark); }
.lang-switch a.active { background: var(--accent); color: #fff; }
@media (max-width: 920px) { .lang-switch { display: none; } }

/* ---------- Misc ---------- */
.tag { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-dark); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; }
.lead { font-size: 1.1rem; color: var(--muted); }
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
.cert-row { display: flex; gap: 14px; flex-wrap: wrap; }
.cert-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; font-weight: 800; color: var(--ink); display: inline-flex; align-items: center; gap: 8px; }
.cert-item small { display: block; font-weight: 500; color: var(--muted); font-size: 0.75rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats-band { grid-template-columns: repeat(3, 1fr); }
  .dropdown { min-width: 480px; }
}
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; inset: 76px 0 auto 0; flex-direction: column; align-items: stretch;
    background: #fff; border-bottom: 1px solid var(--line); padding: 12px 20px 20px;
    transform: translateY(-140%); transition: transform 0.3s; gap: 2px;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { border-radius: 10px; }
  .has-dropdown .dropdown { position: static; display: none; min-width: 0; box-shadow: none; border: 0; padding: 0 0 0 14px; grid-template-columns: 1fr; }
  .has-dropdown.open .dropdown { display: grid; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .hero { padding: 90px 0 90px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .grid-4, .stats-band { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
