/* ============================================================
   COSMEND — Main Theme (Ivory × Sage Green × Natural Light)
   ============================================================ */
:root {
  --bg: #FAF8F3;
  --bg-alt: #F2EEE5;
  --surface: #FFFFFF;
  --ink: #26261F;
  --ink-soft: #5D5B50;
  --ink-faint: #8B897C;
  --sage: #7C8B6F;
  --sage-deep: #4E5E43;
  --sage-tint: #E7EADF;
  --line: #E5DFD2;
  --gold: #B99A6B;
  --radius: 14px;
  --shadow: 0 10px 40px rgba(38, 38, 31, .08);
  --font-display: "Fraunces", "Songti SC", serif;
  --font-body: "Inter", "PingFang SC", -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { width: min(1180px, 92%); margin: 0 auto; }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--sage-deep);
  color: #EDEFE6;
  font-size: 12.5px;
  letter-spacing: .04em;
}
.topbar .container {
  display: flex; justify-content: space-between; align-items: center;
  padding: 7px 0; gap: 16px; flex-wrap: wrap;
}
.topbar a:hover { text-decoration: underline; }
.topbar .tag { opacity: .85; }
.topbar-social { display: flex; gap: 16px; align-items: center; }
.topbar-social a { color: #EDEFE6; opacity: .8; display: flex; transition: opacity .2s; }
.topbar-social a:hover { opacity: 1; }
.topbar-social svg { width: 15px; height: 15px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 248, 243, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.logo { font-family: var(--font-display); font-size: 19px; font-weight: 600; letter-spacing: .15em; color: var(--ink); display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.logo-mark { width: 22px; height: 22px; color: var(--sage-deep); flex: none; }
.logo span { color: var(--sage-deep); }
.main-nav { display: flex; align-items: center; gap: 17px; }
.main-nav a {
  font-size: 11.5px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase;
  color: var(--ink-soft); padding: 6px 0; border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s; white-space: nowrap;
}
.main-nav a:hover { color: var(--ink); }
.main-nav a.active { color: var(--sage-deep); border-color: var(--sage); }
.btn {
  display: inline-block; padding: 12px 28px; border-radius: 999px;
  font-size: 13.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.btn-primary { background: var(--sage-deep); color: #F5F6EF; }
.btn-primary:hover { background: #3F4D36; transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-ghost { border: 1.5px solid var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--bg); }
.btn-sm { padding: 8px 16px; font-size: 11px; white-space: nowrap; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle svg { width: 26px; height: 26px; stroke: var(--ink); }

@media (max-width: 1240px) {
  .nav-cta { display: none; }
}
@media (max-width: 1020px) {
  .nav-toggle { display: block; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 82vh; display: flex; align-items: center;
  color: #F7F5EE; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(30,34,24,.82) 0%, rgba(30,34,24,.55) 45%, rgba(30,34,24,.18) 100%);
}
.hero .container { position: relative; z-index: 2; padding: 110px 0; }
.hero-kicker {
  font-size: 12.5px; letter-spacing: .32em; text-transform: uppercase;
  color: #D8DDC8; margin-bottom: 26px; display: flex; align-items: center; gap: 14px;
}
.hero-kicker::before { content: ""; width: 44px; height: 1px; background: #D8DDC8; display: inline-block; }
.hero h1 {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(42px, 6.2vw, 76px); line-height: 1.08; max-width: 760px;
}
.hero h1 em { font-style: italic; color: #C9D2B8; }
.hero p { margin: 28px 0 40px; max-width: 560px; font-size: 17.5px; color: #E4E3D8; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section.alt { background: var(--bg-alt); }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
  font-size: 12px; letter-spacing: .3em; text-transform: uppercase;
  color: var(--sage); font-weight: 600; margin-bottom: 16px;
}
.section-head h2 {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(30px, 4vw, 44px); line-height: 1.15; margin-bottom: 18px;
}
.section-head p { color: var(--ink-soft); font-size: 17px; }

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

/* ---------- Cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 36px 32px; transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .icon {
  width: 48px; height: 48px; border-radius: 12px; background: var(--sage-tint);
  display: flex; align-items: center; justify-content: center; margin-bottom: 22px;
}
.card .icon svg { width: 24px; height: 24px; stroke: var(--sage-deep); }
.card h3 { font-family: var(--font-display); font-size: 21px; font-weight: 600; margin-bottom: 12px; }
.card p { color: var(--ink-soft); font-size: 15px; }

/* ---------- Stats ---------- */
.stats-band { background: var(--sage-deep); color: #EFEFE6; padding: 72px 0; }
.stats-band .grid-4 { gap: 40px; }
.stat .num { font-family: var(--font-display); font-size: 52px; font-weight: 500; line-height: 1; color: #fff; }
.stat .num span { color: #C9D2B8; }
.stat .label { margin-top: 10px; font-size: 13.5px; letter-spacing: .08em; text-transform: uppercase; opacity: .85; }
.stat p { margin-top: 8px; font-size: 13.5px; opacity: .75; }

/* ---------- Split (image + text) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split .img-frame { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.split .img-frame img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }
.split h2 { font-family: var(--font-display); font-weight: 500; font-size: clamp(28px, 3.6vw, 40px); line-height: 1.18; margin-bottom: 20px; }
.split p { color: var(--ink-soft); margin-bottom: 16px; }
.check-list { list-style: none; margin: 22px 0 30px; }
.check-list li { padding: 9px 0 9px 34px; position: relative; color: var(--ink); font-size: 15.5px; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 14px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--sage-tint) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%234E5E43" stroke-width="3"><path d="M5 13l4 4L19 7"/></svg>') center/11px no-repeat;
}

/* ---------- Process steps ---------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; counter-reset: step; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 22px; position: relative; }
.step .n {
  font-family: var(--font-display); font-size: 15px; color: var(--sage-deep); font-weight: 600;
  width: 34px; height: 34px; border-radius: 50%; background: var(--sage-tint);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.step h4 { font-size: 15px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 10px; }
.step p { font-size: 13.5px; color: var(--ink-soft); }

/* ---------- Product series ---------- */
.series-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform .25s, box-shadow .25s; display: flex; flex-direction: column;
}
.series-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.series-card .thumb { aspect-ratio: 16/10; overflow: hidden; }
.series-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.series-card:hover .thumb img { transform: scale(1.05); }
.series-card .body { padding: 28px; flex: 1; display: flex; flex-direction: column; }
.series-card .num { font-size: 12px; letter-spacing: .25em; color: var(--sage); font-weight: 600; }
.series-card h3 { font-family: var(--font-display); font-size: 23px; font-weight: 600; margin: 10px 0 10px; }
.series-card p { color: var(--ink-soft); font-size: 14.5px; flex: 1; }
.series-card .items { margin-top: 16px; font-size: 13px; color: var(--ink-faint); }
.series-card .more { margin-top: 18px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--sage-deep); }

/* ---------- Product detail cards (catalog) ---------- */
.product-block { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.product-block + .product-block { margin-top: 56px; }
.product-block .pb-head { display: grid; grid-template-columns: 380px 1fr; }
.product-block .pb-head .pb-img { min-height: 300px; }
.product-block .pb-head .pb-img img { width: 100%; height: 100%; object-fit: cover; }
.pb-info { padding: 40px 44px; }
.pb-info h3 { font-family: var(--font-display); font-size: 27px; font-weight: 600; }
.pb-info .sub { color: var(--ink-faint); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin: 6px 0 14px; }
.pb-info .desc { color: var(--ink-soft); margin-bottom: 22px; font-size: 15.5px; }
.spec-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.spec-table td { padding: 9px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table td:first-child { width: 190px; font-weight: 600; color: var(--ink); letter-spacing: .03em; }
.spec-table td:last-child { color: var(--ink-soft); }
.customize-row { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  font-size: 12.5px; padding: 6px 14px; border-radius: 999px;
  background: var(--sage-tint); color: var(--sage-deep); font-weight: 500;
}

/* ---------- Series nav ---------- */
.series-nav { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 48px; }
.series-nav a {
  font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  padding: 10px 20px; border-radius: 999px; border: 1.5px solid var(--line); color: var(--ink-soft);
  transition: all .2s;
}
.series-nav a:hover { border-color: var(--sage); color: var(--sage-deep); background: var(--sage-tint); }

/* ---------- Two-column service panels ---------- */
.panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 44px 40px; display: flex; flex-direction: column;
}
.panel .tagline { font-size: 12px; letter-spacing: .25em; text-transform: uppercase; color: var(--sage); font-weight: 600; margin-bottom: 14px; }
.panel h3 { font-family: var(--font-display); font-size: 26px; font-weight: 600; margin-bottom: 14px; }
.panel p { color: var(--ink-soft); font-size: 15px; margin-bottom: 20px; }

/* ---------- Quote / note ---------- */
.note-band {
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 40px; font-size: 14.5px; color: var(--ink-soft); display: flex; gap: 18px; align-items: flex-start;
}
.note-band svg { flex: none; width: 22px; height: 22px; stroke: var(--sage); margin-top: 2px; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--ink); color: #F0EEE5; text-align: center; padding: 110px 0; }
.cta-band h2 { font-family: var(--font-display); font-weight: 500; font-size: clamp(32px, 4.4vw, 52px); margin-bottom: 18px; }
.cta-band p { color: #B9B7AB; max-width: 560px; margin: 0 auto 38px; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: var(--bg-alt); border-bottom: 1px solid var(--line); padding: 84px 0 72px; }
.page-hero .crumb { font-size: 12.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 18px; }
.page-hero h1 { font-family: var(--font-display); font-weight: 500; font-size: clamp(34px, 4.8vw, 56px); line-height: 1.12; max-width: 820px; }
.page-hero .lede { margin-top: 20px; max-width: 680px; color: var(--ink-soft); font-size: 17.5px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; }
.contact-info h2 { font-family: var(--font-display); font-size: 32px; font-weight: 500; margin-bottom: 18px; }
.contact-info .line { display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.contact-info .line svg { width: 20px; height: 20px; stroke: var(--sage-deep); flex: none; margin-top: 3px; }
.contact-info .line strong { display: block; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 2px; }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow); }
.form-card label { display: block; font-size: 13px; font-weight: 600; letter-spacing: .05em; margin-bottom: 6px; }
.form-card input, .form-card select, .form-card textarea {
  width: 100%; padding: 12px 14px; margin-bottom: 18px; border: 1.5px solid var(--line);
  border-radius: 10px; font-family: inherit; font-size: 14.5px; background: var(--bg); color: var(--ink);
}
.form-card input:focus, .form-card select:focus, .form-card textarea:focus {
  outline: none; border-color: var(--sage);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ---------- Footer ---------- */
.site-footer { background: #22271E; color: #C9C8BC; padding: 80px 0 0; font-size: 14.5px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 48px; padding-bottom: 60px; }
.site-footer .logo { color: #F0EEE5; font-size: 24px; }
.site-footer .brand-line { color: #9A988A; margin-top: 6px; font-family: var(--font-display); font-style: italic; }
.site-footer p { margin-top: 18px; max-width: 320px; opacity: .85; }
.site-footer h5 { color: #F0EEE5; font-size: 12.5px; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 20px; }
.site-footer ul { list-style: none; }
.site-footer ul li { margin-bottom: 10px; }
.site-footer ul a { opacity: .85; transition: opacity .2s, color .2s; }
.site-footer ul a:hover { opacity: 1; color: #fff; }
.footer-bottom { border-top: 1px solid #3A3F33; padding: 24px 0; font-size: 12.5px; opacity: .7; }
.footer-bottom .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .product-block .pb-head { grid-template-columns: 1fr; }
  .product-block .pb-head .pb-img { max-height: 320px; }
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: flex-start; padding: 20px 5%; gap: 4px;
    box-shadow: var(--shadow);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 10px 0; font-size: 14px; white-space: normal; }
}
@media (max-width: 760px) {
  .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .form-row { grid-template-columns: 1fr; }
  .section { padding: 68px 0; }
  .pb-info { padding: 28px 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
}
