/* ============================================
   EDITORIAL BRUTALIST LAW FIRM
   Design: Asymmetric, Bold, Architectural
   ============================================ */

/* ========== DESIGN TOKENS ========== */

:root {
  /* Colors - Navy & Silver Palette */
  --color-bg-dark: #1a2332;       /* Deep navy - dark sections */
  --color-bg-light: #f0f2f5;      /* Cool gray-white - light sections */
  --color-bg-light-alt: #e4e7eb;  /* Slightly darker cool gray */

  --color-text-on-dark: #f0f2f5;  /* Light text for dark sections */
  --color-text-on-light: #1a2332; /* Dark text for light sections */
  --color-text-muted-dark: #8a9bb0;  /* Muted text on dark bg */
  --color-text-muted-light: #5a6a7a; /* Muted text on light bg */

  --color-accent: #5a7a9a;        /* Steel blue - primary accent */
  --color-accent-dark: #3d5a75;   /* Darker steel for hover */
  --color-accent-light: #7a9ab8;  /* Lighter steel blue */

  --color-border-dark: #2a3a4d;   /* Border on dark bg */
  --color-border-light: #c8ced6;  /* Border on light bg */

  --color-shadow: rgba(90, 122, 154, 0.15); /* Steel blue shadow */
  --color-shadow-dark: rgba(0, 0, 0, 0.3);

  /* Legacy variables for compatibility */
  --color-bg: var(--color-bg-light);
  --color-bg-alt: var(--color-bg-light-alt);
  --color-text: var(--color-text-on-light);
  --color-text-muted: var(--color-text-muted-light);

  /* Typography - Warm Serif */
  --font-display: 'Fraunces', Georgia, serif;           /* Warm, characterful */
  --font-heading: 'Libre Baskerville', Georgia, serif;  /* Elegant classic */
  --font-body: 'Source Sans 3', system-ui, sans-serif;  /* Clean, friendly */

  --text-display: clamp(3.5rem, 10vw, 8rem);  /* Adjusted for Fraunces */
  --text-h1: clamp(2.5rem, 7vw, 5rem);
  --text-h2: clamp(1.75rem, 4vw, 3rem);
  --text-h3: clamp(1.25rem, 2.5vw, 1.75rem);
  --text-body: clamp(1rem, 2vw, 1.125rem);
  --text-sm: 0.875rem;

  /* Spacing */
  --spacing-container: 1200px;
  --spacing-section: clamp(5rem, 12vw, 10rem);

  /* Effects */
  --radius: 3px;
  --shadow-soft: 0 8px 32px var(--color-shadow);
  --shadow-hard: 6px 6px 0 var(--color-accent);
  --shadow-glow: 0 0 30px rgba(90, 122, 154, 0.2);

  /* Transitions */
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========== RESET & BASE ========== */

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  direction: rtl;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* Grain Texture Overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.02'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: soft-light;
}

a {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

ul {
  list-style: none;
}

img, svg {
  display: block;
  max-width: 100%;
}

::selection {
  background: var(--color-accent);
  color: var(--color-bg-light);
}

/* ========== TYPOGRAPHY ========== */

h1, h2, h3, h4, h5, h6 {
  font-weight: normal;
  line-height: 1.1;
}

/* ========== LAYOUT ========== */

.container {
  max-width: var(--spacing-container);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 3rem);
}

.section {
  padding: var(--spacing-section) 0;
  position: relative;
}

/* ========== HEADER ========== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 0;
  transition: all 0.4s var(--ease);
  background: transparent;
}

.header .logo,
.header .nav-link,
.header .menu-toggle {
  color: var(--color-text-on-dark);
}

.header.scrolled {
  background: rgba(242, 236, 227, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--color-accent);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.header.scrolled .logo,
.header.scrolled .nav-link,
.header.scrolled .menu-toggle {
  color: var(--color-text-on-light);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: color 0.3s var(--ease);
}

.logo span {
  color: var(--color-accent);
}

.nav-desktop {
  display: flex;
  gap: 2rem;
}

.nav-link {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  position: relative;
  padding: 0.5rem 0;
  transition: color 0.3s var(--ease);
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width 0.3s var(--ease);
}

.nav-link:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  background: none;
  border: 2px solid currentColor;
  cursor: pointer;
  padding: 0.5rem;
  transition: all 0.3s var(--ease);
}

.menu-toggle:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-bg-light);
}

/* Mobile Nav */
.nav-mobile {
  position: fixed;
  inset: 0;
  background: var(--color-bg-dark);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  z-index: 999;
  transform: translateX(100%);
  transition: transform 0.5s var(--ease);
}

.nav-mobile.open {
  transform: translateX(0);
}

.nav-mobile a {
  font-family: var(--font-display);
  font-size: clamp(2rem, 8vw, 3.5rem);
  font-weight: 700;
  color: var(--color-text-on-dark);
  transition: color 0.3s var(--ease);
}

.nav-mobile a:hover {
  color: var(--color-accent);
}

