/* ============================================
   AnrexHub — Custom Styles
   Premium CA & Business Compliance Website
   ============================================ */

/* ---------- Brand Variables ---------- */
:root {
  --navy:         #0a1628;
  --navy-light:   #132038;
  --navy-mid:     #1a2740;
  --gold:         #c8a55a;
  --gold-light:   #d4b870;
  --gold-dark:    #b08f3e;
  --charcoal:     #1e293b;
  --slate:        #475569;
  --slate-light:  #94a3b8;
  --green:        #10b981;
  --green-light:  #34d399;
  --bg-light:     #f8fafc;
  --bg-section:   #f1f5f9;
  --white:        #ffffff;
  --text-primary: #0f172a;
  --text-body:    #334155;
  --text-muted:   #64748b;
  --radius:       12px;
  --radius-lg:    16px;
  --radius-xl:    24px;
  --shadow-sm:    0 1px 2px rgba(0,0,0,.05);
  --shadow:       0 4px 6px -1px rgba(0,0,0,.07), 0 2px 4px -2px rgba(0,0,0,.05);
  --shadow-md:    0 10px 15px -3px rgba(0,0,0,.08), 0 4px 6px -4px rgba(0,0,0,.04);
  --shadow-lg:    0 20px 25px -5px rgba(0,0,0,.08), 0 8px 10px -6px rgba(0,0,0,.04);
  --shadow-gold:  0 8px 24px rgba(200,165,90,.18);
  --transition:   all .3s cubic-bezier(.4,0,.2,1);
}

/* ============================================================
   HIGH-CONTRAST ACCESSIBILITY & LEGIBILITY RULES
   Fixes washed-out text, low contrast buttons, and dark section copy
   ============================================================ */

/* 1. All Gold Buttons: text must be bold dark navy for 10:1+ contrast */
a[class*="bg-gold"],
button[class*="bg-gold"],
.bg-gold,
.bg-gold-500,
.bg-gold-dark {
  color: #071322 !important;
  font-weight: 700 !important;
}
a[class*="bg-gold"]:hover,
button[class*="bg-gold"]:hover {
  color: #000000 !important;
}

/* 2. Gold Text on Light Backgrounds (White, Slate-50, Gray-50) */
/* Deep warm amber-bronze (#945600) with 6:1+ contrast ratio against white */
.bg-white .text-gold,
.bg-white .text-gold-500,
.bg-white .text-gold-600,
.bg-slate-50 .text-gold,
.bg-slate-50 .text-gold-500,
.bg-gray-50 .text-gold,
.bg-gray-50 .text-gold-500,
header.bg-white nav a.text-gold,
header.bg-white nav a.text-gold-500,
main .text-gold,
main .text-gold-500,
section:not(.bg-navy):not(.bg-navy-dark):not(.bg-navy-900):not(.bg-charcoal) .text-gold,
section:not(.bg-navy):not(.bg-navy-dark):not(.bg-navy-900):not(.bg-charcoal) .text-gold-500 {
  color: #945600 !important;
}

/* 3. Gold Text on Dark Backgrounds (Navy, Charcoal, Footers) */
/* Luminous rich gold that shines brightly on dark backgrounds */
.bg-navy .text-gold,
.bg-navy-dark .text-gold,
.bg-navy-900 .text-gold,
.bg-charcoal .text-gold,
.heroSwiper .text-gold,
header.bg-navy .text-gold,
footer .text-gold,
.bg-navy span.text-gold,
.bg-navy-dark span.text-gold,
.bg-navy-900 span.text-gold,
.bg-navy-900 .text-gold-500,
.bg-navy .text-gold-500 {
  color: #f7ce68 !important;
}

/* 4. Muted Text on Dark Backgrounds (Footers, Dark Sections) */
.bg-navy p.text-gray-400,
.bg-navy-dark p.text-gray-400,
.bg-navy-900 p.text-gray-400,
.bg-charcoal p.text-gray-400,
.bg-slate-800 p.text-gray-400,
footer p.text-gray-400,
footer p.text-gray-500,
footer span.text-white\/70,
footer p.text-white\/70,
footer p.text-white\/50,
footer a.text-gray-400,
footer .text-gray-400,
footer .text-gray-500 {
  color: #d1d5db !important; /* Slate-300: crisp contrast on dark navy */
}

