/* =========================================================
   Lapis Global — main.css
   Inspired by BMW CI2020 design system,
   re-themed with Lapis Lazuli Navy + Curated Gold.
   ========================================================= */

:root {
  /* Brand */
  --lapis-navy:        #0f2a4f; /* deep lapis lazuli */
  --lapis-navy-deep:   #081a35;
  --lapis-navy-soft:   #1a3a6e;
  --lapis-gold:        #c9a961; /* curated gold */
  --lapis-gold-deep:   #a8893f;

  /* Surface */
  --surface-white:     #ffffff;
  --surface-bone:      #f7f5f0; /* warm marble bone */
  --surface-stone:     #ececea; /* light stone gray */
  --surface-dark:      #0a1a30; /* hero / dark sections */
  --surface-dark-2:    #050d1c;

  /* Text */
  --text-primary:      #1a1a1a;
  --text-secondary:    #5a5a5a;
  --text-muted:        #9a9a9a;
  --text-on-dark:      #ffffff;
  --text-on-dark-mut:  rgba(255,255,255,0.65);

  /* Lines */
  --line-light:        rgba(0,0,0,0.10);
  --line-dark:         rgba(255,255,255,0.18);

  /* Type */
  --font-display: "Cormorant Garamond", "Pretendard", "Noto Serif KR", Georgia, serif;
  --font-sans:    "Inter", "Pretendard", "Helvetica Neue", Helvetica, Arial, "Apple SD Gothic Neo", sans-serif;

  /* Layout */
  --max-w: 1440px;
  --gutter: clamp(20px, 4vw, 56px);
  --header-h: 72px;
}

/* ---------- Reset ---------- */
*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-primary);
  background: var(--surface-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; margin: 0; }
button { font: inherit; border: 0; background: none; cursor: pointer; color: inherit; }

/* zero radius — Lapis is angular */
input, button, textarea, select, .btn, .card, .collection-card, .pro-card, .space-card, .showroom-card {
  border-radius: 0;
}

/* ---------- Utilities ---------- */
.eyebrow {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--lapis-gold-deep);
  margin: 0 0 18px;
}

.section { padding: clamp(64px, 9vw, 128px) 0; }
.section--light { background: var(--surface-white); color: var(--text-primary); }
.section--dark  { background: var(--surface-dark); color: var(--text-on-dark); }
.section--dark .eyebrow { color: var(--lapis-gold); }
.section--bordered { border-top: 1px solid var(--line-light); }

.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head--dark .section-lede { color: var(--text-on-dark-mut); }

.section-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(36px, 5.4vw, 64px);
  line-height: 1.1;
  letter-spacing: -0.005em;
  margin: 0 0 16px;
}
.section-lede {
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 56ch;
  margin: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 28px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1;
  transition: background .25s ease, color .25s ease, border-color .25s ease;
  border: 1px solid transparent;
}
.btn--primary {
  background: var(--lapis-gold);
  color: var(--surface-dark);
}
.btn--primary:hover { background: var(--lapis-gold-deep); color: #fff; }

.btn--ghost {
  background: transparent;
  color: var(--text-on-dark);
  border-color: rgba(255,255,255,0.6);
}
.btn--ghost:hover { background: #fff; color: var(--surface-dark); border-color: #fff; }

.link-arrow {
  display: inline-block;
  margin-top: 16px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lapis-navy);
  border-bottom: 1px solid var(--lapis-navy);
  padding-bottom: 4px;
  transition: color .2s ease, border-color .2s ease;
}
.link-arrow:hover { color: var(--lapis-gold-deep); border-color: var(--lapis-gold-deep); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  background: rgba(10, 26, 48, 0.0);
  backdrop-filter: blur(0);
  z-index: 50;
  transition: background .3s ease, backdrop-filter .3s ease, color .3s ease;
  color: #fff;
}
.site-header.is-scrolled {
  background: rgba(10, 26, 48, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line-dark);
}
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: 0.06em;
  display: inline-flex;
  gap: 8px;
}
.brand-mark { color: #fff; }
.brand-mark--gold { color: var(--lapis-gold); }

.primary-nav ul {
  display: flex;
  gap: clamp(16px, 2vw, 28px);
}
.primary-nav a {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  padding: 8px 0;
  position: relative;
}
.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--lapis-gold);
  transition: right .3s ease;
}
.primary-nav a:hover { color: #fff; }
.primary-nav a:hover::after { right: 0; }

.header-actions { display: flex; align-items: center; gap: 16px; }
.lang-toggle {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.7);
  display: inline-flex;
  gap: 4px;
}
.lang-toggle .lang-active { color: var(--lapis-gold); }
.lang-divider { color: rgba(255,255,255,0.3); }
.lang-toggle:hover { color: #fff; }

.menu-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.menu-toggle span { width: 22px; height: 1.5px; background: #fff; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  color: var(--text-on-dark);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(201,169,97,0.18), transparent 55%),
    radial-gradient(ellipse at 80% 80%, rgba(26,58,110,0.7), transparent 60%),
    linear-gradient(180deg, #050d1c 0%, #0a1a30 40%, #0f2a4f 100%);
  z-index: -2;
}
.hero-bg::before,
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(115deg, rgba(255,255,255,0.04) 0 1px, transparent 1px 280px),
    repeating-linear-gradient(28deg, rgba(255,255,255,0.025) 0 1px, transparent 1px 200px);
  mix-blend-mode: screen;
  opacity: 0.6;
}
.hero-bg::after {
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.05), transparent 18%),
    radial-gradient(circle at 65% 65%, rgba(201,169,97,0.07), transparent 22%),
    radial-gradient(circle at 85% 25%, rgba(255,255,255,0.04), transparent 14%);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5,13,28,0.4) 0%, rgba(5,13,28,0.15) 30%, rgba(5,13,28,0.85) 100%);
  z-index: -1;
}
.hero-content {
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  padding: 160px var(--gutter) 120px;
}
.hero-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.32em;
  color: var(--lapis-gold);
  margin: 0 0 28px;
  text-transform: uppercase;
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(40px, 6.6vw, 92px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 0 32px;
  max-width: 18ch;
}
.hero-title--gold { color: var(--lapis-gold); font-style: italic; }
.hero-sub {
  max-width: 56ch;
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.7;
  color: var(--text-on-dark-mut);
  margin: 0 0 44px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; }

