/* Custom Theme Overrides for Stamp Paper & Legal Drafting Services */

/* Primary Color Overrides */
:root {
  --primary: #1e4a72;
  --secondary: #c9a961;
  --accent: #2c5f7a;
  --dark-bg: #1a3d5a;
  --gold-dark: #b8941f;
  --navy-light: #2c5f7a;
  --text-dark: #212529;
  --text-gray: #6b7280;
  --white: #ffffff;
}

/* Button Enhancements */
.btn-primary {
  background-color: #1e4a72 !important;
  border-color: #1e4a72 !important;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: #2c5f7a !important;
  border-color: #2c5f7a !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(30, 74, 114, 0.3);
}

.btn-outline-primary {
  border-color: #1e4a72 !important;
  color: #1e4a72 !important;
}

.btn-outline-primary:hover {
  background-color: #1e4a72 !important;
  color: #fff !important;
}

/* Navigation Enhancements */
.ftco-navbar-light .navbar-nav > .nav-item > .nav-link:hover {
  color: #c9a961 !important;
}

/* Active Navigation Item - Make it clearly visible on dark background */
.ftco-navbar-light .navbar-nav > .nav-item.active > .nav-link,
.ftco-navbar-light .navbar-nav > .nav-item.active > a {
  color: #c9a961 !important;
  font-weight: 600;
  position: relative;
}

.ftco-navbar-light .navbar-nav > .nav-item.active > .nav-link::after,
.ftco-navbar-light .navbar-nav > .nav-item.active > a::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 2px;
  background-color: #c9a961;
  border-radius: 2px;
}

/* When navbar is scrolled (white background) */
.ftco-navbar-light.scrolled .navbar-nav > .nav-item.active > .nav-link,
.ftco-navbar-light.scrolled .navbar-nav > .nav-item.active > a,
.ftco-navbar-light.scrolled .nav-item.active > a {
  color: #1e4a72 !important;
  font-weight: 600;
}

.ftco-navbar-light.scrolled .navbar-nav > .nav-item.active > .nav-link::after,
.ftco-navbar-light.scrolled .navbar-nav > .nav-item.active > a::after {
  background-color: #1e4a72;
}

.ftco-navbar-light .navbar-nav > .nav-item.cta > a {
  background: #1e4a72 !important;
  border-color: #1e4a72 !important;
}

.ftco-navbar-light .navbar-nav > .nav-item.cta > a:hover {
  background: #2c5f7a !important;
  border-color: #2c5f7a !important;
}

/* Section Backgrounds */
.bg-primary {
  background-color: #1e4a72 !important;
}

.bg-secondary {
  background-color: #c9a961 !important;
}

/* Text Colors */
.text-primary {
  color: #1e4a72 !important;
}

.text-secondary {
  color: #c9a961 !important;
}

/* Service Cards */
.services .icon {
  background-color: rgba(30, 74, 114, 0.1);
}

.services:hover .icon {
  background-color: rgba(30, 74, 114, 0.2);
}

/* Links */
a {
  color: #1e4a72;
}

a:hover {
  color: #2c5f7a;
}

/* Hero Section Enhancements */
.hero-wrap {
  position: relative;
}

.hero-wrap .overlay {
  opacity: 0.75 !important;
  background: linear-gradient(135deg, rgba(15, 30, 53, 0.85) 0%, rgba(26, 47, 79, 0.9) 100%) !important;
}

.hero-wrap.hero-wrap-2 .overlay {
  opacity: 0.7 !important;
  background: linear-gradient(135deg, rgba(15, 30, 53, 0.85) 0%, rgba(26, 47, 79, 0.9) 100%) !important;
}

.hero-wrap .container {
  position: relative;
  z-index: 2;
}

/* Hero Text Visibility Fixes */
.slider-text .subheading {
  color: #c9a961 !important;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5), 0 0 8px rgba(0, 0, 0, 0.3) !important;
  font-weight: 700 !important;
  letter-spacing: 0.1em;
}

.slider-text h1 {
  color: #ffffff !important;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7), 0 0 12px rgba(0, 0, 0, 0.4) !important;
  font-weight: 700 !important;
}

