/* ============================================
   LAW FIRM STYLESHEET
   Palette: #FFFFFF · #000000 · #ae90c3
   Typefaces: Cormorant Garamond + DM Sans
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;0,700;1,300;1,400&family=DM+Sans:wght@300;400;500&display=swap');

/* ── CSS Variables ──────────────────────────── */
:root {
  --accent:        #ae90c3;
  --accent-light:  #c9b0d9;
  --accent-dark:   #8e6ca8;
  --black:         #0a0a0a;
  --off-black:     #1a1a1a;
  --white:         #ffffff;
  --off-white:     #f8f6fb;   /* very faint violet tint */
  --grey-100:      #f2f0f5;
  --grey-300:      #c8c3d0;
  --grey-500:      #8a8494;

  --font-display:  'Cormorant Garamond', Georgia, serif;
  --font-body:     'DM Sans', sans-serif;

  --radius-sm:     4px;
  --radius-md:     10px;
  --radius-lg:     20px;

  --shadow-sm:     0 2px 8px rgba(174,144,195,.12);
  --shadow-md:     0 8px 32px rgba(174,144,195,.18);
  --shadow-lg:     0 20px 60px rgba(174,144,195,.22);

  --transition:    0.3s cubic-bezier(.4,0,.2,1);

  /* Gradient shortcuts */
  --secondary-gradient: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
}

/* ── Reset & Base ───────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  color: var(--off-black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

/* ── Typography ─────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--black);
}

h1 { font-size: clamp(2.6rem, 5vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(2rem,   4vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.75rem); }

p  { color: var(--grey-500); line-height: 1.8; }

a  { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-dark); }

/* ── Utility ────────────────────────────────── */
.gradient-text {
  background: var(--secondary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.container { max-width: 1180px; margin: 0 auto; padding: 0 1.5rem; }
.row       { display: flex; flex-wrap: wrap; margin: 0 -.75rem; }
.g-4       { gap: 1.5rem; }
[class*="col-"] { padding: 0 .75rem; }

.col-lg-6  { width: 50%; }
.col-lg-4  { width: 33.333%; }
.col-lg-3  { width: 25%; }
.col-md-6  { width: 50%; }
@media (max-width: 991px) {
  .col-lg-6, .col-lg-4, .col-lg-3 { width: 100%; }
}
@media (max-width: 767px) {
  .col-md-6 { width: 100%; }
}

/* ── Buttons ────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-family: var(--font-body);
  font-size: .875rem;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: .85rem 2rem;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-lg { padding: 1rem 2.4rem; font-size: .9rem; }

/* Filled purple */
.btn-gradient {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
  box-shadow: 0 4px 18px rgba(174,144,195,.35);
}
.btn-gradient:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  box-shadow: 0 6px 26px rgba(174,144,195,.45);
  transform: translateY(-2px);
  color: var(--white);
}

/* Outlined */
.btn-outline-gradient {
  background: transparent;
  color: var(--black);
  border-color: var(--black);
}
.btn-outline-gradient:hover {
  background: var(--black);
  color: var(--white);
  transform: translateY(-2px);
}

/* White (used on dark bg) */
.btn-white {
  background: var(--white);
  color: var(--accent-dark);
  border-color: var(--white);
  font-weight: 600;
}
.btn-white:hover {
  background: transparent;
  color: var(--white);
  transform: translateY(-2px);
}

/* ── Shared Section Styles ──────────────────── */
section { padding: 6rem 0; }

.section-title {
  text-align: center;
  margin-bottom: 1rem;
}
.section-subtitle {
  text-align: center;
  font-size: 1.05rem;
  color: var(--grey-500);
  max-width: 560px;
  margin: 0 auto 3.5rem;
}

/* ── HERO ───────────────────────────────────── */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--white);
  position: relative;
  overflow: hidden;
  padding: 7rem 0 5rem;
}

/* subtle grain texture overlay */
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse 70% 60% at 80% 50%, rgba(174,144,195,.1) 0%, transparent 70%);
  pointer-events: none;
}

/* thin left border accent */
.hero-section::after {
  content: '';
  position: absolute;
  left: 0; top: 15%; bottom: 15%;
  width: 3px;
  background: var(--secondary-gradient);
  border-radius: 0 2px 2px 0;
}

.hero-content { position: relative; }