@media (max-width: 1024px) {
  .header {
    padding: 0.75rem 0;
  }

  .nav-desktop {
    gap: 1.5rem;
  }

  .nav-link {
    font-size: 0.85rem;
  }

  .logo {
    font-size: 1.25rem;
  }

  .hero {
    min-height: auto;
    padding: 6rem 0 4rem;
  }

  /* Stack hero photo below text on tablet */
  .hero-wrapper {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-photo {
    max-width: 350px;
    margin: 0 auto;
  }

  .hero-badge {
    margin-bottom: 1rem;
  }

  .hero-title {
    line-height: 0.9;
    margin-bottom: 1.25rem;
  }

  .hero-subtitle {
    margin-bottom: 2rem;
  }

  /* Stack about photo below text on tablet */
  .about-wrapper {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about-photo {
    max-width: 300px;
    margin: 0 auto;
  }

  .about-text p {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .nav-desktop { display: none; }
  .menu-toggle { display: block; }
}

/* ========== HERO SECTION ========== */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  position: relative;
  background: var(--color-bg-dark);
  overflow: hidden;
}

/* Vertical Accent Bar - Between Title Words */
.hero-accent-bar {
  position: absolute;
  top: 20%;
  left: 50%;
  width: 2px;
  height: clamp(100px, 12vw, 200px);
  background: linear-gradient(180deg, transparent 0%, var(--color-accent) 20%, var(--color-accent-light) 80%, transparent 100%);
  transform: translateX(-50%);
  z-index: 1;
  opacity: 0.4;
}

/* Hero Wrapper - Two Column Layout */
.hero-wrapper {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-content {
  position: relative;
  max-width: 600px;
}

.hero-badge {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 0.5rem 1.5rem;
  border: 1px solid var(--color-accent);
  color: var(--color-accent);
  margin-bottom: 1.25rem;
  background: transparent;
}

/* Hero Logo */
.hero-logo {
  margin-bottom: 1.25rem;
}

.hero-logo-img {
  height: clamp(50px, 8vw, 80px);
  width: auto;
  object-fit: contain;
  filter: invert(1);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  color: var(--color-text-on-dark);
  font-weight: 700;
}

.hero-title-line {
  display: block;
  transform-origin: right center;
  margin-bottom: -0.1em;
}

.hero-title-emphasis {
  color: var(--color-accent);
  position: relative;
}

.hero-subtitle {
  font-family: var(--font-heading);
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  font-style: italic;
  font-weight: 400;
  color: var(--color-text-muted-dark);
  max-width: 500px;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.1rem 2.25rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: all 0.3s var(--ease);
  cursor: pointer;
  border: none;
  position: relative;
  border-radius: var(--radius);
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-bg-light);
  box-shadow: 0 4px 20px rgba(184, 115, 51, 0.3);
}

.btn-primary:hover {
  background: var(--color-accent-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(184, 115, 51, 0.4);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(184, 115, 51, 0.3);
}

.hero-scroll-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted-dark);
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ========== HERO PHOTO ========== */

.hero-photo {
  position: relative;
}

.hero-photo-frame {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
}

.hero-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border: 3px solid var(--color-accent);
  border-radius: var(--radius);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.4);
  position: relative;
  z-index: 2;
}

/* Grain overlay on photo */
.hero-photo-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 3;
  mix-blend-mode: soft-light;
  border-radius: inherit;
}

/* Copper accent element - geometric detail */
.hero-photo-accent {
  position: absolute;
  bottom: -12px;
  left: -12px;
  width: 120px;
  height: 120px;
  border: 2px solid var(--color-accent);
  border-radius: var(--radius);
  z-index: 1;
  opacity: 0.6;
  pointer-events: none;
}

/* ========== SERVICES SECTION ========== */

.services {
  background: var(--color-bg-light);
  position: relative;
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--text-h2);
  text-align: center;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
  color: var(--color-text-on-light);
  font-weight: 700;
}

.section-subtitle {
  font-family: var(--font-heading);
  font-style: italic;
  text-align: center;
  color: var(--color-text-muted-light);
  font-size: var(--text-body);
  max-width: 650px;
  margin: 0 auto 4rem;
  line-height: 1.9;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--color-bg-light);
  border: 2px solid var(--color-border-light);
  padding: 2.5rem;
  transition: all 0.4s var(--ease);
  position: relative;
  cursor: pointer;
  border-radius: var(--radius);
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--color-accent);
  box-shadow: 0 12px 40px rgba(184, 115, 51, 0.15);
}

.service-icon {
  width: 2.5rem;
  height: 2.5rem;
  color: var(--color-accent);
  margin-bottom: 1.5rem;
  stroke-width: 1.5;
  transition: transform 0.3s var(--ease), color 0.3s var(--ease);
}

.service-card:hover .service-icon {
  transform: scale(1.1);
  color: var(--color-accent-light);
}

.service-card h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--color-text-on-light);
}

.service-subtitle {
  display: block;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}

.service-card p {
  font-family: var(--font-body);
  color: var(--color-text-muted-light);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ========== ABOUT SECTION ========== */

.about {
  background: var(--color-bg-dark);
  position: relative;
}

.about::before {
  content: '"';
  position: absolute;
  top: 0;
  right: 5%;
  font-family: var(--font-heading);
  font-size: 18rem;
  color: var(--color-accent);
  opacity: 0.08;
  line-height: 1;
  pointer-events: none;
  z-index: 0;
}

.about .container {
  position: relative;
  z-index: 1;
}

.about .section-title {
  color: var(--color-text-on-dark);
}

/* About Wrapper - Two Column Layout */
.about-wrapper {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 4rem;
  align-items: center;
  margin-top: 2rem;
}

.about-text p {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-style: italic;
  color: var(--color-text-muted-dark);
  text-align: right;
  max-width: 100%;
  margin: 0 0 2rem;
  line-height: 1.9;
}

.about-text p:first-child {
  font-weight: 700;
  color: var(--color-text-on-dark);
}

/* ========== ABOUT PHOTO ========== */

.about-photo {
  position: relative;
}

.about-photo-frame {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
}

.about-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border: 3px solid var(--color-accent);
  border-radius: 8px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5);
  position: relative;
  z-index: 2;
  transition: transform 0.4s var(--ease);
}

.about-photo-img:hover {
  transform: scale(1.02);
}

/* Copper accent element */
.about-photo-accent {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 100px;
  height: 100px;
  border: 2px solid var(--color-accent-light);
  border-radius: 8px;
  z-index: 1;
  opacity: 0.5;
  pointer-events: none;
}

/* ========== CONTACT SECTION ========== */

.contact {
  background: var(--color-bg-light-alt);
}

.contact-info-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
  margin-bottom: 3rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.5rem;
  border-right: 3px solid var(--color-accent);
  background: var(--color-bg-light);
  border-radius: var(--radius);
  transition: all 0.3s var(--ease);
}

