/* ============================================================
   PXO — Phoenix Online Studio
   Static site stylesheet: assets/css/main.css
   ============================================================ */

/* ---------- TOKENS ---------- */
:root {
  --paper: #faf8f4;
  --ink: #1a1d21;
  --accent: #c9a24a;
  --accent-soft: #d4af64;
  --muted: #6b7280;
  --line: #e5e1d8;
  --radius: 8px;
  --serif: 'Fraunces', 'Georgia', 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --max: 1120px;
  --nav-h: 64px;
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; border-bottom: 1px solid var(--accent); transition: color .2s, border-color .2s; }
a:hover { color: var(--ink); border-bottom-color: var(--ink); }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 { font-family: var(--serif); font-weight: 700; color: var(--ink); letter-spacing: -0.01em; line-height: 1.2; }
h1 { font-size: clamp(36px, 5vw, 56px); }
h2 { font-size: clamp(28px, 3.5vw, 40px); margin-bottom: 16px; }
h3 { font-size: clamp(20px, 2.5vw, 26px); margin-bottom: 12px; }
h4 { font-size: 14px; text-transform: uppercase; letter-spacing: 0.14em; font-family: var(--sans); font-weight: 700; color: var(--accent); margin-bottom: 10px; }
p { margin-bottom: 16px; color: var(--ink); }
.text-lead { font-size: 20px; line-height: 1.55; font-family: var(--serif); }

/* ---------- LAYOUT ---------- */
.container { max-width: var(--max); margin: 0 auto; padding: 0 48px; }
.section { padding: 80px 0; border-top: 1px solid var(--line); }
.section:first-of-type { border-top: 0; padding-top: 0; }
.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 16px;
}

/* ---------- NAV ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 244, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
  height: var(--nav-h);
}
.site-nav .nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 48px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-brand {
  font-family: var(--serif);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--ink);
  border-bottom: 0;
  white-space: nowrap;
}
.nav-brand span { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  border-bottom: 0;
  padding: 4px 0;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width .25s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--ink);
  color: #fff !important;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  border-bottom: 0 !important;
  transition: background .2s;
}
.nav-cta:hover { background: var(--accent); color: #fff !important; }
.nav-cta::after { display: none !important; }

.nav-toggle { display: none; background: 0; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; transition: .3s; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 16px 24px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-links a::after { display: none; }
  .nav-cta { text-align: center; margin-top: 8px; }
  .container { padding: 0 24px; }
}

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.6);
  padding: 64px 0 32px;
  font-size: 14px;
}
.site-footer .footer-inner { max-width: var(--max); margin: 0 auto; padding: 0 48px; }
.site-footer .footer-brand { font-family: var(--serif); font-weight: 800; font-size: 20px; color: #fff; margin-bottom: 8px; }
.site-footer .footer-brand span { color: var(--accent); }
.site-footer .footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.site-footer h5 { font-family: var(--sans); font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--accent); margin-bottom: 14px; font-weight: 700; }
.site-footer a { color: rgba(255,255,255,0.7); border-bottom-color: rgba(255,255,255,0.3); }
.site-footer a:hover { color: #fff; border-bottom-color: #fff; }
.site-footer .footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; font-size: 12px; color: rgba(255,255,255,0.4); }
@media (max-width: 720px) {
  .site-footer .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .site-footer .footer-inner { padding: 0 24px; }
}

/* ---------- COMPONENTS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 0;
  cursor: pointer;
  transition: transform .15s, box-shadow .2s, background .2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--accent); color: #fff; }
.btn-gold { background: var(--accent); color: #fff; }
.btn-gold:hover { background: var(--accent-soft); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: 8px 16px; font-size: 12px; }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color .2s, box-shadow .2s;
}
.card:hover { border-color: var(--accent); box-shadow: 0 4px 20px rgba(0,0,0,0.04); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 860px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* Hero sections — dark with grid pattern */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
  padding: 96px 0 80px;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.06;
  background-image:
    linear-gradient(to right, var(--paper) 1px, transparent 1px),
    linear-gradient(to bottom, var(--paper) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 400px;
  background: radial-gradient(closest-side, var(--accent), transparent);
  opacity: 0.25;
  filter: blur(80px);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; }
.hero h1, .hero h2, .hero h3 { color: var(--paper); }
.hero h1 { max-width: 840px; margin: 0 auto 20px; }
.hero .lead { max-width: 640px; margin: 0 auto 32px; color: rgba(250,248,244,0.7); }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.callout {
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  padding: 36px 40px;
  margin: 32px 0;
}
.callout h3 { color: #fff; margin-top: 0; }
.callout p { color: rgba(255,255,255,0.85); margin-bottom: 0; }
.callout .accent { color: var(--accent); }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 32px 0; }
.stat { text-align: center; padding: 24px; }
.stat .k { font-family: var(--serif); font-size: 32px; font-weight: 700; color: var(--ink); line-height: 1.1; }
.stat .k small { font-size: 16px; color: var(--muted); font-weight: 500; margin-left: 6px; }
.stat .l { font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); margin-top: 8px; font-weight: 700; }
@media (max-width: 720px) { .stat-grid { grid-template-columns: 1fr 1fr; } }

/* Bento grid */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.bento-featured { grid-column: span 12; }
.bento-medium { grid-column: span 12; }
.bento-small { grid-column: span 12; }
@media (min-width: 640px) {
  .bento-medium { grid-column: span 6; }
  .bento-small { grid-column: span 6; }
}
@media (min-width: 860px) {
  .bento-featured { grid-column: span 8; }
  .bento-medium { grid-column: span 4; }
  .bento-small { grid-column: span 4; }
}
.bento-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.bento-card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 30px rgba(0,0,0,0.06);
  transform: translateY(-2px);
}

/* Pillars / service cards */
.pillar-card {
  position: relative;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.pillar-card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 30px rgba(0,0,0,0.06);
  transform: translateY(-2px);
}
.pillar-card .glow {
  position: absolute;
  right: -40px;
  top: -40px;
  width: 160px;
  height: 160px;
  background: radial-gradient(closest-side, var(--accent), transparent);
  opacity: 0;
  filter: blur(40px);
  transition: opacity .5s;
  pointer-events: none;
}
.pillar-card:hover .glow { opacity: 0.5; }

/* Process steps */
.process-step {
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
.process-step .step-num {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}

/* Marquee */
.marquee-wrap {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  padding: 20px 0;
}
.marquee-track {
  display: flex;
  gap: 48px;
  animation: marquee 30s linear infinite;
  width: max-content;
}
.marquee-track span {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  opacity: 0.7;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Fade-up on scroll */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Accent divider */
.accent-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--accent), transparent);
  opacity: 0.4;
}

/* ---------- FORMS ---------- */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--ink); }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  background: var(--paper);
  transition: border-color .2s, box-shadow .2s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: 0;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(201, 162, 74, 0.15);
}
.form-group textarea { min-height: 120px; resize: vertical; }

/* ---------- PRINT ---------- */
@media print {
  .site-nav, .site-footer, .no-print { display: none !important; }
  body { background: #fff; color: #000; }
  .section { page-break-inside: avoid; }
  a { color: inherit; text-decoration: none; border-bottom: 0; }
}
