/* ============================================================
   Atlas Legal — trustworthy light theme
   ============================================================ */

:root {
  color-scheme: light;
  --bg: #f6f4f0;
  --surface: #ffffff;
  --surface-2: #efebe4;
  --border: #e2dcd2;
  --ink: #1d2530;
  --muted: #5f6874;
  --accent: #a67c2e;
  --accent-strong: #8a6423;
  --accent-soft: rgba(166, 124, 46, 0.1);
  --navy: #16202e;
  --radius: 18px;
  --shadow: 0 12px 34px rgba(29, 37, 48, 0.09);
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Inter", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; overflow-x: clip; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.container { width: min(1120px, 92%); margin-inline: auto; }

.reveal {
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: calc(var(--i, 0) * 70ms);
}
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 244, 240, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.nav.scrolled { border-bottom-color: var(--border); box-shadow: 0 6px 24px rgba(29, 37, 48, 0.06); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.logo { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; letter-spacing: 0.02em; }
.logo span { color: var(--accent); font-weight: 600; }

.nav-links { display: flex; align-items: center; gap: 2rem; font-size: 0.93rem; font-weight: 500; }
.nav-links a { color: var(--muted); transition: color 0.2s ease; }
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  background: var(--navy); color: #fff !important;
  padding: 0.55rem 1.2rem; border-radius: 999px; font-weight: 600;
  transition: background 0.2s ease, transform 0.2s ease;
}
.nav-cta:hover { background: var(--accent); transform: translateY(-1px); }

.nav-toggle { display: none; background: none; border: 0; padding: 8px; }
.nav-toggle span {
  display: block; width: 22px; height: 2px; background: var(--ink);
  margin: 5px 0; border-radius: 2px; transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 7rem 0 4.5rem; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; width: 680px; height: 480px;
  top: -200px; right: -140px; border-radius: 50%;
  background: radial-gradient(circle, rgba(166, 124, 46, 0.12), transparent 65%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }

.tag {
  display: inline-block;
  font-size: 0.82rem; font-weight: 600; color: var(--accent-strong);
  background: var(--accent-soft); border: 1px solid rgba(166, 124, 46, 0.3);
  padding: 0.4rem 1rem; border-radius: 999px; margin-bottom: 1.8rem;
}

.hero h1 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.7rem, 6vw, 4.4rem);
  line-height: 1.05; letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
}
.hero h1 em { font-style: italic; color: var(--accent); }

.sub { font-size: 1.13rem; color: var(--muted); max-width: 540px; margin-bottom: 2.2rem; }

.cta-row { display: flex; gap: 0.9rem; flex-wrap: wrap; margin-bottom: 3.5rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 0.85rem 1.7rem; border-radius: 999px;
  font-weight: 600; font-size: 0.97rem; border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.btn-primary { background: var(--navy); color: #fff; box-shadow: 0 8px 24px rgba(22, 32, 46, 0.25); }
.btn-primary:hover { background: var(--accent); transform: translateY(-2px); }
.btn-ghost { background: var(--surface); border-color: var(--border); color: var(--ink); }
.btn-ghost:hover { border-color: var(--navy); transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); }
.btn-outline-light { background: transparent; border-color: rgba(255, 255, 255, 0.5); color: #fff; }
.btn-outline-light:hover { border-color: #fff; transform: translateY(-2px); }

/* ---------- Hero stats ---------- */
.stats {
  display: grid; grid-template-columns: repeat(4, auto); gap: 2.5rem;
  padding-top: 2.2rem; border-top: 1px solid var(--border); max-width: 640px;
}
.stat strong { display: block; font-family: var(--font-display); font-size: 1.7rem; font-weight: 700; color: var(--accent); }
.stat span { font-size: 0.88rem; color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding: 6rem 0; }
.section-alt { background: var(--surface); border-block: 1px solid var(--border); }

.section-head { max-width: 640px; margin-bottom: 3rem; }
.eyebrow {
  font-size: 0.8rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.14em; color: var(--accent); margin-bottom: 0.7rem;
}
.section-head h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.9rem, 3.4vw, 2.6rem); letter-spacing: -0.01em; line-height: 1.1; margin-bottom: 0.8rem;
}
.section-head h2 em { font-style: italic; color: var(--accent); }
.section-sub { color: var(--muted); }

/* ---------- Cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.6rem; }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.9rem; transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.card:hover { transform: translateY(-5px); border-color: rgba(166, 124, 46, 0.5); box-shadow: var(--shadow); }

.icon {
  display: grid; place-items: center;
  width: 3rem; height: 3rem; border-radius: 12px;
  background: var(--accent-soft); color: var(--accent);
  margin-bottom: 1.2rem;
}
.icon svg { width: 1.5rem; height: 1.5rem; }
.card h3 { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; margin-bottom: 0.5rem; }
.card p { font-size: 0.94rem; color: var(--muted); }

/* ---------- Attorneys ---------- */
.attorney { text-align: center; }
.avatar {
  width: 4.5rem; height: 4.5rem; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1.25rem;
  color: #fff; margin: 0 auto 1.1rem;
}
.av-1 { background: linear-gradient(135deg, #16202e, #a67c2e); }
.av-2 { background: linear-gradient(135deg, #24344a, #6b7f99); }
.av-3 { background: linear-gradient(135deg, #8a6423, #d9b25f); }
.attorney .role { color: var(--accent-strong); font-weight: 700; font-size: 0.9rem; margin-bottom: 0.6rem; }

/* ---------- Testimonials ---------- */
.quote { display: flex; flex-direction: column; }
.quote p { font-family: var(--font-display); font-size: 1.05rem; line-height: 1.55; color: var(--ink); flex-grow: 1; }
.quote footer { font-size: 0.88rem; color: var(--muted); margin-top: 1.2rem; }
.quote footer span { color: var(--accent-strong); }

/* ---------- CTA ---------- */
.cta-banner {
  background: var(--navy); color: #fff;
  border-radius: 24px; padding: 4rem 3rem; text-align: center;
}
.cta-banner h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.9rem, 4vw, 2.7rem); letter-spacing: -0.01em; margin-bottom: 0.6rem; }
.cta-banner h2 em { font-style: italic; color: #d9b25f; }
.cta-banner p { color: rgba(255, 255, 255, 0.75); margin-bottom: 1.8rem; }
.cta-actions { display: flex; gap: 0.9rem; justify-content: center; flex-wrap: wrap; }
.cta-note { margin-top: 1.6rem; font-size: 0.85rem; color: rgba(255, 255, 255, 0.55); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 2.6rem 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.footer-legal { font-size: 0.82rem; color: var(--muted); line-height: 1.7; }
.footer-legal a { color: var(--accent); font-weight: 600; }

/* ---------- Mobile ---------- */
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--border);
    padding: 0.6rem 4%; box-shadow: var(--shadow);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.85rem 0; width: 100%; border-bottom: 1px solid var(--border); }
  .nav-links .nav-cta { text-align: center; margin: 0.85rem 0; }

  .hero { padding-top: 5rem; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 1.6rem; }
  .section { padding: 4.5rem 0; }
  .footer-inner { flex-direction: column; text-align: center; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
