/* Main CSS - Precision Tax Services, LLC */
:root {
  --primary-color: #0B1B2D;
  /* Dark Petrol Blue */
  --secondary-color: #5F6D78;
  /* Medium Blue Grey (Secondary 1) */
  --bg-cold-light: #E3E7EB;
  /* Cold Light Grey (Secondary 2) */
  --accent-color: #1C7ED6;
  /* Controlled Luminous Blue */
  --text-dark: #222831;
  /* Anthracite Grey (Main Text) */
  --text-on-dark: #F5F7FA;
  /* Warm White (Text on Dark BG) */
  --bg-light: #F5F7FA;
  /* Warm white for general light bgs */
  --white: #ffffff;
}

body {
  font-family: 'Open Sans', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
}

/* Custom Bootstrap overrides */
.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  font-weight: 500;
}

.btn-primary:hover {
  background-color: #0d2238;
  border-color: #0d2238;
}

.nav-link.active {
  color: var(--primary-color) !important;
  font-weight: 500;
}

.nav-link:hover {
  color: var(--accent-color) !important;
}

/* Navbar Logo Fix */
.navbar-brand img {
  height: 65px;
  width: auto;
  background-color: rgba(255, 255, 255, 0.95);
  padding: 5px;
  border-radius: 5px;
}

/* Hero section */
.hero-section {
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.9), rgba(59, 130, 246, 0.8)),
    url('../images/hero-bg.jpg') center/cover;
  color: white;
  min-height: 70vh;
  display: flex;
  align-items: center;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.hero-content p.lead {
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

/* Services cards */
.service-card {
  border: 1px solid var(--bg-cold-light);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  background: var(--white);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.service-icon {
  /* font-size: 3rem; Removed for image icons */
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.service-icon img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.service-card:hover .service-icon img {
  transform: scale(1.1);
}

.icon-img-sm {
  width: 20px;
  height: 20px;
  object-fit: contain;
  vertical-align: text-bottom;
  margin-right: 0.5rem;
}

.filter-white {
  filter: brightness(0) invert(1);
}

/* Testimonials */
.testimonial-card {
  background: var(--white);
  border: 1px solid var(--bg-cold-light);
  border-left: 4px solid var(--text-dark);
}

/* WhatsApp float button */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #25d366;
  color: white;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  transition: transform 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  color: white;
}

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

/* Custom form styles */
.form-control:focus {
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.25);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-content p.lead {
    font-size: 1.1rem;
  }

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

  .section-padding {
    padding: 60px 0;
  }

  .service-icon {
    font-size: 2.5rem;
  }

  .hero-section {
    min-height: 60vh;
  }

  .testimonial-card img {
    width: 40px !important;
    height: 40px !important;
  }
}

@media (max-width: 576px) {
  .hero-content h1 {
    font-size: 2rem;
  }

  .section-padding {
    padding: 40px 0;
  }

  .service-card {
    margin-bottom: 1.5rem;
  }

  .whatsapp-float {
    width: 55px;
    height: 55px;
    font-size: 1.6rem;
  }
}

/* Footer social links */
.social-links a {
  font-size: 1.2rem;
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: var(--accent-color) !important;
}

/* Page title sections */
.page-title-section {
  background: var(--bg-light);
  padding: 60px 0 40px;
}

.page-title-section h1 {
  color: var(--primary-color);
  font-weight: 700;
}

/* Contact form enhancements */
.contact-card {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  border: none;
}

/* Map container */
.map-container {
  height: 400px;
  border-radius: 0.375rem;
  overflow: hidden;
}

/* Resources section */
.resource-download {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  border-radius: 0.5rem;
  padding: 2rem;
}

.resource-download .btn {
  background: white;
  color: var(--primary-color);
  border: none;
  font-weight: 600;
}

.resource-download .btn:hover {
  background: var(--bg-light);
  transform: translateY(-2px);
}

/* --- Premium Redesign Styles --- */

/* Transparent Navbar */
.navbar-transparent {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1050;
  background-color: transparent !important;
  box-shadow: none !important;
  transition: all 0.3s ease;
}

.navbar-transparent .nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
}

.navbar-transparent .nav-link:hover,
.navbar-transparent .nav-link.active {
  color: #fff !important;
  font-weight: 600;
}

.navbar-transparent .navbar-brand strong {
  color: #fff !important;
}

