/* ============================================================
   OmniSpace — shared stylesheet
   Brand: minimalist, editorial, black + warm gold (#b8a06a)
   ============================================================ */

:root {
  --black: #111111;
  --ink:   #1a1a1a;
  --gold:  #b8a06a;
  --gold-soft: #d4c190;
  --muted: #6b6b6b;
  --line:  #e6e3dc;
  --cream: #faf8f4;
  --bg:    #ffffff;
  --max:   1240px;
  --gutter: clamp(20px, 4vw, 56px);
  --section-pad: clamp(72px, 10vw, 140px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Jost', system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: 0.015em;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-weight: 300; letter-spacing: 0.02em; line-height: 1.15; }

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 400;
  margin-bottom: 18px;
  display: inline-block;
}

.eyebrow.dark { color: var(--black); }

.h-display {
  font-size: clamp(40px, 6.5vw, 84px);
  letter-spacing: 0.01em;
  font-weight: 300;
  line-height: 1.05;
}

.h-section {
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: 0.02em;
  margin-bottom: 24px;
}

.lead {
  font-size: clamp(16px, 1.6vw, 18px);
  color: var(--muted);
  line-height: 1.7;
  max-width: 56ch;
}

.divider {
  width: 56px; height: 1px; background: var(--gold);
  margin: 0 0 28px;
}
.divider.center { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border: 1px solid var(--black);
  background: transparent;
  color: var(--black);
  transition: all .3s ease;
  white-space: nowrap;
}

.btn:hover { background: var(--black); color: #fff; letter-spacing: 0.26em; }

.btn.primary { background: var(--black); color: #fff; }
.btn.primary:hover { background: var(--gold); border-color: var(--gold); color: var(--black); }

.btn .dot { width: 6px; height: 6px; background: var(--gold); border-radius: 50%; }
.btn.primary .dot { background: var(--gold-soft); }
.btn.primary:hover .dot { background: var(--black); }

.btn .arrow {
  display: inline-block;
  transition: transform .3s ease;
}
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo img { height: 38px; width: auto; }

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
  align-items: center;
}

.nav-links a {
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  position: relative;
  padding: 6px 0;
  transition: color .25s ease;
}

.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 0; height: 1px; background: var(--gold);
  transition: width .3s ease;
}

.nav-links a:hover, .nav-links a.active { color: var(--black); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-cta { font-size: 12px; padding: 10px 18px; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 32px; height: 32px;
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 4px; right: 4px; height: 1px; background: var(--black);
  transition: transform .3s, opacity .3s, top .3s;
}
.nav-toggle span:nth-child(1) { top: 10px; }
.nav-toggle span:nth-child(2) { top: 16px; }
.nav-toggle span:nth-child(3) { top: 22px; }
.nav-toggle.open span:nth-child(1) { top: 16px; transform: rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { top: 16px; transform: rotate(-45deg); }

@media (max-width: 860px) {
  .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed;
    inset: 76px 0 0 0;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    padding: 32px var(--gutter);
    gap: 22px;
    transform: translateX(100%);
    transition: transform .35s ease;
    border-top: 1px solid var(--line);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 16px; letter-spacing: 0.24em; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 86vh;
  display: flex;
  align-items: center;
  padding: var(--section-pad) 0;
  overflow: hidden;
  background: var(--cream);
}

.hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2620 60%, #3a3328 100%);
  z-index: 0;
}
.hero-bg img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.55;
  filter: grayscale(20%);
}
.hero-bg::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(17,17,17,.25) 0%, rgba(17,17,17,.65) 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero.dark .h-display,
.hero.dark .lead,
.hero.dark .eyebrow.dark { color: #fff; }
.hero.dark .lead { color: rgba(255,255,255,0.78); }
.hero.dark .btn { color: #fff; border-color: rgba(255,255,255,0.6); }
.hero.dark .btn:hover { background: var(--gold); border-color: var(--gold); color: var(--black); }
.hero.dark .btn.primary { background: var(--gold); border-color: var(--gold); color: var(--black); }
.hero.dark .btn.primary:hover { background: #fff; border-color: #fff; color: var(--black); }

.hero h1 { max-width: 18ch; margin-bottom: 28px; }
.hero .lead { max-width: 56ch; margin-bottom: 40px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-scroll {
  position: absolute;
  bottom: 32px; left: 50%; transform: translateX(-50%);
  font-size: 10px; letter-spacing: 0.4em; text-transform: uppercase;
  color: rgba(255,255,255,0.6); z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.hero-scroll .line {
  width: 1px; height: 40px; background: rgba(255,255,255,0.4);
  animation: drop 2s ease-in-out infinite;
}
@keyframes drop {
  0%,100% { transform: scaleY(1); transform-origin: top; }
  50%     { transform: scaleY(0.3); transform-origin: top; }
}

/* Page hero (smaller, used on service pages) */
.hero.page { min-height: 56vh; }
.hero.page h1 { font-size: clamp(40px, 6vw, 68px); }

/* ---------- Section frame ---------- */
.section { padding: var(--section-pad) 0; }
.section.cream { background: var(--cream); }
.section.dark  { background: var(--ink); color: #fff; }
.section.dark .lead { color: rgba(255,255,255,0.78); }
.section.dark .eyebrow.dark { color: #fff; }

.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .divider { margin-left: auto; margin-right: auto; }

/* ---------- Services grid (home) ---------- */
.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.service-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  transition: transform .4s ease, box-shadow .4s ease, border-color .4s ease;
  overflow: hidden;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px -24px rgba(17,17,17,0.18);
  border-color: var(--gold);
}

.service-card .img {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #1a1a1a, #2a2620);
  position: relative;
  overflow: hidden;
}
.service-card .img img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s ease;
}
.service-card:hover .img img { transform: scale(1.05); }

.service-card .body { padding: 32px 28px 36px; flex: 1; display: flex; flex-direction: column; }
.service-card .num {
  font-size: 12px; letter-spacing: 0.3em; color: var(--gold);
  font-weight: 400; margin-bottom: 16px;
}
.service-card h3 { font-size: 24px; margin-bottom: 14px; }
.service-card p  { color: var(--muted); font-size: 15px; line-height: 1.65; margin-bottom: 26px; flex: 1; }
.service-card .link {
  font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--black); border-bottom: 1px solid var(--black);
  padding-bottom: 4px; align-self: flex-start;
  transition: color .25s, border-color .25s;
}
.service-card .link:hover { color: var(--gold); border-color: var(--gold); }

/* ---------- Two-column section ---------- */
.cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
@media (max-width: 860px) { .cols { grid-template-columns: 1fr; } }

.cols .image-block {
  aspect-ratio: 4 / 5;
  background: linear-gradient(135deg, #2a2620, #1a1a1a);
  position: relative;
  overflow: hidden;
}
.cols .image-block img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}

/* ---------- Capabilities (service page) ---------- */
.capabilities {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
}
.capability {
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
.capability .num {
  font-size: 11px; letter-spacing: 0.3em; color: var(--gold);
  font-weight: 400; margin-bottom: 18px; display: block;
}
.capability h4 { font-size: 18px; margin-bottom: 10px; font-weight: 400; }
.capability p { color: var(--muted); font-size: 14.5px; line-height: 1.7; }

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}
.gallery .tile {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #2a2620, #1a1a1a);
}
.gallery .tile img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s ease;
}
.gallery .tile:hover img { transform: scale(1.04); }

.gallery .tile.t1 { grid-column: span 8; aspect-ratio: 16/10; }
.gallery .tile.t2 { grid-column: span 4; aspect-ratio: 4/5; }
.gallery .tile.t3 { grid-column: span 4; aspect-ratio: 4/5; }
.gallery .tile.t4 { grid-column: span 4; aspect-ratio: 4/5; }
.gallery .tile.t5 { grid-column: span 4; aspect-ratio: 4/5; }
.gallery .tile.t6 { grid-column: span 6; aspect-ratio: 16/10; }
.gallery .tile.t7 { grid-column: span 6; aspect-ratio: 16/10; }

@media (max-width: 860px) {
  .gallery .tile { grid-column: span 12 !important; aspect-ratio: 4/3 !important; }
}

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq {
  border-top: 1px solid var(--line);
  padding: 24px 0;
}
.faq:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 18px; font-weight: 400;
  padding-right: 8px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-size: 22px; color: var(--gold);
  margin-left: 24px; transition: transform .3s ease;
}
.faq[open] summary::after { content: "−"; }
.faq p {
  margin-top: 14px; color: var(--muted); font-size: 15.5px; line-height: 1.75;
  max-width: 70ch;
}

/* ---------- Contact section ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(40px, 6vw, 80px);
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-details ul { list-style: none; margin-top: 28px; }
.contact-details li {
  padding: 18px 0;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex; flex-direction: column; gap: 4px;
}
.contact-details li:last-child { border-bottom: 1px solid rgba(255,255,255,0.12); }
.contact-details .k {
  font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--gold); font-weight: 400;
}
.contact-details .v { font-size: 17px; color: #fff; letter-spacing: 0.02em; }
.contact-details .v a:hover { color: var(--gold); }

.form { display: grid; gap: 18px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .form .row { grid-template-columns: 1fr; } }

.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--gold); font-weight: 400;
}
.field input, .field select, .field textarea {
  font: inherit;
  color: #fff;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,0.25);
  padding: 10px 0;
  outline: none;
  transition: border-color .25s ease;
  letter-spacing: 0.02em;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(255,255,255,0.4); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold); }
.field select option { background: var(--ink); color: #fff; }
.field textarea { resize: vertical; min-height: 100px; }

.form .submit { justify-self: start; margin-top: 8px; }
.form-note { font-size: 12px; color: rgba(255,255,255,0.5); margin-top: 6px; }

/* ---------- CTA strip ---------- */
.cta-strip {
  padding: clamp(56px, 8vw, 100px) 0;
  background: var(--cream);
  text-align: center;
}
.cta-strip h2 { font-size: clamp(28px, 4vw, 44px); margin-bottom: 24px; }
.cta-strip .actions { display: inline-flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

/* ---------- Footer ---------- */
.footer {
  background: #0c0c0c;
  color: rgba(255,255,255,0.7);
  padding: 64px 0 28px;
  font-size: 14px;
}
.footer .row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
@media (max-width: 860px) {
  .footer .row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer .row { grid-template-columns: 1fr; }
}
.footer .col h5 {
  font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--gold); font-weight: 400; margin-bottom: 18px;
}
.footer .col ul { list-style: none; display: grid; gap: 10px; }
.footer .col a:hover { color: var(--gold); }
.footer .brand img { height: 48px; width: auto; filter: brightness(0) invert(1); margin-bottom: 20px; }
.footer .brand p { font-size: 14px; line-height: 1.7; max-width: 36ch; color: rgba(255,255,255,0.6); }
.footer .bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}

/* ---------- Utilities ---------- */
.center { text-align: center; }
.hidden { display: none !important; }

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