/* Bayan Law Firm — static stylesheet
   Reproduces the design tokens of the Lovable/Tailwind source (see src/styles.css). */

:root {
  --radius: 0.25rem;
  --background: oklch(0.955 0.013 315);
  --foreground: oklch(0.245 0 0);
  --card: oklch(0.985 0.006 315);
  --primary: oklch(0.331 0.176 314.5);
  --primary-foreground: oklch(0.985 0.003 90);
  --secondary: oklch(0.925 0.019 315);
  --muted: oklch(0.925 0.019 315);
  --muted-foreground: oklch(0.5 0.015 315);
  --accent: oklch(0.9 0.035 315);
  --accent-foreground: oklch(0.331 0.176 314.5);
  --destructive: oklch(0.577 0.245 27.325);
  --border: oklch(0.88 0.017 315);
  --gold: oklch(0.72 0.13 78);
  --shadow-soft: 0 24px 60px -30px oklch(0.331 0.176 314.5 / 0.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--background);
  color: var(--foreground);
  font-family: "Be Vietnam Pro", ui-sans-serif, system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3 { letter-spacing: -0.03em; margin: 0; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.wrap { flex: 1 0 auto; }

.container {
  max-width: 72rem; /* 6xl */
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
.container-narrow { max-width: 48rem; margin: 0 auto; padding: 0 1.5rem; } /* 3xl */
.container-form { max-width: 42rem; margin: 0 auto; padding: 0 1.5rem; } /* 2xl */

@media (max-width: 640px) {
  .container,
  .container-narrow,
  .container-form,
  .site-header .container,
  .linkedin-strip .container,
  .site-footer .container {
    padding-left: 1.75rem;
    padding-right: 1.75rem;
  }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--border);
  background-color: color-mix(in oklab, var(--background) 85%, transparent);
  backdrop-filter: blur(8px);
}
.site-header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.logo { display: flex; flex-direction: column; line-height: 1; }
.logo .mark { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.04em; color: var(--primary); }
.logo .mark .dot { color: var(--gold); }
.logo .tagline {
  margin-top: 0.25rem;
  font-size: 0.6rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.42em;
  color: var(--muted-foreground);
}
.nav { display: flex; align-items: center; gap: 0.25rem; font-size: 0.875rem; }
.nav a {
  border-radius: var(--radius);
  padding: 0.5rem 0.75rem;
  color: var(--muted-foreground);
  transition: color 0.2s;
}
.nav a:hover { color: var(--foreground); }
.nav a.active { color: var(--foreground); font-weight: 500; background-color: var(--secondary); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: var(--radius);
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition: opacity 0.2s, background-color 0.2s, color 0.2s;
  cursor: pointer;
  border: none;
}
.btn-primary { background-color: var(--primary); color: var(--primary-foreground); }
.btn-primary:hover { opacity: 0.9; }
.btn-outline { background: transparent; border: 1px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background-color: var(--primary); color: var(--primary-foreground); }

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(1rem);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; opacity: 1; transform: none; }
}

/* Hero */
.hero {
  display: grid;
  gap: 3rem;
  align-items: center;
  padding: 2.5rem 0;
}
@media (min-width: 1024px) {
  .hero { grid-template-columns: 1.05fr 0.95fr; gap: 4rem; padding: 2.5rem 0 3.5rem; }
}
.hero h1 {
  font-size: 2.25rem;
  font-weight: 600;
  line-height: 1.05;
}
.hero h1 .accent { display: block; color: var(--primary); }
@media (min-width: 640px) { .hero h1 { font-size: 3rem; } }
@media (min-width: 1024px) { .hero h1 { font-size: 3.75rem; } }
.hero .lead {
  margin-top: 1.75rem;
  max-width: 36rem;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--muted-foreground);
}
.hero .cta-row { margin-top: 2.25rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }

.hero-visual {
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  height: 420px;
}
@media (min-width: 1024px) { .hero-visual { height: 560px; } }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; }
.hero-visual.placeholder {
  background: linear-gradient(135deg, oklch(0.331 0.176 314.5), oklch(0.52 0.19 315));
  display: flex;
  align-items: center;
  justify-content: center;
  color: oklch(0.985 0.003 90 / 0.75);
  font-size: 0.8rem;
  text-align: center;
  padding: 1.5rem;
}

/* Services grid */
.services-section { position: relative; padding: 1.5rem 0 4rem; }
@media (min-width: 1024px) { .services-section { padding: 2rem 0 5rem; } }
.services-section h2 { max-width: 32rem; font-size: 1.875rem; font-weight: 600; }
@media (min-width: 640px) { .services-section h2 { font-size: 2.25rem; } }
.services-grid {
  margin-top: 2.5rem;
  display: grid;
  gap: 1px;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background-color: var(--border);
}
@media (min-width: 768px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }
.service-card {
  background-color: var(--card);
  padding: 2rem;
  transition: background-color 0.3s;
}
@media (min-width: 1024px) { .service-card { padding: 2.5rem; } }
.service-card:hover { background-color: color-mix(in oklab, var(--accent) 40%, transparent); }
.service-card .icon-row { display: flex; align-items: center; gap: 0.75rem; }
.service-icon {
  display: flex; align-items: center; justify-content: center;
  width: 2.5rem; height: 2.5rem;
  border-radius: var(--radius);
  background-color: var(--accent);
  color: var(--accent-foreground);
}
.service-num { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.2em; color: var(--gold); }
.service-card h3 { margin-top: 1.25rem; font-size: 1.125rem; font-weight: 600; }
.service-card p { margin-top: 0.75rem; font-size: 0.875rem; line-height: 1.6; color: var(--muted-foreground); }