/* Language Selector Visibility */
.navbar-transparent .dropdown-toggle {
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
}

.navbar-transparent .dropdown-toggle:hover {
  background-color: rgba(255, 255, 255, 0.1) !important;
  border-color: #fff !important;
}

/* WhatsApp Text Visibility */
.navbar-transparent small.text-muted {
  color: rgba(255, 255, 255, 0.8) !important;
}

/* Scrolled state (restores white bg) */
/* Scrolled state (restores white bg) - DISABLED STICKY BEHAVIOR */


.navbar-transparent.scrolled .nav-link {
  color: var(--text-dark) !important;
}

.navbar-transparent.scrolled .nav-link:hover,
.navbar-transparent.scrolled .nav-link.active {
  color: var(--primary-color) !important;
}

.navbar-transparent.scrolled .navbar-brand strong {
  color: var(--text-dark) !important;
}

/* Full Screen Hero */
/* Full Screen Hero */
.hero-fullscreen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

/* Blue Overlay */
.hero-fullscreen::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* background: linear-gradient(135deg, rgba(30, 58, 138, 0.9), rgba(59, 130, 246, 0.8)); */
  /* background: rgba(6, 182, 236, 0.9); */
  background: rgba(11, 27, 45, 0.8);
  z-index: 1;
}

/* Ensure content is above overlay */
.hero-fullscreen .container {
  position: relative;
  z-index: 2;
}

.hero-fullscreen h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

/* Hero Button Custom Hover */
.hero-fullscreen .btn-light:hover {
  background-color: var(--accent-color) !important;
  border-color: var(--accent-color) !important;
  color: white !important;
}

/* Back To Top Button */
.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: var(--primary-color);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 1.2rem;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  bottom: 20px;
  /* Ensure final position */
}

.back-to-top:hover {
  background-color: var(--secondary-color);
  color: white;
  transform: translateY(-3px);
}

/* Re-position WhatsApp to Left */
.whatsapp-float {
  right: auto;
  left: 20px;
  bottom: 20px;
}

/* Mobile Adjustments */
@media (max-width: 991px) {
  .hero-fullscreen {
    margin-top: 0;
    /* Reset for mobile if needed, or keep to overlap */
  }

  .navbar-collapse {
    background-color: white;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }

  .navbar-transparent .navbar-collapse .nav-link {
    color: var(--text-dark) !important;
  }

  .navbar-transparent .navbar-collapse .dropdown-toggle {
    color: var(--text-dark) !important;
    border-color: var(--text-light) !important;
  }
}

/* Final CTA Section Refinement */
.cta-section-final {
  min-height: 50vh;
  position: relative;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center bottom;
  /* Bottom half visibility */
  background-attachment: fixed;
  /* Parallax effect */
  color: white;
  padding: 4rem 0;
  overflow: hidden;
}

.cta-section-final::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(11, 27, 45, 0.8);
  /* Same as hero overlay */
  z-index: 1;
}

.cta-section-final .container {
  position: relative;
  z-index: 2;
}

@media (max-width: 768px) {
  .cta-section-final {
    min-height: 40vh;
    background-attachment: scroll;
    /* Disable parallax on mobile for better performance */
  }
}

/* ── Honeypot anti-spam field: visually hidden but present in DOM ── */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 2;
}

/* ═══════════════════════════════════════════
   Legal Pages
   ═══════════════════════════════════════════ */

/* Compact hero for interior legal pages */
.hero-compact {
  min-height: 35vh;
  display: flex;
  align-items: flex-end;
  padding-bottom: 3rem;
  position: relative;
  background-size: cover;
  background-position: center top;
  overflow: hidden;
}

.hero-compact::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(11, 27, 45, 0.82);
  z-index: 1;
}

.hero-compact .container {
  position: relative;
  z-index: 2;
}

.hero-compact .breadcrumb-item a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
}

.hero-compact .breadcrumb-item a:hover {
  color: white;
}

.hero-compact .breadcrumb-item.active {
  color: rgba(255, 255, 255, 0.85);
}

.hero-compact .breadcrumb-divider {
  color: rgba(255, 255, 255, 0.4);
}

/* Legal sidebar (sticky, desktop only) */
.legal-sidebar {
  position: sticky;
  top: 2rem;
  background: var(--bg-light);
  border-radius: 0.5rem;
  padding: 1.5rem;
  border: 1px solid var(--bg-cold-light);
}

