/* ==========================================================================
   DREW MANN — LIGHT AESTHETIC
   Clean, warm, editorial. Inspired by high-end service businesses.
   ========================================================================== */

:root {
  /* Core palette — warm off-white + deep ink + accent purple */
  --bg: #fafaf7;
  --bg-alt: #f4f2ec;
  --bg-dark: #1a1a1d;
  --surface: #ffffff;
  --surface-raised: #ffffff;
  --border: #e8e5dd;
  --border-strong: #d5d0c3;
  --border-ink: rgba(26, 26, 29, 0.08);

  /* Text */
  --ink: #1a1a1d;
  --ink-soft: #34343a;
  --ink-dim: #6a6a72;
  --ink-faint: #9c9c9f;

  /* Accent — refined purple */
  --gold: #7C5CFC;
  --gold-deep: #5B3FD1;
  --gold-light: #9377FF;
  --gold-soft: rgba(124, 92, 252, 0.09);
  --gold-faint: rgba(124, 92, 252, 0.04);
  --gold-glow: rgba(124, 92, 252, 0.28);

  /* Secondary */
  --ink-surface: #1a1a1d;
  --ink-surface-alt: #22222a;

  /* Status */
  --success: #3a7a3a;
  --success-soft: rgba(58, 122, 58, 0.1);

  /* Typography */
  --serif: 'Space Grotesk', -apple-system, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --sans: 'Inter Tight', -apple-system, sans-serif;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-smooth: cubic-bezier(0.45, 0, 0.15, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
*::selection { background: var(--gold); color: white; }

/* Space Grotesk has no true italic — use weight/color contrast on <em> tags instead */
em { font-style: normal; }

html { scroll-behavior: smooth; background-color: #1a1a24; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: inherit; }

/* Tech grid background — breaks up empty white, subtle engineering motif */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(124, 92, 252, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 92, 252, 0.055) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: -1px -1px;
  mask-image: radial-gradient(ellipse 70% 80% at 50% 50%, black 30%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 50%, black 30%, transparent 90%);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3CfeColorMatrix values='0 0 0 0 0.25 0 0 0 0 0.2 0 0 0 0 0.35 0 0 0 0.03 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.5;
}

main, header, footer, nav { position: relative; z-index: 2; }
main { flex: 1; }

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 40px;
}
.container-narrow {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 40px;
}
.container-wide {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ==========================================================================
   TOP UTILITY BAR (like Velvet's phone # strip)
   ========================================================================== */

.topbar {
  background: var(--bg-dark);
  color: #e8e5dd;
  padding: 10px 0;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.05em;
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.topbar-left { display: flex; align-items: center; gap: 20px; }
.topbar-left .item { display: flex; align-items: center; gap: 6px; color: #c8c5bd; }
.topbar-left .item.gold { color: var(--gold-light); }
.topbar-right a {
  text-decoration: none;
  color: var(--gold-light);
  transition: color 0.2s;
}
.topbar-right a:hover { color: white; }

/* ==========================================================================
   NAVIGATION
   ========================================================================== */

nav {
  background: rgba(250, 250, 247, 0.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  padding: 16px 0;
  border-bottom: 1px solid transparent;
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease), padding 0.35s var(--ease);
}
nav.scrolled {
  border-bottom-color: var(--border);
  padding: 12px 0;
  box-shadow: 0 2px 20px rgba(26, 26, 29, 0.04);
}

/* Transparent variant — used on pages that have a dark hero immediately below the nav */
nav.transparent {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom-color: transparent;
  box-shadow: none;
  /* Overlay the hero instead of displacing it */
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
}
nav.transparent .logo-name { color: white; }
nav.transparent .logo-tagline { color: rgba(255, 255, 255, 0.65); }
nav.transparent .nav-links a { color: rgba(255, 255, 255, 0.85); }
nav.transparent .nav-links a:hover { color: var(--gold-light); }
nav.transparent .nav-links a.active { color: var(--gold-light); }
nav.transparent .nav-links a.active::after { background: var(--gold-light); }
nav.transparent .logo-mark {
  background: linear-gradient(135deg, var(--gold-deep), var(--gold-light));
  box-shadow: 0 2px 12px rgba(124, 92, 252, 0.45), inset 0 1px 0 rgba(255,255,255,0.3);
}

/* When transparent nav becomes scrolled, revert to solid state (stays fixed) */
nav.transparent.scrolled {
  background: rgba(250, 250, 247, 0.94);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom-color: var(--border);
  box-shadow: 0 2px 20px rgba(26, 26, 29, 0.04);
}
nav.transparent.scrolled .logo-name { color: var(--ink); }
nav.transparent.scrolled .logo-tagline { color: var(--ink-dim); }
nav.transparent.scrolled .nav-links a { color: var(--ink-soft); }
nav.transparent.scrolled .nav-links a:hover { color: var(--gold-deep); }
nav.transparent.scrolled .nav-links a.active { color: var(--gold-deep); }
nav.transparent.scrolled .nav-links a.active::after { background: var(--gold); }
.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  text-decoration: none;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 12px;
  transition: opacity 0.2s;
}
.logo:hover { opacity: 0.75; }
.logo-mark {
  width: 44px;
  height: 40px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--gold-deep), var(--gold));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: white;
  box-shadow: 0 2px 8px rgba(124, 92, 252, 0.28), inset 0 1px 0 rgba(255,255,255,0.25);
  position: relative;
}
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.logo-name {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.logo-tagline {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--ink-dim);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-top: 3px;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  align-items: center;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
}
.nav-links a {
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.2s;
  position: relative;
  padding: 4px 0;
}
.nav-links a:hover { color: var(--gold-deep); }
.nav-links a.active { color: var(--gold-deep); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--gold);
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
  padding: 16px 32px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--ink);
  color: white;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.05);
}
.btn-primary:hover {
  background: var(--gold-deep);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(184, 147, 74, 0.35);
}

