/* ==========================================================================
   LEXNORA LAW FIRM OFFICIAL - MAIN STYLESHEET
   Color Theme: Warm Cream (#F7F4EE / #FAF8F5) + Royal Navy (#0A1D37) + Prestigious Gold (#C5A059 / #D4AF37)
   ========================================================================== */

:root {
  /* Warm Cream & Ivory Palette */
  --lx-cream-bg: #f8f6f0;
  --lx-cream-card: #ffffff;
  --lx-cream-surface: #fdfbf7;
  --lx-cream-warm: #f2eee5;
  --lx-cream-border: #e8e2d5;

  /* Royal Navy Palette */
  --lx-navy-deep: #061324;
  --lx-navy: #0a1d37;
  --lx-navy-light: #10294c;
  --lx-navy-soft: #1c3d6d;
  --lx-navy-subtle: #254b85;

  /* Prestigious Gold Palette */
  --lx-gold: #c5a059;
  --lx-gold-light: #e5c07b;
  --lx-gold-shimmer: #fdf6cc;
  --lx-gold-dark: #9a7228;
  --lx-gold-gradient: linear-gradient(135deg, #d4af37 0%, #e8c67c 50%, #a87d26 100%);
  --lx-gold-border: rgba(197, 160, 89, 0.45);

  /* Typography Colors */
  --lx-text-heading: #0a1d37;
  --lx-text-body: #2c3e50;
  --lx-text-muted: #5e6d82;
  --lx-white: #ffffff;

  /* Fonts */
  --lx-font-heading: 'Cinzel', 'Playfair Display', Georgia, serif;
  --lx-font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

  --lx-transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --lx-shadow-sm: 0 4px 15px rgba(10, 29, 55, 0.06);
  --lx-shadow-md: 0 10px 30px rgba(10, 29, 55, 0.1);
  --lx-shadow-gold: 0 8px 25px rgba(197, 160, 89, 0.25);
}

/* Base & Reset */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--lx-font-body);
  background-color: var(--lx-cream-bg);
  color: var(--lx-text-body);
  overflow-x: hidden;
  line-height: 1.7;
}

h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: var(--lx-font-heading);
  color: var(--lx-text-heading);
  font-weight: 700;
  letter-spacing: -0.01em;
}

a {
  color: var(--lx-navy-soft);
  text-decoration: none;
  transition: var(--lx-transition);
}

a:hover {
  color: var(--lx-gold-dark);
}

/* Background Color Helpers */
.bg-cream {
  background-color: var(--lx-cream-bg) !important;
}
.bg-cream-warm {
  background-color: var(--lx-cream-warm) !important;
}
.bg-cream-surface {
  background-color: var(--lx-cream-surface) !important;
}
.bg-navy {
  background-color: var(--lx-navy) !important;
}
.bg-navy-deep {
  background-color: var(--lx-navy-deep) !important;
}
.bg-navy-light {
  background-color: var(--lx-navy-light) !important;
}

/* Text Colors */
.text-gold {
  color: var(--lx-gold) !important;
}
.text-gold-light {
  color: var(--lx-gold-light) !important;
}
.text-gold-dark {
  color: var(--lx-gold-dark) !important;
}
.text-navy {
  color: var(--lx-navy) !important;
}