.contact-item:hover {
  transform: translateX(-4px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.contact-item svg {
  color: var(--color-accent);
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  stroke-width: 2;
  transition: transform 0.3s var(--ease);
}

.contact-item:hover svg {
  transform: scale(1.1);
}

.contact-item h4 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted-light);
  margin-bottom: 0.4rem;
}

.contact-item p,
.contact-item a {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--color-text-on-light);
  font-weight: 700;
}

.contact-item a:hover {
  color: var(--color-accent);
}

.contact-card {
  background: var(--color-bg-dark);
  color: var(--color-text-on-dark);
  padding: 2.5rem;
  border: 2px solid var(--color-accent);
  border-radius: var(--radius);
  position: relative;
}

.contact-card h3 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
  color: var(--color-text-on-dark);
  font-weight: 700;
}

.contact-card p {
  color: var(--color-text-muted-dark);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.contact-card .btn-primary {
  width: 100%;
  justify-content: center;
}

/* ========== CONTACT CTA GRID ========== */

.contact-cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

/* ========== CONTACT FORM ========== */

.contact-form-card {
  background: var(--color-bg-dark);
  color: var(--color-text-on-dark);
  padding: 2.5rem;
  border: 2px solid var(--color-accent);
  border-radius: var(--radius);
  position: relative;
}

.contact-form-card h3 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
  color: var(--color-text-on-dark);
  font-weight: 700;
}

.contact-form-subtitle {
  color: var(--color-text-muted-dark);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.75rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  opacity: 0.9;
}

.form-group input,
.form-group textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.75rem 0.9rem;
  background: transparent;
  border: 1px solid var(--color-border-dark);
  border-radius: var(--radius);
  color: var(--color-text-on-dark);
  transition: all 0.3s var(--ease);
  direction: rtl;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--color-text-muted-dark);
  opacity: 0.5;
  font-size: 0.9rem;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  background: rgba(242, 236, 227, 0.03);
  box-shadow: 0 0 0 1px var(--color-accent);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.5;
}

.btn-submit {
  margin-top: 0.75rem;
  width: 100%;
  justify-content: center;
  cursor: pointer;
  font-size: 0.85rem;
  padding: 0.95rem 2rem;
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-status {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  font-size: 0.85rem;
  text-align: center;
  display: none;
  border-left: 3px solid;
}

.form-status.success {
  display: block;
  background: rgba(76, 175, 80, 0.1);
  border-left-color: #4CAF50;
  color: #66BB6A;
}

.form-status.error {
  display: block;
  background: rgba(244, 67, 54, 0.1);
  border-left-color: #F44336;
  color: #EF5350;
}

@media (max-width: 900px) {
  .contact-info-row {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
  }

  .contact-cta-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .contact-form-card,
  .contact-card {
    padding: 2rem;
  }
}

/* ========== FOOTER ========== */

.footer {
  background: var(--color-bg-dark);
  color: var(--color-text-on-dark);
  padding: 3rem 0;
  text-align: center;
  border-top: 2px solid var(--color-accent);
}

.footer-brand h4 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
  color: var(--color-text-on-dark);
  font-weight: 700;
}

.footer-brand p {
  font-family: var(--font-heading);
  font-style: italic;
  color: var(--color-text-muted-dark);
  font-size: 1rem;
  margin-bottom: 2rem;
}

.footer-bottom p {
  font-size: var(--text-sm);
  color: var(--color-text-muted-dark);
  font-weight: 300;
  opacity: 0.7;
}

/* ========== ANIMATIONS ========== */

/* Initial states - Hero animations */
.reveal-fade {
  opacity: 0;
  animation: fadeIn 1.2s var(--ease-smooth) forwards;
}

.reveal-fade-delay {
  opacity: 0;
  animation: fadeIn 1.2s var(--ease-smooth) 0.4s forwards;
}

.reveal-fade-delay-2 {
  opacity: 0;
  animation: fadeIn 1.2s var(--ease-smooth) 0.8s forwards;
}

.reveal-slide-1 {
  opacity: 0;
  transform: translateY(30px);
  animation: slideUp 0.9s var(--ease-smooth) 0.2s forwards;
}

.reveal-slide-2 {
  opacity: 0;
  transform: translateY(30px);
  animation: slideUp 0.9s var(--ease-smooth) 0.35s forwards;
}

.reveal-slide-3 {
  opacity: 0;
  transform: translateY(30px);
  animation: slideUp 0.9s var(--ease-smooth) 0.5s forwards;
}

.reveal-slide-4 {
  opacity: 0;
  transform: translateY(30px);
  animation: slideUp 1s var(--ease-smooth) 0.7s forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scroll reveal for services/about */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s var(--ease-smooth);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered reveal for grid items */
.service-card:nth-child(1) { transition-delay: 0.1s; }
.service-card:nth-child(2) { transition-delay: 0.2s; }
.service-card:nth-child(3) { transition-delay: 0.3s; }
.service-card:nth-child(4) { transition-delay: 0.4s; }
.service-card:nth-child(5) { transition-delay: 0.5s; }
.service-card:nth-child(6) { transition-delay: 0.6s; }

/* Button pulse animation on hover */
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--color-accent-light);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.btn-primary:hover::before {
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 0;
    transform: scale(1);
  }
  50% {
    opacity: 0.15;
    transform: scale(1.05);
  }
}

/* Link hover underline animation */
.nav-link::after,
.contact-item a::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width 0.4s var(--ease-smooth);
}

.nav-link:hover::after,
.contact-item a:hover::after {
  width: 100%;
}

