/* ==========================================================================
   Azaria Digital — rare by nature
   Dark editorial agency aesthetic
   ========================================================================== */

:root {
  --bg: #0c0b09;
  --bg-soft: #14120e;
  --bg-card: #1a1712;
  --ink: #f4efe6;
  --ink-dim: #a89f90;
  --ink-faint: #6f6759;
  --gold: #d9a441;
  --gold-soft: #e8c37c;
  --line: rgba(244, 239, 230, 0.12);
  --font: "Poppins", -apple-system, BlinkMacSystemFont, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 76px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--gold); color: #17130a; }

.container {
  width: min(1200px, calc(100% - 48px));
  margin-inline: auto;
}

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

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

/* ---- Reveal on scroll --------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   NAV
   ========================================================================== */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  transition: background 0.4s ease, border-color 0.4s ease, backdrop-filter 0.4s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(12, 11, 9, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.nav__logo-mark {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, var(--gold-soft), var(--gold) 55%, #9a6d1f);
  box-shadow: 0 0 18px rgba(217, 164, 65, 0.55);
}
.nav__logo-thin { font-weight: 400; opacity: 0.6; color: var(--ink-dim); }

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav__links a {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-dim);
  transition: color 0.25s ease;
}
.nav__links a:hover { color: var(--gold-soft); }

.nav__cta {
  padding: 10px 20px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  color: var(--gold-soft) !important;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.nav__cta:hover { background: var(--gold); color: #17130a !important; transform: translateY(-1px); }

.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 42px;
  height: 42px;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav__burger span {
  display: block;
  width: 22px;
  height: 2px;
  margin-inline: auto;
  background: var(--ink);
  transition: transform 0.3s var(--ease), opacity 0.3s ease;
}
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero__bg img {
  width: min(110%, 1500px);
  height: auto;
  opacity: 0.5;
  filter: saturate(0.9);
  transform: translateX(12%);
  animation: heroFloat 14s ease-in-out infinite alternate;
}
@keyframes heroFloat {
  from { transform: translateX(12%) scale(1); }
  to   { transform: translateX(6%) scale(1.06); }
}
.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--bg) 0%, rgba(12,11,9,0.72) 38%, rgba(12,11,9,0.15) 75%),
    linear-gradient(0deg, var(--bg) 2%, transparent 30%),
    linear-gradient(180deg, rgba(12,11,9,0.55) 0%, transparent 22%);
}
.hero__content { position: relative; z-index: 2; padding-block: 140px 100px; }

.hero__kicker {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 28px;
}
.hero__title {
  font-family: var(--font);
  font-weight: 400;
  font-size: clamp(4rem, 12vw, 10.5rem);
  line-height: 0.98;
  letter-spacing: -0.015em;
}
.hero__line { display: block; }
.hero__line--thin {
  font-style: normal; letter-spacing: 0.12em; opacity: 0.7;
  font-weight: 400;
  color: var(--gold-soft);
  margin-left: clamp(2rem, 12vw, 12rem);
}
.hero__sub {
  max-width: 460px;
  margin-top: 36px;
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--ink-dim);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 44px; }

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 30px;
  z-index: 2;
  width: 26px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.hero__scroll span {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 3px;
  height: 8px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: var(--gold);
  animation: scrollDot 1.8s var(--ease) infinite;
}
@keyframes scrollDot {
  0%   { transform: translateY(0); opacity: 1; }
  70%  { transform: translateY(16px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ---- Buttons ---------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: transform 0.25s var(--ease), background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary {
  background: var(--gold);
  color: #17130a;
}
.btn--primary:hover { background: var(--gold-soft); }
.btn--ghost {
  border: 1px solid var(--line);
  color: var(--ink);
}
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-soft); }

/* ==========================================================================
   SECTIONS (shared)
   ========================================================================== */
.section { padding-block: 130px; position: relative; }

.index {
  display: inline-block;
  font-family: var(--font);
  font-style: normal; letter-spacing: 0.12em; opacity: 0.7;
  font-size: 0.95rem;
  color: var(--gold);
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}
.index--light { color: var(--gold-soft); }

.section-title {
  font-family: var(--font);
  font-weight: 400;
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.section-sub {
  margin-top: 18px;
  max-width: 520px;
  color: var(--ink-dim);
  font-weight: 400;
}
.section-head { margin-bottom: 72px; }
.section-head--center { text-align: center; }
.section-head--center .section-sub { margin-inline: auto; }

/* ==========================================================================
   ABOUT
   ========================================================================== */
.about { background: var(--bg-soft); border-block: 1px solid var(--line); }
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 72px;
  align-items: start;
}
.about__body .lead {
  font-family: var(--font);
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  font-weight: 400;
  line-height: 1.5;
  margin-bottom: 24px;
}
.about__body .lead strong { font-weight: 500; color: var(--gold-soft); }
.about__body p:last-of-type { color: var(--ink-dim); font-weight: 400; }

.stats {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.stat {
  padding: 22px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.015);
  transition: border-color 0.3s ease, transform 0.3s var(--ease);
}
.stat:hover { border-color: rgba(217, 164, 65, 0.5); transform: translateY(-3px); }
.stat__num {
  display: block;
  font-family: var(--font);
  font-size: 2.6rem;
  font-weight: 400;
  color: var(--gold);
  line-height: 1;
}
.stat__label {
  display: block;
  margin-top: 8px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 72px;
  padding-top: 48px;
  border-top: 1px solid var(--line);
}
.tags li {
  padding: 8px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--ink-dim);
  transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease;
}
.tags li:hover {
  border-color: var(--gold);
  color: var(--gold-soft);
  background: rgba(217, 164, 65, 0.06);
}