.hero-title {
  margin-bottom: 1.4rem;
  font-style: italic;
  letter-spacing: -.02em;
}

.hero-title .gradient-text { font-style: normal; }

.hero-subtitle {
  font-size: 1.05rem;
  max-width: 500px;
  margin-bottom: 2.5rem;
  color: var(--grey-500);
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* floating card on the right */
.floating-card {
  background: var(--white);
  border: 1px solid var(--grey-100);
  border-radius: var(--radius-lg);
  padding: 3.5rem 2.5rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  animation: float 5s ease-in-out infinite;
}

/* decorative corner accent */
.floating-card::before {
  content: '';
  position: absolute;
  top: -1px; right: 40px;
  width: 60px; height: 4px;
  background: var(--accent);
  border-radius: 0 0 4px 4px;
}

.floating-card h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--black);
  margin-bottom: .5rem;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-14px); }
}

/* ── FEATURES / PRACTICE AREAS ─────────────── */
.features-section {
  background: var(--off-white);
  position: relative;
}

/* thin top rule in accent colour */
.features-section::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 80px; height: 3px;
  background: var(--accent);
}

.feature-card {
  background: var(--white);
  border: 1px solid rgba(174,144,195,.15);
  border-radius: var(--radius-md);
  padding: 2.4rem 2rem;
  height: 100%;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

/* bottom-left accent bar on hover */
.feature-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 3px;
  background: var(--accent);
  transition: width var(--transition);
}
.feature-card:hover::after { width: 100%; }

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-light);
}

.feature-icon {
  width: 54px; height: 54px;
  border-radius: var(--radius-sm);
  background: var(--grey-100);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.4rem;
  font-size: 1.5rem;
  color: var(--accent);
  transition: background var(--transition), color var(--transition);
}
.feature-card:hover .feature-icon {
  background: var(--accent);
  color: var(--white);
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: .75rem;
  color: var(--black);
}
.feature-card p { font-size: .93rem; color: var(--grey-500); }

/* ── STATS ──────────────────────────────────── */
.stats-section {
  background: var(--black);
  padding: 5rem 0;
}

.stat-item {
  text-align: center;
  padding: 1.5rem;
  position: relative;
}

/* right divider between stats */
.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0; top: 20%; bottom: 20%;
  width: 1px;
  background: rgba(255,255,255,.08);
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  font-weight: 700;
  color: var(--accent-light);
  letter-spacing: -.02em;
  line-height: 1;
  margin-bottom: .5rem;
}

.stat-label {
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--grey-300);
}

/* ── CTA ────────────────────────────────────── */
.cta-section {
  background: var(--off-white);
  padding: 5rem 0;
}

.cta-card {
  background: var(--black);
  border-radius: var(--radius-lg);
  padding: 4rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* purple glow behind card */
.cta-card::before {
  content: '';
  position: absolute;
  top: -40%; left: 50%;
  transform: translateX(-50%);
  width: 500px; height: 300px;
  background: radial-gradient(ellipse, rgba(174,144,195,.25) 0%, transparent 70%);
  pointer-events: none;
}

.cta-card h2 {
  color: var(--white);
  font-style: italic;
  margin-bottom: 1rem;
}

.cta-card p {
  color: var(--grey-300);
  max-width: 520px;
  margin: 0 auto 2rem;
}

/* ── Align items center helper ──────────────── */
.align-items-center { align-items: center; }
.mt-4  { margin-top: 1.5rem; }
.mt-5  { margin-top: 3rem; }
.mt-lg-0 { /* applied via media query */ }
@media (min-width: 992px) { .mt-lg-0 { margin-top: 0 !important; } }
.mb-0  { margin-bottom: 0; }
.text-center { text-align: center; }
.text-muted  { color: var(--grey-500); }

/* ── Responsive tweaks ──────────────────────── */
@media (max-width: 991px) {
  .hero-section { text-align: center; }
  .hero-subtitle { margin-inline: auto; }
  .hero-buttons  { justify-content: center; }
  .stat-item::after { display: none; }
}

@media (max-width: 575px) {
  section { padding: 4rem 0; }
  .hero-buttons { flex-direction: column; }
  .btn { justify-content: center; }
  .cta-card { padding: 2.5rem 1.5rem; }
}

/* ── NAVBAR ─────────────────────────────────── */
.navbar {
  background: rgba(10, 10, 10, 0.92) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(174, 144, 195, 0.12);
  padding: 0 0;
  transition: background var(--transition), box-shadow var(--transition);
  min-height: 72px;
}

/* slightly more opaque on scroll — add class "scrolled" via JS if desired */
.navbar.scrolled {
  background: rgba(10, 10, 10, 0.98) !important;
  box-shadow: 0 4px 30px rgba(0,0,0,.35);
}

.navbar .container {
  align-items: center;
}

/* Brand / Logo */
.navbar-brand {
  padding: .25rem 0;
  line-height: 1;
}

.navbar-brand img {
  max-height: 60px;
  width:250px;
}

/* Nav links */
.navbar-nav .nav-link {
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.75) !important;
  padding: .5rem 1rem !important;
  position: relative;
  transition: color var(--transition);
}