.btn-gold {
  background: var(--gold);
  color: white;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.05);
}
.btn-gold:hover {
  background: var(--gold-deep);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(184, 147, 74, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
}
.btn-outline:hover {
  background: var(--ink);
  color: white;
}

.btn-outline-gold {
  background: transparent;
  color: var(--gold-deep);
  border: 1.5px solid var(--gold);
}
.btn-outline-gold:hover {
  background: var(--gold);
  color: white;
}

.btn-ghost {
  background: transparent;
  color: var(--ink-soft);
  border: none;
  text-transform: uppercase;
  padding: 12px 0;
}
.btn-ghost:hover { color: var(--gold-deep); }

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

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before,
.eyebrow::after {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--gold);
}
.eyebrow.left-only::after { display: none; }
.eyebrow.left-only { justify-content: flex-start; }

.section-title {
  font-family: var(--serif);
  font-size: clamp(40px, 5vw, 62px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: var(--ink);
}
.section-title em {
  font-style: normal;
  color: var(--gold-deep);
  font-weight: 600;
}

.section-sub {
  color: var(--ink-dim);
  font-size: 18px;
  line-height: 1.6;
  margin-top: 20px;
  max-width: 620px;
}

/* Gold divider — like Velvet's ribbon motif */
.divider-gold {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 16px 0 24px;
}
.divider-gold::before,
.divider-gold::after {
  content: "";
  width: 32px;
  height: 1.5px;
  background: var(--gold);
}
.divider-gold span {
  width: 6px; height: 6px;
  background: var(--gold);
  transform: rotate(45deg);
}
.divider-gold.left {
  justify-content: flex-start;
}
.divider-gold.left::before { display: none; }

section {
  padding: 120px 0;
  position: relative;
}
section.tight { padding: 80px 0; }
section.alt { background: var(--bg-alt); }
section.dark { background: var(--bg-dark); color: #e8e5dd; }
section.dark .section-title { color: #fafaf7; }
section.dark .section-title em { color: var(--gold-light); }
section.dark .section-sub { color: #b8b5ad; }
section.dark .eyebrow { color: var(--gold-light); }

/* ==========================================================================
   PAGE HEADER (inner pages) — supports photo background
   ========================================================================== */

.page-header {
  position: relative;
  padding: 120px 0 90px;
  border-bottom: 1px solid var(--border);
  text-align: center;
  overflow: hidden;
  background: var(--bg-alt);
}
.page-header-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.page-header-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.page-header-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(13, 13, 16, 0.92) 0%, rgba(13, 13, 16, 0.82) 60%, rgba(91, 63, 209, 0.4) 100%),
    radial-gradient(ellipse at center, rgba(124, 92, 252, 0.2), transparent 60%);
}
.page-header.has-bg {
  color: white;
  border-bottom: none;
  background: linear-gradient(135deg, #1a1a24 0%, #2a1a45 100%);
}
.page-header.has-bg h1 { color: white; }
.page-header.has-bg h1 em { color: var(--gold-light); }
.page-header.has-bg p { color: rgba(255, 255, 255, 0.78); }
.page-header.has-bg .eyebrow { color: var(--gold-light); justify-content: center; margin-bottom: 24px; }
.page-header.has-bg .eyebrow::before, .page-header.has-bg .eyebrow::after { background: var(--gold-light); }
.page-header > .container, .page-header > .container-narrow { position: relative; z-index: 1; }

.page-header h1 {
  font-family: var(--serif);
  font-size: clamp(44px, 6vw, 72px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 20px;
  color: var(--ink);
}
.page-header h1 em {
  font-style: normal;
  color: var(--gold-deep);
  font-weight: 600;
}
.page-header p {
  color: var(--ink-dim);
  font-size: 18px;
  line-height: 1.55;
  max-width: 640px;
  margin: 0 auto;
}

/* ==========================================================================
   FEATURE BAND — reusable full-bleed image + text (for inner pages)
   ========================================================================== */

.inner-band {
  position: relative;
  min-height: 460px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: white;
  background: linear-gradient(135deg, #1a1a24 0%, #2a1a45 100%);
}
.inner-band-bg { position: absolute; inset: 0; z-index: 0; }
.inner-band-bg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.inner-band-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(13, 13, 16, 0.95) 0%, rgba(13, 13, 16, 0.78) 45%, rgba(13, 13, 16, 0.25) 100%);
}
.inner-band.right .inner-band-bg::after {
  background: linear-gradient(270deg, rgba(13, 13, 16, 0.95) 0%, rgba(13, 13, 16, 0.78) 45%, rgba(13, 13, 16, 0.25) 100%);
}
.inner-band-content {
  position: relative;
  z-index: 1;
  padding: 80px 0;
  max-width: 580px;
}
.inner-band.right .inner-band-content { margin-left: auto; }
.inner-band h2 {
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  color: white;
}
.inner-band h2 em { color: var(--gold-light); font-style: normal; font-weight: 600; }
.inner-band p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.65;
  margin-bottom: 16px;
}
.inner-band p strong { color: white; font-weight: 600; }
.inner-band .eyebrow {
  color: var(--gold-light);
  margin-bottom: 18px;
}
.inner-band .eyebrow::before, .inner-band .eyebrow::after { background: var(--gold-light); }

/* ==========================================================================
   FORM
   ========================================================================== */

form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 44px;
  box-shadow: 0 8px 40px rgba(26, 26, 29, 0.06);
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 10px;
  font-weight: 500;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 14px 16px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  transition: all 0.2s var(--ease);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: white;
  box-shadow: 0 0 0 4px var(--gold-soft);
}
.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235B3FD1' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  padding-right: 44px;
  cursor: pointer;
}
.form-group textarea {
  resize: vertical;
  min-height: 130px;
  line-height: 1.5;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-note {
  font-size: 13px;
  color: var(--ink-faint);
  margin-top: 16px;
  text-align: center;
  font-family: var(--mono);
  letter-spacing: 0.04em;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

footer {
  background: var(--bg-dark);
  color: #c8c5bd;
  padding: 80px 0 32px;
  position: relative;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-brand .footer-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}
.footer-brand .footer-logo-mark {
  width: 48px; height: 44px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--gold-deep), var(--gold));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 16px;
  color: white;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.footer-brand .footer-logo-text {
  display: flex;
  flex-direction: column;
}
.footer-brand .footer-logo-name {
  font-family: var(--serif);
  font-size: 22px;
  color: white;
  letter-spacing: -0.025em;
  font-weight: 600;
}
.footer-brand .footer-logo-tag {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--gold-light);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-top: 2px;
}
.footer-brand p {
  color: #a8a59d;
  font-size: 14px;
  line-height: 1.6;
  max-width: 340px;
}