/* LinkedIn strip */
.linkedin-strip { position: relative; border-top: 1px solid var(--border); background-color: color-mix(in oklab, var(--secondary) 60%, transparent); }
.linkedin-strip .container {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1.5rem; padding: 3.5rem 1.5rem;
}
.eyebrow { font-size: 0.75rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.22em; color: var(--gold); }
.linkedin-strip h2 { margin-top: 0.75rem; font-size: 1.5rem; font-weight: 600; }

/* Contact teaser */
.contact-teaser { padding: 4rem 0; text-align: center; }
@media (min-width: 1024px) { .contact-teaser { padding: 5rem 0; } }
.contact-teaser h2 { font-size: 1.875rem; font-weight: 600; }
@media (min-width: 640px) { .contact-teaser h2 { font-size: 2.25rem; } }
.contact-teaser .lead { margin: 1.5rem auto 0; max-width: 28rem; color: var(--muted-foreground); }
.contact-teaser .cta-row { margin-top: 2rem; display: flex; justify-content: center; }

/* Generic page hero (About / Insights / Contact / Legal) */
.page-main { padding: 4rem 0; }
@media (min-width: 1024px) { .page-main { padding: 6rem 0; } }
.page-main h1 { font-size: 2.25rem; font-weight: 600; line-height: 1.2; }
@media (min-width: 640px) { .page-main h1 { font-size: 3rem; } }

/* About */
.about-grid { display: grid; gap: 3rem; }
@media (min-width: 1024px) { .about-grid { grid-template-columns: 0.85fr 1.15fr; gap: 4rem; } }
.about-portrait { overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow-soft); height: 420px; }
@media (min-width: 1024px) { .about-portrait { height: 520px; } }
.about-portrait img { width: 100%; height: 100%; object-fit: cover; }
.about-bio { margin-top: 2rem; font-size: 1rem; line-height: 1.6; color: var(--muted-foreground); }
.about-cta { margin-top: 2rem; }

/* Insights */
.insight-card {
  position: relative;
  margin-top: 2rem;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background-color: var(--card);
  padding: 2rem;
}
@media (min-width: 1024px) { .insight-card { padding: 3rem; } }
.insight-card h2 { margin-top: 1rem; font-size: 1.875rem; font-weight: 600; }
@media (min-width: 640px) { .insight-card h2 { font-size: 2.25rem; } }
.insight-card p.body { margin-top: 1.5rem; max-width: 40rem; line-height: 1.6; color: var(--muted-foreground); }
.insight-card .cta-row { margin-top: 2.5rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.insight-card.muted { background-color: color-mix(in oklab, var(--secondary) 60%, transparent); text-align: center; }
.insight-card.muted h2 { font-size: 1.5rem; }
.insight-card.muted p { margin: 0.75rem auto 0; max-width: 36rem; color: var(--muted-foreground); }
.insight-card.muted .cta-row { justify-content: center; margin-top: 1.75rem; }

/* Contact form */
.contact-lead { margin-top: 1.5rem; max-width: 32rem; color: var(--muted-foreground); }
form.contact-form { margin-top: 2.5rem; display: grid; gap: 1.25rem; }
.form-row { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
label { display: block; margin-bottom: 0.5rem; font-size: 0.875rem; font-weight: 500; }
input[type="text"], input[type="email"], textarea {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background-color: var(--background);
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}
input:focus, textarea:focus { border-color: var(--primary); }
.error-text { margin-top: 0.5rem; font-size: 0.75rem; color: var(--destructive); }
.consent-row { display: flex; gap: 0.75rem; font-size: 0.875rem; line-height: 1.6; }
.consent-row input { margin-top: 0.25rem; width: 1rem; height: 1rem; flex-shrink: 0; accent-color: var(--primary); }
.consent-row span { color: var(--muted-foreground); }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.form-note { font-size: 0.875rem; color: var(--muted-foreground); }

/* Legal notice */
.legal-updated { margin-top: 1.5rem; font-size: 0.875rem; color: var(--muted-foreground); }
.legal-sections { margin-top: 3rem; display: grid; gap: 2.5rem; }
.legal-sections h2 { font-size: 1.125rem; font-weight: 600; }
.legal-sections .body {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted-foreground);
  white-space: pre-line;
}
.legal-sections a { color: var(--primary); text-decoration: underline; text-underline-offset: 4px; }
.legal-sections a:hover { opacity: 0.8; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); flex-shrink: 0; }
.site-footer .container {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 2rem 1.5rem;
  font-size: 0.75rem; color: var(--muted-foreground);
}
.footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; }
.footer-links a { display: inline-flex; align-items: center; gap: 0.5rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--foreground); }

/* Icon helper */
.icon { display: inline-block; vertical-align: middle; }

/* 404 (optional use) */
.notfound { min-height: 60vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 2rem; }
