/* Lunar Home Designs — modern design system */
:root {
  --bg: #faf7f1;
  --bg-grain: #f3eee3;
  --surface: #ffffff;
  --surface-2: #fbf8f2;
  --ink: #14171c;
  --ink-soft: #2a2f3a;
  --muted: #5a6172;
  --line: #e7dfcf;
  --line-strong: #d8cdb6;
  --accent: #b9542d;       /* terracotta */
  --accent-hover: #9e4624;
  --accent-soft: #f4e3d6;
  --forest: #2d4a3a;       /* deep sage */
  --forest-soft: #e2ebe2;
  --gold: #b08a4f;
  --shadow-sm: 0 1px 2px rgba(20,23,28,.04), 0 1px 1px rgba(20,23,28,.03);
  --shadow-md: 0 12px 32px -16px rgba(20,23,28,.18), 0 2px 6px rgba(20,23,28,.04);
  --shadow-lg: 0 28px 60px -28px rgba(20,23,28,.28);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --container: min(1180px, 92vw);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", "Helvetica Neue", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-feature-settings: "ss01", "cv11";
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body::before {
  content: "";
  position: fixed; inset: 0;
  background:
    radial-gradient(1200px 600px at 90% -10%, rgba(185,84,45,.10), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(45,74,58,.08), transparent 55%);
  pointer-events: none; z-index: 0;
}
main, header, footer { position: relative; z-index: 1; }

a { color: inherit; text-decoration: none; transition: color .2s ease, opacity .2s ease; }
a:hover { color: var(--accent); }
img { max-width: 100%; display: block; }
.container { width: var(--container); margin: 0 auto; }

/* Typography */
h1, h2, h3, h4 {
  font-family: "Fraunces", "Cormorant Garamond", "Georgia", serif;
  font-weight: 500;
  letter-spacing: -.01em;
  color: var(--ink);
  margin: 0 0 14px;
  line-height: 1.15;
}
h1 { font-size: clamp(2.4rem, 5.6vw, 4rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); }
h3 { font-size: 1.2rem; line-height: 1.3; }
p { margin: 0 0 14px; }
.lead { color: var(--ink-soft); font-size: 1.08rem; max-width: 64ch; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--accent); text-transform: uppercase;
  letter-spacing: .18em; font-size: .76rem; font-weight: 600;
  margin: 0 0 16px;
}
.eyebrow::before {
  content: ""; width: 22px; height: 1px; background: var(--accent);
}
.kicker {
  color: var(--forest); font-size: .78rem; text-transform: uppercase;
  letter-spacing: .14em; font-weight: 600; margin: 0 0 6px;
}
.meta { color: var(--muted); font-size: .92rem; }

/* Demo banner */
.demo-banner {
  position: relative; z-index: 60;
  background: #14171c;
  color: rgba(255,255,255,.85);
  font-size: .86rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.demo-banner-inner {
  display: flex; align-items: center; gap: 18px;
  padding: 10px 0; flex-wrap: wrap;
}
.demo-banner-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .7rem; font-weight: 700; letter-spacing: .2em;
  text-transform: uppercase;
  background: var(--accent); color: #fff;
  padding: 5px 11px; border-radius: 999px;
  white-space: nowrap;
}
.demo-banner-text { color: rgba(255,255,255,.78); margin: 0; }
.demo-banner-text strong { color: #fff; font-weight: 600; }
.demo-banner-text a.inline-link { color: #fff; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.demo-banner-links {
  margin-left: auto;
  display: flex; gap: 14px; align-items: center; flex-wrap: wrap;
}
.demo-banner-links a {
  color: rgba(255,255,255,.85); font-weight: 500;
  display: inline-flex; align-items: center; gap: 4px;
}
.demo-banner-links a:hover { color: var(--accent); }
.demo-banner-cta {
  background: var(--accent); color: #fff !important;
  padding: 7px 14px; border-radius: 999px; font-weight: 600;
  transition: background .2s ease, transform .2s ease, color .2s ease;
}
.demo-banner-cta:hover { background: #fff; color: var(--ink) !important; transform: translateY(-1px); }
@media (max-width: 760px) {
  .demo-banner-links { width: 100%; margin-left: 0; }
  .demo-banner-text { font-size: .82rem; }
}

/* Header / nav */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 247, 241, 0.78);
  border-bottom: 1px solid rgba(231,223,207,.7);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
}
.nav-wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0; gap: 20px;
}
.brand {
  font-family: "Fraunces", serif;
  font-size: 1.25rem; font-weight: 500; letter-spacing: .2px;
  display: inline-flex; align-items: center; gap: 10px;
}
.brand .moon {
  width: 22px; height: 22px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #f4e3d6 0 30%, var(--accent) 35% 100%);
  box-shadow: inset -3px -3px 0 rgba(20,23,28,.15);
}
.brand span { color: var(--accent); font-style: italic; }
.nav-links {
  display: flex; gap: 26px; align-items: center;
  font-size: .94rem; color: var(--ink-soft);
}
.nav-links a {
  position: relative; color: var(--ink-soft); padding: 4px 0;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  height: 2px; width: 0; background: var(--accent);
  transition: width .25s ease;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--ink); }