/* ==========================================================================
   SERVICES
   ========================================================================== */
.services__list {
  border-top: 1px solid var(--line);
}
.service {
  display: grid;
  grid-template-columns: 90px 1fr minmax(240px, 34%);
  gap: 32px;
  align-items: center;
  padding: 44px 0;
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: background 0.35s ease;
}
.service::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(217,164,65,0.05), transparent 65%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.service:hover::before { opacity: 1; }

.service__num {
  font-family: var(--font);
  font-style: normal; letter-spacing: 0.12em; opacity: 0.7;
  font-size: 1.1rem;
  color: var(--ink-faint);
  transition: color 0.3s ease;
}
.service:hover .service__num { color: var(--gold); }

.service__title {
  font-family: var(--font);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  letter-spacing: -0.01em;
  transition: transform 0.35s var(--ease), color 0.3s ease;
}
.service:hover .service__title { transform: translateX(10px); color: var(--gold-soft); }
.service__desc {
  margin-top: 8px;
  color: var(--ink-dim);
  font-weight: 400;
}
.service__items {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 16px;
}
.service__items li {
  font-size: 0.85rem;
  color: var(--ink-faint);
  letter-spacing: 0.02em;
  position: relative;
  padding-left: 16px;
}
.service__items li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.6;
}
.service__quote {
  font-family: var(--font);
  font-style: normal; letter-spacing: 0.12em; opacity: 0.7;
  font-weight: 400;
  font-size: 1.02rem;
  line-height: 1.5;
  color: var(--ink-dim);
  border-left: 1px solid var(--gold);
  padding-left: 22px;
}

/* ==========================================================================
   MANIFESTO
   ========================================================================== */
.manifesto {
  background:
    radial-gradient(60% 80% at 50% 0%, rgba(217, 164, 65, 0.09) 0%, transparent 70%),
    var(--bg-soft);
  border-block: 1px solid var(--line);
  text-align: center;
}
.manifesto__inner { max-width: 860px; margin-inline: auto; }
.manifesto__quote {
  font-family: var(--font);
  font-weight: 400;
  font-size: clamp(1.7rem, 4.2vw, 3rem);
  line-height: 1.35;
  letter-spacing: -0.01em;
}
.manifesto__quote em { color: var(--gold-soft); }
.manifesto__sign {
  margin-top: 36px;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 900px;
  margin-inline: auto;
}
.contact__card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 36px 32px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--bg-card);
  overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.3s ease;
}
.contact__card:hover { transform: translateY(-4px); border-color: var(--gold); }
.contact__label {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.contact__value {
  font-family: var(--font);
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  font-weight: 400;
  word-break: break-all;
}
.contact__card:hover .contact__value { color: var(--gold-soft); }
.contact__arrow {
  position: absolute;
  right: 28px;
  bottom: 24px;
  font-size: 1.4rem;
  color: var(--gold);
  transform: translateX(-8px);
  opacity: 0;
  transition: transform 0.3s var(--ease), opacity 0.3s ease;
}
.contact__card:hover .contact__arrow { transform: none; opacity: 1; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  border-top: 1px solid var(--line);
  padding: 56px 0;
}
.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}
.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font);
  font-size: 1.1rem;
  font-weight: 600;
}
.footer__tag {
  font-family: var(--font);
  font-style: normal; letter-spacing: 0.12em; opacity: 0.7;
  color: var(--ink-faint);
  font-size: 0.95rem;
}
.footer__copy {
  font-size: 0.8rem;
  color: var(--ink-faint);
  letter-spacing: 0.04em;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 960px) {
  .about__grid { grid-template-columns: 1fr; gap: 48px; }
  .service { grid-template-columns: 60px 1fr; }
  .service__quote { grid-column: 2; margin-top: 20px; }
}

@media (max-width: 760px) {
  :root { --nav-h: 64px; }
  .section { padding-block: 88px; }

  .nav__links {
    position: fixed;
    inset: 0;
    z-index: -1;
    flex-direction: column;
    justify-content: center;
    gap: 36px;
    background: rgba(12, 11, 9, 0.97);
    backdrop-filter: blur(18px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
  }
  .nav__links.is-open { opacity: 1; pointer-events: auto; }
  .nav__links a { font-size: 1.05rem; }
  .nav__burger { display: flex; z-index: 2; position: relative; }

  .hero__content { padding-block: 120px 80px; }
  .hero__bg img { opacity: 0.3; transform: translateX(0) scale(1.15); }
  .hero__line--thin { margin-left: 3rem; }

  .contact__grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats .stat:last-child { grid-column: 1 / -1; }
}

/* ---- Reduced motion ---------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