/* Subtle glow for accent elements */
.hero-badge {
  transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.hero-badge:hover {
  box-shadow: 0 0 20px rgba(184, 115, 51, 0.2);
}

/* ========== RESPONSIVE ADJUSTMENTS ========== */

@media (max-width: 768px) {
  .hero-accent-bar {
    height: clamp(60px, 8vw, 120px);
    opacity: 0.3;
  }

  .hero-badge {
    font-size: 0.7rem;
    padding: 0.4rem 1rem;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-subtitle {
    max-width: 100%;
  }

  /* Mobile hero photo adjustments */
  .hero-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
  }

  .hero-photo {
    width: 90%;
    max-width: none;
    margin: 0 auto;
  }

  .hero-photo-accent {
    width: 80px;
    height: 80px;
    bottom: -8px;
    left: -8px;
  }

  /* Mobile about photo adjustments */
  .about-wrapper {
    display: flex;
    flex-direction: column-reverse;
    gap: 2.5rem;
  }

  .about-photo {
    width: 85%;
    max-width: none;
    margin: 0 auto;
  }

  .about-photo-accent {
    width: 70px;
    height: 70px;
    top: -8px;
    right: -8px;
  }

  .btn {
    padding: 1rem 1.75rem;
    font-size: 0.8rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .service-card {
    padding: 1.75rem;
  }

  .contact-card {
    padding: 2rem;
  }

  .contact-item {
    padding: 1.25rem;
  }

  .about-text p {
    font-size: 1rem;
  }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ========== INNER PAGES ========== */

/* Header for inner pages - always light background */
.header-inner-page {
  background: rgba(240, 242, 245, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--color-accent);
}

.header-inner-page .logo,
.header-inner-page .nav-link,
.header-inner-page .menu-toggle {
  color: var(--color-text-on-light);
}

.header-inner-page .nav-link.active {
  color: var(--color-accent);
}

/* Page Header */
.page-header {
  background: var(--color-bg-dark);
  padding: 8rem 0 4rem;
  text-align: center;
}

.breadcrumb {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
}

.breadcrumb a {
  color: var(--color-text-muted-dark);
  transition: color 0.3s var(--ease);
}

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

.breadcrumb-separator {
  color: var(--color-text-muted-dark);
  opacity: 0.5;
}

.breadcrumb span:last-child {
  color: var(--color-text-on-dark);
}

.page-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--color-text-on-dark);
  margin-bottom: 1.5rem;
}

.page-intro {
  font-family: var(--font-heading);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-style: italic;
  color: var(--color-text-muted-dark);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.8;
}

/* Services Overview Grid */
.services-overview {
  background: var(--color-bg-light);
}

.services-overview-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.service-overview-card {
  display: block;
  background: var(--color-bg-light);
  border: 2px solid var(--color-border-light);
  padding: 2.5rem;
  border-radius: var(--radius);
  transition: all 0.4s var(--ease);
  text-decoration: none;
}

.service-overview-card:hover {
  transform: translateY(-6px);
  border-color: var(--color-accent);
  box-shadow: 0 12px 40px rgba(90, 122, 154, 0.15);
}

.service-overview-icon {
  width: 3rem;
  height: 3rem;
  color: var(--color-accent);
  margin-bottom: 1.5rem;
}

.service-overview-card h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text-on-light);
  margin-bottom: 1rem;
}

.service-overview-card p {
  font-family: var(--font-body);
  color: var(--color-text-muted-light);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-accent);
  transition: gap 0.3s var(--ease);
}

.service-overview-card:hover .service-link {
  gap: 0.75rem;
}

.service-link svg {
  transition: transform 0.3s var(--ease);
}

.service-overview-card:hover .service-link svg {
  transform: translateX(-4px);
}

/* Service Sections */
.service-section {
  padding: var(--spacing-section) 0;
}

.service-section.bg-alt {
  background: var(--color-bg-light-alt);
}

.service-section-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--color-text-on-light);
  margin-bottom: 2rem;
}

.service-text p {
  font-family: var(--font-body);
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--color-text-on-light);
  margin-bottom: 1.5rem;
  max-width: 800px;
}

.service-text p:last-child {
  margin-bottom: 0;
}

/* Check List */
.check-list {
  list-style: none;
  max-width: 800px;
}

.check-list li {
  position: relative;
  padding-right: 2rem;
  padding-bottom: 1rem;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--color-text-on-light);
}

.check-list li::before {
  content: '';
  position: absolute;
  right: 0;
  top: 0.35rem;
  width: 20px;
  height: 20px;
  background: var(--color-accent);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
  background-size: 12px;
  background-position: center;
  background-repeat: no-repeat;
}

/* Accordion */
.accordion {
  max-width: 800px;
}

.accordion-item {
  border-bottom: 1px solid var(--color-border-light);
}

.accordion-item:last-child {
  border-bottom: none;
}

.accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 1.25rem 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-text-on-light);
  text-align: right;
  transition: color 0.3s var(--ease);
}

.accordion-header:hover {
  color: var(--color-accent);
}

.accordion-icon {
  color: var(--color-accent);
  transition: transform 0.3s var(--ease);
  flex-shrink: 0;
}

.accordion-item.open .accordion-icon {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s var(--ease), padding 0.3s var(--ease);
}

.accordion-item.open .accordion-content {
  max-height: 300px;
  padding-bottom: 1.25rem;
}

.accordion-content p {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text-muted-light);
}

/* CTA Section */
.cta-section {
  background: var(--color-bg-dark);
}

.cta-card {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.cta-card h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--color-text-on-dark);
  margin-bottom: 1rem;
}

.cta-card p {
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: var(--color-text-muted-dark);
  margin-bottom: 2rem;
}

.cta-card .btn {
  display: inline-flex;
}

/* Process Link Card */
.process-link-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  background: var(--color-bg-light);
  border: 2px solid var(--color-border-light);
  border-radius: var(--radius);
  padding: 2rem 2.5rem;
  transition: all 0.3s var(--ease);
}

.process-link-card:hover {
  border-color: var(--color-accent);
  box-shadow: 0 4px 20px rgba(90, 122, 154, 0.1);
}

