/* ============================================================
   PHANTOM FIREWALL — Global Design System
   Tactical Luxury Aesthetic
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;0,700;1,300;1,400&family=Barlow:wght@300;400;500;600&family=Barlow+Condensed:wght@400;500;600;700&display=swap');

/* ─── TOKENS ─────────────────────────────────────────────── */
:root {
  --obsidian:   #0a0b0d;
  --charcoal:   #111318;
  --surface:    #161a20;
  --surface2:   #1d2028;
  --border:     #272d38;
  --border2:    #323848;
  --gold:       #C9A84C;
  --gold-light: #e2c278;
  --gold-dim:   #7a6330;
  --text:       #eef1f6;
  --muted:      #9aa5b8;
  --light:      #ffffff;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Barlow', sans-serif;
  --font-cond:    'Barlow Condensed', sans-serif;

  --max-w: 1200px;
  --nav-h: 72px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ─── RESET ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--obsidian);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ─── HEX MESH BACKGROUND ────────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100'%3E%3Cpath d='M28 66L0 50V17L28 1l28 16v33L28 66zm0-6l22-13V19L28 6 6 19v28l22 13z' fill='none' stroke='%23ffffff' stroke-opacity='0.022' stroke-width='0.5'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

/* ─── LAYOUT ─────────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}
.section { padding: 6rem 0; }
.section-sm { padding: 4rem 0; }

/* ─── NAVIGATION ─────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 9999;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  transition: background 0.4s, border-bottom 0.4s;
}
nav.scrolled {
  background: rgba(10,11,13,0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; gap: 0.7rem; }
.nav-logo-img {
  width: 42px; height: 42px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 0 6px rgba(0, 200, 255, 0.25));
  transition: filter 0.3s;
}
.nav-logo:hover .nav-logo-img {
  filter: drop-shadow(0 0 10px rgba(0, 200, 255, 0.5));
}
.nav-logo-text {
  font-family: var(--font-cond);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--light);
}
.nav-logo-text em { color: var(--gold); font-style: normal; }
.nav-links { display: flex; align-items: center; gap: 2.25rem; list-style: none; }
.nav-links a {
  font-family: var(--font-cond);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
  position: relative;
  padding-bottom: 2px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}
.nav-links a:hover { color: var(--light); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: var(--gold); }
.nav-cta-link {
  font-family: var(--font-cond) !important;
  background: var(--gold);
  color: var(--obsidian) !important;
  padding: 0.5rem 1.35rem !important;
  letter-spacing: 0.15em !important;
  transition: background 0.2s !important;
}
.nav-cta-link::after { display: none !important; }
.nav-cta-link:hover { background: var(--gold-light) !important; color: var(--obsidian) !important; }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 4px; background: none; border: none;
  position: relative; z-index: 999999;
}
.hamburger span { display: block; width: 24px; height: 1px; background: var(--light); transition: all 0.3s; }
.hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-nav {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #0a0b0d;
  z-index: 99999;
  padding: calc(var(--nav-h) + 2rem) 2rem 2rem;
  flex-direction: column;
  gap: 0;
  overflow-y: auto;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  display: block;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-cond);
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
}
.mobile-nav a:first-child { border-top: 1px solid var(--border); }
.mobile-nav a:hover, .mobile-nav a.active { color: var(--gold); }
.mobile-nav a {
  font-family: var(--font-cond);
  font-size: 1.25rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); transition: color 0.2s;
}
.mobile-nav a:hover, .mobile-nav a.active { color: var(--gold); }

/* ─── EYEBROW / SECTION LABEL ────────────────────────────── */
.eyebrow {
  font-family: var(--font-cond);
  font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--gold);
  display: flex; align-items: center; gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.eyebrow::before {
  content: '';
  display: block; width: 28px; height: 1px;
  background: var(--gold); flex-shrink: 0;
}

/* ─── TYPOGRAPHY ─────────────────────────────────────────── */
.display-xl {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 300; line-height: 1.04;
  letter-spacing: -0.01em; color: var(--light);
}
.display-xl em { font-style: italic; color: var(--gold); }
.display-lg {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 300; line-height: 1.1; color: var(--light);
}
.display-lg em { font-style: italic; color: var(--gold); }
.display-md {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 400; line-height: 1.25; color: var(--light);
}
.lead {
  font-size: 1.05rem; font-weight: 300;
  color: var(--muted); line-height: 1.75; max-width: 620px;
}
.divider {
  width: 100%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--border2) 40%, var(--border2) 60%, transparent);
}