/* 5. Subheadings and Paragraphs on Dark Backgrounds */
.bg-navy .text-gray-300,
.bg-navy-dark .text-gray-300,
.bg-navy-900 .text-gray-300,
.heroSwiper p.text-gray-300,
.heroSwiper p.text-gray-200 {
  color: #e2e8f0 !important;
}

/* 6. Active nav links on light background headers */
header.bg-white nav a.text-gold,
header.bg-white nav a.text-gold-500 {
  color: #0a1628 !important;
  font-weight: 700 !important;
  border-bottom: 2px solid #b08f3e;
}

/* 7. Headings in Hero Banners and Dark Sections MUST be Pure White */
.bg-navy h1, .bg-navy h2, .bg-navy h3, .bg-navy h4, .bg-navy h5, .bg-navy h6,
.bg-navy-dark h1, .bg-navy-dark h2, .bg-navy-dark h3, .bg-navy-dark h4, .bg-navy-dark h5, .bg-navy-dark h6,
.bg-navy-900 h1, .bg-navy-900 h2, .bg-navy-900 h3, .bg-navy-900 h4, .bg-navy-900 h5, .bg-navy-900 h6,
.bg-charcoal h1, .bg-charcoal h2, .bg-charcoal h3,
.text-white,
.text-white h1, .text-white h2, .text-white h3, .text-white h4, .text-white h5, .text-white h6,
section[class*="bg-navy"] h1, section[class*="bg-navy"] h2,
section[class*="bg-navy-900"] h1, section[class*="bg-navy-900"] h2,
header.bg-navy h1,
.heroSwiper h1, .heroSwiper h2,
.hero-slider h1, .hero-slider h2,
h1.text-white, h2.text-white, h3.text-white, h4.text-white, h5.text-white, h6.text-white {
  color: #ffffff !important;
}

/* ---------- Base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text-body);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}

img, svg, video, canvas, iframe {
  max-width: 100%;
  height: auto;
}

h1,h2,h3,h4,h5,h6 {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  color: var(--text-primary);
  line-height: 1.25;
  font-weight: 700;
}

/* ---------- Sticky Header ---------- */
#main-header {
  transition: var(--transition);
  z-index: 1000;
}
#main-header {
  background: #ffffff;
  transition: box-shadow .3s ease;
  z-index: 1000;
}
#main-header.scrolled {
  box-shadow: 0 4px 20px -2px rgba(0,0,0,.08);
}

.nav-link {
  position: relative;
  font-weight: 500;
  font-size: .875rem;
  white-space: nowrap;
  transition: color .25s ease;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%; right: 50%;
  height: 2px;
  background: var(--gold);
  border-radius: 1px;
  transition: left .3s ease, right .3s ease;
}
.nav-link:hover::after,
.nav-link.active::after {
  left: 0; right: 0;
}

/* ---------- Mobile Menu ---------- */
#mobile-menu.fixed {
  transform: none;
  transition: opacity .3s ease;
}
#mobile-menu:not(.fixed) {
  transform: none !important;
}

/* ---------- Hero Financial Dashboard ---------- */
.hero-dashboard {
  position: relative;
  width: 100%;
  max-width: 560px;
  perspective: 1200px;
}

.dashboard-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid #e2e8f0;
  transition: var(--transition);
}
.dashboard-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-gold);
}

.dashboard-main {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  border-radius: var(--radius-xl);
  color: var(--white);
  padding: 1.75rem;
  box-shadow: 0 25px 50px -12px rgba(10,22,40,.35);
  position: relative;
  overflow: hidden;
}
.dashboard-main::before {
  content: '';
  position: absolute;
  top: -50%; right: -30%;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(200,165,90,.12) 0%, transparent 70%);
  border-radius: 50%;
}