.process-link-content h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text-on-light);
  margin-bottom: 0.5rem;
}

.process-link-content p {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text-muted-light);
  margin: 0;
}

/* Button Outline */
.btn-outline {
  background: transparent;
  color: var(--color-accent);
  border: 2px solid var(--color-accent);
}

.btn-outline:hover {
  background: var(--color-accent);
  color: var(--color-bg-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(90, 122, 154, 0.3);
}

.btn-outline svg {
  transition: transform 0.3s var(--ease);
}

.btn-outline:hover svg {
  transform: translateX(-4px);
}

@media (max-width: 768px) {
  .process-link-card {
    flex-direction: column;
    text-align: center;
    padding: 1.75rem;
    gap: 1.5rem;
  }

  .process-link-content h3 {
    font-size: 1.25rem;
  }
}

/* Inner Pages Responsive */
@media (max-width: 900px) {
  .services-overview-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .service-overview-card {
    padding: 2rem;
  }
}

@media (max-width: 768px) {
  .page-header {
    padding: 7rem 0 3rem;
  }

  .breadcrumb {
    font-size: 0.8rem;
  }

  .service-section {
    padding: clamp(3rem, 8vw, 5rem) 0;
  }

  .check-list li {
    font-size: 1rem;
  }

  .accordion-header {
    font-size: 1rem;
    padding: 1rem 0;
  }
}

/* ========== COURT FLOW COMPONENT ========== */

.court-flow-section {
  background: var(--color-bg-light);
}

/* Timeline Navigation */
.court-flow-timeline {
  position: relative;
  margin-bottom: 3rem;
}

.timeline-track {
  position: absolute;
  top: 1.25rem;
  right: 2rem;
  left: 2rem;
  height: 3px;
  background: var(--color-border-light);
  border-radius: 2px;
  z-index: 0;
}

.timeline-progress {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  background: var(--color-accent);
  border-radius: 2px;
  transition: width 0.4s var(--ease-smooth);
  width: 0%;
}

.timeline-steps {
  display: flex;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

.timeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: transform 0.3s var(--ease);
}

.timeline-step:hover {
  transform: translateY(-2px);
}

.step-number {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-light);
  border: 3px solid var(--color-border-light);
  border-radius: 50%;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-text-muted-light);
  transition: all 0.3s var(--ease);
}

.timeline-step.active .step-number,
.timeline-step.completed .step-number {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-bg-light);
}

.timeline-step:hover .step-number {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.timeline-step.active:hover .step-number,
.timeline-step.completed:hover .step-number {
  color: var(--color-bg-light);
}

.step-label {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-muted-light);
  text-align: center;
  max-width: 80px;
  transition: color 0.3s var(--ease);
}

.timeline-step.active .step-label {
  color: var(--color-accent);
}

/* Step Card */
.step-card {
  background: var(--color-bg-light);
  border: 2px solid var(--color-border-light);
  border-radius: var(--radius);
  padding: 2.5rem;
  margin-bottom: 3rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.step-card-content {
  opacity: 1;
  transform: translateX(0);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

.step-card-content.transitioning {
  opacity: 0;
  transform: translateX(-20px);
}

.step-card-header {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-border-light);
}

.step-card-number {
  width: 3.5rem;
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent);
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-bg-light);
  flex-shrink: 0;
}

.step-card-title-wrap {
  flex: 1;
}

.step-card-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--color-text-on-light);
  margin-bottom: 0.25rem;
}

.step-card-duration {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--color-accent);
  font-weight: 600;
}

.step-card-body p {
  font-family: var(--font-body);
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--color-text-on-light);
  margin-bottom: 1.5rem;
}

.step-card-details {
  list-style: none;
  margin-bottom: 1.5rem;
}

.step-card-details li {
  position: relative;
  padding-right: 1.75rem;
  padding-bottom: 0.75rem;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text-on-light);
}

.step-card-details li::before {
  content: '';
  position: absolute;
  right: 0;
  top: 0.4rem;
  width: 8px;
  height: 8px;
  background: var(--color-accent);
  border-radius: 50%;
}

.step-card-tip {
  background: var(--color-bg-light-alt);
  border-right: 4px solid var(--color-accent);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
}

.step-card-tip-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}

.step-card-tip p {
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--color-text-muted-light);
  margin: 0;
}

/* Step Card Navigation */
.step-card-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border-light);
}

.step-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: transparent;
  border: 2px solid var(--color-border-light);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text-on-light);
  cursor: pointer;
  transition: all 0.3s var(--ease);
}

.step-nav-btn:hover:not(:disabled) {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.step-nav-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.step-nav-btn svg {
  transition: transform 0.3s var(--ease);
}

.step-nav-btn.next:hover:not(:disabled) svg {
  transform: translateX(-4px);
}

.step-nav-btn.prev:hover:not(:disabled) svg {
  transform: translateX(4px);
}

.step-indicator {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text-muted-light);
}

/* Steps Overview */
.steps-overview {
  background: var(--color-bg-light-alt);
  border-radius: var(--radius);
  padding: 2rem;
}

.steps-overview h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text-on-light);
  margin-bottom: 1.5rem;
}

.steps-overview-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  list-style: none;
  counter-reset: step-counter;
}

.steps-overview-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--color-bg-light);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.3s var(--ease);
}

.steps-overview-item:hover {
  border-color: var(--color-accent);
  transform: translateX(-4px);
}

.steps-overview-item.active {
  border-color: var(--color-accent);
  background: rgba(90, 122, 154, 0.05);
}

.steps-overview-number {
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-border-light);
  border-radius: 50%;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--color-text-muted-light);
  flex-shrink: 0;
  transition: all 0.3s var(--ease);
}

.steps-overview-item.active .steps-overview-number,
.steps-overview-item:hover .steps-overview-number {
  background: var(--color-accent);
  color: var(--color-bg-light);
}