/* ─── BUTTONS ────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.75rem;
  font-family: var(--font-cond); font-size: 0.78rem;
  font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--obsidian); background: var(--gold);
  padding: 1rem 2.5rem; border: none; cursor: pointer;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  transition: background 0.2s, transform 0.2s;
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 0.75rem;
  font-family: var(--font-cond); font-size: 0.78rem;
  font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold); background: transparent;
  padding: 1rem 2.5rem; border: 1px solid var(--gold-dim); cursor: pointer;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  transition: border-color 0.2s, color 0.2s, transform 0.2s;
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-light); transform: translateY(-2px); }
.btn-arrow {
  display: inline-block; width: 18px; height: 1px;
  background: currentColor; position: relative; transition: width 0.25s;
}
.btn-arrow::after {
  content: ''; position: absolute;
  right: 0; top: -3px; width: 7px; height: 7px;
  border-right: 1px solid currentColor; border-top: 1px solid currentColor;
  transform: rotate(45deg);
}
.btn-primary:hover .btn-arrow,
.btn-ghost:hover .btn-arrow { width: 28px; }

/* ─── CARDS ──────────────────────────────────────────────── */
.line-card {
  border: 1px solid var(--border);
  border-top: 2px solid var(--gold);
  background: var(--surface);
  padding: 2rem 2rem 2.25rem;
  transition: border-color 0.3s, transform 0.3s, background 0.3s;
  position: relative; overflow: hidden;
}
.line-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 100%; background: linear-gradient(135deg, rgba(201,168,76,0.04) 0%, transparent 50%);
  opacity: 0; transition: opacity 0.3s;
}
.line-card:hover { border-top-color: var(--gold-light); transform: translateY(-4px); background: var(--surface2); }
.line-card:hover::before { opacity: 1; }

/* ─── PAGE HERO SPACER ───────────────────────────────────── */
.page-top { padding-top: calc(var(--nav-h) + 5rem); }

/* ─── FOOTER ─────────────────────────────────────────────── */
footer {
  background: var(--charcoal);
  border-top: 1px solid var(--border);
  padding: 4.5rem 0 2rem;
  position: relative; z-index: 1;
}
footer::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-dim) 30%, var(--gold) 50%, var(--gold-dim) 70%, transparent);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  gap: 3rem; margin-bottom: 3.5rem;
}
.footer-brand-desc {
  font-size: 0.85rem; color: var(--muted);
  line-height: 1.75; margin-top: 1rem; max-width: 260px;
}
.footer-col h4 {
  font-family: var(--font-cond); font-size: 0.68rem;
  font-weight: 600; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1.25rem;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.65rem; }
.footer-col ul a { font-size: 0.85rem; color: var(--muted); transition: color 0.2s; }
.footer-col ul a:hover { color: var(--light); }
.footer-contact-item { display: flex; flex-direction: column; gap: 0.25rem; margin-bottom: 0.9rem; }
.footer-contact-label {
  font-family: var(--font-cond); font-size: 0.62rem;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted);
}
.footer-contact-value { font-size: 0.88rem; color: var(--light); }
.footer-contact-value a { color: var(--gold); transition: color 0.2s; }
.footer-contact-value a:hover { color: var(--gold-light); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.75rem;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
}
.footer-bottom p { font-family: var(--font-cond); font-size: 0.68rem; letter-spacing: 0.1em; color: var(--muted); }
.footer-tagline { font-family: var(--font-display); font-style: italic; font-size: 0.9rem; color: var(--gold-dim); }

/* ─── ANIMATIONS ─────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}
.anim-fade-up { animation: fadeUp 0.85s var(--ease-out) both; }
.anim-delay-1 { animation-delay: 0.1s; }
.anim-delay-2 { animation-delay: 0.22s; }
.anim-delay-3 { animation-delay: 0.36s; }
.anim-delay-4 { animation-delay: 0.5s; }
.anim-delay-5 { animation-delay: 0.64s; }

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .section { padding: 4rem 0; }
}
@media (max-width: 600px) {
  .container { padding: 0 1.25rem; }
  .footer-grid { grid-template-columns: 1fr; }
}
