/* ============================================================
   HOME PAGE - "Dark luxe" design (scoped under .homepg)
   Loaded only by index.html. Palette comes from luxe.css (lighter blue + bone).
   Buttons (.btn*), nav and footer use the shared global + luxe.css styles.
   ============================================================ */
.homepg {
  background: var(--luxe-bg);
  color: var(--luxe-text);
}

.homepg .wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}

/* Eyebrow */
.homepg .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-bright);
}
.homepg .eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 14px 1px rgba(242, 101, 34, 0.7);
}

/* Headings */
.homepg h1,
.homepg h2,
.homepg h3 {
  text-transform: uppercase;
  letter-spacing: -0.02em;
  font-weight: 600;
  line-height: 1.05;
}
.homepg .accent { color: var(--accent-bright); }
.homepg .thin { font-weight: 400; color: var(--luxe-dim); }

/* Hero */
.homepg .hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding-bottom: 72px;
  background: var(--luxe-bg);
}
.homepg .hero-bg { position: absolute; inset: 0; z-index: 0; }
.homepg .hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.35) brightness(0.5) contrast(1.05);
}
.homepg .hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(110% 80% at 18% 90%, rgba(242, 101, 34, 0.22), transparent 55%),
    linear-gradient(180deg, rgba(23, 49, 64, 0.55) 0%, rgba(30, 61, 80, 0.6) 45%, rgba(23, 49, 64, 0.96) 100%);
}
.homepg .hero-inner { position: relative; z-index: 2; width: 100%; }
.homepg .hero-top-line {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-bright);
  margin-bottom: 24px;
}
.homepg .wordmark {
  font-size: clamp(56px, 13vw, 180px);
  font-weight: 600;
  line-height: 0.92;
  letter-spacing: -0.04em;
  /* Pull the big wordmark left so its optical edge lines up with the smaller
     text above/below it (the glyph side-bearing scales with the huge size). */
  margin-left: -0.03em;
  margin-bottom: 26px;
}
.homepg .wordmark .flex { color: #ece6d6; }
.homepg .wordmark .honnun { color: var(--accent-bright); }
.homepg .hero-tagline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  align-items: center;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--luxe-dim);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.homepg .hero-tagline span { display: inline-flex; align-items: center; gap: 20px; }
.homepg .hero-tagline .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }
.homepg .hero-sub {
  font-size: clamp(18px, 2.4vw, 24px);
  color: var(--luxe-text);
  font-weight: 400;
  max-width: 560px;
  margin-bottom: 34px;
}
.homepg .hero-actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.homepg .scroll-hint {
  position: absolute;
  right: 32px;
  bottom: 72px;
  z-index: 2;
  writing-mode: vertical-rl;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--luxe-dimmer);
  display: flex;
  align-items: center;
  gap: 14px;
}
.homepg .scroll-hint::after { content: ""; width: 1px; height: 60px; background: linear-gradient(var(--accent), transparent); }

/* Section base */
.homepg section { position: relative; }
.homepg .sec { padding: 110px 0; }
.homepg .sec-bg2 { background: var(--luxe-bg-2); }
.homepg .sec-head { max-width: 680px; margin-bottom: 54px; }
.homepg .sec-head h2 { font-size: clamp(30px, 4.2vw, 52px); margin-top: 18px; }
.homepg .sec-head p { margin-top: 18px; color: var(--luxe-dim); font-size: 17px; }