.footer-col h4 {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 20px;
  font-weight: 600;
}
.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col ul a {
  color: #c8c5bd;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}
.footer-col ul a:hover { color: var(--gold-light); }
.footer-col address {
  color: #c8c5bd;
  font-size: 14px;
  font-style: normal;
  line-height: 1.7;
}

.footer-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 12px;
  color: #8a877f;
  flex-wrap: wrap;
  gap: 16px;
  letter-spacing: 0.05em;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

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

@media (max-width: 900px) {
  .topbar-inner { justify-content: center; }
  .topbar-left { flex-wrap: wrap; justify-content: center; gap: 10px 16px; }
}

/* Tablet + large phones */
@media (max-width: 720px) {
  .container, .container-narrow, .container-wide { padding: 0 20px; }

  /* Topbar — hide secondary items, just show availability */
  .topbar { font-size: 10px; padding: 6px 0; letter-spacing: 0.04em; }
  .topbar-inner { justify-content: center; }
  .topbar-left .item:nth-child(2) { display: none; }
  .topbar-right { display: none; }

  /* Nav — streamline */
  nav { padding: 10px 0; }
  nav.scrolled { padding: 10px 0; }
  .logo-mark { width: 36px; height: 32px; font-size: 13px; }
  .logo-name { font-size: 15px; }
  .logo-tagline { font-size: 8px; letter-spacing: 0.2em; }
  .nav-links { gap: 8px; font-size: 12px; }
  .nav-links li:not(.nav-cta-wrap) a { display: none; }
  .nav-cta-wrap .btn-gold { padding: 8px 14px !important; font-size: 10px !important; letter-spacing: 0.08em !important; }

  section { padding: 56px 0; }
  section.tight { padding: 40px 0; }
  .page-header { padding: 100px 0 56px; }
  .inner-band { min-height: 340px; }
  .inner-band-content { padding: 56px 0; max-width: 100%; }
  .inner-band h2 { font-size: clamp(24px, 6vw, 32px); margin-bottom: 16px; }
  .inner-band p { font-size: 14px; line-height: 1.55; margin-bottom: 12px; }

  form { padding: 24px 18px; }
  .form-row { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 28px; padding-bottom: 32px; margin-bottom: 28px; }
  .footer-meta { flex-direction: column; text-align: center; font-size: 11px; }
  footer { padding: 48px 0 24px; }

  .btn { padding: 14px 24px; font-size: 12px; }
}

/* Phones */
@media (max-width: 480px) {
  .container, .container-narrow, .container-wide { padding: 0 16px; }

  .logo-tagline { display: none; }
  .logo-mark { width: 32px; height: 30px; font-size: 12px; }

  section { padding: 44px 0; }
  section.tight { padding: 32px 0; }

  .eyebrow { font-size: 9px; letter-spacing: 0.2em; margin-bottom: 14px; gap: 8px; }
  .eyebrow::before, .eyebrow::after { width: 16px; }

  .section-title { font-size: clamp(28px, 7vw, 38px) !important; letter-spacing: -0.025em !important; }
  .section-sub { font-size: 15px !important; line-height: 1.55 !important; }

  .page-header { padding: 90px 0 44px; }
  .page-header h1 { font-size: clamp(32px, 9vw, 44px); letter-spacing: -0.03em; }
  .page-header p { font-size: 15px; }
  .inner-band { min-height: 280px; }
  .inner-band-content { padding: 40px 0; }
}