.hero-scroll {
  position: absolute;
  right: var(--gutter);
  bottom: 32px;
  font-size: 11px;
  letter-spacing: 0.32em;
  color: var(--text-on-dark-mut);
  writing-mode: vertical-rl;
}

/* ---------- Collections ---------- */
.collection-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1px;
  background: var(--line-light);
  border-top: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
}
.collection-card {
  grid-column: span 4;
  background: var(--surface-white);
  display: flex;
  flex-direction: column;
  transition: transform .4s ease;
}
.collection-card:nth-child(4) { grid-column: span 6; }
.collection-card:nth-child(5) { grid-column: span 6; }
.collection-card:hover { transform: translateY(-2px); }
.collection-card:hover .collection-media { filter: brightness(1.05) saturate(1.05); }

.collection-media {
  aspect-ratio: 4/3;
  background-size: cover;
  background-position: center;
  background-color: var(--surface-stone);
  transition: filter .4s ease;
  position: relative;
}
.collection-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.18));
}
.collection-media--marble {
  background-image:
    radial-gradient(ellipse at 30% 30%, #f3eee5 0%, transparent 40%),
    radial-gradient(ellipse at 70% 60%, #e3dccd 0%, transparent 50%),
    linear-gradient(135deg, #faf8f3, #e8e2d3 60%, #d6cdb8);
}
.collection-media--granite {
  background-image:
    radial-gradient(circle at 25% 35%, #6b6b6b 0%, transparent 12%),
    radial-gradient(circle at 60% 70%, #555 0%, transparent 8%),
    radial-gradient(circle at 80% 20%, #888 0%, transparent 10%),
    linear-gradient(135deg, #2c2c2c, #4a4a4a);
}
.collection-media--limestone {
  background-image:
    radial-gradient(ellipse at 50% 50%, #efe6d4 0%, transparent 60%),
    linear-gradient(135deg, #f1e8d6, #d8caa8);
}
.collection-media--bigslab {
  background-image:
    radial-gradient(ellipse at 20% 40%, #e8e3d6 0%, transparent 45%),
    radial-gradient(ellipse at 80% 60%, #d6cfbd 0%, transparent 55%),
    linear-gradient(135deg, #f0eadc, #c8bfa4 70%, #a8a08a);
}
.collection-media--special {
  background-image:
    radial-gradient(ellipse at 30% 30%, #c9a961 0%, transparent 40%),
    radial-gradient(ellipse at 70% 70%, #4a3a1a 0%, transparent 50%),
    linear-gradient(135deg, #2a1f0f, #6e5630 70%, #c9a961);
}
.collection-meta {
  padding: 28px 32px 36px;
  border-top: 1px solid var(--line-light);
}
.collection-meta h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 26px;
  margin: 0 0 6px;
  letter-spacing: -0.005em;
}
.collection-meta p {
  margin: 0;
  font-size: 13px;
  color: var(--text-secondary);
  letter-spacing: 0.06em;
}

/* ---------- Spaces ---------- */
.space-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border-left: 1px solid var(--line-dark);
}
.space-card {
  border-right: 1px solid var(--line-dark);
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  padding: 56px 28px;
  transition: background .3s ease;
}
.space-card:hover { background: rgba(201,169,97,0.08); }
.space-card h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 28px;
  margin: 0 0 8px;
}
.space-card p {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--text-on-dark-mut);
  text-transform: uppercase;
}

/* ---------- Projects ---------- */
.project-list { border-top: 1px solid var(--line-light); }
.project-list li {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  align-items: baseline;
  padding: 24px 0;
  border-bottom: 1px solid var(--line-light);
}
.project-developer {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 22px;
  color: var(--lapis-navy);
}
.project-name {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* ---------- Professionals ---------- */
.pro-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--line-light);
  border-bottom: 0;
}
.pro-card {
  padding: 48px 40px 56px;
  border-right: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
}
.pro-card:last-child { border-right: 0; }
.pro-card h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 26px;
  margin: 0 0 12px;
}
.pro-card p { color: var(--text-secondary); margin: 0; }

/* ---------- Inspiration ---------- */
.placeholder-note {
  color: var(--text-muted);
  font-style: italic;
  border-top: 1px solid var(--line-light);
  padding-top: 32px;
}

/* ---------- Showroom ---------- */
.showroom-card {
  border: 1px solid var(--line-dark);
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}
.showroom-addr {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  margin: 0;
  letter-spacing: 0.01em;
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.about-copy p {
  font-size: 17px;
  line-height: 1.85;
  color: var(--text-secondary);
  max-width: 64ch;
}
.about-values {
  margin-top: 32px;
  display: grid;
  gap: 12px;
  border-top: 1px solid var(--line-light);
  padding-top: 24px;
}
.about-values li {
  font-size: 15px;
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
}
.about-values strong {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 20px;
  color: var(--lapis-navy);
  letter-spacing: 0.02em;
}
.about-contact {
  border-left: 1px solid var(--line-light);
  padding-left: 40px;
}
.about-contact h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 22px;
  margin: 0 0 20px;
  color: var(--lapis-navy);
}
.about-contact dl { margin: 0; display: grid; gap: 16px; }
.about-contact dt {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
}
.about-contact dd { margin: 4px 0 0; font-size: 15px; }
.about-contact a:hover { color: var(--lapis-gold-deep); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--surface-dark-2);
  color: var(--text-on-dark-mut);
  padding: 64px 0 32px;
  border-top: 1px solid var(--line-dark);
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  align-items: start;
}
.footer-brand .brand-mark { font-family: var(--font-display); font-size: 28px; }
.footer-tag {
  margin-top: 12px;
  font-size: 11px;
  letter-spacing: 0.32em;
  color: var(--lapis-gold);
}
.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
}
.footer-nav a {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}
.footer-nav a:hover { color: var(--lapis-gold); }
.footer-meta {
  grid-column: 1 / -1;
  border-top: 1px solid var(--line-dark);
  padding-top: 24px;
  margin-top: 32px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: var(--text-muted);
}
.footer-meta p { margin: 0; }

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1024px) {
  .collection-card { grid-column: span 6; }
  .collection-card:nth-child(4),
  .collection-card:nth-child(5) { grid-column: span 6; }
  .space-grid { grid-template-columns: repeat(3, 1fr); }
  .pro-grid { grid-template-columns: repeat(3, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .about-contact { border-left: 0; padding-left: 0; border-top: 1px solid var(--line-light); padding-top: 32px; }
}

@media (max-width: 720px) {
  .primary-nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .header-inner { gap: 12px; }

  .hero-content { padding: 140px var(--gutter) 100px; }
  .hero-scroll { display: none; }

  .collection-card,
  .collection-card:nth-child(4),
  .collection-card:nth-child(5) { grid-column: span 12; }

  .space-grid { grid-template-columns: repeat(2, 1fr); }
  .pro-grid { grid-template-columns: 1fr; }
  .pro-card { border-right: 0; }

  .project-list li {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .project-developer { font-size: 18px; }

  .footer-inner { grid-template-columns: 1fr; }
  .about-values li { grid-template-columns: 1fr; gap: 4px; }

  .showroom-card { padding: 32px; flex-direction: column; align-items: flex-start; }
}

@media (max-width: 420px) {
  .hero-cta { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }
}