/* Gold Gradient Text */
.gold-gradient-text {
  background: var(--lx-gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  font-weight: 700;
}

/* Custom Buttons */
.btn-gold {
  background: var(--lx-gold-gradient);
  color: #071527;
  font-weight: 700;
  border: 1px solid var(--lx-gold-light);
  padding: 0.65rem 1.6rem;
  border-radius: 6px;
  letter-spacing: 0.5px;
  transition: var(--lx-transition);
  box-shadow: var(--lx-shadow-gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-gold:hover {
  background: linear-gradient(135deg, #e5c07b 0%, #fdf6cc 50%, #c5a059 100%);
  color: #050d1a;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(197, 160, 89, 0.35);
}

.btn-gold-outline {
  background: transparent;
  color: var(--lx-gold-dark);
  font-weight: 600;
  border: 1.5px solid var(--lx-gold);
  padding: 0.6rem 1.5rem;
  border-radius: 6px;
  letter-spacing: 0.5px;
  transition: var(--lx-transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-gold-outline:hover {
  background: var(--lx-gold);
  color: #071527;
  border-color: var(--lx-gold);
  transform: translateY(-2px);
}

.btn-navy {
  background: var(--lx-navy);
  color: #ffffff;
  border: 1px solid var(--lx-gold);
  font-weight: 600;
  padding: 0.65rem 1.6rem;
  border-radius: 6px;
  transition: var(--lx-transition);
}

.btn-navy:hover {
  background: var(--lx-navy-light);
  color: var(--lx-gold-light);
  transform: translateY(-2px);
}

/* Top Information Bar */
.top-bar {
  background-color: var(--lx-navy-deep);
  border-bottom: 1px solid var(--lx-gold-border);
  font-size: 0.85rem;
  padding: 0.5rem 0;
  color: #a8b8cc;
}

.top-bar a {
  color: #d1dcec;
}

.top-bar a:hover {
  color: var(--lx-gold-light);
}

/* Main Navbar */
.navbar-lexnora {
  background-color: var(--lx-navy);
  border-bottom: 2px solid var(--lx-gold);
  padding: 0.75rem 0;
  transition: var(--lx-transition);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.navbar-lexnora.scrolled {
  background-color: var(--lx-navy-deep);
  padding: 0.5rem 0;
}

.navbar-brand-img {
  height: 52px;
  width: auto;
}

.navbar-nav .nav-link {
  color: #d4e0ee;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.6rem 1rem !important;
  position: relative;
  transition: var(--lx-transition);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--lx-gold-light);
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background: var(--lx-gold);
  transition: var(--lx-transition);
  transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  width: 70%;
}

/* Section Header Badges */
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1.1rem;
  background: rgba(197, 160, 89, 0.15);
  border: 1px solid var(--lx-gold);
  border-radius: 50px;
  color: var(--lx-gold-dark);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 1rem;
}

.section-badge.badge-navy {
  background: var(--lx-navy);
  color: var(--lx-gold-light);
  border-color: var(--lx-gold);
}

/* Section Dividers */
.gold-divider {
  width: 80px;
  height: 3px;
  background: var(--lx-gold-gradient);
  margin: 1.2rem auto;
  border-radius: 2px;
}

.gold-divider-start {
  width: 70px;
  height: 3px;
  background: var(--lx-gold-gradient);
  margin: 1rem 0;
  border-radius: 2px;
}

/* Hero Section */
.hero-section {
  position: relative;
  padding: 110px 0 90px;
  background: radial-gradient(circle at 85% 15%, rgba(197, 160, 89, 0.15) 0%, transparent 45%),
              linear-gradient(180deg, var(--lx-navy-deep) 0%, var(--lx-navy) 100%);
  border-bottom: 3px solid var(--lx-gold);
}

.hero-slogan-box {
  background: rgba(16, 41, 76, 0.85);
  border: 1px solid var(--lx-gold);
  border-left: 5px solid var(--lx-gold);
  padding: 1.25rem 1.5rem;
  border-radius: 8px;
  margin: 1.75rem 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.hero-slogan-text {
  font-family: var(--lx-font-heading);
  font-size: 1.3rem;
  color: var(--lx-gold-light);
  font-style: italic;
  margin: 0;
}

/* Cards & Cream Surfaces */
.card-lexnora-cream {
  background-color: var(--lx-cream-card);
  border: 1.5px solid var(--lx-gold-border);
  border-radius: 10px;
  padding: 2rem;
  transition: var(--lx-transition);
  position: relative;
  box-shadow: var(--lx-shadow-sm);
  height: 100%;
}

.card-lexnora-cream:hover {
  transform: translateY(-6px);
  border-color: var(--lx-gold);
  box-shadow: var(--lx-shadow-md), 0 5px 20px rgba(197, 160, 89, 0.18);
}

/* Dark Card (for Navy sections) */
.card-lexnora {
  background-color: var(--lx-navy-light);
  border: 1px solid var(--lx-gold-border);
  border-radius: 10px;
  padding: 2rem;
  transition: var(--lx-transition);
  height: 100%;
}

.card-lexnora:hover {
  transform: translateY(-6px);
  border-color: var(--lx-gold);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3), 0 5px 15px rgba(197, 160, 89, 0.15);
}

/* Service Card Icon */
.service-icon-box {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  background: rgba(197, 160, 89, 0.15);
  border: 1.5px solid var(--lx-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--lx-gold-dark);
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  transition: var(--lx-transition);
}

.card-lexnora-cream:hover .service-icon-box {
  background: var(--lx-navy);
  color: var(--lx-gold-light);
  border-color: var(--lx-navy);
  transform: scale(1.08) rotate(4deg);
}

/* Organizational Structure Tree (Replika Banner) */
.org-chart-wrapper {
  background: linear-gradient(180deg, #fdfbf7 0%, #f6f1e8 100%);
  border: 2px solid var(--lx-gold);
  border-radius: 16px;
  padding: 3rem 2rem;
  box-shadow: 0 15px 40px rgba(10, 29, 55, 0.08);
  position: relative;
}

.org-header-banner {
  background: linear-gradient(135deg, var(--lx-navy-deep) 0%, var(--lx-navy) 60%, var(--lx-navy-light) 100%);
  border: 2px solid var(--lx-gold);
  border-radius: 12px;
  padding: 1.75rem 2rem;
  text-align: center;
  box-shadow: 0 10px 25px rgba(10, 29, 55, 0.2);
  margin-bottom: 2.5rem;
}

.org-card-director {
  background: #ffffff;
  border: 2px solid var(--lx-gold);
  border-radius: 12px;
  padding: 1.25rem;
  text-align: center;
  box-shadow: var(--lx-shadow-md);
  max-width: 380px;
  margin: 0 auto 2.5rem;
  transition: var(--lx-transition);
}

.org-card-director:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 35px rgba(197, 160, 89, 0.3);
}

.org-director-img {
  width: 100%;
  height: 290px;
  object-fit: cover;
  border-radius: 8px;
  border: 1.5px solid var(--lx-gold);
}

.org-badge-director {
  background: var(--lx-navy);
  border: 1.5px solid var(--lx-gold);
  border-radius: 6px;
  padding: 0.5rem 1rem;
  color: var(--lx-gold-light);
  font-weight: 700;
  font-size: 0.95rem;
  margin-top: -20px;
  position: relative;
  display: inline-block;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

.org-card-member {
  background: #ffffff;
  border: 1.5px solid var(--lx-gold);
  border-radius: 10px;
  padding: 1rem;
  text-align: center;
  box-shadow: var(--lx-shadow-sm);
  transition: var(--lx-transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.org-card-member:hover {
  transform: translateY(-6px);
  border-color: var(--lx-gold-dark);
  box-shadow: var(--lx-shadow-md);
}

.org-member-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--lx-gold-border);
  margin-bottom: -15px;
}

.org-badge-member {
  background: var(--lx-navy);
  border: 1px solid var(--lx-gold);
  border-radius: 4px;
  padding: 0.35rem 0.75rem;
  color: var(--lx-gold-light);
  font-weight: 700;
  font-size: 0.82rem;
  position: relative;
  display: inline-block;
  margin-bottom: 0.5rem;
}

/* Tree Connector Lines (Gold) */
.org-tree-line-down {
  width: 2px;
  height: 35px;
  background: var(--lx-gold);
  margin: 0 auto;
}

.org-tree-branch {
  position: relative;
  border-top: 2px solid var(--lx-gold);
  margin-bottom: 25px;
}

/* Lawyer Profile Card */
.lawyer-card-cream {
  background: var(--lx-cream-card);
  border: 1.5px solid var(--lx-gold-border);
  border-radius: 10px;
  overflow: hidden;
  transition: var(--lx-transition);
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: var(--lx-shadow-sm);
}

.lawyer-card-cream:hover {
  transform: translateY(-8px);
  border-color: var(--lx-gold);
  box-shadow: var(--lx-shadow-md), 0 5px 20px rgba(197, 160, 89, 0.2);
}

.lawyer-img-wrapper {
  position: relative;
  overflow: hidden;
  height: 300px;
  background-color: #f2eee5;
}

.lawyer-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.lawyer-card-cream:hover .lawyer-img {
  transform: scale(1.05);
}

.lawyer-badge-role {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: var(--lx-navy);
  border: 1px solid var(--lx-gold);
  color: var(--lx-gold-light);
  padding: 0.25rem 0.8rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 4px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.lawyer-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.lawyer-name {
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
  color: var(--lx-text-heading);
}

.lawyer-spec {
  color: var(--lx-gold-dark);
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

/* Counter / Stats Banner */
.stats-banner {
  background: linear-gradient(135deg, var(--lx-navy-deep) 0%, var(--lx-navy) 60%, var(--lx-navy-light) 100%);
  border-top: 3px solid var(--lx-gold);
  border-bottom: 3px solid var(--lx-gold);
  padding: 55px 0;
  color: #ffffff;
}

.stat-number {
  font-family: var(--lx-font-heading);
  font-size: 3rem;
  font-weight: 700;
  color: var(--lx-gold-light);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  color: #d4e0ee;
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Article / News Card */
.article-card-cream {
  background-color: var(--lx-cream-card);
  border: 1.5px solid var(--lx-gold-border);
  border-radius: 10px;
  overflow: hidden;
  transition: var(--lx-transition);
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: var(--lx-shadow-sm);
}

.article-card-cream:hover {
  transform: translateY(-6px);
  border-color: var(--lx-gold);
  box-shadow: var(--lx-shadow-md);
}

.article-thumb-wrapper {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.article-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.article-card-cream:hover .article-thumb {
  transform: scale(1.06);
}

.article-category-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--lx-navy);
  border: 1px solid var(--lx-gold);
  color: var(--lx-gold-light);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.25rem 0.7rem;
  border-radius: 4px;
}

/* Gallery Filter & Grid */
.gallery-filter-btn {
  background: var(--lx-cream-card);
  border: 1.5px solid var(--lx-gold);
  color: var(--lx-navy);
  padding: 0.5rem 1.3rem;
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 600;
  margin: 0.25rem;
  transition: var(--lx-transition);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.gallery-filter-btn:hover,
.gallery-filter-btn.active {
  background: var(--lx-navy);
  color: var(--lx-gold-light);
  border-color: var(--lx-navy);
}

.gallery-card {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  height: 270px;
  border: 2px solid var(--lx-gold);
  cursor: pointer;
  box-shadow: var(--lx-shadow-sm);
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(10, 29, 55, 0.95) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
  opacity: 0.95;
  transition: var(--lx-transition);
}

.gallery-card:hover img {
  transform: scale(1.08);
}

/* Forms */
.form-control-lexnora,
.form-select-lexnora {
  background-color: #ffffff;
  border: 1.5px solid #d5c8b2;
  color: var(--lx-text-heading);
  padding: 0.75rem 1rem;
  border-radius: 6px;
  transition: var(--lx-transition);
}

.form-control-lexnora:focus,
.form-select-lexnora:focus {
  background-color: #ffffff;
  border-color: var(--lx-gold-dark);
  box-shadow: 0 0 0 0.25rem rgba(197, 160, 89, 0.25);
  color: var(--lx-text-heading);
}

.form-label-lexnora {
  color: var(--lx-navy);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}

/* Slogan Highlight Card */
.slogan-highlight-card {
  background: linear-gradient(135deg, var(--lx-navy) 0%, var(--lx-navy-light) 100%);
  border: 2px solid var(--lx-gold);
  border-radius: 14px;
  padding: 3.5rem 2rem;
  position: relative;
  color: #ffffff;
  box-shadow: 0 15px 40px rgba(10, 29, 55, 0.2);
}

/* Floating WhatsApp Quick Action */
.floating-wa-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #25d366;
  color: #ffffff;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.45);
  z-index: 1040;
  transition: var(--lx-transition);
}

.floating-wa-btn:hover {
  background-color: #20ba59;
  color: #ffffff;
  transform: scale(1.1);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.65);
}

/* Footer */
.footer-lexnora {
  background-color: var(--lx-navy-deep);
  border-top: 3px solid var(--lx-gold);
  padding: 80px 0 30px;
  color: #a0aec0;
  font-size: 0.92rem;
}

.footer-title {
  font-family: var(--lx-font-heading);
  color: #ffffff;
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.75rem;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--lx-gold);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

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

.footer-links a {
  color: #cbd5e1;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--lx-transition);
}

.footer-links a:hover {
  color: var(--lx-gold-light);
  transform: translateX(4px);
}

.social-circle-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(197, 160, 89, 0.15);
  border: 1px solid var(--lx-gold);
  color: var(--lx-gold-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.5rem;
  transition: var(--lx-transition);
}

.social-circle-btn:hover {
  background: var(--lx-gold);
  color: var(--lx-navy-deep);
  transform: translateY(-3px);
}

/* Admin Dashboard Specific */
.admin-sidebar {
  min-height: 100vh;
  background-color: var(--lx-navy-deep);
  border-right: 1px solid var(--lx-gold-border);
}

.admin-nav .nav-link {
  color: #cbd5e1;
  padding: 0.8rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-radius: 6px;
  margin: 0.2rem 0;
  transition: var(--lx-transition);
}

.admin-nav .nav-link:hover,
.admin-nav .nav-link.active {
  background-color: var(--lx-navy-light);
  color: var(--lx-gold-light);
  border-left: 3px solid var(--lx-gold);
}