.steps-overview-title {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text-on-light);
}

/* ========== EMPLOYER DEFENSE SECTION ========== */

.employer-defense-section {
  background: var(--color-bg-light);
}

/* Warning Box */
.step-card-warning {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: linear-gradient(to left, #fef2f2, #fff5f5);
  border: 1px solid #fecaca;
  border-right: 4px solid #ef4444;
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
}

.step-card-warning-icon {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fee2e2;
  border-radius: 50%;
  color: #dc2626;
}

.step-card-warning-icon svg {
  width: 1.1rem;
  height: 1.1rem;
}

.step-card-warning p {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: #b91c1c;
  line-height: 1.5;
  margin: 0;
}

/* Key Points Section */
.key-points-section {
  margin-top: 3rem;
  margin-bottom: 3rem;
}

.key-points-section h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text-on-light);
  text-align: center;
  margin-bottom: 2rem;
}

.key-points-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.key-point-card {
  background: var(--color-bg-light);
  border: 2px solid var(--color-border-light);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  transition: all 0.3s var(--ease);
}

.key-point-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(90, 122, 154, 0.12);
}

.key-point-icon {
  width: 3.5rem;
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-light-alt);
  border-radius: 50%;
  color: var(--color-accent);
  margin: 0 auto 1.25rem;
  transition: all 0.3s var(--ease);
}

.key-point-card:hover .key-point-icon {
  background: var(--color-accent);
  color: var(--color-bg-light);
}

.key-point-card h4 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-text-on-light);
  margin-bottom: 0.75rem;
}

.key-point-card p {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-text-muted-light);
  line-height: 1.6;
  margin: 0;
}

/* Key Points Responsive */
@media (max-width: 900px) {
  .key-points-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .key-point-card {
    padding: 1.5rem;
  }
}

@media (max-width: 600px) {
  .step-card-warning {
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
  }

  .key-points-section h3 {
    font-size: 1.25rem;
  }
}

/* Court Flow Responsive */
@media (max-width: 900px) {
  .timeline-track {
    display: none;
  }

  .timeline-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
  }

  .timeline-step {
    padding: 0.5rem;
  }

  .step-number {
    width: 2.25rem;
    height: 2.25rem;
    font-size: 0.9rem;
  }

  .step-label {
    font-size: 0.7rem;
    max-width: 100%;
  }

  .step-card {
    padding: 1.75rem;
  }

  .step-card-header {
    flex-direction: column;
    gap: 1rem;
  }

  .step-card-number {
    width: 3rem;
    height: 3rem;
    font-size: 1.25rem;
  }
}

@media (max-width: 600px) {
  .timeline-steps {
    grid-template-columns: repeat(4, 1fr);
  }

  .timeline-step:nth-child(n+5) {
    grid-column: span 1;
  }

  .timeline-steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
  }

  .timeline-step {
    flex: 0 0 auto;
  }

  .step-label {
    display: none;
  }

  .step-number {
    width: 2.5rem;
    height: 2.5rem;
  }

  .step-card {
    padding: 1.5rem;
  }

  .step-card-body p {
    font-size: 1rem;
  }

  .step-nav-btn span {
    display: none;
  }

  .step-nav-btn {
    padding: 0.75rem;
  }

  .steps-overview-list {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   Rights Checker Component - Premium Design
   ======================================== */

.rights-checker-section {
  background: var(--color-bg-light);
  min-height: calc(100vh - 200px);
  padding-top: 2rem;
  padding-bottom: 4rem;
}

.page-header-compact {
  padding: 1.5rem 0 0.5rem;
}

.page-header-compact .breadcrumb {
  margin-bottom: 0;
}

.rights-checker-app {
  max-width: 640px;
  margin: 0 auto;
}

.rc-loading {
  text-align: center;
  padding: 4rem;
  color: var(--color-text-muted);
}

/* ========== STEP INDICATOR ========== */
.rc-step-indicator {
  position: relative;
  margin-bottom: 2rem;
  padding: 0 1rem;
}

.rc-step-track {
  position: absolute;
  top: 50%;
  right: 2rem;
  left: 2rem;
  height: 3px;
  background: var(--color-border-light);
  border-radius: 2px;
  transform: translateY(-50%);
}

.rc-step-progress {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-light));
  border-radius: 2px;
  transition: width 0.5s var(--ease-smooth);
}

.rc-steps {
  display: flex;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

.rc-step {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.rc-step-dot {
  width: 1.25rem;
  height: 1.25rem;
  background: var(--color-bg-light);
  border: 3px solid var(--color-border-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s var(--ease);
}

.rc-step-dot svg {
  width: 10px;
  height: 10px;
  stroke: white;
}

.rc-step.completed .rc-step-dot {
  background: var(--color-accent);
  border-color: var(--color-accent);
}

.rc-step.current .rc-step-dot {
  border-color: var(--color-accent);
  background: white;
  box-shadow: 0 0 0 4px rgba(90, 122, 154, 0.2);
  transform: scale(1.2);
}

/* ========== HEADER ========== */
.rc-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.rc-title {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--color-bg-dark);
  margin-bottom: 0.5rem;
}

.rc-subtitle {
  font-family: var(--font-body);
  color: var(--color-text-muted);
  font-size: 1rem;
}

.rc-results-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: #16a34a;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  margin-bottom: 1rem;
}

.rc-results-badge svg {
  width: 18px;
  height: 18px;
}

/* ========== PROGRESS BAR ========== */
.rc-progress {
  margin-bottom: 1.75rem;
}

.rc-progress-bar {
  height: 6px;
  background: var(--color-border-light);
  border-radius: 9999px;
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

.rc-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-accent) 0%, var(--color-accent-light) 50%, var(--color-accent) 100%);
  background-size: 200% 100%;
  border-radius: 9999px;
  transition: width 0.5s var(--ease-smooth);
  animation: progressShimmer 2s linear infinite;
}

