/* ============================================
   PARAMARTA LAW OFFICE — COMPANY PROFILE
   Design System: Premium Minimalist Dark
   ============================================ */

:root {
  --navy: #0D1B2A;
  --navy-light: #1A2E46;
  --navy-mid: #152338;
  --gold: #C9A96E;
  --gold-light: #DFC08E;
  --gold-pale: rgba(201,169,110,0.12);
  --white: #FFFFFF;
  --off-white: #F5F3EE;
  --gray-100: #EAE8E4;
  --gray-200: #C8C5BF;
  --gray-400: #908C85;
  --gray-600: #5A5752;
  --text-dark: #1A1714;

  --font-serif: 'Cormorant Garamond', 'Georgia', serif;
  --font-sans: 'Inter', 'Helvetica Neue', sans-serif;

  --nav-h: 80px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --radius: 4px;
  --shadow-sm: 0 2px 8px rgba(13,27,42,0.08);
  --shadow-md: 0 8px 32px rgba(13,27,42,0.14);
  --shadow-lg: 0 24px 64px rgba(13,27,42,0.2);
}

/* ---- RESET & BASE ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  background: var(--off-white);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--navy); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 10px; }

/* ---- SELECTION ---- */
::selection { background: var(--gold); color: var(--navy); }

/* ---- A11Y FOCUS ---- */
*:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* ============================================
   NAVBAR
   ============================================ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition), height var(--transition);
}
#navbar.scrolled {
  background: rgba(13, 27, 42, 0.97);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(201,169,110,0.2);
  height: 64px;
}
.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  border-left: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 16px rgba(0,0,0,0.3), inset 0 0 12px rgba(255,255,255,0.02);
  padding: 0.2rem 1rem;
  border-radius: 8px;
  transition: all var(--transition);
}
.nav-logo:hover {
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 6px 20px rgba(0,0,0,0.4), inset 0 0 15px rgba(255,255,255,0.05);
  border-top: 1px solid rgba(255, 255, 255, 0.35);
}
.logo-mark { flex-shrink: 0; }
.logo-image { 
  height: 40px; 
  width: auto; 
  object-fit: contain; 
  display: block; 
}
.logo-text { display: flex; flex-direction: column; line-height: 1; justify-content: center; margin-left: 0.25rem; }
.logo-name {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.12em;
  color: var(--white);
}
.logo-sub {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--gold);
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-link {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  width: 0; height: 1px;
  background: var(--gold);
  transform: translateX(-50%);
  transition: width var(--transition);
}
.nav-link:hover { color: var(--gold); }
.nav-link:hover::after { width: 60%; }
.nav-link.cta-nav {
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 0.6rem 1.4rem;
}
.nav-link.cta-nav:hover { background: var(--gold-light); color: var(--navy); }
.nav-link.cta-nav::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: 1.5px;
  background: var(--white);
  transition: all var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ============================================
   HERO
   ============================================ */
#hero {
  position: relative;
  min-height: 100vh;
  background: linear-gradient(165deg, rgba(13,27,42,0.85) 0%, rgba(21,35,56,0.92) 40%, rgba(30,58,90,0.96) 100%), url('hero-bg.webp') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 50%, rgba(201,169,110,0.06) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 10% 80%, rgba(201,169,110,0.04) 0%, transparent 60%);
}
#hero::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.4;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 79px, rgba(255,255,255,0.015) 80px),
    repeating-linear-gradient(90deg, transparent, transparent 79px, rgba(255,255,255,0.015) 80px);
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 820px;
  padding: 2rem;
  animation: fadeUp 1.2s cubic-bezier(0.4,0,0.2,1) both;
}
.hero-badge {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(201,169,110,0.35);
  padding: 0.45rem 1.2rem;
  border-radius: 100px;
  margin-bottom: 2.5rem;
  backdrop-filter: blur(8px);
  background: rgba(201,169,110,0.06);
}
.hero-title {
  display: flex;
  flex-direction: column;
  line-height: 1;
  margin-bottom: 1.2rem;
}
.hero-logo-3d {
  max-width: 100%;
  width: 520px;
  height: auto;
  margin: 0 auto;
  filter: 
    drop-shadow(0 20px 30px rgba(0, 0, 0, 0.8))
    drop-shadow(0 4px 12px rgba(201, 169, 110, 0.5));
  
  /* Anti-blur rendering fixes for 3D transforms */
  backface-visibility: hidden;
  transform-style: preserve-3d;
  will-change: transform;

  transform: perspective(1000px) rotateX(8deg) translateY(-5px) translateZ(0);
  animation: float-3d 6s ease-in-out infinite;
  transition: transform 0.4s ease, filter 0.4s ease;
}
.hero-logo-3d:hover {
  transform: perspective(1000px) rotateX(0deg) translateY(-10px) scale(1.02) translateZ(0);
  filter: 
    drop-shadow(0 30px 40px rgba(0, 0, 0, 0.9))
    drop-shadow(0 8px 20px rgba(201, 169, 110, 0.7));
}
@keyframes float-3d {
  0% { transform: perspective(1000px) rotateX(8deg) translateY(-5px) translateZ(0); }
  50% { transform: perspective(1000px) rotateX(4deg) translateY(-15px) translateZ(0); }
  100% { transform: perspective(1000px) rotateX(8deg) translateY(-5px) translateZ(0); }
}
.hero-subtitle {
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 1.5rem;
}
.hero-desc {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.65);
  max-width: 540px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-primary {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.85rem 2.2rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}