.slider-text h1 span {
  color: #c9a961 !important;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7), 0 0 12px rgba(0, 0, 0, 0.4) !important;
  font-weight: 700 !important;
}

.slider-text p {
  color: rgba(255, 255, 255, 0.95) !important;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6), 0 0 6px rgba(0, 0, 0, 0.3) !important;
  line-height: 1.8 !important;
}

.slider-text p strong {
  color: #ffffff !important;
  font-weight: 700 !important;
}

.slider-text p strong a {
  color: #c9a961 !important;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5) !important;
}

/* Hero Button Visibility */
.slider-text .btn-outline-primary {
  border-color: #ffffff !important;
  color: #ffffff !important;
  background-color: rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: blur(4px);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5) !important;
  font-weight: 600 !important;
}

.slider-text .btn-outline-primary:hover {
  background-color: rgba(255, 255, 255, 0.95) !important;
  color: #1e4a72 !important;
  border-color: #ffffff !important;
  text-shadow: none !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.slider-text .btn-primary {
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3) !important;
  font-weight: 600 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.slider-text .btn-primary:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
}

/* CTA Sections */
.ftco-consultation {
  background-color: #1e4a72;
}

.ftco-consultation .overlay {
  opacity: 0.85 !important;
  background: linear-gradient(135deg, rgba(15, 30, 53, 0.9) 0%, rgba(26, 47, 79, 0.95) 100%) !important;
}

.ftco-consultation .heading-section-white h2 {
  color: #ffffff !important;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5) !important;
  font-weight: 700 !important;
}

.ftco-consultation .heading-section-white p {
  color: rgba(255, 255, 255, 0.95) !important;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4) !important;
}

/* Consultation Form Input Visibility */
.consultation .form-control {
  border-color: rgba(255, 255, 255, 0.4) !important;
  background: rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: blur(4px);
  color: #ffffff !important;
}

.consultation .form-control:focus,
.consultation .form-control:active {
  border-color: #c9a961 !important;
  background: rgba(255, 255, 255, 0.15) !important;
  box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.2) !important;
  color: #ffffff !important;
}

.consultation .form-control::-webkit-input-placeholder {
  color: rgba(255, 255, 255, 0.8) !important;
}

.consultation .form-control::-moz-placeholder {
  color: rgba(255, 255, 255, 0.8) !important;
}

.consultation .form-control:-ms-input-placeholder {
  color: rgba(255, 255, 255, 0.8) !important;
}

.consultation .form-control:-moz-placeholder {
  color: rgba(255, 255, 255, 0.8) !important;
}

/* Footer Enhancements */
.ftco-footer {
  background-color: #1a3d5a !important;
}

.ftco-footer a:hover {
  color: #c9a961 !important;
}

/* Form Enhancements */
.form-control {
  border-color: #dee2e6 !important;
  color: #212529 !important;
}

.form-control:focus {
  border-color: #1e4a72 !important;
  box-shadow: 0 0 0 0.2rem rgba(30, 74, 114, 0.25) !important;
  outline: none !important;
}

.form-control::placeholder {
  color: #6c757d !important;
  opacity: 0.7;
}

/* Invalid form fields */
.form-control.is-invalid {
  border-color: #dc3545 !important;
}

.form-control.is-invalid:focus {
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

/* Trust Feature Cards */
.services.text-center:hover {
  transform: translateY(-5px);
  transition: all 0.3s ease;
}

/* Process Section Icons */
.services .icon span {
  color: #1e4a72;
}

/* Testimonial Section */
.testimony-wrap {
  border-left: 3px solid #1e4a72;
}

/* Breadcrumb */
.breadcrumbs a {
  color: #1e4a72;
}

.breadcrumbs a:hover {
  color: #2c5f7a;
}

/* Loader */
#ftco-loader .path {
  stroke: #1e4a72 !important;
}

/* Subheading Colors - Fixed for Contrast */
.heading-section .subheading {
  color: #1e4a72 !important;
  font-weight: 700 !important;
  letter-spacing: 0.1em;
}

