/* ============================================================
   SONOIYA & COMPANY ADVOCATES — MASTER STYLESHEET
   Color Palette:
     Navy:   #171347
     Red:    #A61E22
     Gray:   #E6E6E6
     White:  #FFFFFF
   ============================================================ */

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

:root {
  --navy: #171347;
  --navy-dark: #0d0c2e;
  --navy-mid: #1e1a5e;
  --red: #A61E22;
  --red-dark: #8a181b;
  --gray-bg: #E6E6E6;
  --gray-mid: #d0d0d0;
  --gray-text: #666;
  --white: #FFFFFF;
  --text-dark: #111;
  --text-body: #444;
  --shadow-sm: 0 2px 12px rgba(23, 19, 71, 0.08);
  --shadow-md: 0 8px 32px rgba(23, 19, 71, 0.14);
  --shadow-lg: 0 18px 56px rgba(23, 19, 71, 0.18);
  --radius: 6px;
  --radius-lg: 12px;
  --transition: 0.3s ease;
  --section-pad: 100px 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-body);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5 {
  font-family: 'Playfair Display', serif;
  color: var(--navy);
  line-height: 1.25;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

img {
  max-width: 100%;
  display: block;
}

ul {
  list-style: none;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 30px;
}

/* --- UTILITY --- */
.text-accent {
  color: var(--red);
}

.text-center {
  text-align: center;
}

.mt-md {
  margin-top: 28px;
}

.mt-lg {
  margin-top: 48px;
}

.section {
  padding: var(--section-pad);
}

.section-white {
  background: var(--white);
}

.section-gray {
  background: var(--gray-bg);
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}

.btn-primary:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(166, 30, 34, 0.35);
}

.btn-outline-navy {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

.btn-outline-navy:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.7);
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--white);
}

.btn-lg {
  padding: 15px 36px;
  font-size: 0.95rem;
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.8rem;
}

/* --- TOP BAR --- */
.top-bar {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.8rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.top-bar-left {
  display: flex;
  gap: 24px;
}

.top-bar-left span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.top-bar-left i,
.top-bar-right i {
  color: var(--red);
}

.top-bar-right {
  display: flex;
  gap: 14px;
}

.top-bar-right a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
}

.top-bar-right a:hover {
  color: var(--red);
}

/* --- NAVBAR --- */
.navbar {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-md);
  transition: all var(--transition);
}

.navbar.scrolled {
  background: rgba(23, 19, 71, 0.97);
  backdrop-filter: blur(12px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-logo-img {
  height: 54px;
  width: auto;
  display: block;
  object-fit: contain;
  transition: opacity 0.3s ease, transform 0.3s ease;
  /* White background so PNG transparency works on navy navbar */
  background: #fff;
  border-radius: 6px;
  padding: 4px 8px;
}

.nav-logo:hover .nav-logo-img {
  opacity: 0.9;
  transform: scale(1.03);
}

/* Footer logo image */
.footer-logo-img {
  height: 44px;
  width: auto;
  display: block;
  background: #fff;
  border-radius: 6px;
  padding: 4px 8px;
  margin-bottom: 16px;
}

/* Keep old text classes available for any remaining references */
.logo-mark {
  width: 46px;
  height: 46px;
  background: var(--red);
  color: #fff;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: 1rem;
  letter-spacing: -1px;
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-name {
  color: #fff;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.2;
}

.logo-sub {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links li a {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.87rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius);
  letter-spacing: 0.03em;
  position: relative;
}

.nav-links li a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 14px;
  right: 14px;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transition: transform var(--transition);
  border-radius: 2px;
}

.nav-links li a:hover,
.nav-links li a.active {
  color: #fff;
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
  transform: scaleX(1);
}

.nav-links .nav-cta {
  margin-left: 8px;
}

.nav-links .nav-cta::after {
  display: none;
}

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

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: var(--transition);
}

/* --- SECTION HEADER --- */
.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 60px;
}

.section-header h2 {
  font-size: 2.4rem;
  margin-bottom: 16px;
}