.nav-toggle {
  display: none;
  background: transparent; border: 1px solid var(--line);
  width: 40px; height: 40px; border-radius: 10px; cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle span {
  display: block; width: 18px; height: 2px; background: var(--ink);
  position: relative;
}
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px;
  background: var(--ink);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ink); color: #fff;
  padding: 13px 22px; border-radius: 999px;
  font-weight: 600; font-size: .95rem; letter-spacing: .01em;
  border: 1px solid var(--ink); cursor: pointer;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn.alt {
  background: transparent; color: var(--ink); border-color: var(--line-strong);
}
.btn.alt:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn.accent { background: var(--accent); border-color: var(--accent); }
.btn.accent:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* Layout */
.section { padding: 84px 0; }
.section.tight { padding: 56px 0; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.split {
  display: grid; grid-template-columns: 1.05fr 1fr;
  gap: 56px; align-items: center;
}

/* Hero */
.hero {
  padding: 88px 0 64px;
  display: grid; grid-template-columns: 1.15fr 1fr;
  gap: 56px; align-items: center;
}
.hero h1 strong {
  font-style: italic; font-weight: 500;
  background: linear-gradient(120deg, var(--accent) 0%, var(--gold) 80%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .stats {
  display: flex; gap: 28px; flex-wrap: wrap;
  margin: 32px 0 28px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}
.stat { min-width: 110px; }
.stat .num {
  font-family: "Fraunces", serif; font-size: 2rem; font-weight: 500;
  color: var(--ink); letter-spacing: -.02em; line-height: 1;
}
.stat .label { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; margin-top: 6px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.hero-image {
  position: relative;
  min-height: 520px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: linear-gradient(180deg, rgba(20,23,28,.05), rgba(20,23,28,.45)),
    url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&w=1400&q=80') center/cover;
}
.hero-image::after {
  content: "Canyon Modern · Austin, TX";
  position: absolute; bottom: 22px; left: 22px;
  color: #fff; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase;
  background: rgba(20,23,28,.55); padding: 8px 14px; border-radius: 999px;
  backdrop-filter: blur(6px);
}
.badge-row {
  display: flex; gap: 10px; flex-wrap: wrap; margin: 0 0 18px;
}
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--surface); border: 1px solid var(--line);
  padding: 6px 12px; border-radius: 999px;
  font-size: .8rem; color: var(--ink-soft);
  box-shadow: var(--shadow-sm);
}
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--forest); }

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.card-quiet { background: var(--surface-2); }
.card h3 { margin-bottom: 8px; }
.card .meta { margin-top: 6px; }
.card .read-more {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--accent); font-weight: 600; font-size: .92rem; margin-top: 12px;
}

/* Project cards */
.project-card { padding: 0; overflow: hidden; }
.project-card .project-thumb { height: 260px; border-radius: 0; margin: 0; border: 0; border-bottom: 1px solid var(--line); }
.project-card .body { padding: 22px 24px 26px; }
.project-thumb {
  height: 230px; border-radius: var(--radius-sm); margin-bottom: 16px;
  background-size: cover; background-position: center;
  border: 1px solid var(--line);
  position: relative;
  transition: transform .4s ease;
}
.project-card:hover .project-thumb { transform: scale(1.02); }
.project-1 { background-image: url('https://images.unsplash.com/photo-1600607687939-ce8a6c25118c?auto=format&fit=crop&w=1100&q=80'); }
.project-2 { background-image: url('https://images.unsplash.com/photo-1600047509807-ba8f99d2cdde?auto=format&fit=crop&w=1100&q=80'); }
.project-3 { background-image: url('https://images.unsplash.com/photo-1613977257365-aaae5a9817ff?auto=format&fit=crop&w=1100&q=80'); }

/* Service tile */
.service {
  display: flex; flex-direction: column; gap: 12px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.service:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.service .icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--accent-soft); color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.2rem; font-weight: 700;
}
.service h3 { margin: 4px 0 0; }
.service p { color: var(--muted); font-size: .96rem; margin: 0; }

/* Filters */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 28px; }
.filter-btn {
  background: var(--surface); border: 1px solid var(--line);
  color: var(--ink-soft); padding: 9px 16px; border-radius: 999px;
  cursor: pointer; font-size: .88rem; font-weight: 500;
  transition: all .2s ease;
}
.filter-btn:hover { border-color: var(--ink); color: var(--ink); }
.filter-btn.active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery img {
  border-radius: var(--radius-sm); border: 1px solid var(--line);
  height: 240px; object-fit: cover; width: 100%;
  transition: transform .4s ease;
}
.gallery img:hover { transform: scale(1.02); }