/* Gold subheading only on dark backgrounds */
.heading-section.heading-section-white .subheading {
  color: #c9a961 !important;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5) !important;
}

.slider-text .subheading {
  color: #c9a961 !important;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5), 0 0 8px rgba(0, 0, 0, 0.3) !important;
}

/* Service Icons */
.services .icon span {
  color: #1e4a72 !important;
}

.practice-area .icon span {
  color: #1e4a72 !important;
}

/* Hero Section Text */
.slider-text h1 span {
  color: #c9a961 !important;
}

/* Links in Hero */
.slider-text p strong a {
  color: #c9a961 !important;
}

/* CTA Button Custom */
.btn-custom {
  background-color: #1e4a72 !important;
  border-color: #1e4a72 !important;
  color: #fff !important;
  font-weight: 600 !important;
}

.btn-custom:hover {
  background-color: #2c5f7a !important;
  border-color: #2c5f7a !important;
  color: #fff !important;
}

/* Typography Improvements */
h1, h2, h3, h4, h5, h6 {
  color: #1e4a72 !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
}

.heading-section h2 {
  color: #1e4a72 !important;
  font-weight: 700 !important;
  font-size: 2.25rem !important;
  line-height: 1.3 !important;
}

.heading-section.heading-section-white h2 {
  color: #ffffff !important;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5) !important;
}

.heading-section.heading-section-white p {
  color: rgba(255, 255, 255, 0.95) !important;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4) !important;
}

/* Text Colors - Ensure Contrast */
.text-secondary {
  color: #6b7280 !important;
}

/* Links - Better Contrast */
a {
  color: #1e4a72;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #2c5f7a;
  text-decoration: none;
}

/* Gold accent for links on dark backgrounds */
.heading-section-white a,
.slider-text a {
  color: #c9a961 !important;
}

.heading-section-white a:hover,
.slider-text a:hover {
  color: #f4d03f !important;
}

/* Service Cards Text Contrast */
.services h4 {
  color: #1e4a72 !important;
  font-weight: 600 !important;
}

.services p {
  color: #4b5563 !important;
  line-height: 1.7 !important;
}

/* CTA Bar Improvements */
.bg-primary {
  background-color: #1e4a72 !important;
}

.bg-primary h2,
.bg-primary p {
  color: #ffffff !important;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3) !important;
}

.bg-primary .btn-light {
  background-color: #ffffff !important;
  color: #1e4a72 !important;
  font-weight: 600 !important;
  border: 2px solid #ffffff !important;
}

.bg-primary .btn-light:hover {
  background-color: #f8f9fa !important;
  color: #1e4a72 !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Mobile Responsiveness */
@media (max-width: 767.98px) {
  .slider-text h1 {
    font-size: 2rem !important;
    line-height: 1.3 !important;
  }
  
  .slider-text .subheading {
    font-size: 0.875rem !important;
  }
  
  .slider-text p {
    font-size: 1rem !important;
  }
  
  .heading-section h2 {
    font-size: 1.75rem !important;
  }
  
  .btn {
    padding: 0.75rem 1.5rem !important;
    font-size: 0.9375rem !important;
    min-height: 44px !important;
  }
  
  .form-control {
    min-height: 44px !important;
    font-size: 16px !important; /* Prevents zoom on iOS */
  }
  
  .bg-primary h2 {
    font-size: 1.25rem !important;
  }
  
  .bg-primary p {
    font-size: 0.875rem !important;
  }
}

/* Breadcrumb Visibility */
.slider-text .breadcrumbs {
  color: rgba(255, 255, 255, 0.9) !important;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5) !important;
}

.slider-text .breadcrumbs a {
  color: rgba(255, 255, 255, 0.95) !important;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5) !important;
}

.slider-text .breadcrumbs a:hover {
  color: #c9a961 !important;
}

/* Testimonial Text Contrast */
.testimony-wrap .text p {
  color: #374151 !important;
  line-height: 1.8 !important;
}

.testimony-wrap .name {
  color: #1e4a72 !important;
  font-weight: 600 !important;
}

.testimony-wrap .position {
  color: #6b7280 !important;
}