/* underline sweep on hover */
.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 1rem; right: 1rem;
  height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--transition);
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--white) !important;
}
.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  transform: scaleX(1);
}

/* CTA button in nav */
.navbar-nav .btn-gradient {
  font-size: .78rem;
  padding: .6rem 1.4rem;
  margin-left: .5rem;
}

/* Hamburger */
.navbar-toggler {
  border-color: rgba(174,144,195,.4);
  padding: .4rem .7rem;
}
.navbar-toggler:focus { box-shadow: 0 0 0 2px rgba(174,144,195,.35); }
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(174,144,195,0.9)' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Mobile dropdown panel */
@media (max-width: 991px) {
  .navbar-collapse {
    background: var(--off-black);
    border-top: 1px solid rgba(174,144,195,.12);
    padding: 1rem 0 1.5rem;
    margin-top: .5rem;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
  }
  .navbar-nav .nav-link::after { display: none; }
  .navbar-nav .btn-gradient {
    margin: .75rem 1rem 0;
    width: calc(100% - 2rem);
    justify-content: center;
  }
}


/* ── FOOTER ─────────────────────────────────── */
.footer {
  background: var(--black);
  padding: 5rem 0 0;
  position: relative;
  overflow: hidden;
}

/* ambient purple glow top-left */
.footer::before {
  content: '';
  position: absolute;
  top: -100px; left: -80px;
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(174,144,195,.12) 0%, transparent 70%);
  pointer-events: none;
}

/* Firm name */
.footer h5 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 1.1rem;
  letter-spacing: .01em;
}

/* gradient-text override (white bg → dark bg) */
.footer .gradient-text {
  font-size: 1.35rem;
}

.footer p.text-muted {
  font-size: .88rem;
  color: var(--grey-500) !important;
  max-width: 320px;
  line-height: 1.75;
}

/* Social icons */
.social-icons {
  display: flex;
  gap: .6rem;
}

.social-icons a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(174,144,195,.2);
  display: flex; align-items: center; justify-content: center;
  color: var(--grey-300);
  font-size: 1rem;
  transition: all var(--transition);
}
.social-icons a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(174,144,195,.35);
}

/* Footer link lists */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: .55rem;
}

.footer-links a {
  font-size: .87rem;
  color: var(--grey-500);
  transition: color var(--transition), padding-left var(--transition);
  display: inline-block;
}
.footer-links a:hover {
  color: var(--accent-light);
  padding-left: 4px;
}

/* Divider + copyright */
.copyright {
  border-top: 1px solid rgba(255,255,255,.06);
  margin-top: 3.5rem;
  padding: 1.5rem 0;
  text-align: center;
}

.copyright p {
  font-size: .8rem;
  color: var(--grey-500);
  letter-spacing: .02em;
}

.copyright a {
  color: var(--accent-light) !important;
  text-decoration: none !important;
  transition: color var(--transition);
}
.copyright a:hover { color: var(--white) !important; }

/* Footer col spacing helpers */
.mb-4     { margin-bottom: 1.5rem !important; }
.mb-lg-0  { /* reset below */ }
.col-lg-2 { width: 16.666%; }
@media (min-width: 992px) {
  .mb-lg-0 { margin-bottom: 0 !important; }
}
@media (max-width: 991px) {
  .col-lg-2 { width: 50%; }
}
@media (max-width: 575px) {
  .col-lg-2, .col-md-4 { width: 100%; }
  .footer { padding-top: 3.5rem; }
}