/* CHD Group Management — corporate site V1 */

@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/cormorant-garamond-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  --black: #0b0b0b;
  --anthracite: #141414;
  --anthracite-2: #1b1b1b;
  --ivory: #f5f1ea;
  --ivory-soft: rgba(245, 241, 234, 0.78);
  --ivory-muted: rgba(245, 241, 234, 0.58);
  --line: rgba(245, 241, 234, 0.12);
  --line-strong: rgba(245, 241, 234, 0.22);
  --champagne: #c8a97e;
  --champagne-text: #e6d8c3;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1200px;
  --gutter: clamp(20px, 5vw, 64px);
  --header-h: 88px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--black);
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 1px solid var(--champagne); outline-offset: 4px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--ivory); color: var(--black); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

.eyebrow {
  font-size: 12px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ivory-soft); margin: 0 0 24px;
}
.eyebrow .item { white-space: nowrap; }
.eyebrow .sep { color: var(--champagne); margin: 0 0.6em; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; margin: 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 0 30px;
  font-family: var(--sans); font-size: 13px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase;
  text-decoration: none; border: 1px solid var(--line-strong); color: var(--ivory);
  transition: background-color .3s ease, color .3s ease, border-color .3s ease;
}
.btn:hover { border-color: var(--ivory); }
.btn--solid { background: var(--ivory); color: var(--black); border-color: var(--ivory); }
.btn--solid:hover { background: transparent; color: var(--ivory); }
.btn .arrow { transition: transform .3s ease; }
.btn:hover .arrow { transform: translateX(4px); }

/* Header */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  background: linear-gradient(to bottom, rgba(11,11,11,.85), rgba(11,11,11,0));
  transition: background-color .35s ease, border-color .35s ease;
  border-bottom: 1px solid transparent;
}
.header.is-scrolled { background: rgba(11,11,11,.92); border-bottom-color: var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: block; width: 220px; flex: none; }
.logo img { width: 100%; height: auto; }
.nav { display: flex; align-items: center; gap: 44px; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 36px; }
.nav a.link { font-size: 12px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; text-decoration: none; color: var(--ivory-soft); padding: 8px 0; position: relative; transition: color .25s; }
.nav a.link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--champagne); transform: scaleX(0); transform-origin: left; transition: transform .3s ease; }
.nav a.link:hover { color: var(--ivory); }
.nav a.link:hover::after { transform: scaleX(1); }
.nav .btn { min-height: 44px; padding: 0 22px; font-size: 12px; }
.burger { display: none; background: none; border: 0; color: var(--ivory); width: 44px; height: 44px; padding: 10px; cursor: pointer; margin-right: -10px; }
.burger span { display: block; height: 1px; background: currentColor; margin: 6px 0; transition: transform .3s ease, opacity .3s ease; }

/* Hero */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--header-h) + 48px) 0 80px; overflow: hidden; }
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 40%; filter: saturate(.85); }
.hero__media::after { content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(11,11,11,.96) 0%, rgba(11,11,11,.88) 38%, rgba(11,11,11,.45) 72%, rgba(11,11,11,.55) 100%),
    linear-gradient(0deg, rgba(11,11,11,1) 0%, rgba(11,11,11,0) 28%); }
.hero .wrap { position: relative; z-index: 1; }
.hero__content { max-width: 880px; }
@media (min-width: 900px) { .hero h1 .accent { white-space: nowrap; } .hero .lead, .status { max-width: 640px; } }
.hero h1 { font-size: clamp(44px, 6.4vw, 88px); line-height: 1.02; margin-bottom: 28px; }
.hero h1 .accent { display: block; color: var(--champagne-text); }
.hero .lead { font-size: clamp(17px, 1.5vw, 19px); color: var(--ivory-soft); max-width: 600px; margin: 0 0 44px; }

.status {
  position: relative; max-width: 640px;
  border: 1px solid var(--line-strong); background: rgba(16,16,16,.72);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  padding: 34px 38px 38px 42px;
}
.status::before { content: ""; position: absolute; left: -1px; top: -1px; bottom: -1px; width: 2px; background: var(--champagne); }
.status__label { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ivory-soft); margin: 0 0 14px; }
.status__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--champagne); animation: pulse 2.8s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.status h2 { font-size: clamp(28px, 3vw, 36px); line-height: 1.15; margin-bottom: 12px; }
.status p { margin: 0 0 28px; color: var(--ivory-soft); }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Sections */
.section { padding: clamp(96px, 12vw, 160px) 0; }
.section--dark { background: var(--black); }
.section--anthracite { background: var(--anthracite); }

.about { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 8vw, 120px); align-items: start; }
.about h2 { font-size: clamp(38px, 4.4vw, 60px); line-height: 1.06; }
.about p { margin: 0 0 22px; font-size: 17px; color: var(--ivory-soft); max-width: 600px; }
.about p:last-child { margin-bottom: 0; }

