/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --color-primary:    #1a1a1a;
  --color-accent:     #2251ff;
  --color-text:       #1a1a1a;
  --color-muted:      #6b6b6b;
  --color-bg:         #ffffff;
  --color-bg-light:   #f4f4f4;
  --color-border:     #e0e0e0;
  --color-dark:       #000000;

  --font-heading: 'Playfair Display', 'Georgia', serif;
  --font-body:    'Inter', 'Helvetica Neue', Arial, sans-serif;

  --max-width: 1200px;
  --section-padding: 96px 24px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a  { color: inherit; text-decoration: none; }

/* ===== LAYOUT ===== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
}

/* ===== NAV ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #ffffff;
  border-bottom: 1px solid transparent;
  padding: 0 40px;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.nav--scrolled {
  border-bottom-color: rgba(0,0,0,0.07);
  box-shadow: 0 2px 16px rgba(0,0,0,0.05);
}

.nav__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav__logo {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--color-dark);
  letter-spacing: -0.01em;
  font-weight: 700;
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.nav__logo-line > span { color: var(--color-accent); }

.nav__logo small {
  font-family: var(--font-body);
  font-size: 0.5rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.nav__links {
  display: flex;
  gap: 40px;
  list-style: none;
  align-items: center;
}

.nav__links a {
  color: var(--color-text);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  transition: color 0.2s;
  position: relative;
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-accent);
  transform: scaleX(0);
  transition: transform 0.2s;
}

.nav__links a:hover { color: var(--color-accent); }
.nav__links a:hover::after { transform: scaleX(1); }

.nav__cta {
  background: var(--color-accent) !important;
  color: #ffffff !important;
  padding: 7px 18px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1.5px solid var(--color-accent);
  border-radius: 2px;
}

.nav__cta::after { display: none; }
.nav__cta:hover { opacity: 0.88; color: #ffffff !important; }

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-dark);
  transition: all 0.3s;
}

/* ===== HERO ===== */
.hero {
  background-image: url('../images/hero-bg.jpg');
  background-size: cover;
  background-position: center center;
  color: #ffffff;
  padding: 120px 40px 100px;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,20,40,0.50) 0%, rgba(10,20,40,0.35) 100%);
  z-index: 0;
}

.hero > * { position: relative; z-index: 1; }

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #ffffff;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero__eyebrow::before,
.hero__eyebrow::after {
  content: '';
  display: block;
  width: 32px;
  height: 1.5px;
  background: #ffffff;
  flex-shrink: 0;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 5.5vw, 4.5rem);
  line-height: 1.1;
  max-width: 820px;
  margin: 0 auto 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero__subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.65);
  max-width: 580px;
  margin: 0 auto 48px;
  line-height: 1.8;
}

.hero__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  font-family: var(--font-body);
}

