:root {
  --red: #8b1d1d;
  --dark: #1c1c1c;
  --grey: #777;
  --light: #f6f6f6;
  --white: #ffffff;
}

/* =======================
   PAGE STRUCTURE
======================= */
html, body {
  height: 100%;
  margin: 0;
}

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--dark);
  background: var(--light);
  display: flex;
  flex-direction: column;
  min-height: 100vh; 
  padding-top: 70px; 
  font-size: 16px;
  line-height: 1.5;
  font-variant-numeric: lining-nums tabular-nums;
}

main {
  flex: 1 0 auto; 
  position: relative;
  z-index: 1;
}

/* =======================
   GLOBAL TEXT
======================= */
p, li {
  font-size: 1rem;
  color: #333;
}

a {
  font-size: 0.95rem;
}

/* =======================
   NAVBAR
======================= */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 99999;
  isolation: isolate;
  background: #fff;
  border-bottom: 1px solid #ddd;
  display: flex;
  align-items: center;
  min-height: 60px;
  padding: 5px 0;
}

.navbar > .container,
.navbar > .container-fluid {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand img {
  max-height: 38px;
  width: auto;
}

.navbar-nav .nav-link {
  font-family: "Inter", sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--dark);
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.dropdown-menu {
  background: var(--white);
  border: 1px solid #ddd;
  z-index: 100000;
}

.dropdown-menu .dropdown-item {
  font-size: 0.95rem;
}

/* =======================
   FEATURE IMAGE
======================= */
.about-feature {
  width: 100%;
  position: relative;
  margin-top: -70px;
}

.about-feature-image {
  width: 100%;
  height: 50vh;
  min-height: 300px;
  background-image: url('../images/feature.jpg');
  background-size: cover;
   background-position: center 90%;
  background-repeat: no-repeat;
}

/* =======================
   HERO
======================= */
.hero {
  height: 30px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero h1 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 36px;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: transparent;
  background: linear-gradient(to right, #8b1d1d, #f08080);
  -webkit-background-clip: text;
  background-clip: text;
}

/* =======================
   SECTION TITLES
======================= */
.section-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 28px;
  margin-bottom: 20px;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: transparent;
  background: linear-gradient(to right, #8b1d1d, #f08080);
  -webkit-background-clip: text;
  background-clip: text;
}

/* =======================
   CARDS
======================= */
.practice-card,
.member-card {
  position: relative;
  overflow: hidden;
  margin-bottom: 20px;
  z-index: 0;
}

.practice-card img,
.member-card img {
  width: 100%;
  height: 280px;
  object-fit: cover !important;
  object-position: top !important;
  display: block;
}

/* 4 cards per row on desktop */
@media (min-width: 992px) {
  .row.g-4 > .col-md-4 {
    flex: 0 0 25%;
    max-width: 25%;
  }
}

/* =======================
   PRACTICE AREAS – RED GLASS BAR
======================= */
.practice-card .overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 14px 18px;
  z-index: 5;
  pointer-events: none;
}

.practice-card .overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(139, 29, 29, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255,255,255,0.25);
  box-shadow: 0 -6px 18px rgba(0,0,0,0.45);
  z-index: 1;
  pointer-events: none;
}

.practice-card .overlay span {
  position: relative;
  z-index: 2;
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  text-align: right;
  display: block;
  text-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

/* =======================
   MEMBER & PRACTICE DETAIL
======================= */
.member-name,
.member h3,
.practice-title,
.practice-area h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  font-size: 24px;
  letter-spacing: 0.2px;
  color: transparent;
  background: linear-gradient(to right, #8b1d1d, #f08080);
  -webkit-background-clip: text;
  background-clip: text;
}

/* =======================
   ABOUT / CONTACT ROW & LINKEDIN
======================= */
.about-divider {
  margin: 5px 0 5px;
}

.about-contact-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0;
  padding-bottom: 6px;
}

.about-contact-details p,
.about-contact-details a {
  font-size: 0.95rem;
  line-height: 1.4;
  margin-bottom: 4px;
}

.about-linkedin {
  margin-left: auto;
  display: flex;
  align-items: center;
}

.about-linkedin img {
  width: 70px;
  height: 70px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.about-linkedin a:hover img {
  transform: scale(1.08);
  opacity: 0.85;
}
/* =======================
   DISCLAIMER
======================= */
.disclaimer-link {
  font-size: 0.9rem;
  color: #777;
  text-decoration: none;
}

.disclaimer-link:hover {
  color: var(--dark);
  text-decoration: underline;
}

.disclaimer-modal .modal-title {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
}

.disclaimer-modal .modal-body p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #333;
}

/* =======================
   FOOTER
======================= */
footer {
  background: #fff;
  border-top: 1px solid #ddd;
  padding: 12px 0;
  font-size: 0.95rem;
  color: var(--dark);
  flex-shrink: 0; 
  margin-top: auto;
}

/* =======================
   MOBILE
======================= */
@media (max-width: 991px) {
  .about-feature-image {
    height: 45vh;
    min-height: 300px;
  }

  body {
    padding-top: 70px;
    font-size: 16px;
  }

  .navbar {
    min-height: 60px;
  }

  .navbar-brand img {
    max-height: 38px;
  }

  .navbar-nav .nav-link {
    font-size: 1rem;
  }

  p, li {
    font-size: 1rem;
  }

  a {
    font-size: 1rem;
  }

  .hero {
    height: 200px;
  }

  .hero h1 {
    font-size: 32px;
  }

  .section-title {
    font-size: 26px;
  }

  .practice-card img,
  .member-card img {
    height: 220px;
  }

  .practice-card .overlay span {
    font-size: 22px;
  }

  .about-linkedin img {
    width: 34px;
    height: 34px;
  }
}