/* Mini chart bars animation */
.chart-bar {
  display: inline-block;
  width: 8px;
  border-radius: 4px 4px 0 0;
  background: var(--gold);
  transform-origin: bottom;
  animation: growBar 1.5s ease forwards;
}
@keyframes growBar {
  from { transform: scaleY(0); }
  to   { transform: scaleY(1); }
}

.chart-bar-green {
  background: var(--green);
}

/* Floating cards around dashboard */
.float-card {
  position: absolute;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: .75rem 1rem;
  animation: floatUp 3s ease-in-out infinite alternate;
  border: 1px solid #e2e8f0;
}
.float-card:nth-child(2) { animation-delay: .5s; }
.float-card:nth-child(3) { animation-delay: 1s; }

@keyframes floatUp {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-10px); }
}

/* ---------- Stats Counter ---------- */
.stat-item {
  text-align: center;
  padding: 2rem 1.5rem;
}
.stat-number {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
  margin-bottom: .25rem;
}
.stat-label {
  font-size: .875rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .05em;
}

/* ---------- Section Titles ---------- */
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .375rem 1rem;
  background: rgba(200,165,90,.1);
  color: var(--gold-dark);
  border-radius: 100px;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.section-badge::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 50%;
}

.section-title {
  font-size: clamp(1.875rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
}

.section-subtitle {
  font-size: 1.0625rem;
  color: var(--text-muted);
  max-width: 640px;
  line-height: 1.75;
}

/* ---------- Service Cards ---------- */
.service-card {
  background: var(--white);
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s ease;
}
.service-card:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-gold);
  transform: translateY(-6px);
}
.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 52px; height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  font-size: 1.375rem;
  margin-bottom: 1.25rem;
  transition: var(--transition);
}
.service-card:hover .service-icon { transform: scale(1.08); }

.service-icon.tax     { background: rgba(200,165,90,.12); color: var(--gold-dark); }
.service-icon.gst     { background: rgba(16,185,129,.1);  color: var(--green); }
.service-icon.account { background: rgba(59,130,246,.1);   color: #3b82f6; }
.service-icon.reg     { background: rgba(139,92,246,.1);   color: #8b5cf6; }
.service-icon.roc     { background: rgba(244,63,94,.08);   color: #f43f5e; }
.service-icon.other   { background: rgba(14,165,233,.1);   color: #0ea5e9; }

.service-learn-more {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  font-size: .875rem;
  font-weight: 600;
  color: var(--gold-dark);
  transition: gap .25s ease;
}
.service-card:hover .service-learn-more { gap: .625rem; }

/* ---------- Featured Service Cards ---------- */
.featured-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem;
  border: 1px solid #e2e8f0;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.featured-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--green));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .4s ease;
}
.featured-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}
.featured-card:hover::after { transform: scaleX(1); }

/* ---------- Why Choose Cards ---------- */
.why-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid #e2e8f0;
  transition: var(--transition);
}
.why-card:hover {
  border-color: transparent;
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

/* ---------- Process Timeline ---------- */
.timeline-connector {
  position: absolute;
  top: 50%;
  left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--green));
  z-index: 0;
}
@media (max-width: 768px) {
  .timeline-connector {
    top: 0; bottom: 0;
    left: 50%;
    width: 2px;
    height: 100%;
  }
}

.timeline-step {
  position: relative;
  z-index: 1;
  text-align: center;
}
.step-number {
  width: 56px; height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  color: var(--gold);
  border-radius: 50%;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 1.125rem;
  margin: 0 auto 1rem;
  border: 3px solid var(--white);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}
.timeline-step:hover .step-number {
  background: var(--gold);
  color: var(--navy);
  transform: scale(1.12);
}

/* ---------- Industry Cards ---------- */
.industry-card {
  background: var(--white);
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.25rem;
  text-align: center;
  transition: var(--transition);
}
.industry-card:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.industry-icon {
  width: 48px; height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(200,165,90,.1);
  color: var(--gold-dark);
  border-radius: var(--radius);
  font-size: 1.25rem;
  margin: 0 auto 1rem;
  transition: var(--transition);
}
.industry-card:hover .industry-icon {
  background: var(--gold);
  color: var(--white);
}