.pillars { list-style: none; margin: clamp(72px, 9vw, 120px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.pillar { padding: 48px 32px 8px; text-align: center; border-left: 1px solid var(--line); }
.pillar:first-child { border-left: 0; }
.pillar__icon { width: 56px; height: 56px; margin: 0 auto 28px; border: 1px solid var(--line-strong); display: grid; place-items: center; color: var(--ivory); }
.pillar__icon svg { width: 22px; height: 22px; }
.pillar h3 { font-size: 26px; line-height: 1.2; white-space: nowrap; }
.pillar .rule { width: 28px; height: 1px; background: var(--champagne); margin: 18px auto 20px; }
.pillar p { margin: 0; font-size: 15px; color: var(--ivory-muted); max-width: 240px; margin-inline: auto; }

.contact { text-align: center; }
.contact h2 { font-size: clamp(34px, 4vw, 52px); line-height: 1.1; margin-bottom: 20px; }
.contact .intro { max-width: 620px; margin: 0 auto 64px; color: var(--ivory-soft); font-size: 17px; }
.contact__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; max-width: 1080px; margin: 0 auto; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.contact__item { padding: 40px 24px; border-left: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; gap: 10px; text-decoration: none; transition: background-color .3s ease; }
.contact__item:first-child { border-left: 0; }
a.contact__item:hover { background: rgba(245,241,234,.03); }
.contact__item svg { width: 22px; height: 22px; color: var(--champagne); margin-bottom: 6px; }
.contact__label { font-size: 11px; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ivory-muted); }
.contact__value { font-family: var(--serif); font-size: 22px; line-height: 1.3; overflow-wrap: normal; word-break: normal; }
.contact__value--email { font-size: clamp(17px, 1.55vw, 20px); white-space: nowrap; letter-spacing: 0.01em; }

/* Footer */
.footer { background: var(--black); border-top: 1px solid var(--line); padding: 64px 0 40px; font-size: 14px; color: var(--ivory-muted); }
.footer__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
.footer .logo { width: 200px; margin-bottom: 14px; }
.footer nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 32px; }
.footer a { text-decoration: none; color: var(--ivory-soft); transition: color .25s; }
.footer a:hover { color: var(--ivory); }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px 32px; padding-top: 28px; }
.footer__legal { display: flex; gap: 28px; }

/* Legal pages */
.legal { padding: calc(var(--header-h) + 72px) 0 120px; }
.legal .wrap { max-width: calc(820px + 2 * var(--gutter)); }
.legal h1 { font-size: clamp(42px, 5vw, 64px); line-height: 1.05; margin-bottom: 12px; }
.legal .updated { color: var(--ivory-muted); font-size: 14px; margin: 0 0 56px; }
.legal h2 { font-size: 28px; line-height: 1.2; margin: 52px 0 14px; padding-top: 28px; border-top: 1px solid var(--line); }
.legal p, .legal li { color: var(--ivory-soft); }
.legal ul { padding-left: 20px; }
.legal li { margin-bottom: 8px; }
.legal a { color: var(--champagne-text); text-underline-offset: 3px; }
.legal dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 28px; margin: 0; }
.legal dt { color: var(--ivory-muted); }
.legal dd { margin: 0; color: var(--ivory-soft); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .9s ease, transform .9s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .status__dot { animation: none; }
}

/* Tablet */
@media (max-width: 1099px) {
  .nav { gap: 28px; }
  .nav ul { gap: 24px; }
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .pillar:nth-child(3) { border-left: 0; }
  .pillar:nth-child(n+3) { border-top: 1px solid var(--line); }
  .pillar { padding: 48px 28px 44px; }
}
@media (max-width: 899px) {
  :root { --header-h: 76px; }
  .logo { width: 190px; }
  .burger { display: block; position: relative; z-index: 60; }
  .nav {
    position: fixed; inset: 0; z-index: 55; background: var(--black);
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0;
    padding: calc(var(--header-h) + 32px) var(--gutter) 40px;
    opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s;
  }
  .nav ul { flex-direction: column; gap: 0; margin-bottom: 36px; }
  .nav a.link { display: block; font-size: 15px; padding: 18px 0; border-bottom: 1px solid var(--line); }
  .nav a.link::after { display: none; }
  .nav .btn { min-height: 52px; }
  body.menu-open { overflow: hidden; }
  body.menu-open .nav { opacity: 1; visibility: visible; }
  body.menu-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.menu-open .burger span:nth-child(2) { opacity: 0; }
  body.menu-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .header .logo { position: relative; z-index: 60; }
  .about { grid-template-columns: 1fr; gap: 28px; }
}

/* Mobile */
@media (max-width: 599px) {
  .logo { width: 168px; }
  .hero { align-items: flex-end; padding-bottom: 56px; }
  .hero__media img { object-position: 62% 30%; }
  .hero__media::after { background: linear-gradient(0deg, rgba(11,11,11,1) 0%, rgba(11,11,11,.9) 55%, rgba(11,11,11,.55) 100%); }
  .eyebrow { font-size: 11px; letter-spacing: 0.18em; }
  .eyebrow .item { display: block; }
  .eyebrow .sep { display: none; }
  .status { padding: 28px 22px 26px 26px; }
  .actions .btn { width: 100%; }
  .pillars { grid-template-columns: 1fr; }
  .pillar { border-left: 0 !important; border-top: 1px solid var(--line); padding: 44px 8px; }
  .pillar:first-child { border-top: 0; }
  .pillar h3 { white-space: normal; }
  .contact__grid { grid-template-columns: 1fr; }
  .contact__value--email { white-space: normal; font-size: 19px; }
  .contact__item { border-left: 0; border-top: 1px solid var(--line); }
  .contact__item:first-child { border-top: 0; }
  .footer__top { flex-direction: column; }
  .footer__bottom { flex-direction: column; }
  .legal dl { grid-template-columns: 1fr; gap: 2px; }
  .legal dd { margin-bottom: 12px; }
}
