/* ============================================================
   DubiLux Condo — styles
   Palette: deep charcoal + warm bronze accent
   ============================================================ */
:root {
  --bg:        #0f1115;
  --bg-alt:    #14171d;
  --surface:   #191d25;
  --surface-2: #1f2430;
  --line:      #2a2f3a;
  --text:      #f4f1ea;
  --muted:     #a4a9b4;
  --muted-2:   #7a8090;
  --accent:    #c9a24b;      /* bronze / gold */
  --accent-2:  #e0be6b;
  --accent-dim:#9c7c34;
  --radius:    14px;
  --radius-sm: 9px;
  --maxw:      1160px;
  --ease:      cubic-bezier(.22,.61,.36,1);
  --shadow:    0 20px 50px -25px rgba(0,0,0,.7);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3 { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 600; line-height: 1.12; letter-spacing: .2px; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

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

.eyebrow {
  text-transform: uppercase; letter-spacing: .28em; font-size: .72rem;
  font-weight: 500; color: var(--accent); margin-bottom: 18px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 100px; font-size: .92rem; font-weight: 500;
  letter-spacing: .02em; cursor: pointer; border: 1px solid transparent;
  transition: transform .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.btn-primary { background: var(--accent); color: #14110a; }
.btn-primary:hover { background: var(--accent-2); transform: translateY(-2px); }
.btn-ghost { border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-2); transform: translateY(-2px); }
.btn-block { width: 100%; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(15,17,21,.72); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { color: var(--accent); display: grid; place-items: center; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: 'Cormorant Garamond', serif; font-size: 1.4rem; font-weight: 600; letter-spacing: .3px; }
.brand-accent { color: var(--accent); }
.brand-sub { font-size: .64rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted-2); }

.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav a { font-size: .9rem; color: var(--muted); transition: color .2s var(--ease); position: relative; }
.main-nav a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 1px; width: 0;
  background: var(--accent); transition: width .28s var(--ease);
}
.main-nav a:not(.nav-cta):hover { color: var(--text); }
.main-nav a:not(.nav-cta):hover::after { width: 100%; }
.nav-cta { padding: 9px 20px; border: 1px solid var(--line); border-radius: 100px; color: var(--text); }
.nav-cta:hover { border-color: var(--accent); color: var(--accent-2); }

.header-tools { display: flex; align-items: center; gap: 14px; }
.lang-toggle {
  background: none; border: 1px solid var(--line); color: var(--muted);
  border-radius: 100px; padding: 6px 12px; font-size: .74rem; letter-spacing: .12em;
  cursor: pointer; font-family: inherit; transition: border-color .2s, color .2s;
}
.lang-toggle:hover { border-color: var(--accent); color: var(--text); }
.lang-toggle .lang-sep { margin: 0 5px; color: var(--muted-2); }
.lang-toggle .active-lang { color: var(--accent); font-weight: 600; }

.menu-btn { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.menu-btn span { width: 24px; height: 2px; background: var(--text); transition: .3s var(--ease); }
.menu-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn.open span:nth-child(2) { opacity: 0; }
.menu-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav { display: none; flex-direction: column; background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.mobile-nav a { padding: 15px 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: .95rem; }
.mobile-nav.open { display: flex; }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; overflow: hidden; padding: 120px 0 100px; }
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(120% 90% at 78% 8%, rgba(201,162,75,.16), transparent 55%),
    radial-gradient(90% 80% at 10% 100%, rgba(201,162,75,.07), transparent 60%),
    linear-gradient(180deg, #0f1115 0%, #12151b 100%);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px; opacity: .12;
  mask-image: radial-gradient(70% 60% at 70% 20%, #000, transparent 75%);
}
.hero-inner { position: relative; z-index: 1; max-width: 860px; }
.hero-title { font-size: clamp(2.6rem, 6vw, 4.6rem); margin-bottom: 24px; letter-spacing: -.5px; }
.hero-lead { font-size: clamp(1.05rem, 2vw, 1.28rem); color: var(--muted); max-width: 620px; margin-bottom: 38px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 64px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 48px; border-top: 1px solid var(--line); padding-top: 32px; }
.hero-stats dt { font-family: 'Cormorant Garamond', serif; font-size: 2.2rem; font-weight: 600; color: var(--accent-2); }
.hero-stats dd { font-size: .82rem; letter-spacing: .08em; color: var(--muted-2); text-transform: uppercase; margin-top: 2px; }

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 700px; margin-bottom: 56px; }
.section-title { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 18px; }
.section-lead { color: var(--muted); font-size: 1.08rem; }

/* ---------- Cards ---------- */
.cards { display: grid; gap: 24px; }
.cards.two { grid-template-columns: repeat(2, 1fr); }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 38px 34px; transition: transform .3s var(--ease), border-color .3s var(--ease);
  position: relative; overflow: hidden;
}
.card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease);
}
.card:hover { transform: translateY(-4px); border-color: var(--accent-dim); }
.card:hover::before { transform: scaleX(1); }
.card-icon { width: 56px; height: 56px; color: var(--accent); margin-bottom: 22px; }
.card h3 { font-size: 1.7rem; margin-bottom: 14px; }
.card p { color: var(--muted); margin-bottom: 22px; }
.card-list { list-style: none; display: grid; gap: 10px; }
.card-list li { position: relative; padding-left: 22px; font-size: .94rem; color: var(--text); }
.card-list li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; border: 1px solid var(--accent); transform: rotate(45deg); }