/* ---------- Client Portal Section ---------- */
.portal-section {
  background: linear-gradient(135deg, var(--navy) 0%, #0d1f3c 50%, var(--navy-mid) 100%);
  position: relative;
  overflow: hidden;
}
.portal-section::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(200,165,90,.08) 0%, transparent 70%);
  border-radius: 50%;
}

.portal-feature {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .625rem 0;
  color: #cbd5e1;
  font-size: .9375rem;
}
.portal-feature i {
  color: var(--green);
  font-size: .875rem;
  flex-shrink: 0;
}

/* Portal laptop mockup */
.portal-mockup {
  background: #1e293b;
  border-radius: var(--radius-lg);
  border: 2px solid #334155;
  padding: 1.25rem;
  position: relative;
  box-shadow: 0 25px 60px rgba(0,0,0,.4);
}
.portal-mockup::after {
  content: '';
  position: absolute;
  bottom: -16px;
  left: 20%; right: 20%;
  height: 8px;
  background: #334155;
  border-radius: 0 0 8px 8px;
}

/* ---------- Document Cards ---------- */
.doc-card {
  background: var(--white);
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  transition: var(--transition);
}
.doc-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: var(--gold);
}

/* ---------- Testimonial Slider ---------- */
.testimonial-card {
  background: var(--white);
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-xl);
  padding: 2rem;
  transition: var(--transition);
}
.testimonial-card:hover { box-shadow: var(--shadow-md); }

.testimonial-avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(200,165,90,.25);
}

.swiper-pagination-bullet {
  background: var(--slate-light) !important;
  opacity: 1 !important;
  width: 10px !important;
  height: 10px !important;
  transition: var(--transition);
}
.swiper-pagination-bullet-active {
  background: var(--gold) !important;
  width: 28px !important;
  border-radius: 5px !important;
}

/* Compact Hero Slider Styles */
.heroSwiper {
  width: 100%;
  height: 100%;
}
.heroSwiper .swiper-slide {
  height: 100%;
  overflow: hidden;
}
.heroSwiper .swiper-pagination {
  bottom: 14px !important;
}
@media (max-width: 640px) {
  .heroSwiper .swiper-pagination {
    bottom: 8px !important;
  }
}

/* ---------- FAQ Accordion ---------- */
.faq-item {
  border: 1px solid #e2e8f0;
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}
.faq-item.active { border-color: var(--gold); box-shadow: var(--shadow-sm); }

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: background .2s ease;
}
.faq-question:hover { background: var(--bg-light); }

.faq-icon {
  width: 28px; height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-section);
  border-radius: 50%;
  font-size: .75rem;
  color: var(--slate);
  transition: var(--transition);
  flex-shrink: 0;
}
.faq-item.active .faq-icon {
  background: var(--gold);
  color: var(--white);
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s cubic-bezier(.4,0,.2,1), padding .3s ease;
}
.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 0 1.5rem 1.25rem;
}

/* ---------- CTA Section ---------- */
.cta-section {
  background: linear-gradient(135deg, var(--navy) 0%, #0d1f3c 60%, var(--navy-mid) 100%);
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: -100px; left: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(200,165,90,.06) 0%, transparent 70%);
  border-radius: 50%;
}
.cta-section::after {
  content: '';
  position: absolute;
  bottom: -150px; right: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(16,185,129,.05) 0%, transparent 70%);
  border-radius: 50%;
}

/* ---------- Contact Form ---------- */
.contact-input {
  width: 100%;
  padding: .875rem 1rem;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius);
  font-family: 'Inter', sans-serif;
  font-size: .9375rem;
  color: var(--text-primary);
  background: var(--white);
  transition: var(--transition);
}
.contact-input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(200,165,90,.15);
}
.contact-input::placeholder { color: var(--slate-light); }

.contact-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