/* Door categories */
.homepg .cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.homepg .cat {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 3/4;
  border: 1px solid var(--luxe-line);
  transition: transform var(--ease), border-color var(--ease);
}
.homepg .cat img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.5) brightness(0.62);
  transition: filter var(--ease), transform 600ms cubic-bezier(0.4, 0, 0.2, 1);
}
.homepg .cat::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(23, 49, 64, 0.92) 100%);
}
.homepg .cat:hover { transform: translateY(-6px); border-color: var(--luxe-line-strong); }
.homepg .cat:hover img { filter: grayscale(0) brightness(0.78); transform: scale(1.05); }
.homepg .cat-label { position: absolute; left: 24px; bottom: 24px; z-index: 2; }
.homepg .cat-num { font-size: 12px; font-weight: 600; letter-spacing: 0.18em; color: var(--accent-bright); display: block; margin-bottom: 8px; }
.homepg .cat-label h3 { font-size: 24px; color: #ece6d6; }
.homepg .cat-arrow {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--luxe-line-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(23, 49, 64, 0.4);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background var(--ease), border-color var(--ease);
  color: #ece6d6;
}
.homepg .cat:hover .cat-arrow { background: var(--accent); border-color: var(--accent); }

/* Services list */
.homepg .svc-list { border-top: 1px solid var(--luxe-line); }
.homepg .svc-row {
  display: grid;
  grid-template-columns: 80px 1fr 1.4fr auto;
  gap: 30px;
  align-items: center;
  padding: 30px 24px;
  border-bottom: 1px solid var(--luxe-line);
  position: relative;
  transition: background var(--ease);
  border-radius: 4px;
}
.homepg .svc-row::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 4px;
  background: radial-gradient(60% 120% at 8% 50%, rgba(242, 101, 34, 0.10), transparent 60%);
  opacity: 0;
  transition: opacity var(--ease);
  pointer-events: none;
}
.homepg .svc-row:hover::before { opacity: 1; }
.homepg .svc-row:hover { background: rgba(236, 230, 214, 0.015); }
.homepg .svc-num { font-size: 14px; font-weight: 600; color: var(--accent-bright); letter-spacing: 0.1em; }
.homepg .svc-title { font-size: 21px; font-weight: 600; text-transform: uppercase; letter-spacing: -0.01em; }
.homepg .svc-sub { color: var(--luxe-dim); font-size: 15px; }
.homepg .svc-row .svc-go {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--luxe-line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--luxe-dim);
  transition: all var(--ease);
}
.homepg .svc-row:hover .svc-go { border-color: var(--accent); color: var(--accent-bright); transform: translateX(4px); }

/* Why us */
.homepg .why { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.homepg .why-points { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 8px; }
.homepg .why-point {
  padding: 26px 24px;
  border: 1px solid var(--luxe-line);
  border-radius: 6px;
  background: var(--luxe-panel);
  transition: transform var(--ease), border-color var(--ease);
  position: relative;
  overflow: hidden;
}
.homepg .why-point::before {
  content: "";
  position: absolute;
  left: 0;
  top: 24px;
  bottom: 24px;
  width: 3px;
  background: var(--accent);
  border-radius: 0 3px 3px 0;
  box-shadow: 0 0 14px 0 rgba(242, 101, 34, 0.5);
}
.homepg .why-point:hover { transform: translateY(-5px); border-color: var(--luxe-line-strong); }
.homepg .why-point .pn { font-size: 12px; font-weight: 600; color: var(--accent-bright); letter-spacing: 0.16em; display: block; margin-bottom: 10px; padding-left: 14px; }
.homepg .why-point h4 { font-size: 17px; font-weight: 600; text-transform: uppercase; letter-spacing: -0.01em; padding-left: 14px; }
.homepg .why-head h2 { font-size: clamp(28px, 3.6vw, 44px); margin-top: 18px; }
.homepg .why-head p { margin-top: 20px; color: var(--luxe-dim); font-size: 16px; max-width: 440px; }

/* Projects glimpse */
.homepg .proj-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 22px; margin-top: 54px; }
.homepg .proj-col { display: grid; gap: 22px; }
.homepg .proj-col-right { grid-template-rows: 1fr 1fr; }
.homepg .proj {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  border: 1px solid var(--luxe-line);
  min-height: 240px;
  transition: border-color var(--ease);
}
.homepg .proj.tall { min-height: 512px; }
.homepg .proj img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  filter: grayscale(0.5) brightness(0.66);
  transition: filter var(--ease), transform 600ms cubic-bezier(0.4, 0, 0.2, 1);
}
.homepg .proj::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(23, 49, 64, 0.88)); }
.homepg .proj:hover img { filter: grayscale(0) brightness(0.82); transform: scale(1.04); }
.homepg .proj:hover { border-color: var(--luxe-line-strong); }
.homepg .proj-tag {
  position: absolute;
  left: 20px;
  bottom: 18px;
  z-index: 2;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ece6d6;
  display: flex;
  align-items: center;
  gap: 9px;
}
.homepg .proj-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px rgba(242, 101, 34, 0.7); }

