/* ========================================
   A & Partners Law Office - Main Stylesheet
   ======================================== */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background-color: #F8FAFC;
  color: #0F172A;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 { font-family: 'Playfair Display', serif; }

/* ===== Navbar ===== */
#navbar { transition: all 0.4s ease; }
#navbar.scrolled {
  background: rgba(15, 23, 42, 0.97) !important;
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 30px rgba(0,0,0,0.4);
}

.nav-link {
  position: relative;
  color: rgba(255,255,255,0.85);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 0.3s;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: #C69C6D;
  transition: width 0.3s ease;
}
.nav-link:hover { color: #C69C6D; }
.nav-link:hover::after { width: 100%; }
.nav-link.active { color: #C69C6D; }
.nav-link.active::after { width: 100%; }

/* ===== Hero ===== */
.hero-overlay {
  background: linear-gradient(135deg, rgba(15,23,42,0.92) 0%, rgba(15,23,42,0.70) 60%, rgba(198,156,109,0.15) 100%);
}
.gold-line {
  display: inline-block;
  width: 60px; height: 2px;
  background: #C69C6D;
  vertical-align: middle;
  margin-right: 12px;
}

/* ===== Dividers ===== */
.section-divider {
  width: 60px; height: 3px;
  background: linear-gradient(90deg, #C69C6D, #A07848);
  margin: 0 auto 24px;
}
.section-divider-left {
  width: 60px; height: 3px;
  background: linear-gradient(90deg, #C69C6D, #A07848);
  margin: 0 0 24px;
}

/* ===== Cards ===== */
.practice-card {
  border: 1px solid rgba(198,156,109,0.2);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}
.practice-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 0;
  background: #C69C6D;
  transition: height 0.4s ease;
}
.practice-card:hover {
  border-color: rgba(198,156,109,0.6);
  box-shadow: 0 20px 60px rgba(198,156,109,0.12);
  transform: translateY(-4px);
}
.practice-card:hover::before { height: 100%; }

/* ===== Team Card ===== */
.team-card { transition: all 0.4s ease; }
.team-card:hover { transform: translateY(-6px); }
.team-card:hover .team-img-overlay { opacity: 1; }
.team-img-overlay {
  opacity: 0;
  transition: opacity 0.4s;
  background: rgba(198,156,109,0.25);
}

/* ===== Why Choose Us Card ===== */
.why-card {
  border-left: 3px solid #C69C6D;
  transition: all 0.4s ease;
}
.why-card:hover {
  background: rgba(198,156,109,0.06);
  transform: translateX(6px);
}

/* ===== Stats ===== */
.stat-item { border-right: 1px solid rgba(198,156,109,0.3); }
.stat-item:last-child { border-right: none; }

/* ===== Quote ===== */
.quote-bg {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
}

/* ===== Mobile Menu ===== */
#mobile-menu { transition: all 0.3s ease; }

/* ===== Floating WA ===== */
.float-wa {
  position: fixed;
  bottom: 28px; right: 28px;
  z-index: 9999;
  animation: pulse-wa 2.5s infinite;
}
@keyframes pulse-wa {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0.5); }
  50% { box-shadow: 0 0 0 14px rgba(37,211,102,0); }
}

/* ===== Reveal Animation ===== */
.reveal { opacity: 0; transform: translateY(30px); }

/* ===== Scroll Progress ===== */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: linear-gradient(90deg, #C69C6D, #D4AF85);
  z-index: 99999;
  width: 0%;
  transition: width 0.1s linear;
}

/* ===== Article Cards ===== */
.article-card {
  transition: all 0.4s ease;
  border: 1px solid rgba(198,156,109,0.15);
}
.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.08);
  border-color: rgba(198,156,109,0.4);
}

/* ===== Article Content ===== */
.article-content h2 { font-size: 1.5rem; font-weight: 700; margin: 2rem 0 1rem; color: #0F172A; }
.article-content h3 { font-size: 1.25rem; font-weight: 600; margin: 1.5rem 0 0.75rem; color: #0F172A; }
.article-content p { margin-bottom: 1rem; line-height: 1.8; color: #334155; }
.article-content ul, .article-content ol { margin: 1rem 0; padding-left: 1.5rem; }
.article-content li { margin-bottom: 0.5rem; color: #334155; }
.article-content blockquote {
  border-left: 4px solid #C69C6D;
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: rgba(198,156,109,0.05);
  font-style: italic;
}
.article-content img { max-width: 100%; height: auto; border-radius: 4px; margin: 1rem 0; }
.article-content a { color: #C69C6D; text-decoration: underline; }
.article-content a:hover { color: #A07848; }

/* ===== Page Header ===== */
.page-header {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 50%, #0F172A 100%);
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  top: -50%; right: -10%;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(198,156,109,0.08), transparent);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .stat-item { border-right: none; border-bottom: 1px solid rgba(198,156,109,0.3); }
  .stat-item:last-child { border-bottom: none; }
}

/* ===== Form Styles ===== */
.form-input {
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 0.875rem 1rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  color: #0F172A;
  transition: border-color 0.3s;
  background: #F8FAFC;
}
.form-input:focus {
  outline: none;
  border-color: #C69C6D;
  box-shadow: 0 0 0 3px rgba(198,156,109,0.1);
}

/* ===== Success/Error Messages ===== */
.alert-success {
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  color: #065f46;
  padding: 1rem;
  border-radius: 4px;
  margin-bottom: 1rem;
}
.alert-error {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #991b1b;
  padding: 1rem;
  border-radius: 4px;
  margin-bottom: 1rem;
}

/* ===== Member Badge ===== */
.member-badge {
  border: 1px solid rgba(198,156,109,0.3);
  background: rgba(198,156,109,0.05);
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

/* ===== Text Justify Override ===== */
.text-justify { text-align: justify !important; }