/* ---------- Buttons ---------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .875rem 2rem;
  background: var(--gold);
  color: var(--navy);
  border: none;
  border-radius: var(--radius);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: .9375rem;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}
.btn-primary:hover {
  background: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .875rem 2rem;
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
  border-radius: var(--radius);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: .9375rem;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}
.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-white {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .875rem 2rem;
  background: var(--white);
  color: var(--navy);
  border: none;
  border-radius: var(--radius);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: .9375rem;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}
.btn-white:hover {
  background: var(--bg-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline-white {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .875rem 2rem;
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,.3);
  border-radius: var(--radius);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: .9375rem;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}
.btn-outline-white:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.6);
  transform: translateY(-2px);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--navy);
  color: #94a3b8;
}
.footer a {
  color: #94a3b8;
  text-decoration: none;
  transition: color .2s ease;
  font-size: .875rem;
}
.footer a:hover { color: var(--gold); }

.footer-heading {
  color: var(--white);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: .9375rem;
  margin-bottom: 1.25rem;
  position: relative;
}
.footer-heading::after {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gold);
  margin-top: .5rem;
  border-radius: 1px;
}

.footer-social a {
  width: 40px; height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.06);
  border-radius: 50%;
  color: #94a3b8;
  font-size: 1rem;
  transition: var(--transition);
}
.footer-social a:hover {
  background: var(--gold);
  color: var(--navy);
  transform: translateY(-3px);
}

/* ---------- Scroll Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s cubic-bezier(.4,0,.2,1), transform .7s cubic-bezier(.4,0,.2,1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}
.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* stagger children */
.stagger > * { transition-delay: calc(var(--i, 0) * .1s); }

/* ---------- Utilities ---------- */
.text-gold { color: var(--gold) !important; }
.bg-gold   { background: var(--gold) !important; }
.text-navy { color: var(--navy) !important; }
.bg-navy   { background: var(--navy) !important; }

/* Gradient text */
.gradient-text {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Pulse ring animation for CTA buttons */
@keyframes pulseRing {
  0%   { box-shadow: 0 0 0 0 rgba(200,165,90,.4); }
  70%  { box-shadow: 0 0 0 10px rgba(200,165,90,0); }
  100% { box-shadow: 0 0 0 0 rgba(200,165,90,0); }
}
.pulse-ring { animation: pulseRing 2s infinite; }

/* Dot grid background pattern */
.dot-pattern {
  background-image: radial-gradient(circle, #e2e8f0 1px, transparent 1px);
  background-size: 24px 24px;
}

/* Form success animation */
.form-success {
  display: none;
  text-align: center;
  padding: 2rem;
}
.form-success.show { display: block; }
.form-success .checkmark {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  animation: scaleIn .5s ease;
}
@keyframes scaleIn {
  from { transform: scale(0); }
  to   { transform: scale(1); }
}

/* ---------- Hero Slider ---------- */
.hero-slider {
  position: relative;
  width: 100%;
  min-height: 80vh;
  overflow: hidden;
}
.hero-slider .swiper-slide {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero-slider .swiper-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,22,40,.82) 0%, rgba(10,22,40,.6) 50%, rgba(10,22,40,.75) 100%);
  z-index: 1;
}
.hero-slider .slide-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 2rem;
  text-align: center;
}
.hero-slider .slide-content h1 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 1.25rem;
}
.hero-slider .slide-content p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255,255,255,.8);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.hero-slider .swiper-pagination-bullet {
  width: 12px !important;
  height: 12px !important;
  background: rgba(255,255,255,.4) !important;
  opacity: 1 !important;
}
.hero-slider .swiper-pagination-bullet-active {
  background: var(--gold) !important;
  width: 32px !important;
  border-radius: 6px !important;
}
.hero-slider .swiper-button-next,
.hero-slider .swiper-button-prev {
  color: var(--white) !important;
  background: rgba(255,255,255,.1);
  width: 48px !important;
  height: 48px !important;
  border-radius: 50%;
  backdrop-filter: blur(8px);
  transition: var(--transition);
}
.hero-slider .swiper-button-next:hover,
.hero-slider .swiper-button-prev:hover {
  background: var(--gold);
  color: var(--navy) !important;
}
.hero-slider .swiper-button-next::after,
.hero-slider .swiper-button-prev::after {
  font-size: 1rem !important;
  font-weight: 700;
}

