/* Onyx Digital — minimal dark theme */

:root {
  --bg: #17171a;
  --surface: #1c1c1f;
  --surface-2: #2a2a2e;
  --border: #3d3d42;
  --text: #f2ecdd;
  --muted: #8a8a90;
  --accent: #e8dfc8;
  --accent-soft: rgba(232, 223, 200, 0.12);
  --radius: 14px;
  --max: 1080px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

img {
  max-width: 100%;
  display: block;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* Background glow */
.glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(720px circle at 18% -5%, rgba(232, 223, 200, 0.14), transparent 60%),
    radial-gradient(560px circle at 95% 15%, rgba(232, 223, 200, 0.08), transparent 60%),
    radial-gradient(500px circle at 50% 110%, rgba(232, 223, 200, 0.05), transparent 60%);
  pointer-events: none;
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.nav.scrolled {
  background: rgba(23, 23, 26, 0.8);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
}

.brand-icon {
  height: 30px;
  width: auto;
  flex-shrink: 0;
  display: block;
}

.brand-wordmark {
  height: 19px;
  width: auto;
  flex-shrink: 0;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  color: var(--muted);
}

.nav-links a {
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--text);
}

/* Nav dropdown */
.nav-item {
  position: relative;
}

.dropdown {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 250px;
  background: rgba(28, 28, 31, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(232, 223, 200, 0.06);
  z-index: 60;
}

.dropdown a {
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 13.5px;
}

.dropdown a:hover {
  background: var(--surface-2);
}

.nav-item:hover .dropdown,
.nav-item:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-cta {
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg) !important;
  font-weight: 600;
  font-size: 13px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(232, 223, 200, 0.2);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 22px;
  cursor: pointer;
}

/* Hero */
.hero {
  padding: 120px 24px 90px;
  text-align: center;
}

.hero-logo-lockup {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 36px;
  opacity: 0;
}

.hero-logo-lockup .brand-icon {
  height: 68px;
}

.hero-logo-lockup .brand-wordmark {
  height: 44px;
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  border: 1px solid rgba(232, 223, 200, 0.25);
  background: var(--accent-soft);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 24px;
  opacity: 0;
  box-shadow: 0 0 24px rgba(232, 223, 200, 0.12);
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  max-width: 760px;
  margin: 0 auto 20px;
  opacity: 0;
}

.hero p {
  color: var(--muted);
  font-size: 18px;
  max-width: 520px;
  margin: 0 auto 34px;
  opacity: 0;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
}

.reveal-hero {
  animation: fadeUp 0.7s ease forwards;
}

.reveal-hero:nth-child(2) { animation-delay: 0.08s; }
.reveal-hero:nth-child(3) { animation-delay: 0.16s; }
.reveal-hero:nth-child(4) { animation-delay: 0.24s; }
.reveal-hero:nth-child(5) { animation-delay: 0.32s; }

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid transparent;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--text);
  color: var(--bg);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.btn-primary:hover {
  background: #fbf7ec;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(232, 223, 200, 0.22);
}

.btn-ghost {
  border-color: var(--border);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: rgba(232, 223, 200, 0.4);
  background: var(--surface);
}

/* Sections */
section {
  padding: 90px 0;
}

.section-head {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 56px;
}

.section-tag {
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.section-head p {
  color: var(--muted);
  font-size: 16px;
}

/* Services grid */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  overflow: hidden;
  transition: border-color 0.25s ease, transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.card:hover::before {
  opacity: 1;
}

.badge-new {
  position: absolute;
  top: 18px;
  right: 18px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--bg);
  box-shadow: 0 2px 10px rgba(232, 223, 200, 0.35);
}

.card:hover {
  border-color: #4a4a50;
  background: var(--surface-2);
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(232, 223, 200, 0.06);
}

