/* ==========================================================================
   EZYCOM Legal Service - Professional Design System & Stylesheet
   Color Palette: Royal Navy (#0C1E3D), Regal Gold (#D4AF37), Accent Blue (#0066FF)
   Typography: DM Sans & Manrope (Google Fonts)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@500;600;700;800&display=swap');

:root {
  /* Brand Primary Colors */
  --navy-primary: #0C1E3D;
  --navy-dark: #061024;
  --navy-light: #162C54;
  --navy-gradient: linear-gradient(135deg, #0C1E3D 0%, #061024 100%);
  --navy-gradient-soft: linear-gradient(135deg, #162C54 0%, #0C1E3D 100%);

  /* Brand Secondary Colors (Regal Gold) */
  --gold-primary: #D4AF37;
  --gold-dark: #B38E22;
  --gold-light: #FDF9EE;
  --gold-gradient: linear-gradient(135deg, #E6CA65 0%, #D4AF37 50%, #B38E22 100%);
  --gold-glow: rgba(212, 175, 55, 0.25);

  /* Functional Accents */
  --accent-blue: #0066FF;
  --accent-cyan: #0EA5E9;
  --accent-green: #10B981;
  --accent-green-bg: #ECFDF5;

  /* Surfaces & Backgrounds */
  --bg-light: #F8FAFC;
  --bg-card: #FFFFFF;
  --surface-alt: #F1F5F9;
  --border-light: #E2E8F0;
  --border-gold: rgba(212, 175, 55, 0.3);

  /* Typography Colors */
  --text-dark: #0F172A;
  --text-body: #334155;
  --text-muted: #64748B;
  --text-light: #F8FAFC;

  /* Font Families */
  --font-heading: 'Manrope', sans-serif;
  --font-body: 'DM Sans', sans-serif;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(12, 30, 61, 0.04);
  --shadow-md: 0 8px 24px rgba(12, 30, 61, 0.08);
  --shadow-lg: 0 16px 40px rgba(12, 30, 61, 0.12);
  --shadow-gold: 0 10px 30px rgba(212, 175, 55, 0.25);
  --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.1);

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Base Styles */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 85px;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--navy-primary);
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
  background: var(--navy-light);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gold-primary);
}

/* Header Top Bar */
.top-header {
  background-color: var(--navy-dark);
  color: var(--text-light);
  font-size: 0.85rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.top-header a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: var(--transition-fast);
}

.top-header a:hover {
  color: var(--gold-primary);
}

.top-header-badge {
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: var(--gold-primary);
  padding: 2px 10px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.78rem;
}

.unit-bsdc-link {
  color: var(--gold-primary) !important;
  font-weight: 700;
  text-decoration: none !important;
}

.unit-bsdc-link:hover {
  color: #FFFFFF !important;
  text-decoration: none !important;
}

/* Main Navbar */
.navbar-main {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
  padding: 12px 0;
}

.navbar-main.scrolled {
  box-shadow: var(--shadow-md);
  padding: 8px 0;
}

.navbar-brand-logo {
  height: 52px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
  transition: transform 0.3s ease;
}

.navbar-brand-logo:hover {
  transform: scale(1.03);
}

.brand-text-wrapper {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--navy-primary);
  line-height: 1;
  letter-spacing: 0.5px;
}

.brand-subtitle {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gold-dark);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.nav-link {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy-primary) !important;
  padding: 8px 16px !important;
  border-radius: 8px;
  transition: var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  color: var(--gold-dark) !important;
  background-color: var(--gold-light);
}

