/* ========================================
   LEGALIST — Personal Lawyer Business Card
   ======================================== */

:root {
  --bg: #0a0e17;
  --bg-elevated: #111827;
  --bg-card: rgba(17,24,39,0.65);
  --border: rgba(255,255,255,0.08);
  --border-hover: rgba(200,164,92,0.35);

  --gold: #C8A45C;
  --gold-light: #e0c078;
  --gold-dim: rgba(200,164,92,0.12);

  --text: #F4F6FB;
  --text-secondary: rgba(244,246,251,0.65);
  --text-muted: rgba(244,246,251,0.40);

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Grain overlay */
body::before {
  content:'';
  position: fixed;
  inset:0;
  z-index: 9999;
  pointer-events: none;
  opacity: .032;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 180px;
}

/* ========== UTILITIES ========== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 100px 0; position: relative; }
.section-header { text-align: center; margin-bottom: 64px; }
.section-header .eyebrow {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 16px;
}
.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--text);
}
.section-header p {
  color: var(--text-secondary);
  margin-top: 16px;
  font-size: 1.05rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: .88rem;
  font-weight: 500;
  letter-spacing: .04em;
  text-decoration: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all .35s var(--ease-out);
  border: none;
  font-family: inherit;
}
.btn-primary {
  background: var(--gold);
  color: var(--bg);
}
.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(200,164,92,.25);
}
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ========== ANIMATIONS ========== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========== HEADER ========== */
.header {
  position: fixed;
  top:0; left:0; right:0;
  z-index: 1000;
  padding: 20px 0;
  transition: background .4s ease, padding .4s ease, box-shadow .4s ease;
}
.header.scrolled {
  background: rgba(10,14,23,.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 14px 0;
  box-shadow: 0 1px 0 var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.logo-mark {
  width: 40px; height: 40px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.logo-mark svg { stroke: var(--gold); stroke-width: 1.5; fill: none; width: 20px; height: 20px; }
.logo-text {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: .04em;
}
.logo-sub {
  font-size: .65rem;
  color: var(--text-muted);
  letter-spacing: .08em;
  text-transform: uppercase;
  display: block;
  margin-top: -2px;
}

.header-phone {
  display: flex;
  align-items: center;
  gap: 20px;
}
.header-phone a {
  color: var(--text);
  text-decoration: none;
  font-size: .95rem;
  font-weight: 500;
  transition: color .3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}
.header-phone a:hover { color: var(--gold); }
.header-phone .btn { padding: 10px 22px; font-size: .8rem; }

.mobile-menu-btn { display: none; background: none; border: none; color: var(--text); cursor: pointer; }

/* ========== HERO ========== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 100px;
  background:
    radial-gradient(ellipse 70% 50% at 50% 30%, rgba(200,164,92,.07) 0%, transparent 70%),
    var(--bg);
}
.hero::after {
  content:'';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 200px;
  background: linear-gradient(to top, var(--bg), transparent);
  pointer-events: none;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--gold);
  margin-bottom: 28px;
}
.hero-badge .dot {
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 50%;
  animation: pulse 2.5s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { opacity:1; transform:scale(1); }
  50% { opacity:.35; transform:scale(1.4); }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: 24px;
}
.hero h1 em {
  color: var(--gold);
  font-style: normal;
}
.hero-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin-bottom: 36px;
}
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.stat-value {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--gold);
  line-height: 1;
}
.stat-label {
  font-size: .78rem;
  color: var(--text-muted);
  margin-top: 8px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

/* Portrait card */
.hero-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 40px;
  backdrop-filter: blur(10px);
  position: relative;
}
.hero-card::before {
  content:'';
  position: absolute;
  top: -1px; left: 40px; right: 40px;
  height: 2px;
  background: var(--gold);
  opacity: .6;
}
.card-name {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
  margin-bottom: 6px;
}
.card-role {
  font-size: .82rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 24px;
}
.card-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: .92rem;
}
.card-row:last-child { border-bottom: none; }
.card-row svg {
  width: 18px; height: 18px;
  stroke: var(--gold);
  stroke-width: 1.5;
  fill: none;
  flex-shrink: 0;
  margin-top: 2px;
}
.card-row .muted { color: var(--text-muted); font-size: .8rem; }

/* ========== EXPERIENCE ========== */
.exp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.exp-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 36px 32px;
  transition: all .4s var(--ease-out);
}
.exp-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}
.exp-card .year {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 12px;
}
.exp-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.exp-card p {
  font-size: .88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ========== WHY ========== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}