/* Timeline */
.timeline { list-style: none; padding: 0; margin: 0; counter-reset: step; }
.timeline li {
  position: relative;
  padding: 22px 24px 22px 72px;
  margin-bottom: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  counter-increment: step;
  transition: border-color .2s ease, transform .2s ease;
}
.timeline li:hover { border-color: var(--accent); transform: translateX(2px); }
.timeline li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; left: 22px; top: 22px;
  font-family: "Fraunces", serif; font-size: 1.1rem; font-weight: 600;
  color: var(--accent);
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--accent-soft);
  display: inline-flex; align-items: center; justify-content: center;
}
.timeline li h3 { margin: 0 0 4px; font-size: 1.05rem; }
.timeline li p { margin: 0; color: var(--muted); font-size: .94rem; }
.timeline.simple li { padding: 10px 0 10px 22px; background: transparent; border: 0; border-left: 2px solid var(--line); border-radius: 0; margin: 0 0 4px; }
.timeline.simple li::before { content: "▸"; left: -7px; top: 12px; background: transparent; width: auto; height: auto; color: var(--accent); font-family: inherit; font-size: .9rem; }

/* Testimonial */
.testimonial {
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  position: relative;
}
.testimonial::before {
  content: "\201C";
  position: absolute; top: 12px; left: 22px;
  font-family: "Fraunces", serif; font-size: 4rem; line-height: 1;
  color: var(--accent-soft);
}
.testimonial blockquote {
  margin: 0 0 16px; font-family: "Fraunces", serif; font-style: italic;
  font-size: 1.18rem; line-height: 1.45; color: var(--ink);
}
.testimonial .who { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.testimonial .avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent-soft) center/cover;
  border: 1px solid var(--line);
}

/* Section header */
.section-head {
  display: flex; justify-content: space-between; align-items: end;
  gap: 24px; margin-bottom: 40px; flex-wrap: wrap;
}
.section-head .copy { max-width: 56ch; }
.section-head .copy p { color: var(--muted); margin: 0; }

/* CTA band */
.cta-band {
  margin: 40px 0 0;
  padding: 56px;
  background: linear-gradient(135deg, var(--ink) 0%, #1d2230 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  display: grid; grid-template-columns: 1.4fr 1fr;
  gap: 32px; align-items: center;
  position: relative; overflow: hidden;
}
.cta-band::after {
  content: ""; position: absolute; right: -100px; top: -120px;
  width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(185,84,45,.55), transparent 70%);
}
.cta-band h2 { color: #fff; margin: 0 0 12px; }
.cta-band p { color: rgba(255,255,255,.78); margin: 0; }
.cta-band .btn { background: var(--accent); border-color: var(--accent); }
.cta-band .btn:hover { background: #fff; color: var(--ink); border-color: #fff; }
.cta-band .btn.alt { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.cta-band .btn.alt:hover { background: #fff; color: var(--ink); }

/* Forms */
form { display: grid; gap: 14px; }
label { font-size: .85rem; color: var(--ink-soft); font-weight: 500; }
input, textarea, select {
  width: 100%; padding: 13px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: #fff; color: var(--ink);
  font-family: inherit; font-size: .96rem;
  transition: border-color .2s ease, box-shadow .2s ease;
}
input:focus, textarea:focus, select:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(185,84,45,.12);
}
textarea { resize: vertical; min-height: 120px; }

/* Page header */
.page-head {
  padding: 80px 0 32px;
}
.page-head .eyebrow { margin-bottom: 12px; }
.page-head h1 { max-width: 22ch; }
.page-head p.lead { margin-top: 14px; }

/* Footer */
.footer {
  margin-top: 60px;
  background: #14171c;
  color: rgba(255,255,255,.72);
  padding: 64px 0 32px;
}
.footer h4 { color: #fff; font-family: "Inter", sans-serif; font-size: .82rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 600; margin-bottom: 16px; }
.footer a { color: rgba(255,255,255,.72); display: block; padding: 4px 0; font-size: .94rem; }
.footer a:hover { color: var(--accent); }
.footer .footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer .brand { color: #fff; font-size: 1.4rem; }
.footer .brand span { color: var(--accent); }
.footer .legal {
  margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  font-size: .85rem; color: rgba(255,255,255,.5);
}

/* Tags / chip lists */
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.tag-list li {
  font-size: .78rem; padding: 5px 10px; border-radius: 999px;
  background: var(--forest-soft); color: var(--forest);
  border: 1px solid #cddacd;
}

/* Responsive */
@media (max-width: 980px) {
  .hero, .grid-3, .grid-2, .grid-4, .gallery, .split, .cta-band, .footer .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero { padding: 56px 0 32px; gap: 36px; }
  .hero-image { min-height: 360px; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 8px 24px 18px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-toggle { display: inline-flex; }
  .cta-band { padding: 36px; text-align: left; }
  .section { padding: 56px 0; }
  .section-head { align-items: flex-start; }
  .hero-image::after { left: 16px; bottom: 16px; }
}