.legal-sidebar .sidebar-label {
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 0.75rem;
}

.legal-sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}

.legal-nav-link {
  display: block;
  padding: 0.45rem 0.75rem;
  color: var(--text-dark);
  text-decoration: none;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
  margin-bottom: 0.15rem;
}

.legal-nav-link:hover {
  background: white;
  color: var(--accent-color);
  border-left-color: var(--accent-color);
}

.legal-nav-link.active {
  background: white;
  color: var(--primary-color);
  font-weight: 600;
  border-left-color: var(--primary-color);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.legal-lang-switch {
  font-size: 0.82rem;
  color: var(--secondary-color);
  padding-top: 0.75rem;
  border-top: 1px solid var(--bg-cold-light);
}

.legal-lang-switch a {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 500;
}

.legal-lang-switch a:hover {
  text-decoration: underline;
}

.legal-lang-switch a.active-lang {
  color: var(--primary-color);
  font-weight: 700;
  pointer-events: none;
}

/* Mobile legal pill-nav */
.legal-mobile-nav {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  margin-bottom: 1.75rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.legal-mobile-nav::-webkit-scrollbar { display: none; }

.legal-mobile-nav a {
  white-space: nowrap;
  padding: 0.35rem 0.9rem;
  border-radius: 2rem;
  font-size: 0.82rem;
  text-decoration: none;
  background: var(--bg-cold-light);
  color: var(--text-dark);
  border: 1px solid transparent;
  transition: all 0.2s;
}

.legal-mobile-nav a.active {
  background: var(--primary-color);
  color: white;
}

/* Legal content typography */
.legal-content h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--bg-cold-light);
}

.legal-content h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-top: 1.5rem;
  margin-bottom: 0.6rem;
}

.legal-content h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--secondary-color);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 1.25rem;
  margin-bottom: 0.4rem;
}

.legal-content p {
  color: var(--text-dark);
  line-height: 1.85;
  margin-bottom: 0.9rem;
}

.legal-content ul,
.legal-content ol {
  padding-left: 1.4rem;
  margin-bottom: 1rem;
}

.legal-content ul li,
.legal-content ol li {
  margin-bottom: 0.45rem;
  line-height: 1.75;
  color: var(--text-dark);
}

.legal-content ul li ul {
  margin-top: 0.4rem;
}

.legal-date-badge {
  display: inline-block;
  background: var(--bg-cold-light);
  color: var(--secondary-color);
  font-size: 0.82rem;
  padding: 0.25rem 0.85rem;
  border-radius: 2rem;
  margin-bottom: 1.5rem;
}

.legal-intro-block {
  font-size: 1.02rem;
  color: var(--secondary-color);
  border-left: 4px solid var(--accent-color);
  padding: 0.75rem 1rem;
  background: var(--bg-light);
  border-radius: 0 0.375rem 0.375rem 0;
  margin-bottom: 2rem;
  line-height: 1.7;
}

/* Cookie type card */
.cookie-type-card {
  background: var(--bg-light);
  border: 1px solid var(--bg-cold-light);
  border-radius: 0.5rem;
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
}

.cookie-type-card .ct-name {
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.cookie-type-card .ct-meta {
  font-size: 0.82rem;
  color: var(--secondary-color);
  margin-bottom: 0.35rem;
}

/* Footer legal links bar */
.footer-legal-links a {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  font-size: 0.8rem;
  transition: color 0.2s;
}

.footer-legal-links a:hover {
  color: white;
}

.footer-legal-links .sep {
  color: rgba(255, 255, 255, 0.25);
  margin: 0 0.5rem;
  font-size: 0.8rem;
}


/* ── About page — dark petrol overlay on images & carousel ── */
/* Wraps the static image; carousel already has position:relative */
.img-overlay-wrap {
  position: relative;
  display: block;
  line-height: 0; /* removes inline-block gap below img */
}

/* The overlay layer — same brand colour as hero, softened to 45% */
.img-overlay {
  position: absolute;
  inset: 0; /* top/right/bottom/left: 0 */
  background: rgba(11, 27, 45, 0.45);
  pointer-events: none; /* clicks pass through to the image/carousel */
  z-index: 2;
}