.btn--primary  { background: var(--color-accent); color: #ffffff; }
.btn--primary:hover { background: #1a3fd4; }

.btn--outline {
  background: transparent;
  color: #ffffff;
  border: 1.5px solid rgba(255,255,255,0.4);
}
.btn--outline:hover { border-color: #ffffff; background: rgba(255,255,255,0.08); }

.btn--dark  { background: var(--color-dark); color: #ffffff; }
.btn--dark:hover { background: #333; }

.btn--white { background: #ffffff; color: var(--color-accent); font-weight: 700; }
.btn--white:hover { background: #e8eeff; }

.btn--outline-white {
  background: transparent;
  color: #ffffff;
  border: 1.5px solid rgba(255,255,255,0.5);
}
.btn--outline-white:hover { border-color: #ffffff; background: rgba(255,255,255,0.1); }

/* ===== SECTION LABELS ===== */
.section-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 14px;
  font-weight: 600;
}

.section-label::before,
.section-label::after {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-accent);
  flex-shrink: 0;
}

/* ===== SECTION TITLES ===== */
.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  line-height: 1.25;
  color: var(--color-dark);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.section-body {
  font-size: 1rem;
  color: var(--color-muted);
  max-width: 560px;
  line-height: 1.8;
}

/* ===== SECTION DIVIDER ===== */
.section-divider {
  width: 48px;
  height: 2px;
  background: var(--color-accent);
  margin: 0 auto 40px;
}

/* ===== SERVICES ===== */
.services {
  padding: var(--section-padding);
  background: var(--color-bg);
}

.services__header {
  margin-bottom: 64px;
  text-align: center;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.services__header .section-label { justify-content: center; }
.services__header .section-body  { margin: 0 auto; }

.services__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
}

.service-card {
  padding: 44px 40px;
  border-bottom: 1px solid var(--color-border);
  border-right: 1px solid var(--color-border);
  transition: background 0.2s, box-shadow 0.2s;
  position: relative;
}

.service-card:nth-child(2n) { border-right: none; }
.service-card:nth-last-child(-n+2) { border-bottom: none; }

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px;
  height: 0;
  background: var(--color-accent);
  transition: height 0.3s;
}

.service-card:hover::before { height: 100%; }
.service-card:hover {
  background: #fafafa;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.service-card__title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--color-dark);
  margin-bottom: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  border-left: 2px solid var(--color-accent);
  padding-left: 20px;
}

.service-card__body {
  font-size: 0.9rem;
  color: var(--color-muted);
  line-height: 1.75;
  margin-bottom: 24px;
}

.card-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-accent);
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s;
}

.card-link:hover { gap: 10px; }

/* ===== WHY US ===== */
.why {
  padding: var(--section-padding);
  background-image: url('https://images.unsplash.com/photo-1497366216548-37526070297c?w=1920&q=80');
  background-size: cover;
  background-position: center;
  position: relative;
}

.why::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(248, 247, 244, 0.96);
  z-index: 0;
}

.why .container { position: relative; z-index: 1; }

.why .section-title { color: var(--color-dark); }
.why .section-body  { color: var(--color-muted); }

.why__header {
  text-align: center;
  margin-bottom: 56px;
}

.why__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: center;
}

.why__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.stat {
  padding: 20px 24px 24px;
  border-top: 1px solid var(--color-border);
}

.stat__number {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: 10px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.stat__label {
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--color-muted);
  line-height: 1.5;
}

/* ===== PROCESS ===== */
.process {
  padding: var(--section-padding);
  background: var(--color-bg-light);
}

.process__header {
  text-align: center;
  margin-bottom: 64px;
}

.process__steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
}

.step {
  padding: 36px 28px;
  border-right: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
}

.step:last-child { border-right: none; }

.step__number {
  font-family: var(--font-heading);
  font-size: 4rem;
  color: var(--color-accent);
  line-height: 1;
  font-weight: 700;
  opacity: 0.18;
  position: absolute;
  top: 16px;
  left: 16px;
  margin-bottom: 0;
  pointer-events: none;
}

.step__title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-dark);
  margin-bottom: 12px;
  line-height: 1.4;
  position: relative;
  z-index: 1;
  margin-top: 60px;
}

.step__body {
  font-size: 0.85rem;
  color: var(--color-muted);
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

/* ===== CTA BANNER ===== */
.cta-banner {
  background-image: url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?w=1920&q=80');
  background-size: cover;
  background-position: center;
  color: #ffffff;
  padding: 96px 40px;
  text-align: center;
  position: relative;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,20,40,0.92) 0%, rgba(10,20,40,0.82) 100%);
  z-index: 0;
}

.cta-banner .container { position: relative; z-index: 1; }

.cta-banner .section-label { color: rgba(255,255,255,0.7); }
.cta-banner .section-label::before,
.cta-banner .section-label::after { background: rgba(255,255,255,0.5); }
.cta-banner .section-label,
.cta-banner .section-body { justify-content: center; }
.cta-banner .section-title { color: #ffffff; margin-bottom: 20px; }
.cta-banner .section-body  { color: rgba(255,255,255,0.75); margin: 0 auto 40px; }

/* ===== MEDIA THUMBNAILS ===== */
.media-thumb {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 3px;
  flex-shrink: 0;
  border: 1px solid var(--color-border);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--color-dark);
  color: rgba(255,255,255,0.45);
  padding: 64px 40px 40px;
}

.footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 64px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  margin-bottom: 32px;
}

.footer__brand .nav__logo {
  font-size: 1.2rem;
  margin-bottom: 16px;
  display: flex;
  color: #ffffff;
}
.footer__brand .nav__logo .nav__logo-line > span { color: rgba(255,255,255,0.85); }
.footer__brand .nav__logo small { color: rgba(255,255,255,0.45); }

.footer__brand p { font-size: 0.85rem; max-width: 260px; line-height: 1.7; }

