/* ==========================================================================
   EQ Mathebula Attorneys - Premium Theme
   Design system: Deep Navy + Rich Gold
   ========================================================================== */

:root {
  --navy: #0A2342;
  --navy-deep: #071730;
  --navy-light: #123566;
  --gold: #C8A24D;
  --gold-light: #E1C480;
  --gold-dark: #A8823A;
  --charcoal: #21252B;
  --grey-light: #F6F5F1;
  --grey-mid: #E7E4DC;
  --white: #FFFFFF;

  --font-heading: 'Playfair Display', 'Georgia', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --shadow-soft: 0 10px 30px rgba(10, 35, 66, 0.10);
  --shadow-strong: 0 20px 50px rgba(10, 35, 66, 0.20);
  --radius: 10px;
}

/* ---------- Base ---------- */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
.display-heading {
  font-family: var(--font-heading);
  color: var(--navy);
  font-weight: 700;
  letter-spacing: 0.2px;
}

a {
  color: var(--navy);
}

a:hover {
  color: var(--gold-dark);
}

::selection {
  background: var(--gold-light);
  color: var(--navy-deep);
}

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--gold);
  color: var(--navy-deep);
  padding: 10px 18px;
  z-index: 2000;
  font-weight: 600;
  border-radius: 0 0 6px 0;
}

.skip-link:focus {
  left: 0;
}

/* ---------- Section rhythm ---------- */
.section {
  padding: 5.5rem 0;
}

.section-sm {
  padding: 3.25rem 0;
}

.bg-navy {
  background: var(--navy);
  color: var(--white);
}

.bg-navy h1,
.bg-navy h2,
.bg-navy h3,
.bg-navy h4 {
  color: var(--white);
}

.bg-grey {
  background: var(--grey-light);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 2.5px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold-dark);
  margin-bottom: 0.9rem;
}

.eyebrow::before {
  content: "";
  width: 32px;
  height: 2px;
  background: var(--gold);
  display: inline-block;
}

.bg-navy .eyebrow {
  color: var(--gold-light);
}

.section-title {
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  margin-bottom: 1rem;
}

.section-lede {
  color: #5A6270;
  max-width: 720px;
  font-size: 1.08rem;
}

.bg-navy .section-lede {
  color: rgba(255, 255, 255, 0.78);
}

.divider-gold {
  width: 64px;
  height: 3px;
  background: var(--gold);
  border: none;
  border-radius: 2px;
  margin: 1.1rem 0 1.6rem;
}