@keyframes progressShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.rc-progress-text {
  text-align: center;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text-muted);
  margin-top: 0.75rem;
}

/* ========== QUESTION CARD ========== */
.rc-question-card {
  background: white;
  border-radius: 1rem;
  padding: 2.5rem 2rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.rc-question-text {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-bg-dark);
  text-align: center;
  margin-bottom: 2rem;
  line-height: 1.4;
}

/* ========== OPTIONS ========== */
.rc-options {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.rc-option-btn {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  padding: 1.125rem 1.25rem;
  background: white;
  border: 2px solid var(--color-border-light);
  border-radius: 0.875rem;
  cursor: pointer;
  text-align: right;
  transition: all 0.25s var(--ease);
  position: relative;
}

.rc-option-btn::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 4px;
  background: var(--color-accent);
  border-radius: 0 0.875rem 0.875rem 0;
  opacity: 0;
  transform: scaleY(0);
  transition: all 0.25s var(--ease);
}

.rc-option-btn:hover {
  border-color: var(--color-accent);
  background: rgba(90, 122, 154, 0.03);
  transform: translateX(-4px);
  box-shadow: 0 4px 12px rgba(90, 122, 154, 0.12);
}

.rc-option-btn:hover::before {
  opacity: 1;
  transform: scaleY(1);
}

.rc-option-btn:active {
  transform: translateX(-4px) scale(0.99);
}

.rc-option-icon {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-light-alt);
  border-radius: 0.75rem;
  color: var(--color-accent);
  transition: all 0.25s var(--ease);
  flex-shrink: 0;
}

.rc-option-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.rc-option-btn:hover .rc-option-icon {
  background: var(--color-accent);
  color: white;
  transform: scale(1.05);
}

.rc-option-content {
  flex: 1;
}

.rc-option-label {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-text-on-light);
}

.rc-option-tooltip {
  display: block;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: 0.25rem;
  line-height: 1.4;
}

.rc-option-arrow {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--color-border-light);
  transition: all 0.25s var(--ease);
}

.rc-option-arrow svg {
  width: 100%;
  height: 100%;
}

.rc-option-btn:hover .rc-option-arrow {
  color: var(--color-accent);
  transform: translateX(-4px);
}

/* ========== BACK BUTTON ========== */
.rc-back-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 2rem auto 0;
  padding: 0.625rem 1.25rem;
  background: transparent;
  border: 1px solid var(--color-border-light);
  border-radius: 0.5rem;
  color: var(--color-text-muted);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s var(--ease);
}

.rc-back-icon {
  width: 1rem;
  height: 1rem;
  display: flex;
}

.rc-back-icon svg {
  width: 100%;
  height: 100%;
}

.rc-back-btn:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: rgba(90, 122, 154, 0.05);
}

/* ========== PRIVACY NOTE ========== */
.rc-privacy-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-top: 1.5rem;
}

/* ========== RESULTS CONTAINER ========== */
.rc-results-container {
  max-width: 720px;
  margin: 0 auto;
}

/* ========== SUMMARY CARD ========== */
.rc-summary-card {
  background: linear-gradient(135deg, var(--color-bg-dark) 0%, #2a3a4f 100%);
  color: white;
  border-radius: 1.25rem;
  padding: 2.5rem 2rem;
  text-align: center;
  margin-bottom: 1.75rem;
  box-shadow: 0 8px 32px rgba(26, 35, 50, 0.25);
  position: relative;
  overflow: hidden;
}

.rc-summary-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.rc-summary-icon {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1rem;
  color: var(--color-accent-light);
  opacity: 0.8;
}

.rc-summary-icon svg {
  width: 100%;
  height: 100%;
}

.rc-summary-label {
  font-family: var(--font-body);
  font-size: 1rem;
  opacity: 0.9;
  margin-bottom: 0.75rem;
}

.rc-summary-amount {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.rc-amount-separator {
  margin: 0 0.5rem;
  opacity: 0.6;
}

.rc-summary-note {
  font-size: 0.8rem;
  opacity: 0.7;
}

/* ========== SECTIONS ========== */
.rc-section {
  background: white;
  border-radius: 1rem;
  padding: 1.75rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.rc-section-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-border-light);
}

.rc-section-icon {
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
}

.rc-section-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.rc-section-icon-warning {
  background: #fef2f2;
  color: #dc2626;
}

.rc-section-icon-rights {
  background: #f0fdf4;
  color: #16a34a;
}

.rc-section-icon-investigate {
  background: #fffbeb;
  color: #d97706;
}

.rc-section-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0;
}

.rc-section-title-warning {
  color: #b91c1c;
}

.rc-section-title-rights {
  color: var(--color-bg-dark);
}

.rc-section-title-investigate {
  color: #92400e;
}

.rc-section-warnings {
  background: #fef7f7;
  border-color: #fecaca;
}

.rc-section-investigate {
  background: #fffdf7;
  border-color: #fde68a;
}