.footer__col h4 {
  color: #ffffff;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 20px;
  font-weight: 600;
}

.footer__col ul { list-style: none; }
.footer__col li { margin-bottom: 12px; }
.footer__col a { font-size: 0.875rem; transition: color 0.2s; }
.footer__col a:hover { color: #ffffff; }

.footer__bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.8rem;
}

/* ===== PRACTICES SECTION (homepage) ===== */
.practices {
  padding: var(--section-padding);
  background: var(--color-bg-light);
}

.practices__header {
  text-align: center;
  margin-bottom: 64px;
}

.practices__header .section-body { margin: 0 auto; }

.practices__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
}

.practice-card {
  padding: 32px 24px;
  border-right: 1px solid var(--color-border);
  border-top: 3px solid var(--color-accent);
  background: var(--color-bg);
  transition: background 0.2s;
  text-decoration: none;
  display: flex;
  flex-direction: column;
}

.practice-card:last-child { border-right: none; }

.practice-card:hover { background: #f0f3ff; }

.practice-card__title {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--color-dark);
  margin-bottom: 10px;
  font-weight: 700;
  line-height: 1.35;
}

.practice-card__body {
  font-size: 0.85rem;
  color: var(--color-muted);
  line-height: 1.65;
  flex: 1;
}

.practice-card__link {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-accent);
  letter-spacing: 0.05em;
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s;
}

.practice-card:hover .practice-card__link { gap: 8px; }

/* ===== VERTICAL PAGE HERO ===== */
.vertical-hero {
  background: var(--color-primary);
  color: #ffffff;
  padding: 64px 40px 60px;
  text-align: center;
}

.vertical-hero .section-label { color: rgba(255,255,255,0.6); }
.vertical-hero .section-label::before,
.vertical-hero .section-label::after { background: rgba(255,255,255,0.4); }
.vertical-hero .section-title { color: #ffffff; max-width: 760px; margin: 0 auto 20px; }
.vertical-hero .section-body  { color: rgba(255,255,255,0.65); margin: 0 auto 40px; max-width: 580px; }

.vertical-hero__positioning {
  font-size: 1rem;
  color: rgba(255,255,255,0.5);
  font-style: italic;
  margin-top: 12px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== FOCUS SECTION ===== */
.focus-section {
  padding: var(--section-padding);
  background: var(--color-bg);
}

.focus-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}

.focus-col h3, .roles-col h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--color-primary);
  margin-bottom: 20px;
  font-weight: 700;
  border-left: 2px solid var(--color-accent);
  padding-left: 14px;
}

.focus-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.focus-tag {
  font-size: 0.8rem;
  color: var(--color-primary);
  background: var(--color-bg-light);
  border: 1px solid var(--color-border);
  padding: 6px 14px;
  font-weight: 500;
}

.role-groups { display: flex; flex-direction: column; gap: 24px; }

.role-group h4 {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 10px;
}

.role-items { display: flex; flex-wrap: wrap; gap: 8px; }

.role-item {
  font-size: 0.82rem;
  color: var(--color-primary);
  background: var(--color-bg-light);
  border: 1px solid var(--color-border);
  padding: 5px 12px;
}

/* ===== WHY BRIEF (vertical pages) ===== */
.why-brief {
  padding: var(--section-padding);
  background: var(--color-bg-light);
}

.why-brief__header { text-align: center; margin-bottom: 48px; }

.why-brief__points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.why-brief__point {
  padding: 32px 28px;
  border-right: 1px solid var(--color-border);
  border-top: 3px solid var(--color-accent);
  background: var(--color-bg);
}

.why-brief__point:last-child { border-right: none; }

.why-brief__point h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--color-dark);
  margin-bottom: 10px;
  font-weight: 700;
}

.why-brief__point p {
  font-size: 0.875rem;
  color: var(--color-muted);
  line-height: 1.75;
}

/* ===== OTHER PRACTICES (vertical pages) ===== */
.other-practices {
  padding: var(--section-padding);
  background: var(--color-bg);
}

.other-practices__header { text-align: center; margin-bottom: 48px; }

.other-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.other-card {
  padding: 28px 24px;
  border-right: 1px solid var(--color-border);
  border-top: 2px solid var(--color-border);
  text-decoration: none;
  transition: background 0.2s;
  display: block;
  color: inherit;
}

