/* =======================================================================
   TALA & TIA — brand stylesheet
   Design tokens + bespoke components that sit on top of Tailwind utilities.
   Palette pulled from the logo: ink black, brushed gold, limestone neutrals.
   ======================================================================= */

:root {
  --ink: #131210;          /* near-black, warm (steel/shadow) */
  --ink-2: #201e1a;        /* secondary dark surface */
  --gold: #a9812a;         /* brushed gold, matches logo pyramid */
  --gold-light: #d7b565;   /* hover / highlight gold */
  --gold-dim: #8a6c26;
  --limestone: #e9e4d8;    /* warm concrete/sand section background */
  --paper: #faf9f6;        /* base off-white */
  --slate: #46443e;        /* body copy on light backgrounds */
  --line: rgba(19, 18, 16, 0.12);
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--paper);
  color: var(--slate);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.font-display {
  font-family: 'Archivo', 'Inter', system-ui, sans-serif;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* Visible keyboard focus ring, brand-colored */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* -----------------------------------------------------------------------
   Brand marks & rules
   ----------------------------------------------------------------------- */
.gold-rule {
  display: inline-block;
  width: 46px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-dim), var(--gold-light));
}

.eyebrow {
  color: var(--gold);
  letter-spacing: 0.02em;
  font-weight: 600;
}

/* -----------------------------------------------------------------------
   Triangular / pyramid motif — recurring structural device echoing the
   logo's "A" pyramid. Used as section dividers and accent shapes instead
   of generic wave SVGs or rounded blobs.
   ----------------------------------------------------------------------- */
.pyramid-divider {
  position: relative;
  height: 64px;
  overflow: hidden;
}
.pyramid-divider svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.clip-pyramid-corner {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 22% 100%);
}

.clip-notch-bl {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 8% 100%, 0 78%);
}

/* Angled panel used behind stat numbers / feature callouts */
.angled-panel {
  clip-path: polygon(0 6%, 100% 0, 100% 94%, 0 100%);
}

/* -----------------------------------------------------------------------
   Buttons
   ----------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.7rem;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}
.btn-gold {
  background: var(--gold);
  color: var(--ink);
}
.btn-gold:hover {
  background: var(--gold-light);
}
.btn-outline-light {
  border: 1.5px solid rgba(250, 249, 246, 0.55);
  color: var(--paper);
}
.btn-outline-light:hover {
  border-color: var(--gold-light);
  color: var(--gold-light);
}
.btn-outline-dark {
  border: 1.5px solid var(--ink);
  color: var(--ink);
}
.btn-outline-dark:hover {
  border-color: var(--gold-dim);
  color: var(--gold-dim);
}

/* -----------------------------------------------------------------------
   Navigation
   ----------------------------------------------------------------------- */
#site-header {
  background: rgba(250, 249, 246, 0.96);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}
#site-header.is-scrolled {
  box-shadow: 0 6px 24px rgba(19, 18, 16, 0.08);
  border-bottom-color: var(--line);
}

.nav-link {
  position: relative;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.94rem;
  padding-bottom: 4px;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--gold);
  transition: right 0.25s ease;
}
.nav-link:hover::after,
.nav-link.is-active::after {
  right: 0;
}
.nav-link.is-active {
  color: var(--gold-dim);
}

/* -----------------------------------------------------------------------
   Cards
   ----------------------------------------------------------------------- */
.service-card {
  background: var(--paper);
  border: 1px solid var(--line);
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.service-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
}

.project-card {
  position: relative;
  overflow: hidden;
  background: var(--ink);
}
.project-card img {
  transition: transform 0.5s ease;
}
.project-card:hover img {
  transform: scale(1.06);
}
.project-card .project-overlay {
  background: linear-gradient(180deg, rgba(19,18,16,0) 40%, rgba(19,18,16,0.92) 100%);
}

/* Filter tabs */
.filter-btn {
  border: 1px solid var(--line);
  color: var(--slate);
  padding: 0.55rem 1.15rem;
  font-size: 0.88rem;
  font-weight: 600;
  transition: all 0.2s ease;
}
.filter-btn.is-active,
.filter-btn:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

/* -----------------------------------------------------------------------
   Stats counters
   ----------------------------------------------------------------------- */
.stat-number {
  font-variant-numeric: tabular-nums;
}

/* -----------------------------------------------------------------------
   Lightbox
   ----------------------------------------------------------------------- */
#lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(10, 9, 8, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.25rem;
}
#lightbox.is-open {
  display: flex;
}
#lightbox img {
  max-width: min(90vw, 1100px);
  max-height: 82vh;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
#lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  color: var(--paper);
  font-size: 1rem;
}

/* -----------------------------------------------------------------------
   Forms
   ----------------------------------------------------------------------- */
.field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.35rem;
  display: inline-block;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 0.75rem 0.9rem;
  font-size: 0.95rem;
  color: var(--ink);
  transition: border-color 0.2s ease;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--gold);
  outline: none;
}

/* -----------------------------------------------------------------------
   Mobile nav drawer
   ----------------------------------------------------------------------- */
#mobile-nav {
  transform: translateX(100%);
  transition: transform 0.3s ease;
}
#mobile-nav.is-open {
  transform: translateX(0);
}

/* Utility: prevent scroll when mobile nav / lightbox open */
body.no-scroll {
  overflow: hidden;
}

/* Fade-up reveal (used sparingly, once per section on load, not per-card) */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