/* ---------- Page Hero Banner ---------- */
.page-hero {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  padding-top: 72px;
  text-align: center;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,22,40,.85) 0%, rgba(10,22,40,.7) 100%);
}
.page-hero .page-hero-content {
  position: relative;
  z-index: 2;
  padding: 3rem 1rem;
}
.page-hero h1 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: .75rem;
}
.page-hero .breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-size: .875rem;
  color: rgba(255,255,255,.6);
}
.page-hero .breadcrumb a {
  color: var(--gold);
  text-decoration: none;
  transition: color .2s ease;
}
.page-hero .breadcrumb a:hover {
  color: var(--gold-light);
}

/* ---------- Active Nav (Multi-page) ---------- */
.nav-link.current {
  color: var(--gold) !important;
}
.nav-link.current::after {
  left: 0;
  right: 0;
}

/* ============================================================
   RESPONSIVE FOOTER STYLES (Mobile & Desktop)
   ============================================================ */
footer {
  position: relative;
  background-color: #050b14 !important; /* deep rich navy-dark */
  color: #cbd5e1;
}

.footer-col-title {
  font-size: 1.0625rem;
  font-weight: 700;
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: #ffffff;
  margin-bottom: 1.125rem;
  position: relative;
  padding-bottom: 0.5rem;
  display: inline-block;
  letter-spacing: -0.01em;
}

.footer-col-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 2rem;
  height: 2px;
  background-color: #c8a55a;
  border-radius: 2px;
}

.footer-link {
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0;
  text-decoration: none;
  font-size: 0.875rem;
  transition: all 0.2s ease;
}

.footer-link i {
  font-size: 0.6875rem;
  color: #c8a55a;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.footer-link:hover {
  color: #c8a55a !important;
  transform: translateX(3px);
}

.footer-social-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #ffffff !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  transition: all 0.25s ease;
  text-decoration: none;
}

.footer-social-btn:hover,
.footer-social-btn:active {
  background: #c8a55a !important;
  color: #071322 !important;
  border-color: #c8a55a !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(200, 165, 90, 0.35);
}

/* ============================================================
   100% MOBILE RESPONSIVENESS & TOUCH OPTIMIZATIONS
   Tailored for smartphones (320px - 768px), high-DPI displays & thumb navigation
   ============================================================ */

/* Mobile Bottom Sticky Bar */
.mobile-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 -4px 20px rgba(10, 22, 40, 0.08);
  padding: 0.5rem 0.75rem calc(0.5rem + env(safe-area-inset-bottom, 0px));
  display: flex;
  align-items: center;
  justify-content: space-around;
  transition: transform 0.3s ease;
}

@media (min-width: 769px) {
  .mobile-bottom-bar {
    display: none !important;
  }
}

.mobile-bar-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding: 0.25rem 0.5rem;
  border-radius: 8px;
  color: var(--navy);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: transform 0.15s ease, color 0.2s ease;
  min-height: 44px;
}
.mobile-bar-btn:active {
  transform: scale(0.94);
}
.mobile-bar-btn i {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}
.mobile-bar-btn.btn-call {
  color: #0a1628;
}
.mobile-bar-btn.btn-call .icon-wrap {
  background: rgba(10, 22, 40, 0.08);
  color: #0a1628;
}
.mobile-bar-btn.btn-whatsapp {
  color: #059669;
}
.mobile-bar-btn.btn-whatsapp .icon-wrap {
  background: rgba(16, 185, 129, 0.15);
  color: #059669;
}
.mobile-bar-btn.btn-consult {
  color: #945600;
}
.mobile-bar-btn.btn-consult .icon-wrap {
  background: rgba(200, 165, 90, 0.2);
  color: #945600;
}
.mobile-bar-btn .icon-wrap {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2px;
  transition: background 0.2s ease;
}