.why-card {
  padding: 36px;
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: all .4s var(--ease-out);
}
.why-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-elevated);
}
.why-num {
  font-family: var(--font-display);
  font-size: 2.8rem;
  color: var(--gold);
  opacity: .35;
  line-height: 1;
  margin-bottom: 20px;
}
.why-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 12px;
}
.why-card p {
  font-size: .9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ========== SERVICES & PRICES ========== */
.services-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.service-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 28px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-card);
  transition: all .35s var(--ease-out);
}
.service-item:hover {
  border-color: var(--border-hover);
  transform: translateX(6px);
}
.service-name {
  font-size: .95rem;
  font-weight: 500;
}
.service-desc {
  font-size: .78rem;
  color: var(--text-muted);
  margin-top: 2px;
}
.service-price {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--gold);
  white-space: nowrap;
  flex-shrink: 0;
}
.service-price .free {
  color: #7ecf7e;
  font-size: .9rem;
  font-family: var(--font-body);
  font-weight: 500;
}
.service-price .from {
  font-size: .72rem;
  color: var(--text-muted);
  font-family: var(--font-body);
  margin-right: 4px;
}

/* ========== PROCESS ========== */
.process-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 800px;
  margin: 0 auto;
}
.process-step {
  display: flex;
  gap: 28px;
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.process-step:first-child { padding-top: 0; }
.process-step:last-child { border-bottom: none; }
.process-num {
  width: 48px; height: 48px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--gold);
  flex-shrink: 0;
}
.process-step h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.process-step p {
  font-size: .9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ========== CONTACT ========== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
  align-items: start;
}
.contact-info h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin-bottom: 8px;
}
.contact-info > p {
  color: var(--text-secondary);
  margin-bottom: 36px;
  font-size: .95rem;
}
.contact-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 28px;
}
.contact-icon {
  width: 44px; height: 44px;
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: border-color .3s ease;
}
.contact-row:hover .contact-icon { border-color: var(--gold); }
.contact-icon svg { width: 20px; height: 20px; stroke: var(--gold); stroke-width: 1.5; fill: none; }
.contact-row .label {
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.contact-row .value {
  color: var(--text);
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 500;
  transition: color .3s ease;
}
.contact-row a.value:hover { color: var(--gold); }
.contact-row .sub {
  font-size: .82rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Form */
.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 40px;
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-family: inherit;
  font-size: .95rem;
  outline: none;
  transition: border-color .3s ease, background .3s ease;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--gold);
  background: rgba(255,255,255,.05);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ========== FOOTER ========== */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  text-align: center;
}
.footer p {
  font-size: .82rem;
  color: var(--text-muted);
}
.footer .self-employed {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 6px 14px;
  background: var(--gold-dim);
  border: 1px solid rgba(200,164,92,.2);
  border-radius: 100px;
  font-size: .72rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .08em;
}

/* ========== MOBILE ========== */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-card { order: -1; max-width: 480px; margin: 0 auto; width: 100%; }
  .contact-grid { grid-template-columns: 1fr; }
  .services-wrap { grid-template-columns: 1fr; }
  .header-phone .btn { display: none; }
}

@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .header-phone { display: none; }
  .mobile-menu-btn { display: block; }
  .hero-stats { grid-template-columns: 1fr; gap: 16px; }
  .hero-cta { flex-direction: column; }
  .form-row { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .process-step { gap: 16px; padding: 24px 0; }
  .contact-form { padding: 28px 24px; }
}

/* Mobile nav overlay */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(10,14,23,.98);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s ease;
}
.mobile-nav.open { opacity: 1; pointer-events: all; }
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--text);
  text-decoration: none;
}
.mobile-nav a:hover { color: var(--gold); }
.mobile-nav .close-btn {
  position: absolute;
  top: 20px; right: 24px;
  background: none; border: none; color: var(--text); cursor: pointer;
}