.section-header p {
  color: var(--gray-text);
  font-size: 1.05rem;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
  padding: 4px 14px;
  border: 1px solid rgba(166, 30, 34, 0.25);
  border-radius: 50px;
  background: rgba(166, 30, 34, 0.06);
}

.section-label.light {
  color: rgba(255, 255, 255, 0.8);
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
}

/* --- HERO --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  transition: transform 10s ease;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13, 12, 46, 0.92) 0%, rgba(23, 19, 71, 0.80) 50%, rgba(23, 19, 71, 0.60) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 60px;
  padding-bottom: 60px;
  max-width: 780px;
}

.hero-badge {
  display: inline-block;
  background: rgba(166, 30, 34, 0.2);
  border: 1px solid rgba(166, 30, 34, 0.4);
  color: #f4a0a2;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 50px;
  margin-bottom: 28px;
}

.hero-content h1 {
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 900;
  color: #fff;
  margin-bottom: 24px;
  line-height: 1.1;
}

.hero-content h1 .text-accent {
  color: var(--red);
}

.hero-content p {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 40px;
  max-width: 620px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 60px;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 24px 32px;
  gap: 0;
  flex-wrap: wrap;
}

.hero-stat {
  text-align: center;
  flex: 1;
  min-width: 100px;
}

.stat-num {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
}

.stat-label {
  display: block;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 4px;
}

.hero-stat-divider {
  width: 1px;
  background: rgba(255, 255, 255, 0.15);
  align-self: stretch;
  margin: 0 16px;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.scroll-dot {
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  animation: scrollBounce 1.6s ease infinite;
}

@keyframes scrollBounce {

  0%,
  100% {
    transform: translateY(0);
    opacity: 1;
  }

  50% {
    transform: translateY(10px);
    opacity: 0.3;
  }
}

/* --- TWO COL GRID --- */
.two-col-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.two-col-grid.reverse .col-text {
  order: 1;
}

.two-col-grid.reverse .col-img {
  order: 2;
}

.col-text h2 {
  font-size: 2.4rem;
  margin-bottom: 20px;
}

.col-text p {
  color: var(--text-body);
  margin-bottom: 16px;
  line-height: 1.8;
}

.check-list {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.check-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  color: var(--text-dark);
}

.check-list li i {
  color: var(--red);
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* Img Frame */
.img-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.img-frame img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  display: block;
}

.img-frame::before {
  content: '';
  position: absolute;
  top: -10px;
  left: -10px;
  right: 10px;
  bottom: 10px;
  border: 3px solid var(--red);
  border-radius: var(--radius-lg);
  z-index: -1;
}

.img-badge {
  position: absolute;
  bottom: 24px;
  right: 24px;
  background: var(--navy);
  color: #fff;
  padding: 16px 22px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow-md);
}

.badge-num {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 900;
  color: var(--red);
  line-height: 1;
}

.badge-text {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 4px;
}

/* --- PRACTICE CARDS --- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.practice-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  border: 1px solid rgba(23, 19, 71, 0.06);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  display: block;
  position: relative;
  overflow: hidden;
}

.practice-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transition: transform var(--transition);
}

.practice-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(166, 30, 34, 0.15);
}

.practice-card:hover::after {
  transform: scaleX(1);
}

.practice-icon {
  width: 64px;
  height: 64px;
  background: rgba(23, 19, 71, 0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  transition: var(--transition);
}

.practice-icon i {
  font-size: 1.5rem;
  color: var(--navy);
  transition: var(--transition);
}

.practice-card:hover .practice-icon {
  background: var(--red);
}

.practice-card:hover .practice-icon i {
  color: #fff;
}

.practice-card h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
  color: var(--navy);
}

.practice-card p {
  font-size: 0.92rem;
  color: var(--gray-text);
  line-height: 1.7;
  margin-bottom: 20px;
}

.card-link {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.card-link i {
  transition: transform var(--transition);
}

.practice-card:hover .card-link i {
  transform: translateX(4px);
}

/* --- FEATURES GRID --- */
.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 28px;
}

.feature-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.feature-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  background: rgba(166, 30, 34, 0.08);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon i {
  color: var(--red);
  font-size: 1.1rem;
}