.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201,169,110,0.35);
}
.btn-outline {
  display: inline-block;
  background: transparent;
  color: rgba(255,255,255,0.85);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.85rem 2.2rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.25);
  cursor: pointer;
  transition: all var(--transition);
}
.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}
.hero-scroll-indicator {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.3);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: fadeIn 2s 1.5s both;
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.3), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

/* ============================================
   STATS
   ============================================ */
#stats {
  background: var(--navy);
  border-top: 1px solid rgba(201,169,110,0.15);
  border-bottom: 1px solid rgba(201,169,110,0.15);
}
.stats-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}
.stat-item {
  flex: 1;
  text-align: center;
  padding: 1rem 2rem;
}
.stat-number {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.stat-number.has-plus::after {
  content: '+';
  font-size: 0.5em;
  opacity: 0.7;
}
.stat-label {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}
.stat-divider {
  width: 1px;
  height: 60px;
  background: rgba(201,169,110,0.2);
  flex-shrink: 0;
}

/* ============================================
   SECTIONS — SHARED
   ============================================ */
.section-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 6rem 2rem;
}
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}
.section-tag {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(201,169,110,0.3);
  padding: 0.35rem 1rem;
  border-radius: 100px;
  margin-bottom: 1.2rem;
}
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 400;
  color: var(--navy);
  line-height: 1.2;
}
.section-title em {
  font-style: italic;
  color: var(--gold);
}
.section-desc {
  margin-top: 1rem;
  font-size: 1rem;
  color: var(--gray-400);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
}

/* ============================================
   CLIENTS MARQUEE
   ============================================ */
.clients-section {
  background: var(--off-white);
  padding: 5rem 0 1rem 0;
  overflow: hidden;
}
.clients-header {
  text-align: center;
  margin-bottom: 2.5rem;
}
.clients-tag {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gray-400);
}
.clients-marquee {
  width: 100%;
  overflow: hidden;
  position: relative;
  white-space: nowrap;
}
.clients-marquee::before,
.clients-marquee::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 15vw;
  z-index: 2;
  pointer-events: none;
}
.clients-marquee::before {
  left: 0;
  background: linear-gradient(to right, var(--off-white), transparent);
}
.clients-marquee::after {
  right: 0;
  background: linear-gradient(to left, var(--off-white), transparent);
}
.marquee-track {
  display: inline-block;
  animation: scrollMarquee 40s linear infinite;
}
.marquee-track img {
  display: inline-block;
  height: 72px;
  width: auto;
  margin: 0 4.5rem;
  vertical-align: middle;
  opacity: 0.65;
  transition: all var(--transition);
}
.marquee-track img:hover {
  transform: scale(1.05);
  opacity: 1;
}
@keyframes scrollMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); } 
}

/* ============================================
   ABOUT
   ============================================ */