/* Styled Mobile Hamburger Toggler Button */
.mobile-menu-btn {
  background: linear-gradient(135deg, #0C1E3D 0%, #061024 100%);
  border: 1.5px solid var(--gold-primary) !important;
  color: var(--gold-primary) !important;
  border-radius: 12px;
  padding: 7px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.85rem;
  font-family: var(--font-heading);
  box-shadow: 0 4px 12px rgba(12, 30, 61, 0.15);
  transition: all 0.25s ease;
  outline: none !important;
}

.mobile-menu-btn:hover, 
.mobile-menu-btn:focus,
.mobile-menu-btn:active {
  background: var(--gold-primary);
  color: var(--navy-dark) !important;
  box-shadow: var(--shadow-gold);
}

.mobile-menu-btn i {
  font-size: 1.2rem;
}

/* Custom Buttons */
.btn-gold {
  background: var(--gold-gradient);
  color: var(--navy-dark);
  font-weight: 700;
  font-family: var(--font-heading);
  border: none;
  padding: 12px 28px;
  border-radius: 10px;
  box-shadow: var(--shadow-gold);
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.9rem;
}

.btn-gold:hover {
  background: linear-gradient(135deg, #D4AF37 0%, #B38E22 100%);
  color: var(--navy-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(212, 175, 55, 0.4);
}

.btn-navy {
  background: var(--navy-primary);
  color: var(--surface-white);
  font-weight: 700;
  font-family: var(--font-heading);
  border: 1px solid var(--navy-light);
  padding: 12px 28px;
  border-radius: 10px;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-navy:hover {
  background: var(--navy-dark);
  color: var(--gold-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline-gold {
  border: 2px solid var(--gold-primary);
  color: var(--gold-primary) !important;
  font-weight: 700;
  padding: 10px 24px;
  border-radius: 10px;
  background: rgba(212, 175, 55, 0.08);
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}

.btn-outline-gold:hover {
  background: var(--gold-primary);
  color: var(--navy-dark) !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

/* Hero Section */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, #09172E 0%, #0C1E3D 50%, #061024 100%);
  color: var(--text-light);
  padding: 70px 0 60px 0;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, rgba(0,0,0,0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: var(--gold-primary);
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 24px;
  backdrop-filter: blur(8px);
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.18;
  color: #FFFFFF;
  margin-bottom: 20px;
}

.hero-title .highlight-gold {
  background: linear-gradient(135deg, #FFF0B3 0%, #D4AF37 50%, #E6CA65 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: #CBD5E1;
  margin-bottom: 35px;
  max-width: 600px;
  font-weight: 400;
}

.hero-card-display {
  position: relative;
  background: rgba(22, 44, 84, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 24px;
  padding: 30px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.hero-logo-frame {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: #FFFFFF;
  padding: 8px;
  box-shadow: var(--shadow-gold);
  margin: 0 auto 20px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--gold-primary);
}

.hero-logo-frame img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 50%;
}

/* Stats Counter Section */
.stats-section {
  background: var(--navy-dark);
  padding: 30px 0;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.stats-card-wrapper {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 20px;
  padding: 24px 20px;
}

.stat-item {
  text-align: center;
  padding: 10px;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1;
}

.stat-number span {
  color: var(--gold-primary);
}

.stat-label {
  font-size: 0.88rem;
  color: #94A3B8;
  font-weight: 600;
  margin-top: 8px;
}

/* Section Common Styling */
.section-padding {
  padding: 80px 0;
}

.section-tag {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gold-dark);
  background: var(--gold-light);
  padding: 6px 16px;
  border-radius: 50px;
  border: 1px solid rgba(212, 175, 55, 0.3);
  margin-bottom: 12px;
}

.section-title {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--navy-primary);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.08rem;
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto;
}

/* About Us Cards */
.about-card {
  background: var(--surface-white);
  border-radius: 20px;
  padding: 35px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  height: 100%;
  transition: var(--transition-normal);
}

.about-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold-primary);
}

.icon-box-gold {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: var(--gold-light);
  color: var(--gold-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  margin-bottom: 24px;
  border: 1px solid rgba(212, 175, 55, 0.4);
}

.icon-box-navy {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: rgba(12, 30, 61, 0.08);
  color: var(--navy-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  margin-bottom: 24px;
}

/* Checklist Item */
.check-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.check-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent-green-bg);
  color: var(--accent-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Category Filter Tabs */
.filter-tab-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
}

.filter-btn {
  background: var(--surface-white);
  border: 1px solid var(--border-light);
  color: var(--text-body);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 10px 22px;
  border-radius: 50px;
  transition: all 0.25s ease;
  cursor: pointer;
}

.filter-btn:hover, .filter-btn.active {
  background: var(--navy-primary);
  color: var(--gold-primary);
  border-color: var(--navy-primary);
  box-shadow: var(--shadow-sm);
}

/* Service Card Design */
.service-card {
  background: var(--surface-white);
  border-radius: 20px;
  border: 1px solid var(--border-light);
  padding: 30px;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gold-gradient);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(212, 175, 55, 0.4);
}

.service-card:hover::before {
  opacity: 1;
}

.service-card .btn-outline-gold {
  color: var(--navy-primary) !important;
  border-color: var(--gold-primary);
}

.service-card .btn-outline-gold:hover {
  color: var(--navy-dark) !important;
  background: var(--gold-primary);
}

.service-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 50px;
  background: var(--surface-alt);
  color: var(--navy-primary);
  display: inline-block;
  margin-bottom: 16px;
  width: fit-content;
}

.service-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--navy-primary);
  margin-bottom: 12px;
}

.service-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  flex-grow: 1;
}

.service-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
}

.service-list li {
  font-size: 0.88rem;
  color: var(--text-body);
  padding: 6px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px dashed var(--border-light);
}

.service-list li:last-child {
  border-bottom: none;
}

.service-list li i {
  color: var(--gold-dark);
  font-size: 0.8rem;
}