.feature-item h4 {
  font-size: 0.95rem;
  margin-bottom: 4px;
  color: var(--navy);
}

.feature-item p {
  font-size: 0.85rem;
  color: var(--gray-text);
  line-height: 1.6;
}

/* --- STATS SECTION --- */
.stats-section {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 50%, var(--navy-mid) 100%);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  position: relative;
}

.stat-card {
  text-align: center;
  padding: 20px;
}

.stat-icon {
  font-size: 2rem;
  color: rgba(166, 30, 34, 0.7);
  margin-bottom: 16px;
}

.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
  display: inline-block;
}

.stat-suffix {
  font-size: 2rem;
  font-weight: 700;
  color: var(--red);
  display: inline;
  vertical-align: top;
  line-height: 1.5;
}

.stat-desc {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 8px;
}

/* --- TEAM CARDS --- */
.team-grid-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.team-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.team-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.team-photo {
  position: relative;
  overflow: hidden;
}

.team-photo img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  object-position: top;
  transition: transform 0.5s ease;
  display: block;
}

.team-card:hover .team-photo img {
  transform: scale(1.06);
}

.team-overlay {
  position: absolute;
  inset: 0;
  background: rgba(23, 19, 71, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}

.team-card:hover .team-overlay {
  opacity: 1;
}

.team-info {
  padding: 22px 24px;
  border-top: 3px solid var(--red);
}

.team-info h4 {
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 4px;
}

.team-info span {
  font-size: 0.82rem;
  color: var(--red);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* --- CTA SECTION --- */
.cta-section {
  position: relative;
  padding: 120px 0;
  text-align: center;
  overflow: hidden;
}

.cta-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.cta-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13, 12, 46, 0.95) 0%, rgba(23, 19, 71, 0.88) 100%);
}

.cta-content {
  position: relative;
  z-index: 2;
}

.cta-content h2 {
  color: #fff;
  font-size: 2.8rem;
  margin-bottom: 20px;
}

.cta-content p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 40px;
}

.cta-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- FOOTER --- */
.footer {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.75);
}

.footer-top {
  padding: 80px 0 60px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 60px;
}

.footer-brand {}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 24px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.footer-col h5 {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 22px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--red);
  display: inline-block;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul li a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.88rem;
  transition: var(--transition);
}

.footer-col ul li a:hover {
  color: var(--red);
  padding-left: 4px;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-contact li i {
  color: var(--red);
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-contact li a {
  color: rgba(255, 255, 255, 0.6);
}

.footer-contact li a:hover {
  color: var(--red);
}

.footer-bottom {
  padding: 22px 0;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom-inner p {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer-legal a:hover {
  color: var(--red);
}

/* --- WHATSAPP BUTTON --- */
.whatsapp-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
  z-index: 998;
  transition: all var(--transition);
}

.whatsapp-btn:hover {
  transform: scale(1.12);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.65);
}

.whatsapp-tooltip {
  position: absolute;
  right: 72px;
  background: #25D366;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 50px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.whatsapp-btn:hover .whatsapp-tooltip {
  opacity: 1;
}

/* --- BACK TO TOP --- */
.back-to-top {
  position: fixed;
  bottom: 100px;
  right: 30px;
  width: 44px;
  height: 44px;
  background: var(--navy);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 1rem;
  box-shadow: var(--shadow-md);
  transition: all var(--transition);
  opacity: 0;
  pointer-events: none;
  z-index: 997;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

.back-to-top:hover {
  background: var(--red);
  transform: translateY(-3px);
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.page-hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
  padding: 140px 0 80px;
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--white);
  clip-path: ellipse(55% 100% at 50% 100%);
}

.page-hero.gray::after {
  background: var(--gray-bg);
}

.page-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.page-hero-content h1 {
  color: #fff;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  margin-bottom: 14px;
}

.page-hero-content p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.5);
}

.breadcrumb a:hover {
  color: var(--red);
}

.breadcrumb .sep {
  color: rgba(255, 255, 255, 0.25);
}