#about { background: var(--off-white); }
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about-left .section-tag { margin-bottom: 1.2rem; }
.about-left .section-title { text-align: left; margin-bottom: 1.5rem; }
.about-accent-line {
  width: 48px; height: 2px;
  background: linear-gradient(to right, var(--gold), transparent);
  margin-bottom: 1.75rem;
}
.about-text {
  font-size: 1rem;
  color: var(--gray-600);
  line-height: 1.9;
  margin-bottom: 1.1rem;
}
.about-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.about-card {
  background: var(--white);
  border: 1px solid rgba(201,169,110,0.15);
  border-radius: 8px;
  padding: 1.5rem 1.25rem;
  transition: all var(--transition);
}
.about-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.about-card-icon {
  font-size: 1.6rem;
  margin-bottom: 0.75rem;
}
.about-card h4 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.6rem;
  letter-spacing: 0.05em;
  line-height: 1.3;
}
.about-card p {
  font-size: 0.95rem;
  color: var(--gray-400);
  line-height: 1.7;
}

/* ============================================
   SERVICES
   ============================================ */
#services {
  background: var(--navy);
}
#services .section-title { color: var(--white); }
#services .section-desc { color: rgba(255,255,255,0.45); }
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.service-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(201,169,110,0.15);
  border-radius: 12px;
  padding: 2.5rem;
  transition: all var(--transition);
}
.service-card:hover {
  background: rgba(201,169,110,0.06);
  border-color: rgba(201,169,110,0.4);
  transform: translateY(-4px);
}
.service-card-gold {
  background: linear-gradient(135deg, rgba(201,169,110,0.1) 0%, rgba(201,169,110,0.03) 100%);
  border-color: rgba(201,169,110,0.3);
}
.service-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.service-icon {
  width: 52px; height: 52px;
  background: rgba(201,169,110,0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.service-card-gold .service-icon {
  background: var(--navy);
}
.service-card h3 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--white);
}
.service-desc {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}
.service-list li {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.7);
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding-left: 1.2rem;
  position: relative;
}
.service-list li::before {
  content: '─';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 0.85rem;
}

/* ============================================
   LEGAL FIELDS
   ============================================ */
#legalfields { background: var(--white); }
.fields-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.25rem;
}
.field-card {
  grid-column: span 2;
  border: 1px solid var(--gray-100);
  border-radius: 8px;
  padding: 2rem 1.75rem;
  background: var(--white);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.field-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(to right, var(--gold), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.field-card:hover {
  border-color: rgba(201,169,110,0.3);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.field-card:hover::before { transform: scaleX(1); }
.field-number {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 1rem;
}
.field-card h4 {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.85rem;
  line-height: 1.3;
}
.field-card p {
  font-size: 0.95rem;
  color: var(--gray-400);
  line-height: 1.75;
}
.field-card-featured {
  grid-column: 1 / -1;
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
  padding: 2.5rem;
}
.field-card-featured .featured-left {
  flex-shrink: 0;
  width: 25%;
}
.field-card-featured .field-number {
  margin-bottom: 0.5rem;
  font-size: 3.5rem;
}
.field-card-featured .featured-badge {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--gold);
  padding: 0.35rem 0.85rem;
  border-radius: 100px;
  display: inline-block;
  margin-top: -0.25rem;
}
.field-card-featured h4 {
  font-size: 1.75rem; 
  margin-bottom: 1rem;
}
@media (max-width: 820px) {
  .field-card-featured {
    flex-direction: column;
    gap: 1.5rem;
  }
  .field-card-featured .featured-left {
    width: 100%;
  }
}
@media (min-width: 1025px) {
  .field-card:nth-child(5) {
    grid-column: 2 / span 2;
  }
  .field-card:nth-child(6) {
    grid-column: 4 / span 2;
  }
}

/* ============================================
   WHY US
   ============================================ */
#why-us { background: var(--off-white); }
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.why-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: 10px;
  padding: 2rem 1.75rem;
  text-align: center;
  transition: all var(--transition);
}
.why-card:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.why-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}
.why-card h4 {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.85rem;
  line-height: 1.3;
}
.why-card p {
  font-size: 0.95rem;
  color: var(--gray-400);
  line-height: 1.8;
}

/* ============================================
   TEAM
   ============================================ */
