/* ============================================================
   The Main Sequence — global styles shared across all pages
   Page-specific styles remain in each page's <style> block.
   ============================================================ */

/* RESET & ROOT */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { background: #141210; }

:root {
  --bg:         #141210;
  --bg-card:    #1E2824;
  --pink:       #9E5A35;
  --pink-dim:   rgba(158,90,53,0.12);
  --cream:      #FFFFFF;
  --cream-dim:  rgba(255,255,255,0.5);
  --border-dk:  rgba(255,255,255,0.07);
  --terra:      #9E5A35;
  --blue:       #7BADB8;
  --radius: 2px;
}

body {
  font-family: 'brandon-grotesque', 'Helvetica Neue', Helvetica, sans-serif;
  font-size: 18px;
  line-height: 1.7;
  background: transparent;
  color: var(--cream);
  -webkit-font-smoothing: antialiased;
}

/* SHARED ATOMS */
.sec { padding: 3.5rem 3rem; }
.sec-tight-top { padding-top: 0.875rem; }

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 14px;
  font-weight: 700;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 13px 29px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  background: #C8D47A;
  color: #1A1710;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.28s cubic-bezier(0.22,1,0.36,1), filter 0.28s ease, opacity 0.28s ease;
}
.btn .btn-arrow { display: inline-block; transition: transform 0.25s cubic-bezier(0.22,1,0.36,1); }
.btn:hover .btn-arrow { transform: translateX(1px); }
.btn:hover { transform: translateY(-2px) scale(1.03); filter: brightness(1.08); opacity: 1; }

.tags { display: flex; flex-wrap: wrap; gap: 5px; }
.tag {
  font-size: 14px;
  padding: 3px 9px;
  border: 1px solid rgba(200,212,122,0.28);
  color: #fff;
  border-radius: var(--radius);
  transition: border-color 0.2s ease;
}
.tag:hover { border-color: rgba(200,212,122,0.55); }

/* NAV */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 3rem;
  background: transparent;
  border-bottom: 1px solid transparent;
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
}
nav.scrolled {
  background: rgba(20,18,16,0.90);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--border-dk);
}
.nav-logo { display: flex; align-items: center; gap: 15px; text-decoration: none; }
.nav-logo-mark-wrap { position: relative; display: inline-flex; width: 34px; height: 34px; flex-shrink: 0; }
.nav-logo-mark, .nav-logo-mark-hover { position: absolute; inset: 0; width: 34px; height: 34px; object-fit: contain; transition: opacity 0.28s ease; }
.nav-logo-mark { filter: brightness(0) invert(1); }
.nav-logo-mark-hover { opacity: 0; }
.nav-logo:hover .nav-logo-mark { opacity: 0; }
.nav-logo:hover .nav-logo-mark-hover { opacity: 1; }
.nav-logo-text {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream);
}
.nav-links { display: flex; gap: 28px; list-style: none; align-items: center; }
.nav-links a { text-decoration: none; font-size: 19px; font-weight: 500; color: rgba(255,255,255,0.55); transition: color 0.2s; }
.nav-links a:hover { color: var(--cream); }
.nav-links a.active { color: var(--cream); }
.btn-nav {
  border: 1px solid #C8D47A;
  color: #C8D47A !important;
  background: transparent;
  padding: 9px 20px;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s;
}
.btn-nav:hover { background: #C8D47A !important; color: #000 !important; }

/* MOBILE MENU */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.nav-hamburger span {
  display: block;
  width: 19px;
  height: 2px;
  background: var(--cream);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.nav-mobile {
  display: none;
  position: fixed;
  inset: 0;
  top: 0;
  background: rgba(18,16,14,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 36px;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-size: 32px;
  font-weight: 700;
  color: var(--cream);
  text-decoration: none;
  letter-spacing: 0.02em;
}
.nav-mobile a:hover { color: var(--pink); }
.nav-mobile .btn-nav { font-size: 24px; padding: 12px 32px; }

/* CTA BAND (used on index, work, services) */
.cta-band { padding: 6rem 3rem; text-align: center; background: #C8D47A; position: relative; z-index: 1; }
.cta-card { max-width: 720px; margin: 0 auto; }
.cta-band h2 { font-family: 'calvino', Georgia, serif; font-size: clamp(32px, 4.5vw, 58px); font-weight: 700; color: #1A1710; margin-bottom: 12px; line-height: 1.1; }
.cta-band p { font-size: 22px; color: rgba(26,23,16,0.7); margin-bottom: 32px; max-width: 520px; margin-left: auto; margin-right: auto; line-height: 1.65; }
.cta-band .eyebrow { color: rgba(26,23,16,0.5); }

/* FOOTER */
.site-footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--border-dk);
  background: rgba(18,16,14,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.site-footer-inner { width: 100%; }
.site-footer-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 4.5rem 4.5rem 3rem;
}
.footer-top { display: flex; gap: 64px; }
.footer-brand { min-width: 260px; max-width: 300px; }
.footer-brand-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--cream);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.footer-logo-mark { width: 34px; height: 34px; flex-shrink: 0; }
.footer-brand-desc {
  font-size: 18px;
  color: var(--cream-dim);
  line-height: 1.65;
  margin-bottom: 20px;
}
.footer-social { display: flex; gap: 8px; }
.footer-social a {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border-dk);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cream-dim);
  text-decoration: none;
  font-size: 14px;
  transition: border-color 0.2s, color 0.2s;
}
.footer-social a:hover { border-color: var(--pink); color: var(--pink); }
.footer-links { display: flex; gap: 64px; flex: 1; }
.footer-col h3 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a {
  font-size: 18px;
  color: var(--cream-dim);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--cream); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-dk);
  margin-top: 90px;
  padding-top: 20px;
  font-size: 16px;
  color: rgba(255,255,255,0.25);
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); filter: blur(4px); }
  to   { opacity: 1; transform: translateY(0);   filter: blur(0); }
}
.footer-brand, .footer-col {
  opacity: 0;
  animation: fadeUp 0.7s ease forwards;
}
.footer-brand             { animation-delay: 0.1s; }
.footer-col:nth-child(1)  { animation-delay: 0.15s; }
.footer-col:nth-child(2)  { animation-delay: 0.22s; }
.footer-col:nth-child(3)  { animation-delay: 0.29s; }

/* PAGE FADE VEIL */
#page-veil {
  position: fixed;
  inset: 0;
  background: #141210;
  z-index: 500;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.5s ease;
}

/* RESPONSIVE — nav and footer only; page-specific responsive lives per-page */
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
}
@media (max-width: 900px) {
  .footer-top { flex-direction: column; gap: 32px; }
  .footer-brand { min-width: unset; max-width: unset; }
  .footer-links { flex-wrap: wrap; gap: 32px; }
  .site-footer-content { padding: 3rem 2rem 2rem; }
}
@media (max-width: 640px) {
  nav { padding: 14px 1.25rem; }
  .sec { padding: 2.5rem 1.25rem; }
  .cta-band { padding: 2.5rem 1.25rem; }
  .footer-links { flex-direction: column; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}