/* Values / Mission grid */
.mvv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.mvv-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--red);
  transition: all var(--transition);
  text-align: center;
}

.mvv-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.mvv-icon {
  font-size: 2.4rem;
  color: var(--red);
  margin-bottom: 20px;
}

.mvv-card h3 {
  font-size: 1.3rem;
  margin-bottom: 16px;
}

.mvv-card p {
  color: var(--gray-text);
  line-height: 1.75;
  font-size: 0.92rem;
}

/* Values list */
.values-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 16px;
}

.value-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: rgba(23, 19, 71, 0.03);
  border-radius: var(--radius);
  padding: 16px 20px;
}

.value-icon {
  font-size: 1.3rem;
  color: var(--red);
  flex-shrink: 0;
}

.value-item h4 {
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.value-item p {
  font-size: 0.82rem;
  color: var(--gray-text);
}

/* ============================================================
   PRACTICE AREAS PAGE
   ============================================================ */
.practice-areas-full {
  padding: var(--section-pad);
}

.practice-full-item {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 72px;
  align-items: center;
  padding: 80px 0;
  border-bottom: 1px solid var(--gray-bg);
}

.practice-full-item:last-child {
  border-bottom: none;
}

.practice-full-item.reverse .practice-img {
  order: 2;
}

.practice-full-item.reverse .practice-text {
  order: 1;
}

.practice-img img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.practice-text .section-label {
  margin-bottom: 12px;
}

.practice-text h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}

.practice-text p {
  color: var(--gray-text);
  margin-bottom: 20px;
  line-height: 1.8;
}

.practice-sub-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 28px;
}

.practice-sub-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-body);
}

.practice-sub-list li i {
  color: var(--red);
  font-size: 0.85rem;
}

/* ============================================================
   TEAM PAGE
   ============================================================ */
.team-section {
  padding: 80px 0;
}

.team-category {
  margin-bottom: 72px;
}

.team-category-header {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 48px;
}

.team-category-header h2 {
  font-size: 2rem;
  white-space: nowrap;
}

.team-divider {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, var(--red) 0%, transparent 100%);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.team-grid.partners {
  grid-template-columns: repeat(3, 1fr);
}

.team-card-full {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.team-card-full:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.team-card-full .team-photo img {
  height: 300px;
  width: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.5s ease;
  display: block;
}

.team-card-full:hover .team-photo img {
  transform: scale(1.06);
}

.team-card-full .team-info {
  padding: 22px 24px;
  border-top: 3px solid var(--red);
}

.team-card-full .team-info h4 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.team-card-full .team-info .role {
  font-size: 0.8rem;
  color: var(--red);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: block;
  margin-bottom: 16px;
}

.team-card-full .team-overlay {
  opacity: 0;
}

.team-card-full:hover .team-overlay {
  opacity: 1;
}

/* ============================================================
   PROFILE PAGE
   ============================================================ */
.profile-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 60px;
  align-items: start;
}

.profile-sidebar {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 100px;
}

.profile-photo img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  object-position: top;
}

.profile-meta {
  padding: 28px;
}

.profile-meta h1 {
  font-size: 1.6rem;
  margin-bottom: 6px;
}

.profile-meta .profile-role {
  color: var(--red);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
  display: block;
}

.profile-contact-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.profile-contact-list li {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 0.88rem;
}

.profile-contact-list li i {
  color: var(--red);
  width: 16px;
}

.profile-content {}

.profile-section {
  margin-bottom: 48px;
}

.profile-section h3 {
  font-size: 1.4rem;
  color: var(--navy);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--gray-bg);
}

.profile-section p {
  color: var(--text-body);
  line-height: 1.8;
  margin-bottom: 14px;
}

.profile-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.profile-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.92rem;
  color: var(--text-body);
}

.profile-list li i {
  color: var(--red);
  margin-top: 3px;
  flex-shrink: 0;
}

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

.expertise-tag {
  background: rgba(23, 19, 71, 0.05);
  border: 1px solid rgba(23, 19, 71, 0.12);
  color: var(--navy);
  font-size: 0.8rem;
  padding: 6px 16px;
  border-radius: 50px;
  font-weight: 500;
  transition: var(--transition);
}