#team { background: var(--navy); }
#team .section-title { color: var(--white); }
#team .section-desc { color: rgba(255,255,255,0.45); }
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (min-width: 1025px) {
  .team-grid {
    grid-template-columns: repeat(6, 1fr);
  }
  .team-card {
    grid-column: span 2;
  }
}
.team-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(201,169,110,0.12);
  border-radius: 12px;
  padding: 2.5rem;
  transition: all var(--transition);
}
.team-card:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(201,169,110,0.35);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.3);
}
.team-avatar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 2rem;
}
.avatar-initials {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy-light), var(--navy-mid));
  border: 4px solid rgba(201,169,110,0.3);
  box-shadow: 0 12px 30px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.05em;
  flex-shrink: 0;
}
.team-photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  border: 4px solid rgba(201,169,110,0.3);
  box-shadow: 0 12px 30px rgba(0,0,0,0.2);
  flex-shrink: 0;
}
.team-badge-role {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--gold);
  padding: 0.3rem 0.85rem;
  border-radius: 100px;
  white-space: nowrap;
}
.team-info h4 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.3rem;
  line-height: 1.3;
}
.team-role {
  display: block;
  font-size: 0.85rem;
  color: var(--gold);
  letter-spacing: 0.05em;
  margin-bottom: 0.2rem;
}
.team-since {
  display: block;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}
.team-bio {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.8;
  margin-bottom: 1rem;
}
.team-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.team-tags span {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(201,169,110,0.25);
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
}

/* ============================================
   CTA SECTION
   ============================================ */
#cta-section {
  background: linear-gradient(135deg, var(--navy-mid) 0%, #0D1B2A 100%);
  border-top: 1px solid rgba(201,169,110,0.15);
  border-bottom: 1px solid rgba(201,169,110,0.15);
  padding: 6rem 2rem;
  text-align: center;
}
.cta-inner {
  max-width: 680px;
  margin: 0 auto;
}
#cta-section h2 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 400;
  color: var(--white);
  line-height: 1.2;
  margin: 1rem 0;
}
#cta-section h2 em {
  font-style: italic;
  color: var(--gold);
}
#cta-section p {
  font-size: 1rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.9;
  margin-bottom: 2.5rem;
}
.cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-outline-white {
  display: inline-block;
  background: transparent;
  color: rgba(255,255,255,0.8);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.85rem 2.2rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.2);
  cursor: pointer;
  transition: all var(--transition);
}
.btn-outline-white:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

/* ============================================
   CONTACT
   ============================================ */
#contact { background: var(--off-white); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
  align-items: start;
}
.contact-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  align-items: flex-start;
}
.contact-icon {
  width: 40px; height: 40px;
  background: var(--white);
  border: 1px solid rgba(201,169,110,0.2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-item h5 {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.35rem;
}
.contact-item p {
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.7;
}
.contact-form {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: 12px;
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
}
.form-group {
  margin-bottom: 1.25rem;
}
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-600);
  margin-bottom: 0.5rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--off-white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text-dark);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,169,110,0.12);
  background: var(--white);
}
.form-group textarea { resize: vertical; }
.form-submit { width: 100%; text-align: center; margin-top: 0.5rem; }

/* ============================================
   FOOTER
   ============================================ */
#footer {
  background: var(--navy);
  color: rgba(255,255,255,0.5);
  border-top: 1px solid rgba(201,169,110,0.12);
}
.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 5rem 2rem 3rem;
  display: grid;
  grid-template-columns: auto auto auto auto;
  justify-content: space-between;
  gap: 3rem;
}
#footer .nav-logo {
  width: fit-content;
}
.footer-tagline {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.05em;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}
.footer-copy {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.25);
  line-height: 1.8;
}
.footer-links h5,
.footer-contact h5 {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}
.footer-links ul li {
  margin-bottom: 0.6rem;
}
.footer-links ul li a {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.45);
  transition: color var(--transition);
}
.footer-links ul li a:hover { color: var(--gold); }
.footer-contact p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.7;
}
.footer-wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
  background: #25D366;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius);
  transition: all var(--transition);
}
.footer-wa-btn:hover {
  background: #1ebe5d;
  transform: translateY(-2px);
}