/* Stats */
.homepg .stats { display: grid; grid-template-columns: repeat(3, 1fr); }
.homepg .stat {
  padding: 50px 30px;
  text-align: center;
  border: 1px solid var(--luxe-line);
  border-left: none;
  transition: background var(--ease);
}
.homepg .stat:first-child { border-left: 1px solid var(--luxe-line); }
.homepg .stat:hover { background: rgba(242, 101, 34, 0.04); }
.homepg .stat-num { font-size: clamp(46px, 7vw, 80px); font-weight: 600; line-height: 1; letter-spacing: -0.03em; color: #ece6d6; }
.homepg .stat-num .accent { color: var(--accent-bright); }
.homepg .stat-lbl { margin-top: 14px; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--luxe-dim); font-weight: 500; }

/* Final CTA */
.homepg .cta-panel {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--luxe-line-strong);
  background: var(--luxe-panel);
  padding: 80px 60px;
  text-align: center;
}
.homepg .cta-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(70% 130% at 50% 0%, rgba(242, 101, 34, 0.18), transparent 60%);
  pointer-events: none;
}
.homepg .cta-panel .inner { position: relative; z-index: 2; }
.homepg .cta-panel h2 { font-size: clamp(34px, 5vw, 64px); margin-top: 20px; }
.homepg .cta-panel p { margin: 20px auto 0; max-width: 52ch; color: var(--luxe-dim); font-size: 18px; }
.homepg .cta-actions { margin-top: 38px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* FAQ (accessible native <details> accordion) */
.homepg .faq { max-width: 820px; margin: 0 auto; border-top: 1px solid var(--luxe-line); }
.homepg .faq-item { border-bottom: 1px solid var(--luxe-line); }
.homepg .faq-q {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 4px;
  font-size: 18px;
  font-weight: 600;
  color: var(--bone);
  letter-spacing: -0.01em;
  transition: color var(--ease);
}
.homepg .faq-q::-webkit-details-marker { display: none; }
.homepg .faq-q:hover { color: var(--accent-bright); }
.homepg .faq-ico { position: relative; width: 16px; height: 16px; flex: none; }
.homepg .faq-ico::before,
.homepg .faq-ico::after { content: ""; position: absolute; background: var(--accent-bright); border-radius: 2px; }
.homepg .faq-ico::before { left: 0; top: 50%; width: 100%; height: 2px; transform: translateY(-50%); }
.homepg .faq-ico::after { top: 0; left: 50%; width: 2px; height: 100%; transform: translateX(-50%); transition: transform var(--ease), opacity var(--ease); }
.homepg .faq-item[open] .faq-ico::after { transform: translateX(-50%) scaleY(0); opacity: 0; }
.homepg .faq-a { padding: 0 4px 28px; max-width: 64ch; }
.homepg .faq-a p { color: var(--luxe-dim); font-size: 16px; line-height: 1.65; }
.homepg .faq-item[open] .faq-a { animation: faqReveal 260ms cubic-bezier(0.4, 0, 0.2, 1); }
@keyframes faqReveal { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* Responsive */
@media (max-width: 980px) {
  .homepg .why { grid-template-columns: 1fr; gap: 40px; }
  .homepg .proj-grid { grid-template-columns: 1fr; }
  .homepg .proj.tall { min-height: 300px; }
  .homepg .svc-row { grid-template-columns: 50px 1fr auto; gap: 18px; }
  .homepg .svc-sub { display: none; }
}
@media (max-width: 720px) {
  .homepg .wrap { padding: 0 22px; }
  .homepg .cats { grid-template-columns: 1fr; gap: 18px; }
  .homepg .cat { aspect-ratio: 16/11; }
  .homepg .stats { grid-template-columns: 1fr; }
  .homepg .stat { border-left: 1px solid var(--luxe-line) !important; border-top: none; }
  .homepg .stat:first-child { border-top: 1px solid var(--luxe-line); }
  .homepg .why-points { grid-template-columns: 1fr; }
  .homepg .cta-panel { padding: 54px 26px; }
  .homepg .scroll-hint { display: none; }
  .homepg .sec { padding: 80px 0; }

  /* Hero, tuned for mobile: keep the meta on one balanced line, the
     sub on a single line, and centre the two CTAs on screen. */
  .homepg .hero-tagline { flex-wrap: nowrap; font-size: 13px; gap: 6px 14px; }
  .homepg .hero-sub { font-size: clamp(11px, 3.7vw, 17px); white-space: nowrap; }
  .homepg .hero-actions { justify-content: center; }
}