.other-card:last-child { border-right: none; }
.other-card:hover { background: var(--color-bg-light); }

.other-card__label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 8px;
}

.other-card__title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  color: var(--color-dark);
  line-height: 1.35;
  font-weight: 700;
  margin-bottom: 8px;
}

.other-card__link {
  font-size: 0.78rem;
  color: var(--color-muted);
  font-weight: 500;
  transition: color 0.2s;
}

.other-card:hover .other-card__link { color: var(--color-accent); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .process__steps { grid-template-columns: repeat(3, 1fr); }
  .step:nth-child(3) { border-right: none; }
  .step:nth-child(4) { border-top: 1px solid var(--color-border); }
  .step:nth-child(5) { border-top: 1px solid var(--color-border); border-right: none; }
  .practices__grid { grid-template-columns: repeat(3, 1fr); }
  .practice-card:nth-child(3) { border-right: none; }
  .practice-card:nth-child(4), .practice-card:nth-child(5) { border-top: none; border-bottom: 1px solid var(--color-border); }
  .practice-card:nth-child(5) { border-right: none; }
  .why-brief__points { grid-template-columns: 1fr; }
  .why-brief__point { border-right: none; border-top: none; border-bottom: 1px solid var(--color-border); }
  .why-brief__point:first-child { border-top: 3px solid var(--color-accent); }
  .other-cards { grid-template-columns: repeat(2, 1fr); }
  .other-card:nth-child(2n) { border-right: none; }
  .other-card:nth-child(3), .other-card:nth-child(4) { border-top: 1px solid var(--color-border); }
}

@media (max-width: 768px) {
  :root { --section-padding: 64px 0; }
  .container { padding: 0 20px; }
  .nav { padding: 0 20px; }
  .nav__links { display: none; }
  .nav__hamburger { display: flex; }

  .nav__links.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #ffffff;
    padding: 24px 20px;
    gap: 0;
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  }

  .nav__links.is-open li { border-bottom: 1px solid var(--color-border); }
  .nav__links.is-open a { display: block; padding: 14px 0; }
  .nav__links.is-open a::after { display: none; }
  .nav__links.is-open .nav__cta { margin-top: 12px; text-align: center; padding: 10px 18px; }

  .hero { padding: 80px 20px 72px; }
  .services__header { flex-direction: column; align-items: flex-start; }
  .services__grid { grid-template-columns: 1fr; }
  .service-card { border-right: none; border-bottom: 1px solid var(--color-border); }
  .service-card:last-child { border-bottom: none; }
  .service-card::before { display: none; }

  .why__inner { grid-template-columns: 1fr; gap: 56px; }
  .why__stats { grid-template-columns: 1fr 1fr; }

  .process__steps { grid-template-columns: 1fr 1fr; }
  .step { border-right: none; border-bottom: 1px solid var(--color-border); }
  .step:last-child { border-bottom: none; }
  .step:nth-child(3), .step:nth-child(4), .step:nth-child(5) { border-top: none; }
  .process__steps .step:last-child:nth-child(odd) { grid-column: 1 / -1; }

  .footer__inner { grid-template-columns: 1fr; gap: 40px; }
  .cta-banner { padding: 72px 20px; }
  .practices__grid { grid-template-columns: 1fr 1fr; }
  .practice-card:nth-child(2n) { border-right: none; }
  .practice-card:nth-child(3) { border-right: 1px solid var(--color-border); }
  .practice-card:nth-child(n+3) { border-top: none; border-bottom: 1px solid var(--color-border); }
  .practice-card:nth-child(5) { border-right: none; border-bottom: none; }
  .focus-grid { grid-template-columns: 1fr; gap: 48px; }
  .other-cards { grid-template-columns: 1fr 1fr; }
  .vertical-hero { padding: 72px 20px 64px; }
}

@media (max-width: 480px) {
  .why__stats { grid-template-columns: 1fr; }
  .hero { padding: 64px 20px 56px; }
  .hero__eyebrow { letter-spacing: 0.1em; font-size: 0.65rem; }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 4px; }
  .practices__grid { grid-template-columns: 1fr; }
  .practice-card { border-right: none; border-top: none; border-bottom: 1px solid var(--color-border); }
  .practice-card:first-child { border-top: 3px solid var(--color-accent); }
  .other-cards { grid-template-columns: 1fr; }
  .other-card { border-right: none; }
}