/* ============================================
   REVEAL ANIMATIONS
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.2); }
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* ---- TABLET LANDSCAPE (≤1024px) ---- */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .about-cards { grid-template-columns: 1fr 1fr; }
  .fields-grid { grid-template-columns: repeat(2, 1fr); }
  .field-card { grid-column: span 1; }
  .field-card-featured { flex-direction: row; }
  .field-card-featured .featured-left { width: 20%; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { gap: 3rem; }
  .footer-container { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .nav-link { padding: 0.5rem 0.6rem; font-size: 0.72rem; letter-spacing: 0.1em; }
  .nav-link.cta-nav { padding: 0.5rem 1rem; }
}

/* ---- TABLET PORTRAIT / MOBILE (≤768px) ---- */
@media (max-width: 768px) {
  :root { --nav-h: 64px; }

  /* Menu Overlay */
  .menu-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition);
  }
  .menu-overlay.open { opacity: 1; pointer-events: auto; }

  /* Nav → mobile drawer */
  .nav-links {
    position: fixed;
    top: 0; right: -100%;
    width: 280px; height: 100vh;
    background: var(--navy);
    flex-direction: column;
    align-items: flex-start;
    padding: 6rem 2rem 2rem;
    gap: 0.5rem;
    transition: right var(--transition);
    box-shadow: -8px 0 32px rgba(0,0,0,0.6);
    z-index: 999;
  }
  .nav-links.open { right: 0; }
  .nav-link { width: 100%; text-align: left; padding: 1rem 0; font-size: 1.05rem; letter-spacing: 0.1em; border-bottom: 1px solid rgba(255,255,255,0.05); }
  .nav-link.cta-nav { margin-top: 1.5rem; text-align: center; padding: 1rem; border: none; font-size: 0.95rem; }
  .hamburger { display: flex; z-index: 1001; outline: none !important; -webkit-tap-highlight-color: transparent; }

  /* Hero */
  .hero-content { padding: 1.5rem; }
  .hero-badge { font-size: 0.72rem; padding: 0.35rem 1rem; margin-bottom: 2rem; }
  .hero-subtitle { font-size: 0.72rem; letter-spacing: 0.1em; }
  .hero-desc { font-size: 0.95rem; margin-bottom: 2rem; }
  .hero-scroll-indicator { bottom: 1.5rem; }

  /* Stats */
  .stats-container { flex-direction: column; gap: 1.5rem; padding: 3rem 2rem; }
  .stat-divider { width: 60px; height: 1px; }
  .stat-number { font-size: clamp(2rem, 8vw, 3rem); }

  /* Marquee */
  .marquee-track img { height: 50px; margin: 0 2.5rem; }
  .clients-section { padding: 3rem 0 1rem 0; }

  /* About */
  .about-cards { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .about-card { padding: 1.25rem 1rem; }

  /* Services */
  .services-grid { grid-template-columns: 1fr; gap: 1rem; }
  .service-card { padding: 1.5rem; }

  /* Legal Fields */
  .fields-grid { grid-template-columns: 1fr; gap: 1rem; }
  .field-card { grid-column: 1 / -1; padding: 1.25rem; }
  .field-card-featured { flex-direction: column; gap: 1rem; padding: 1.25rem; }
  .field-card-featured .featured-left { width: 100%; }
  .field-card h4 { font-size: 1.3rem; }

  /* Why Us */
  .why-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .why-card { padding: 1.25rem 1rem; }

  /* Team */
  .team-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .team-card { padding: 1.5rem; }

  /* CTA */
  #cta-section { padding: 3.5rem 1.5rem; }
  .cta-actions { flex-direction: column; align-items: center; }
  .cta-actions a { width: 100%; text-align: center; }

  /* Contact */
  .contact-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .contact-form { padding: 1.5rem; }

  /* Footer */
  .footer-container { grid-template-columns: 1fr 1fr; gap: 1.5rem; }

  /* Section shared */
  .section-container { padding: 3rem 1.5rem; }
  .section-title { font-size: clamp(1.6rem, 5vw, 2.4rem); }
}