/* ========== ITEMS ========== */
.rc-items {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.rc-item {
  padding: 1.125rem 1.25rem;
  border-radius: 0.75rem;
  border-right: 4px solid;
  position: relative;
  animation: itemSlideIn 0.4s var(--ease-smooth) backwards;
}

@keyframes itemSlideIn {
  from {
    opacity: 0;
    transform: translateX(10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.rc-item-priority {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  margin-bottom: 0.5rem;
}

.rc-item-priority-high {
  background: #fef2f2;
  color: #dc2626;
}

.rc-item-priority-medium {
  background: #eff6ff;
  color: #2563eb;
}

.rc-item-high {
  background: linear-gradient(to left, #f0fdf4, white);
  border-color: #16a34a;
}

.rc-item-medium {
  background: linear-gradient(to left, #eff6ff, white);
  border-color: #3b82f6;
}

.rc-item-low {
  background: #fafafa;
  border-color: #d1d5db;
}

.rc-item-warning {
  background: linear-gradient(to left, #fef2f2, white);
  border-color: #ef4444;
}

.rc-item-investigate {
  background: linear-gradient(to left, #fffbeb, white);
  border-color: #f59e0b;
}

.rc-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.rc-item-info {
  flex: 1;
}

.rc-item-title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-text-on-light);
  margin-bottom: 0.25rem;
}

.rc-item-desc {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.rc-item-amount {
  font-size: 0.9rem;
  font-weight: 700;
  color: #dc2626;
  margin-top: 0.5rem;
}

.rc-item-amount-badge {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-bg-dark);
  white-space: nowrap;
  background: var(--color-bg-light-alt);
  padding: 0.5rem 0.875rem;
  border-radius: 0.5rem;
}

.rc-item-note {
  font-size: 0.8rem;
  font-style: italic;
  color: var(--color-text-muted);
  margin-top: 0.375rem;
}

/* ========== CTA CARD ========== */
.rc-cta-card {
  background: linear-gradient(135deg, var(--color-bg-dark) 0%, #2a3a4f 100%);
  color: white;
  border-radius: 1.25rem;
  padding: 2.5rem 2rem;
  text-align: center;
  margin-top: 1.75rem;
  box-shadow: 0 8px 32px rgba(26, 35, 50, 0.25);
}

.rc-cta-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.rc-cta-subtitle {
  font-family: var(--font-body);
  opacity: 0.8;
  margin-bottom: 1.75rem;
}

.rc-whatsapp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.875rem;
  background: #25d366;
  color: white;
  padding: 1.125rem 2.5rem;
  border-radius: 0.875rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  transition: all 0.3s var(--ease);
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
}

.rc-whatsapp-btn:hover {
  background: #22c55e;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
}

.rc-whatsapp-btn:active {
  transform: translateY(-1px);
}

.rc-whatsapp-icon {
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
}

.rc-whatsapp-icon svg {
  width: 100%;
  height: 100%;
}

.rc-restart-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 1.25rem auto 0;
  padding: 0.625rem 1.25rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.5rem;
  color: rgba(255, 255, 255, 0.8);
  font-family: var(--font-body);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.25s var(--ease);
}

.rc-restart-icon {
  width: 1rem;
  height: 1rem;
  display: flex;
}

.rc-restart-icon svg {
  width: 100%;
  height: 100%;
}

.rc-restart-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  color: white;
}

/* ========== DISCLAIMER ========== */
.rc-disclaimer {
  text-align: center;
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-top: 1.75rem;
  padding: 0 1rem;
  line-height: 1.6;
}

/* ========== TOOL CTA SECTION ========== */
.tool-cta-section {
  background: var(--color-bg-light-alt);
  padding: 3rem 0;
}

.tool-cta-card {
  background: white;
  border-radius: 1.25rem;
  padding: 3rem 2.5rem;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  border: 2px solid var(--color-accent);
  position: relative;
  overflow: hidden;
}

.tool-cta-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, var(--color-accent) 0%, transparent 70%);
  opacity: 0.1;
  border-radius: 0 0 0 100%;
}

.tool-cta-icon {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-light-alt);
  border-radius: 1rem;
  color: var(--color-accent);
}

.tool-cta-icon svg {
  width: 2rem;
  height: 2rem;
}

.tool-cta-card h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-bg-dark);
  margin-bottom: 0.75rem;
}

.tool-cta-card p {
  font-family: var(--font-body);
  color: var(--color-text-muted);
  margin-bottom: 1.75rem;
  line-height: 1.6;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 640px) {
  .rc-step-indicator {
    margin-bottom: 1.5rem;
  }

  .rc-step-dot {
    width: 1rem;
    height: 1rem;
  }

  .rc-title {
    font-size: 1.75rem;
  }

  .rc-question-card {
    padding: 1.75rem 1.25rem;
    border-radius: 0.875rem;
  }

  .rc-question-text {
    font-size: 1.15rem;
    margin-bottom: 1.5rem;
  }

  .rc-option-btn {
    padding: 1rem;
    border-radius: 0.75rem;
  }

  .rc-option-icon {
    width: 2.25rem;
    height: 2.25rem;
  }

  .rc-option-icon svg {
    width: 1.1rem;
    height: 1.1rem;
  }

  .rc-summary-card {
    padding: 2rem 1.5rem;
    border-radius: 1rem;
  }

  .rc-summary-amount {
    font-size: 1.75rem;
  }

  .rc-section {
    padding: 1.25rem;
    border-radius: 0.875rem;
  }

  .rc-section-header {
    margin-bottom: 1rem;
    padding-bottom: 0.875rem;
  }

  .rc-item {
    padding: 1rem;
  }

  .rc-item-header {
    flex-direction: column;
    gap: 0.75rem;
  }

  .rc-item-amount-badge {
    align-self: flex-start;
    font-size: 1rem;
  }

  .rc-cta-card {
    padding: 2rem 1.5rem;
    border-radius: 1rem;
  }

  .rc-whatsapp-btn {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
  }

  .tool-cta-card {
    padding: 2rem 1.5rem;
    border-radius: 1rem;
  }

  .tool-cta-icon {
    width: 3.5rem;
    height: 3.5rem;
  }
}

/* ========== FLOATING WHATSAPP BUTTON ========== */

.whatsapp-float {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
  animation: whatsappFadeIn 0.5s var(--ease-smooth) 1s both;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.whatsapp-float:active {
  transform: scale(1.05);
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
  fill: #fff;
}

@keyframes whatsappFadeIn {
  from {
    opacity: 0;
    transform: scale(0.5) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .whatsapp-float {
    width: 50px;
    height: 50px;
    bottom: 20px;
    left: 20px;
  }

  .whatsapp-float svg {
    width: 24px;
    height: 24px;
  }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .whatsapp-float {
    animation: none;
  }
}