.mx-auto.divider-gold {
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Buttons ---------- */
.btn-gold {
  background: var(--gold);
  border: 1px solid var(--gold);
  color: var(--navy-deep);
  font-weight: 700;
  padding: 0.75rem 1.7rem;
  border-radius: 6px;
  letter-spacing: 0.3px;
  transition: all 0.25s ease;
}

.btn-gold:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.btn-outline-navy {
  background: transparent;
  border: 1.5px solid var(--navy);
  color: var(--navy);
  font-weight: 700;
  padding: 0.7rem 1.6rem;
  border-radius: 6px;
  transition: all 0.25s ease;
}

.btn-outline-navy:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-outline-light {
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  color: var(--white);
  font-weight: 700;
  padding: 0.7rem 1.6rem;
  border-radius: 6px;
  transition: all 0.25s ease;
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background: #25D366;
  color: var(--white);
  font-weight: 700;
  padding: 0.75rem 1.7rem;
  border-radius: 6px;
  border: 1px solid #25D366;
  transition: all 0.25s ease;
}

.btn-whatsapp:hover {
  background: #1DA851;
  color: var(--white);
  transform: translateY(-2px);
}

/* ---------- Navigation ---------- */
.site-navbar {
  background: var(--navy);
  padding: 0.55rem 0;
  transition: box-shadow 0.3s ease, padding 0.3s ease;
  border-bottom: 1px solid rgba(200, 162, 77, 0.18);
}

.site-navbar.scrolled {
  box-shadow: var(--shadow-soft);
  padding: 0.25rem 0;
}

.site-navbar .navbar-brand img {
  height: 58px;
  width: auto;
  transition: height 0.3s ease;
}

.site-navbar.scrolled .navbar-brand img {
  height: 46px;
}

.site-navbar .nav-link {
  color: rgba(255, 255, 255, 0.88) !important;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.2px;
  padding: 0.55rem 1rem !important;
  position: relative;
}

.site-navbar .nav-link::after {
  content: "";
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 0.3rem;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.site-navbar .nav-link:hover::after,
.site-navbar .nav-link.active::after {
  transform: scaleX(1);
}

.site-navbar .nav-link.active {
  color: var(--gold-light) !important;
}

.nav-cta {
  margin-left: 0.5rem;
}

.topbar {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.82rem;
  padding: 0.4rem 0;
}

.topbar a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}

.topbar a:hover {
  color: var(--gold-light);
}

.topbar .divider {
  opacity: 0.3;
  margin: 0 0.7rem;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  background: linear-gradient(120deg, rgba(7, 23, 48, 0.92) 10%, rgba(10, 35, 66, 0.80) 55%, rgba(10, 35, 66, 0.55) 100%), url('../img/EQMathebulaAttorneycard.jpg') center/cover no-repeat;
  color: var(--white);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(45deg, rgba(200, 162, 77, 0.05) 0, rgba(200, 162, 77, 0.05) 1px, transparent 1px, transparent 34px);
  pointer-events: none;
}

.hero .hero-kicker {
  color: var(--gold-light);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.hero h1 em {
  font-style: normal;
  color: var(--gold-light);
}

.hero .lead {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.15rem;
  max-width: 620px;
  margin-bottom: 2rem;
}

.hero .hero-actions .btn {
  margin: 0 0.5rem 0.6rem 0;
}

.hero-scroll-cue {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.4rem;
  animation: bounce 2.2s infinite;
}

@keyframes bounce {

  0%,
  100% {
    transform: translate(-50%, 0);
  }

  50% {
    transform: translate(-50%, 10px);
  }
}

/* ---------- Trust / Stats ---------- */
.stats-strip {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-strong);
  margin-top: -70px;
  position: relative;
  z-index: 5;
  padding: 2.2rem 1rem;
}

.stat-card {
  text-align: center;
  padding: 0.6rem 0.4rem;
}

.stat-card .stat-num {
  font-family: var(--font-heading);
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  color: var(--navy);
  font-weight: 700;
  line-height: 1;
}

.stat-card .stat-num .plus {
  color: var(--gold-dark);
}

.stat-card .stat-label {
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.78rem;
  color: #6b7280;
  font-weight: 600;
  margin-top: 0.5rem;
}

/* ---------- Practice Area Cards ---------- */
.practice-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  height: 340px;
  display: flex;
  align-items: flex-end;
  box-shadow: var(--shadow-soft);
  isolation: isolate;
}

.practice-card img.bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  z-index: -2;
}

.practice-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 35, 66, 0.05) 20%, rgba(7, 17, 30, 0.92) 100%);
  z-index: -1;
}

.practice-card:hover img.bg-img {
  transform: scale(1.08);
}

.practice-card .practice-body {
  padding: 1.6rem;
  color: var(--white);
  width: 100%;
}

.practice-card .practice-icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gold);
  color: var(--navy-deep);
  border-radius: 50%;
  margin-bottom: 0.8rem;
  font-size: 1.05rem;
}

.practice-card h4 {
  color: var(--white);
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.practice-card p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.92rem;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: all 0.35s ease;
  margin-bottom: 0;
}

.practice-card:hover p {
  max-height: 100px;
  opacity: 1;
  margin-bottom: 0.7rem;
}

.practice-card .practice-link {
  color: var(--gold-light);
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.practice-card .practice-link i {
  transition: transform 0.25s ease;
}

.practice-card .practice-link:hover i {
  transform: translateX(4px);
}

/* ---------- Why choose us ---------- */
.feature-box {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-soft);
  height: 100%;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-box:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-strong);
}

.feature-icon {
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(10, 35, 66, 0.06);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  border: 1.5px solid var(--gold);
}

.feature-box h5 {
  margin-bottom: 0.4rem;
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--navy);
}

.feature-box p {
  color: #5A6270;
  font-size: 0.94rem;
  margin-bottom: 0;
}

/* ---------- Attorney section ---------- */
.attorney-portrait {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-strong);
}

.attorney-portrait::before {
  content: "";
  position: absolute;
  inset: -14px auto auto -14px;
  width: 100%;
  height: 100%;
  border: 2px solid var(--gold);
  border-radius: var(--radius);
  z-index: -1;
}

.attorney-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.2rem 0;
}

.attorney-badges .badge-pill {
  border: 1px solid var(--grey-mid);
  border-radius: 30px;
  padding: 0.4rem 0.9rem;
  font-size: 0.82rem;
  color: var(--navy);
  font-weight: 600;
  background: var(--grey-light);
}

.attorney-quote {
  border-left: 3px solid var(--gold);
  padding-left: 1.1rem;
  font-family: var(--font-heading);
  font-style: italic;
  color: var(--navy);
  font-size: 1.1rem;
}