/* Tablet & Mobile Screens (<= 768px) */
@media (max-width: 768px) {
  /* Reset body padding to prevent light/white strip beneath dark footer */
  body {
    padding-bottom: 0 !important;
  }

  /* Footer handles bottom clearance for sticky mobile bar seamlessly */
  footer {
    padding-top: 2.75rem !important;
    padding-bottom: calc(85px + env(safe-area-inset-bottom, 16px)) !important;
  }

  /* Links touch targets on mobile */
  .footer-link {
    min-height: 36px;
    padding: 0.35rem 0;
    font-size: 0.875rem;
  }

  /* Compact Sticky Header on mobile (64px) */
  #main-header .h-20 {
    height: 4.25rem !important; /* 68px */
  }

  /* Mobile Navigation Drawer: Full height scrollable drawer */
  #mobile-menu {
    max-height: calc(100vh - 4.25rem);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: 0 25px 50px -12px rgba(10, 22, 40, 0.35);
  }

  /* Prevent iOS zoom-in when tapping form inputs */
  input, select, textarea, .contact-input {
    font-size: 16px !important;
  }

  /* Section Padding reduction: tight, readable mobile flow without empty gaps */
  .py-24 {
    padding-top: 3.5rem !important;
    padding-bottom: 3.5rem !important;
  }
  .py-20 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }
  .py-16 {
    padding-top: 2.5rem !important;
    padding-bottom: 2.5rem !important;
  }
  .py-12 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }

  /* Typography fluid sizing on mobile */
  .section-title {
    font-size: 1.75rem !important;
    line-height: 1.25 !important;
  }
  .section-subtitle {
    font-size: 0.9375rem !important;
    line-height: 1.6 !important;
  }
  .stat-number {
    font-size: 2.25rem !important;
  }

  /* Touch-friendly buttons (full width on small screens when stacked) */
  .btn-primary, .btn-outline, .btn-white, .btn-outline-white {
    padding: 0.875rem 1.5rem !important;
    font-size: 0.9375rem !important;
    min-height: 46px;
    justify-content: center;
  }

  /* Ensure cards have comfortable padding on small screens */
  .service-card, .featured-card, .why-card, .doc-card, .testimonial-card {
    padding: 1.35rem 1.25rem !important;
  }

  /* Hide decorative floating cards that may break mobile view */
  .hero-dashboard {
    max-width: 100% !important;
  }
  .float-card {
    display: none !important;
  }

  /* Swiper slide content on mobile */
  .hero-slider .slide-content {
    padding: 1.5rem 1rem !important;
  }
  .hero-slider .slide-content h1 {
    font-size: 1.875rem !important;
    line-height: 1.25 !important;
    margin-bottom: 0.75rem !important;
  }
  .hero-slider .slide-content p {
    font-size: 0.9375rem !important;
    line-height: 1.55 !important;
    margin-bottom: 1.5rem !important;
  }

  /* Page hero banner on mobile */
  .page-hero {
    min-height: 240px !important;
  }
  .page-hero .page-hero-content {
    padding: 2.5rem 1rem 2rem !important;
  }
  .page-hero h1 {
    font-size: 1.875rem !important;
  }
}

/* Extra Small Phones (<= 480px) */
@media (max-width: 480px) {
  .section-title {
    font-size: 1.5rem !important;
  }
  .stat-number {
    font-size: 1.875rem !important;
  }
  .stat-label {
    font-size: 0.75rem !important;
  }
  .hero-slider .slide-content h1 {
    font-size: 1.625rem !important;
  }
  .page-hero h1 {
    font-size: 1.625rem !important;
  }
  .service-icon {
    width: 44px !important;
    height: 44px !important;
    font-size: 1.15rem !important;
    margin-bottom: 1rem !important;
  }
}

/* Ensure no elements cause horizontal overflow */
.break-words {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-light); }
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: var(--slate-light); }

/* Selection color */
::selection {
  background: rgba(200,165,90,.2);
  color: var(--navy);
}