.expertise-tag:hover {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

/* ============================================================
   CAREERS PAGE
   ============================================================ */
.jobs-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.job-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 36px;
  border: 1px solid rgba(23, 19, 71, 0.07);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  transition: all var(--transition);
  border-left: 4px solid var(--red);
}

.job-card:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}

.job-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: var(--navy);
  margin-bottom: 8px;
}

.job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.job-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--gray-text);
  font-weight: 500;
}

.job-tag i {
  color: var(--red);
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  align-items: start;
}

.contact-info {}

.contact-info h2 {
  font-size: 2.2rem;
  margin-bottom: 20px;
}

.contact-info p {
  color: var(--gray-text);
  line-height: 1.8;
  margin-bottom: 32px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-bottom: 36px;
}

.contact-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.contact-icon {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
  background: rgba(166, 30, 34, 0.08);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-icon i {
  color: var(--red);
  font-size: 1.1rem;
}

.contact-item h5 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray-text);
  margin-bottom: 4px;
}

.contact-item p,
.contact-item a {
  font-size: 0.95rem;
  color: var(--text-dark);
  font-weight: 500;
}

.contact-item a:hover {
  color: var(--red);
}

.contact-form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px 44px;
  box-shadow: var(--shadow-lg);
}

.contact-form-card h3 {
  font-size: 1.6rem;
  margin-bottom: 8px;
}

.contact-form-card>p {
  color: var(--gray-text);
  margin-bottom: 32px;
}

/* Form styles */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  margin-bottom: 22px;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1.5px solid rgba(23, 19, 71, 0.12);
  border-radius: var(--radius);
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  color: var(--text-dark);
  background: rgba(23, 19, 71, 0.02);
  transition: all var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--navy);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(23, 19, 71, 0.06);
}

.form-group textarea {
  resize: vertical;
  min-height: 130px;
}

.map-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-top: 60px;
}

.map-container iframe {
  display: block;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .two-col-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .two-col-grid.reverse .col-text {
    order: 0;
  }

  .two-col-grid.reverse .col-img {
    order: 0;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .profile-layout {
    grid-template-columns: 1fr;
  }

  .profile-sidebar {
    position: static;
  }

  .practice-full-item {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .practice-full-item.reverse .practice-img {
    order: 0;
  }

  .practice-full-item.reverse .practice-text {
    order: 0;
  }
}

@media (max-width: 900px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .mvv-grid {
    grid-template-columns: 1fr 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .team-grid.partners {
    grid-template-columns: repeat(2, 1fr);
  }

  .team-grid-preview {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --section-pad: 70px 0;
  }

  .hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    padding: 20px 24px 30px;
    gap: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-lg);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li a {
    padding: 12px 16px;
    display: block;
  }

  .nav-links .nav-cta {
    margin: 8px 0 0;
  }

  .hero-stats {
    flex-direction: column;
    gap: 16px;
  }

  .hero-stat-divider {
    display: none;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .job-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .top-bar-left {
    display: none;
  }
}

@media (max-width: 560px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .mvv-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .team-grid,
  .team-grid.partners,
  .team-grid-preview {
    grid-template-columns: 1fr;
  }

  .values-list {
    grid-template-columns: 1fr;
  }

  .whatsapp-btn {
    bottom: 20px;
    right: 20px;
  }

  .back-to-top {
    bottom: 90px;
    right: 20px;
  }
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
[data-aos] {
  opacity: 0;
}

[data-aos].aos-animate {
  opacity: 1;
}

/* Loading bar */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.done {
  opacity: 0;
  visibility: hidden;
}

.loader-logo {
  font-family: 'Playfair Display', serif;
  color: #fff;
  font-size: 2.5rem;
  font-weight: 900;
  letter-spacing: 4px;
}

.loader-logo span {
  color: var(--red);
}

.loader-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--red);
  animation: loaderBar 1s ease forwards;
}

@keyframes loaderBar {
  from {
    width: 0;
  }

  to {
    width: 100%;
  }
}