/* ---------- Steps ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; }
.step-num { font-family: 'Cormorant Garamond', serif; font-size: 2.4rem; color: var(--accent); opacity: .55; display: block; margin-bottom: 10px; }
.step h3 { font-size: 1.4rem; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: .94rem; }

/* ---------- Projects (featured layout for 1–2 items) ---------- */
.featured-projects { display: grid; gap: 28px; margin-bottom: 32px; }
.fproject {
  display: grid; grid-template-columns: 1.05fr 1fr; align-items: stretch;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform .3s var(--ease), border-color .3s var(--ease);
}
.fproject:hover { transform: translateY(-4px); border-color: var(--accent-dim); }
/* Alternate image side on the 2nd featured project */
.fproject:nth-child(even) .fproject-media { order: 2; }

.fproject-media { position: relative; min-height: 340px; display: flex; align-items: flex-start; padding: 20px; }
.project-img-1 { background: linear-gradient(135deg, #232a36, #171b23), radial-gradient(circle at 30% 30%, rgba(201,162,75,.28), transparent 60%); }
.project-img-2 { background: linear-gradient(135deg, #2a2620, #1a1712), radial-gradient(circle at 70% 40%, rgba(201,162,75,.24), transparent 60%); }
.fproject-media::after {
  content: ""; position: absolute; inset: 0; opacity: .1;
  background-image: linear-gradient(rgba(255,255,255,.5) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.5) 1px, transparent 1px);
  background-size: 32px 32px;
}
.project-tag { position: relative; z-index: 1; font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; background: rgba(15,17,21,.72); color: var(--accent-2); padding: 5px 12px; border-radius: 100px; border: 1px solid var(--line); }

.fproject-body { padding: 42px 40px; display: flex; flex-direction: column; justify-content: center; }
.fproject-loc { text-transform: uppercase; letter-spacing: .18em; font-size: .72rem; color: var(--accent); margin-bottom: 12px; }
.fproject-body h3 { font-size: 1.9rem; margin-bottom: 14px; }
.fproject-body > p { color: var(--muted); margin-bottom: 24px; }
.fproject-meta { list-style: none; display: flex; flex-wrap: wrap; gap: 28px; border-top: 1px solid var(--line); padding-top: 20px; }
.fproject-meta li { display: flex; flex-direction: column; gap: 3px; }
.fproject-meta span { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); }
.fproject-meta strong { font-weight: 500; color: var(--text); font-size: .95rem; }

.projects-note { text-align: center; color: var(--muted-2); font-size: .92rem; font-style: italic; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: start; }
.about-copy .section-title { margin-bottom: 22px; }
.about-copy p { color: var(--muted); margin-bottom: 18px; }
.about-points { display: grid; gap: 14px; margin-top: 30px; }
.about-point { display: flex; flex-direction: column; padding-left: 18px; border-left: 2px solid var(--accent); }
.about-point strong { font-weight: 600; color: var(--text); }
.about-point span { color: var(--muted); font-size: .92rem; }
.about-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 30px; position: sticky; top: 96px; box-shadow: var(--shadow); }
.about-card h3 { font-size: 1.5rem; margin-bottom: 20px; color: var(--accent-2); }
.about-card ul { list-style: none; display: grid; gap: 14px; margin-bottom: 28px; }
.about-card li { padding-left: 22px; position: relative; color: var(--muted); font-size: .95rem; }
.about-card li::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; background: var(--accent); border-radius: 50%; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: start; }
.contact-info { display: grid; gap: 8px; align-content: start; }
.contact-line { display: flex; align-items: center; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); transition: color .2s; }
a.contact-line:hover { color: var(--accent-2); }
.contact-ico { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--accent); }
.contact-ico svg { width: 20px; height: 20px; }
.contact-line span { display: flex; flex-direction: column; }
.contact-line small { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 2px; }

.contact-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: .82rem; letter-spacing: .06em; color: var(--muted); margin-bottom: 8px; }
.field input, .field textarea {
  width: 100%; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 13px 15px; color: var(--text); font-family: inherit; font-size: .95rem; transition: border-color .2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field textarea { resize: vertical; }
.form-note { font-size: .8rem; color: var(--muted-2); margin-top: 14px; text-align: center; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--line); padding: 54px 0 34px; }
.footer-inner { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr; gap: 36px; align-items: start; }
.footer-brand .brand-name { font-size: 1.5rem; }
.footer-brand p { color: var(--muted); font-size: .92rem; margin-top: 10px; max-width: 280px; }
.footer-nav { display: flex; flex-direction: column; gap: 12px; }
.footer-nav a { color: var(--muted); font-size: .92rem; transition: color .2s; }
.footer-nav a:hover { color: var(--accent-2); }
.footer-meta { text-align: right; }
.footer-meta a { color: var(--accent-2); font-size: .92rem; }
.footer-meta p { color: var(--muted-2); font-size: .84rem; margin-top: 10px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .main-nav { display: none; }
  .menu-btn { display: flex; }
  .cards.two, .cards.three { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .fproject { grid-template-columns: 1fr; }
  .fproject:nth-child(even) .fproject-media { order: 0; }
  .fproject-media { min-height: 220px; }
  .fproject-body { padding: 30px 26px; }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .about-card { position: static; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer-meta { text-align: left; }
}
@media (max-width: 560px) {
  .hero { padding: 84px 0 72px; }
  .hero-stats { gap: 28px; }
  .hero-stats dt { font-size: 1.7rem; }
  .steps { grid-template-columns: 1fr; }
  .section { padding: 68px 0; }
  .contact-form, .card { padding: 26px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

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