/* ---------- Timeline (Client Journey) ---------- */
.journey-track {
  position: relative;
}

.journey-track::before {
  content: "";
  position: absolute;
  top: 34px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--grey-mid);
}

.journey-step {
  position: relative;
  text-align: center;
  padding-top: 0;
}

.journey-num {
  width: 68px;
  height: 68px;
  margin: 0 auto 1.1rem;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  border: 3px solid var(--gold);
  position: relative;
  z-index: 2;
}

.journey-step h6 {
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.4rem;
}

.journey-step p {
  font-size: 0.87rem;
  color: #5A6270;
}

@media (max-width: 767px) {
  .journey-track::before {
    display: none;
  }
}

/* ---------- Testimonials ---------- */
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 2rem;
  height: 100%;
}

.testimonial-stars {
  color: var(--gold);
  margin-bottom: 0.8rem;
  font-size: 0.95rem;
}

.testimonial-quote {
  font-family: var(--font-heading);
  font-style: italic;
  color: var(--navy);
  font-size: 1.05rem;
  margin-bottom: 1.2rem;
}

.testimonial-person {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.testimonial-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: var(--font-heading);
}

.testimonial-name {
  font-weight: 700;
  color: var(--navy);
  font-size: 0.92rem;
  margin-bottom: 0;
}

.testimonial-role {
  font-size: 0.8rem;
  color: #6b7280;
}

/* ---------- CTA Banner ---------- */
.cta-banner {
  background: linear-gradient(120deg, var(--navy-deep), var(--navy));
  color: var(--white);
  border-radius: var(--radius);
  padding: 3rem 2.5rem;
  position: relative;
  overflow: hidden;
}

.cta-banner::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 220px;
  height: 220px;
  border: 2px solid rgba(200, 162, 77, 0.3);
  border-radius: 50%;
}

.cta-banner h3 {
  color: var(--white);
  margin-bottom: 0.5rem;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 0;
}

/* ---------- Contact section ---------- */
.contact-info-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 1.6rem;
  height: 100%;
}

.contact-info-card .icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.9rem;
}

.contact-form {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-strong);
  padding: 2.2rem;
}

.contact-form .form-label {
  font-weight: 600;
  color: var(--navy);
  font-size: 0.9rem;
}

.contact-form .form-control,
.contact-form .form-select {
  border-radius: 6px;
  border: 1px solid var(--grey-mid);
  padding: 0.65rem 0.9rem;
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 0.2rem rgba(200, 162, 77, 0.2);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.75);
}

.site-footer h5,
.site-footer h6 {
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 1.1rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--gold-light);
}

.site-footer ul {
  list-style: none;
  padding-left: 0;
}

.site-footer li {
  margin-bottom: 0.55rem;
}

.footer-social a {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

.footer-social a:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy-deep);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.2rem 0;
  font-size: 0.85rem;
}

.newsletter-form .form-control {
  border-radius: 6px 0 0 6px;
  border: none;
}

.newsletter-form .btn {
  border-radius: 0 6px 6px 0;
}

/* ---------- Page header (interior pages) ---------- */
.page-header {
  background: linear-gradient(120deg, rgba(7, 23, 48, 0.90), rgba(10, 35, 66, 0.75)), url('../img/01.jpg') center/cover;
  color: var(--white);
  padding: 6.5rem 0 4rem;
  position: relative;
}

.page-header h1 {
  color: var(--white);
}

.breadcrumb-gold {
  font-size: 0.85rem;
}

.breadcrumb-gold a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}

.breadcrumb-gold a:hover {
  color: var(--gold-light);
}

.breadcrumb-gold .sep {
  color: var(--gold-light);
  margin: 0 0.4rem;
}

/* ---------- WhatsApp floating button ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 58px;
  height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.6rem;
  box-shadow: var(--shadow-strong);
  z-index: 1000;
  transition: transform 0.25s ease;
}

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

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.08s;
}

.reveal-delay-2 {
  transition-delay: 0.16s;
}

.reveal-delay-3 {
  transition-delay: 0.24s;
}

.reveal-delay-4 {
  transition-delay: 0.32s;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-scroll-cue {
    animation: none;
  }
}

/* ---------- Accessibility: focus states ---------- */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

/* ---------- Utility ---------- */
.text-gold {
  color: var(--gold-dark);
}

.fw-800 {
  font-weight: 800;
}

.card-icon-lg {
  font-size: 2rem;
  color: var(--navy);
}

/* Responsive tweaks */
@media (max-width: 991px) {
  .hero {
    min-height: auto;
    padding: 7rem 0 5rem;
  }

  .stats-strip {
    margin-top: 1.5rem;
  }
}