/* Cost & Timeline Estimator Section */
.estimator-card {
  background: linear-gradient(135deg, #0C1E3D 0%, #061024 100%);
  color: #FFFFFF;
  border-radius: 28px;
  padding: 45px;
  box-shadow: 0 25px 50px -12px rgba(12, 30, 61, 0.4);
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.estimator-select {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  border-radius: 12px;
  padding: 14px 20px;
  font-size: 1rem;
  width: 100%;
}

.estimator-select option {
  background: var(--navy-dark);
  color: #FFFFFF;
}

.result-box {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 16px;
  padding: 25px;
}

/* How It Works Process */
.process-step {
  position: relative;
  background: var(--surface-white);
  border-radius: 20px;
  padding: 30px 24px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
  height: 100%;
}

.process-step:hover {
  border-color: var(--gold-primary);
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.step-num {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 2.2rem;
  color: var(--gold-primary);
  line-height: 1;
  margin-bottom: 12px;
  display: block;
}

/* Who We Serve */
.serve-card {
  background: var(--surface-white);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  border: 1px solid var(--border-light);
  transition: var(--transition-fast);
}

.serve-card:hover {
  background: var(--gold-light);
  border-color: var(--gold-primary);
  transform: translateY(-4px);
}

.serve-icon {
  font-size: 2.2rem;
  margin-bottom: 12px;
  display: block;
}

/* Contact Section & Form Validation Styling */
.contact-info-card {
  background: var(--navy-primary);
  color: #FFFFFF;
  border-radius: 24px;
  padding: 40px;
  height: 100%;
  background-image: radial-gradient(circle at top right, rgba(212, 175, 55, 0.15), transparent 60%);
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 28px;
}

.contact-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(212, 175, 55, 0.15);
  color: var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.form-control-custom {
  background: var(--surface-white);
  border: 1.5px solid var(--border-light);
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.form-control-custom:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.15);
  outline: none;
}

.form-control-custom.is-invalid {
  border-color: #EF4444 !important;
  background-image: none !important;
}

.invalid-feedback-custom {
  color: #EF4444;
  font-size: 0.8rem;
  margin-top: 4px;
  display: none;
  font-weight: 600;
}

.form-control-custom.is-invalid + .invalid-feedback-custom {
  display: block;
}

/* Offcanvas Mobile Sidebar Menu */
.offcanvas-custom {
  background: var(--navy-dark) !important;
  color: #FFFFFF !important;
  border-left: 2px solid var(--gold-primary);
  width: 300px !important;
}

.offcanvas-custom .offcanvas-header {
  border-bottom: 1px solid rgba(212, 175, 55, 0.25);
  padding: 20px 24px;
}

.offcanvas-custom .nav-link-mobile {
  color: #E2E8F0;
  font-weight: 600;
  font-size: 1.05rem;
  padding: 12px 18px;
  border-radius: 10px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: var(--transition-fast);
}

.offcanvas-custom .nav-link-mobile:hover,
.offcanvas-custom .nav-link-mobile.active {
  background: rgba(212, 175, 55, 0.15);
  color: var(--gold-primary);
  border-left: 4px solid var(--gold-primary);
}

/* Floating Action Bar */
.floating-action-bar {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.float-btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-size: 1.5rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}

.float-btn-whatsapp {
  background: #25D366;
}

.float-btn-whatsapp:hover {
  background: #1EBE5D;
  transform: scale(1.1);
  color: #FFFFFF;
}

.float-btn-call {
  background: var(--navy-primary);
  border: 2px solid var(--gold-primary);
}

.float-btn-call:hover {
  background: var(--gold-primary);
  color: var(--navy-dark);
  transform: scale(1.1);
}

.pulse-dot {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 14px;
  height: 14px;
  background: #FF3B30;
  border-radius: 50%;
  border: 2px solid #FFFFFF;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(255, 59, 48, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(255, 59, 48, 0);
  }
}

/* Modal Styling */
.modal-content-custom {
  border-radius: 24px;
  border: 2px solid var(--gold-primary);
  overflow: hidden;
}

.modal-header-custom {
  background: var(--navy-primary);
  color: #FFFFFF;
  padding: 24px 30px;
  border-bottom: 2px solid var(--gold-primary);
}

/* Footer Styling */
.footer-main {
  background: var(--navy-dark);
  color: #CBD5E1;
  padding: 70px 0 30px 0;
  border-top: 3px solid var(--gold-primary);
}

.footer-title {
  color: #FFFFFF;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

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

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

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: #94A3B8;
  text-decoration: none;
  transition: var(--transition-fast);
  font-size: 0.92rem;
}

.footer-links a:hover {
  color: var(--gold-primary);
  padding-left: 5px;
}

.disclaimer-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px 20px;
  font-size: 0.82rem;
  color: #94A3B8;
  margin-top: 30px;
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .hero-title {
    font-size: 2.4rem;
  }
  .section-title {
    font-size: 2rem;
  }
  .hero-section {
    padding: 50px 0 50px 0;
  }
}