/* ---- SMALL PHONES (≤480px) ---- */
@media (max-width: 480px) {
  .section-container { padding: 2.5rem 1.25rem; }
  .section-header { margin-bottom: 2rem; }

  /* Hero */
  .hero-logo-3d { width: 320px; }
  .hero-badge { font-size: 0.65rem; letter-spacing: 0.12em; }
  .hero-subtitle { font-size: 0.65rem; letter-spacing: 0.08em; }
  .hero-scroll-indicator { display: none; }

  /* About */
  .about-cards { grid-template-columns: 1fr; gap: 0.75rem; }

  /* Why Us */
  .why-grid { grid-template-columns: 1fr; }
  .why-card h4 { font-size: 1rem; }

  /* Team */
  .team-badge-role { font-size: 0.6rem; padding: 0.2rem 0.5rem; }
  .team-info h4 { font-size: 1.15rem; }

  /* Stats */
  .stats-container { padding: 2.5rem 1.25rem; }

  /* Buttons */
  .btn-primary, .btn-outline, .btn-outline-white { 
    font-size: 0.82rem; 
    padding: 0.75rem 1.5rem; 
  }

  /* Contact */
  .contact-form { padding: 1.25rem 1rem; }

  /* Footer */
  .footer-container { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-wa-btn { width: 100%; justify-content: center; }

  /* CTA */
  #cta-section { padding: 3rem 1.25rem; }

  /* Marquee */
  .marquee-track img { height: 40px; margin: 0 2rem; }
}

/* ---- ULTRA-SMALL (≤360px) ---- */
@media (max-width: 360px) {
  .hero-content { padding: 1rem; }
  .hero-logo-3d { width: 300px; }
  .hero-desc { font-size: 0.88rem; }
  .section-title { font-size: 1.5rem; }
  .service-card { padding: 1.5rem 1.25rem; }
  .field-card { padding: 1.25rem; }
  .field-card h4 { font-size: 1.2rem; }
  .stat-number { font-size: 2rem; }
  .nav-links { width: 100%; }
}
/* ---- FLOATING GO UP ---- */
.floating-go-up {
  position: fixed;
  bottom: 100px;
  right: 35px;
  width: 50px;
  height: 50px;
  background: #ffffff;
  color: var(--bg-dark);
  border: none;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background 0.3s ease, transform 0.2s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}
.floating-go-up.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.floating-go-up:hover {
  background: #f0f0f0;
  transform: scale(1.1);
}
.floating-go-up svg {
  width: 24px;
  height: 24px;
}

/* ---- FLOATING WA ---- */
.floating-wa {
  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;
  z-index: 1000;
  box-shadow: 0 4px 15px rgba(37,211,102,0.3);
  animation: wa-pulse 2s infinite;
  transition: transform 0.3s ease, background 0.3s ease;
}
.floating-wa svg {
  width: 34px;
  height: 34px;
}
.floating-wa:hover {
  transform: scale(1.1) translateY(-5px);
  background: #128C7E;
}
@keyframes wa-pulse {
  0% { box-shadow: 0 0 0 0 rgba(37,211,102, 0.7); }
  70% { box-shadow: 0 0 0 20px rgba(37,211,102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102, 0); }
}

/* ============================================
   PRINT MEDIA FOR PDF COMPANY PROFILE
   ============================================ */
@media print {
  /* 1. Reset Page & Force Colors */
  @page {
    size: A4 portrait;
    margin: 1.5cm;
  }
  html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    background-color: var(--navy);
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  
  /* 2. Hide Unnecessary UI Elements */
  #navbar, 
  .hero-scroll-indicator,
  .btn-primary, 
  .btn-outline-white,
  .hero-actions,
  .cta-actions,
  .contact-form form,
  .footer-wa-btn {
    display: none !important;
  }

  /* 3. Force Show Hidden Elements & Kill Animations */
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  * {
    transition: none !important;
    animation: none !important;
  }

  /* 4. Page Break Management */
  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
    break-after: avoid;
  }
  .about-card, 
  .service-card, 
  .field-card, 
  .why-card, 
  .team-card {
    page-break-inside: avoid;
    break-inside: avoid;
  }
  
  /* Prevent major sections from cutting weirdly */
  #services, #legalfields, #team, #why-us, #contact {
    page-break-before: always;
    break-before: page;
    padding: 2rem 0 !important;
  }
  .section-container {
    padding: 0 !important;
  }
  
  /* 5. Hero Section Formatting for Print */
  #hero {
    height: 100vh !important;
    position: relative;
    page-break-after: always;
    break-after: page;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  /* 6. Grid Adjustments for A4 Width */
  .about-grid, 
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .about-cards {
    grid-template-columns: 1fr 1fr;
  }
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .fields-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
  .field-card {
    grid-column: span 1 !important;
  }
  .field-card-featured {
    grid-column: 1 / -1 !important;
    flex-direction: column;
  }
  .field-card-featured .featured-left {
    width: 100%;
  }
  .why-grid, 
  .team-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }

  /* Footer Adjustment */
  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 2rem 0 !important;
  }
  
  /* Form block replacement (show contact info full width) */
  .contact-grid {
    display: block;
  }
  .contact-form {
    display: none;
  }
}