.card-num {
  font-size: 12px;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.card h3 {
  font-size: 18px;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.card p {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.6;
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* About */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.about p {
  color: var(--muted);
  font-size: 16px;
  margin-bottom: 16px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.tag {
  font-size: 13px;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
}

/* CTA banner */
.cta {
  border: 1px solid var(--border);
  background:
    radial-gradient(600px circle at 50% -20%, rgba(232, 223, 200, 0.10), transparent 60%),
    var(--surface);
  border-radius: 20px;
  padding: 64px 40px;
  text-align: center;
}

.cta h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.cta p {
  color: var(--muted);
  margin-bottom: 30px;
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 60px 0 32px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
}

.footer-brand-blurb {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin-top: 14px;
  max-width: 280px;
}

.footer-col h4 {
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text);
  margin-bottom: 16px;
}

.footer-col a,
.footer-col p {
  display: block;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 11px;
}

.footer-col a:hover {
  color: var(--text);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links {
  display: flex;
  gap: 24px;
  font-size: 14px;
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--text);
}

.copyright {
  font-size: 13px;
  color: var(--muted);
}

/* Breadcrumbs */
.breadcrumbs {
  padding: 130px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.breadcrumbs a:hover {
  color: var(--text);
}

.breadcrumbs .sep {
  margin: 0 6px;
  opacity: 0.5;
}

.breadcrumbs .current {
  color: var(--text);
}

/* Page hero (sub-pages) */
.page-hero {
  padding: 36px 24px 70px;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  max-width: 760px;
  margin: 0 auto 18px;
}

.page-hero p {
  color: var(--muted);
  font-size: 17px;
  max-width: 600px;
  margin: 0 auto;
}

/* Utility grids */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* Process steps */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.process-step .step-num {
  font-size: 32px;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.7;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.process-step h3 {
  font-size: 16px;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.process-step p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

/* Related links */
.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.related-links a {
  font-size: 13px;
  padding: 9px 15px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.related-links a:hover {
  border-color: #4a4a50;
  color: var(--text);
}

/* Portfolio */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.portfolio-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.portfolio-card:hover {
  border-color: #4a4a50;
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(232, 223, 200, 0.06);
}

.portfolio-thumb {
  height: 150px;
  background:
    radial-gradient(240px circle at 30% 20%, var(--accent-soft), transparent 70%),
    var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border);
}

.portfolio-thumb span {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}

.portfolio-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px 24px 26px;
}

.portfolio-body h3 {
  font-size: 16px;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.portfolio-body p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 14px;
}

.portfolio-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 14px;
}

.portfolio-tag {
  display: inline-block;
  font-size: 11.5px;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 999px;
}

.portfolio-discount-tag {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: inline-block;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--bg);
  background: var(--accent);
  padding: 5px 11px;
  border-radius: 999px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 760px;
  margin: 0 auto;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 4px 22px;
}

.faq-item summary {
  cursor: pointer;
  padding: 18px 0;
  font-weight: 600;
  font-size: 15.5px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  color: var(--accent);
  font-size: 20px;
  font-weight: 400;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.6;
  padding-bottom: 18px;
}

/* Contact page */
.contact-page {
  padding: 130px 0 100px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-info h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.contact-info p {
  color: var(--muted);
  font-size: 16px;
  margin-bottom: 28px;
  max-width: 420px;
}

.contact-detail {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 22px;
}

.contact-detail span {
  font-size: 13px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.contact-detail a,
.contact-detail strong {
  font-size: 16px;
  font-weight: 500;
}

.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px;
}

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  transition: border-color 0.2s ease;
  resize: vertical;
}

.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) center, calc(100% - 15px) center;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.field select option {
  background: var(--surface);
  color: var(--text);
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--accent);
}

.form-card .btn {
  width: 100%;
  margin-top: 4px;
}

.form-card .btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.form-status {
  font-size: 13px;
  line-height: 1.5;
}

.form-status:empty {
  display: none;
}

.form-status-success {
  color: var(--accent);
}

.form-status-error {
  color: #e08a72;
}

/* Responsive */
@media (max-width: 800px) {
  .nav-links {
    position: fixed;
    top: 62px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px;
    gap: 18px;
    display: none;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .nav-item {
    position: static;
    width: 100%;
  }

  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 4px 0 0 14px;
    margin-top: 6px;
    min-width: 0;
  }

  .dropdown a {
    padding: 7px 0;
    font-size: 14px;
  }

  .services {
    grid-template-columns: 1fr;
  }

  .about {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  .grid-2,
  .grid-3,
  .process-steps,
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .breadcrumbs {
    padding-top: 100px;
  }
}

@media (max-width: 480px) {
  .footer-top {
    grid-template-columns: 1fr;
  }
}
