@import url('https://fonts.googleapis.com/css2?family=Assistant:wght@300;400;600;700;800&display=swap');

/* --- DESIGN SYSTEM TOKENS --- */
:root {
  /* Color Palette */
  --color-dark: #0B132B;
  --color-dark-lighter: #111D3B;
  --color-gold: #C5A059;
  --color-gold-light: #D4B96A;
  --color-gold-dark: #b38b45;
  --color-light-bg: #0B132B;
  --color-white: #FFFFFF;
  --color-text-dark: #E2E8F0;
  --color-text-muted: #94A3B8;
  --color-border: rgba(255, 255, 255, 0.1);

  /* Typography */
  --font-family-primary: 'Assistant', sans-serif;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 10px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.15);
  --shadow-gold: 0 4px 15px rgba(197, 160, 89, 0.3);

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
}

/* --- LIGHT THEME OVERRIDES --- */
body.theme-light {
  --color-dark: #F5F0E8;
  --color-dark-lighter: #FFFFFF;
  --color-gold: #9C6B43;
  --color-gold-light: #B07D4F;
  --color-gold-dark: #7A5533;
  --color-light-bg: #F5F0E8;
  --color-white: #1C1813;
  --color-text-dark: #1C1813;
  --color-text-muted: #5C544A;
  --color-border: rgba(0, 0, 0, 0.08);

  --shadow-sm: 0 2px 4px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 10px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.12);
  --shadow-gold: 0 4px 15px rgba(156, 107, 67, 0.25);

  background-color: #F5F0E8;
  color: #1C1813;
}

/* Light theme – Header */
body.theme-light .header {
  background-color: rgba(245, 240, 232, 0.97) !important;
  border-bottom-color: rgba(156, 107, 67, 0.2);
}
body.theme-light .header.scrolled {
  background-color: rgba(245, 240, 232, 0.97) !important;
}

/* Light theme – Navigation */
body.theme-light .nav-link {
  color: #1C1813;
}
body.theme-light .nav-link:hover,
body.theme-light .nav-link.active {
  color: #9C6B43;
}
body.theme-light .nav-link[href="contact.html"] {
  color: #9C6B43 !important;
  border-color: #9C6B43;
}
body.theme-light .logo {
  color: #1C1813;
}
body.theme-light .logo-text-gold {
  color: #9C6B43;
}
body.theme-light .mobile-menu-btn {
  color: #1C1813;
}

/* Light theme – Mobile nav panel */
body.theme-light .nav-links {
  background-color: #F5F0E8;
}

/* Light theme – Hero Section */
body.theme-light .hero-section {
  background-color: #ECE3D5;
}
body.theme-light .hero-text-layer {
  color: #1C1813;
}
body.theme-light .hero-subtitle {
  color: #9C6B43;
}

/* Light theme – Sections */
body.theme-light .section-light {
  background-color: #F5F0E8;
}
body.theme-light .section-dark {
  background-color: #ECE3D5;
  color: #1C1813;
}

/* Light theme – Cards */
body.theme-light .service-card {
  background-color: #FFFFFF;
  border-color: rgba(0, 0, 0, 0.06);
}
body.theme-light .feature-card {
  background-color: #FFFFFF;
  border-color: rgba(0, 0, 0, 0.06);
}
body.theme-light .success-card {
  background-color: #FFFFFF;
  border-color: rgba(0, 0, 0, 0.06);
}
body.theme-light .faq-item {
  background-color: #FFFFFF;
  border-color: rgba(156, 107, 67, 0.25);
}
body.theme-light .article-card {
  background-color: #FFFFFF;
  border-color: rgba(0, 0, 0, 0.06);
}
body.theme-light .case-study-card {
  background-color: #FFFFFF;
  border-color: rgba(0, 0, 0, 0.06);
}

/* Light theme – Footer */
body.theme-light .footer {
  background-color: #1C1813;
  color: #F5F0E8;
}
body.theme-light .footer a {
  color: #B7AFA2;
}
body.theme-light .footer-logo {
  color: #F5F0E8 !important;
}

/* Light theme – Article Page Hero */
body.theme-light .article-page-hero {
  background-color: #ECE3D5;
}
body.theme-light .article-page-hero-content {
  color: #1C1813;
}

/* Light theme – Article table */
body.theme-light .article-table thead {
  background-color: #ECE3D5;
}
body.theme-light .article-table {
  background-color: #FFFFFF;
}

/* Light theme – Article CTA Box */
body.theme-light .article-cta-box {
  background-color: #1C1813;
}

/* Light theme – Contact form */
body.theme-light .form-control {
  background-color: #FFFFFF;
  border-color: rgba(0, 0, 0, 0.12);
  color: #1C1813;
}

/* Light theme – WhatsApp button (keep green) */
body.theme-light .whatsapp-float {
  background-color: #25d366;
  color: #FFF;
}

/* Light theme – Accessibility panel */
body.theme-light .a11y-panel {
  background: #FFFFFF;
}

/* Light theme – Guarantee bar */
body.theme-light .guarantee-bar {
  background-color: #9C6B43;
  color: #F5F0E8;
}

/* Light theme – Article highlight cards */
body.theme-light .article-highlight-card {
  background-color: #FFFFFF;
  border-color: rgba(0, 0, 0, 0.06);
}

/* Light theme – Section label */
body.theme-light .section-label {
  color: #9C6B43;
}

/* --- THEME TOGGLE BUTTON --- */
.theme-toggle-btn {
  position: fixed;
  top: 120px;
  left: 16px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--color-gold);
  color: var(--color-dark);
  border: none;
  cursor: pointer;
  padding: 10px 16px;
  border-radius: 40px;
  font-family: 'Assistant', sans-serif;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(0,0,0,0.28);
  transition: all 0.3s ease;
}

.theme-toggle-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}

.theme-toggle-btn .theme-toggle-icon {
  font-size: 15px;
  line-height: 1;
}

/* Mobile: compact icon-only toggle button */
@media (max-width: 768px) {
  .theme-toggle-btn {
    top: 18px;
    left: 70px;
    width: 38px;
    height: 38px;
    padding: 0;
    border-radius: 50%;
    justify-content: center;
    gap: 0;
    z-index: 1002;
    font-size: 0;
  }

  .theme-toggle-btn .theme-toggle-icon {
    font-size: 18px;
  }
}

/* --- RESET & BASE --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family-primary);
  color: var(--color-text-dark);
  background-color: var(--color-dark);
  line-height: 1.6;
  font-size: 16px;
  font-weight: 400;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-normal);
}

ul {
  list-style: none;
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin-bottom: var(--spacing-sm);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
}

p {
  margin-bottom: var(--spacing-sm);
}

.text-muted {
  color: var(--color-text-muted);
}

.text-gold {
  color: var(--color-gold);
}

.section-label {
  display: inline-block;
  color: var(--color-gold);
  font-weight: 600;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--spacing-xs);
}

/* --- LAYOUT UTILITIES --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

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

.section-light {
  background-color: var(--color-dark);
}

.section-dark {
  background-color: var(--color-dark);
  color: var(--color-white);
}

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

.grid {
  display: grid;
  gap: var(--spacing-md);
}

.grid-2 {
  grid-template-columns: repeat(1, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(1, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(1, 1fr);
}

@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* --- COMPONENTS --- */

/* Gold Divider */
.divider {
  width: 60px;
  height: 3px;
  background-color: var(--color-gold);
  margin: var(--spacing-sm) 0 var(--spacing-md) 0;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 32px;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 50px;
  transition: all var(--transition-normal);
  text-align: center;
}

.btn-primary {
  background-color: transparent;
  color: var(--color-gold);
  border: 1px solid var(--color-gold);
}

.btn-primary:hover {
  background-color: rgba(197, 160, 89, 0.1);
  color: var(--color-gold-light);
  border-color: var(--color-gold-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-gold);
  border: 2px solid var(--color-gold);
}

.btn-outline:hover {
  background-color: var(--color-gold);
  color: var(--color-dark);
}

/* --- NAVIGATION --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 10px 0;
  background-color: rgba(11, 19, 43, 0.97) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.4);
  border-bottom: 1px solid rgba(197, 160, 89, 0.2);
  transition: padding var(--transition-normal), box-shadow var(--transition-normal);
}

/* Scrolled state — same appearance, just for compatibility */
.header.scrolled {
  background-color: rgba(11, 19, 43, 0.97) !important;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1600px !important;
}

.logo {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--color-white);
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-text-gold {
  color: var(--color-gold);
}

.nav-links {
  display: flex;
  gap: var(--spacing-md);
}

.nav-link {
  color: var(--color-white);
  font-weight: 600;
  font-size: 1.1rem;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-gold);
  transition: width var(--transition-normal);
}

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

.nav-link:hover,
.nav-link.active {
  color: var(--color-gold);
}

/* Contact Button in Nav */
.nav-link[href="contact.html"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 20px;
  background-color: transparent;
  color: var(--color-gold) !important;
  border: 1px solid var(--color-gold);
  border-radius: 50px;
  transition: all var(--transition-normal);
}

.nav-link[href="contact.html"]::after {
  display: none !important;
}

.nav-link[href="contact.html"]:hover {
  background-color: rgba(197, 160, 89, 0.1);
  color: var(--color-gold-light) !important;
  border-color: var(--color-gold-light);
  box-shadow: var(--shadow-gold);
  transform: translateY(-2px);
}

.mobile-menu-btn {
  display: none;
  color: var(--color-white);
  font-size: 1.5rem;
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: var(--color-dark);
    flex-direction: column;
    padding: 80px var(--spacing-md) var(--spacing-md);
    transition: right var(--transition-normal);
    box-shadow: -5px 0 15px rgba(0,0,0,0.5);
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .mobile-menu-btn {
    display: block;
    z-index: 1001;
  }
  
  .header {
    background-color: var(--color-dark);
    padding: 15px 0;
  }
}

/* --- HERO SECTION --- */
.hero-section {
  position: relative;
  min-height: 85vh;
  /* A beautiful subtle glow behind the portrait */
  background-color: var(--color-dark);
  display: flex;
  align-items: center;
  direction: rtl; /* Enforce Hebrew RTL */
  overflow: hidden; 
}

.hero-bg-layer {
  position: absolute;
  top: 0;
  right: 0;
  width: 55%; 
  height: 100%;
  z-index: 1;
  background-image: url('../assets/images/Profile-blue-tie.png'); 
  /* Scaled to 88% height so the head clears the top header/navbar, while maintaining aspect ratio */
  background-size: auto 88%; 
  /* Anchored firmly to the bottom so the straight cut of the suit sits exactly on the floor */
  background-position: right 5vw bottom; 
  background-repeat: no-repeat;
}

.hero-text-layer {
  position: relative;
  z-index: 10;
  width: 55%; /* Increased width so the text reaches closer to the middle */
  margin-right: auto; /* Pushed to the left side */
  margin-left: 0;
  padding-left: 5%;
  padding-right: 0%; /* No right padding means the text sits flush against the middle of the screen */
  text-align: right;
  color: var(--color-white);
}

.hero-subtitle {
  font-size: 1.5rem;
  color: var(--color-gold);
  margin-bottom: var(--spacing-xs);
  font-weight: 600;
}

.hero-section h1 {
  margin-bottom: var(--spacing-md);
}

@media (max-width: 768px) {
  .hero-section {
    flex-direction: row;
    min-height: auto;
    padding: 70px 0 0 0;
    align-items: flex-end;
  }

  .hero-bg-layer {
    position: relative;
    width: 42%;
    min-width: 42%;
    height: 380px;
    opacity: 1;
    -webkit-mask-image: none;
    mask-image: none;
    background-size: auto 92%;
    background-position: center bottom;
    background-position: right center bottom;
  }

  .hero-text-layer {
    width: 58%;
    padding: var(--spacing-sm) var(--spacing-sm) var(--spacing-md);
    padding-left: 0;
    text-align: right;
    margin: 0;
  }

  .hero-text-layer h1 {
    font-size: clamp(1.4rem, 4.5vw, 2rem);
  }

  .hero-text-layer .hero-subtitle {
    font-size: clamp(0.85rem, 2.8vw, 1.1rem);
  }

  .hero-text-layer p {
    font-size: clamp(0.8rem, 2.5vw, 0.95rem);
  }

  .hero-text-layer .btn {
    font-size: 0.85rem;
    padding: 8px 20px;
  }

  .hero-text-layer .divider {
    margin-left: unset;
    margin-right: 0;
  }
}

/* --- ABOUT SECTION --- */
.about-image {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 2px solid var(--color-gold);
  border-radius: var(--radius-md);
  transform: translate(-15px, 15px);
  z-index: -1;
}

.about-image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  display: block;
}

.about-content p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
  .about-image::after {
    transform: translate(-10px, 10px);
  }
}

/* --- PRACTICE AREAS SECTION --- */
.service-card {
  background-color: var(--color-dark-lighter);
  border-radius: var(--radius-md);
  padding: var(--spacing-md);
  transition: all var(--transition-normal);
  border: 1px solid rgba(255,255,255,0.05);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  border-color: rgba(197, 160, 89, 0.3);
}

.service-icon {
  width: 60px;
  height: 60px;
  background-color: rgba(197, 160, 89, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--spacing-sm);
  color: var(--color-gold);
  font-size: 24px;
}

.service-icon svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
}

.service-card h4 {
  color: var(--color-white);
  margin-bottom: 10px;
}

.service-card p {
  color: #A0A0A0;
  font-size: 1rem;
  margin-bottom: 0;
  flex-grow: 1;
}

/* --- PROCESS SECTION --- */
.process-section {
  position: relative;
  background-color: var(--color-dark);
  background-attachment: scroll;
}

.process-overlay {
  display: none;
}

.process-steps {
  position: relative;
  z-index: 1;
}

.process-step {
  text-align: center;
  padding: var(--spacing-md);
  position: relative;
}

.step-number {
  width: 80px;
  height: 80px;
  background-color: var(--color-dark);
  border: 2px solid var(--color-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-gold);
  margin: 0 auto var(--spacing-sm);
  position: relative;
  z-index: 2;
  transition: all var(--transition-normal);
}

.process-step:hover .step-number {
  background-color: var(--color-gold);
  color: var(--color-dark);
  box-shadow: var(--shadow-gold);
}

.process-step h4 {
  color: var(--color-white);
}

.process-step p {
  color: #A0A0A0;
}

@media (min-width: 768px) {
  .process-step::after {
    content: '';
    position: absolute;
    top: 60px; /* Aligned with center of step-number */
    left: -50%;
    width: 100%;
    height: 2px;
    background-color: rgba(197, 160, 89, 0.3);
    z-index: 1;
  }
  
  .process-step:first-child::after {
    display: none;
  }
}

/* --- WHY CHOOSE ME SECTION --- */
.feature-card {
  padding: var(--spacing-md);
  background-color: var(--color-dark-lighter);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  height: 100%;
}

.feature-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-5px);
}

.feature-icon {
  color: var(--color-gold);
  margin-bottom: var(--spacing-sm);
}

.feature-icon svg {
  width: 40px;
  height: 40px;
  fill: currentColor;
}

/* --- CONTACT SECTION --- */
.contact-info {
  background-color: var(--color-dark-lighter);
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  height: 100%;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: var(--spacing-sm);
}

.contact-icon {
  color: var(--color-gold);
  margin-top: 5px;
}

.contact-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.contact-details h4 {
  color: var(--color-white);
  margin-bottom: 5px;
  font-size: 1.1rem;
}

.contact-details p, .contact-details a {
  color: #A0A0A0;
  margin-bottom: 0;
}

.contact-details a:hover {
  color: var(--color-gold);
}

.contact-form {
  background-color: var(--color-dark-lighter);
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
}

.form-group {
  margin-bottom: var(--spacing-sm);
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  background-color: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-bottom: 2px solid var(--color-gold);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  color: var(--color-white);
  font-family: inherit;
  font-size: 1rem;
  transition: all var(--transition-fast);
}

.form-control:focus {
  outline: none;
  background-color: rgba(255,255,255,0.1);
  border-bottom-color: var(--color-gold-light);
}

.form-control::placeholder {
  color: #888;
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.submit-btn {
  width: 100%;
  margin-top: var(--spacing-sm);
}

#form-status {
  margin-top: 15px;
  padding: 10px;
  border-radius: var(--radius-sm);
  display: none;
  text-align: center;
}

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

/* --- FOOTER --- */
.footer {
  background-color: #060B1A;
  color: var(--color-text-muted);
  padding: var(--spacing-md) 0 100px;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 10px;
  display: inline-block;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 15px 0;
  flex-wrap: wrap;
}

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

/* --- WHATSAPP FLOATING BUTTON --- */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 30px;
  left: 30px; /* RTL, so it's on the left */
  background-color: #25d366;
  color: #FFF;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-normal);
  animation: pulse 2s infinite;
}

.whatsapp-float:hover {
  background-color: #128C7E;
  transform: scale(1.1);
  color: #FFF;
}

.whatsapp-float svg {
  width: 35px;
  height: 35px;
  fill: currentColor;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* --- SCROLL ANIMATIONS --- */
.animate-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Delay modifiers for stagger effect */
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }

/* --- GUARANTEE BAR --- */
.guarantee-bar {
  background-color: var(--color-gold);
  color: var(--color-dark);
  padding: 18px 0;
  font-weight: 700;
  font-size: 1.25rem;
  text-align: center;
  position: relative;
  z-index: 10;
  box-shadow: var(--shadow-md);
  border-bottom: 2px solid var(--color-gold-dark);
}

.guarantee-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.guarantee-icon {
  width: 28px;
  height: 28px;
  fill: currentColor;
  display: inline-block;
}

/* --- SUCCESS OUTCOMES SECTION --- */
.success-card {
  background-color: var(--color-dark-lighter);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: var(--radius-md);
  padding: var(--spacing-md);
  border-top: 4px solid var(--color-gold);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.success-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg), 0 5px 15px rgba(197, 160, 89, 0.1);
}

.success-amount {
  font-size: clamp(2rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--color-gold-dark);
  line-height: 1;
  margin-bottom: 10px;
  direction: ltr;
  text-align: right;
}

.success-card h4 {
  color: var(--color-text-dark);
  font-size: 1.2rem;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 10px;
}

.success-card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-bottom: 0;
  flex-grow: 1;
}

/* --- FORM UPDATES --- */
select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23C5A059'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: left 15px center;
  background-size: 20px;
  padding-left: 40px;
  cursor: pointer;
}

select.form-control option {
  background-color: var(--color-dark);
  color: var(--color-white);
}

/* Submit loading state */
.btn-primary:disabled {
  background-color: var(--color-text-muted);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* --- CASE STUDIES --- */
.case-studies-container {
  margin-top: var(--spacing-xl);
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.case-study-card {
  background-color: var(--color-dark-lighter);
  border-radius: var(--radius-lg);
  padding: var(--spacing-md);
  border-top: 4px solid var(--color-gold);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  border-left: 1px solid var(--color-border);
  border-right: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.case-study-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg), 0 5px 15px rgba(197, 160, 89, 0.05);
}

.case-study-header {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: var(--spacing-md);
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 15px;
}

.case-badge {
  align-self: flex-start;
  background-color: rgba(197, 160, 89, 0.1);
  color: var(--color-gold-dark);
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 700;
}

.case-study-header h4 {
  color: var(--color-text-dark);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0;
}

.case-study-body {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  align-items: start;
}

.case-step {
  display: flex;
  gap: 15px;
}

.case-step-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.case-step-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.case-step-icon.challenge {
  color: #c62828;
  background-color: rgba(198, 40, 40, 0.1);
}

.case-step-icon.solution {
  color: var(--color-gold-dark);
  background-color: rgba(197, 160, 89, 0.1);
}

.case-step-icon.result {
  color: #2e7d32;
  background-color: rgba(46, 125, 50, 0.1);
}

.case-step-content h5 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text-dark);
  margin-bottom: 8px;
}

.case-step-content p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .case-study-body {
    grid-template-columns: 1fr;
    gap: 25px;
  }
}

/* --- FAQ SECTION --- */
.faq-container {
  margin-top: 2rem;
}

.faq-item {
  border: 1px solid rgba(197, 160, 89, 0.3);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  overflow: hidden;
  background-color: var(--color-dark-lighter);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.faq-item:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--color-gold);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: var(--font-primary);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-text-dark);
  text-align: right;
  transition: color var(--transition-normal);
}

.faq-question:hover {
  color: var(--color-gold);
}

.faq-icon {
  flex-shrink: 0;
  margin-right: 15px;
  transition: transform 0.3s ease;
  color: var(--color-gold);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-in-out;
}

.faq-answer-inner {
  padding: 0 1.5rem 1.5rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

.faq-steps {
  list-style: none;
  padding: 0;
  margin: 0;
}

.faq-steps li {
  margin-bottom: 1.2rem;
  position: relative;
}

.faq-steps strong {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-text-dark);
  margin-bottom: 5px;
}

/* --- ARTICLES PAGE --- */

/* Article Page Hero */
.article-page-hero {
  min-height: 340px;
  display: flex;
  align-items: center;
  position: relative;
  background-color: var(--color-dark);
  padding-top: 80px;
}

.article-page-hero--single {
  min-height: 380px;
}

.article-page-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
}

.article-page-hero-content {
  position: relative;
  z-index: 1;
  color: var(--color-white);
  padding: var(--spacing-lg) 0;
}

.article-page-hero-content h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  margin-bottom: var(--spacing-sm);
}

.article-hero-sub {
  font-size: 1.15rem;
  color: var(--color-gold);
  font-weight: 600;
  margin-top: 0.5rem;
}

/* Breadcrumb */
.article-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-gold);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition-normal);
  margin-bottom: 0.5rem;
}

.article-breadcrumb:hover {
  color: var(--color-gold-light);
  transform: translateX(5px);
}

/* Articles Grid */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: var(--spacing-md);
  max-width: 900px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Article Card */
.article-card {
  display: flex;
  flex-direction: column;
  background-color: var(--color-dark-lighter);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  border: 1px solid var(--color-border);
  border-top: 4px solid var(--color-gold);
  text-decoration: none;
  color: inherit;
}

.article-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg), 0 5px 15px rgba(197, 160, 89, 0.1);
  border-color: rgba(197, 160, 89, 0.3);
}

.article-card-badge {
  display: inline-block;
  background-color: rgba(197, 160, 89, 0.1);
  color: var(--color-gold-dark);
  padding: 5px 14px;
  font-size: 0.85rem;
  font-weight: 700;
  margin: var(--spacing-md) var(--spacing-md) 0;
  border-radius: 50px;
  align-self: flex-start;
}

.article-card-content {
  padding: var(--spacing-sm) var(--spacing-md) var(--spacing-md);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.article-card-content h3 {
  font-size: 1.3rem;
  color: var(--color-text-dark);
  margin-bottom: 0.3rem;
  line-height: 1.35;
}

.article-card-subtitle {
  font-size: 0.95rem;
  color: var(--color-gold-dark);
  font-weight: 600;
  margin-bottom: 0.75rem !important;
}

.article-card-excerpt {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
  flex-grow: 1;
}

.article-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-gold);
  font-weight: 700;
  font-size: 0.95rem;
  margin-top: var(--spacing-sm);
  transition: gap var(--transition-normal);
}

.article-card:hover .article-card-link {
  gap: 10px;
}

/* Article Content */
.article-content-wrapper {
  max-width: 820px;
  margin: 0 auto;
}

.article-body {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--color-text-dark);
}

.article-body p {
  margin-bottom: 1.5rem;
}

.article-body h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-top: 3rem;
  margin-bottom: 0.5rem;
  color: var(--color-text-dark);
}

.article-lead {
  font-size: 1.2rem !important;
  line-height: 1.85;
  color: var(--color-text-dark);
  border-right: 4px solid var(--color-gold);
  padding-right: 1.5rem;
  margin-bottom: 2rem !important;
}

/* Article Table */
.article-table-wrapper {
  overflow-x: auto;
  margin: 2rem 0 3rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  -webkit-overflow-scrolling: touch;
}

.article-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
  background-color: var(--color-dark-lighter);
}

.article-table thead {
  background-color: var(--color-dark);
}

.article-table thead th {
  color: var(--color-gold);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 16px 20px;
  text-align: right;
  white-space: nowrap;
  border-bottom: 3px solid var(--color-gold);
}

.article-table tbody tr {
  transition: background-color var(--transition-fast);
}

.article-table tbody tr:nth-child(even) {
  background-color: rgba(197, 160, 89, 0.04);
}

.article-table tbody tr:hover {
  background-color: rgba(197, 160, 89, 0.1);
}

.article-table tbody td {
  padding: 14px 20px;
  font-size: 1rem;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-dark);
}

.article-table tbody td:first-child {
  font-weight: 600;
}

@media (max-width: 640px) {
  .article-table-wrapper {
    box-shadow: none;
  }
  
  .article-table {
    min-width: 0;
    border: 0;
  }
  
  .article-table thead {
    display: none;
  }
  
  .article-table tbody tr {
    display: block;
    margin-bottom: 1rem;
    border: 1px solid var(--color-border);
    border-top: 3px solid var(--color-gold);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    background-color: var(--color-dark-lighter) !important;
    padding: 0.5rem;
  }
  
  .article-table tbody td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    font-size: 0.95rem;
  }
  
  .article-table tbody td:last-child {
    border-bottom: none;
  }
  
  .article-table tbody td::before {
    content: attr(data-label);
    font-weight: 700;
    color: var(--color-gold-dark);
    font-size: 0.85rem;
    margin-left: 1rem;
    flex-shrink: 0;
  }
}

/* Article Highlight Cards */
.article-highlights {
  display: grid;
  gap: 1.5rem;
  margin: 2rem 0 3rem;
}

.article-highlight-card {
  display: flex;
  gap: 1.25rem;
  padding: 1.5rem;
  background-color: var(--color-dark-lighter);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  border-right: 4px solid var(--color-gold);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.article-highlight-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: rgba(197, 160, 89, 0.3);
}

.highlight-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  background-color: rgba(197, 160, 89, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gold);
}

.highlight-content h3 {
  font-size: 1.15rem;
  color: var(--color-text-dark);
  margin-bottom: 0.5rem;
}

.highlight-content p {
  color: var(--color-text-muted);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 0;
}

@media (max-width: 640px) {
  .article-highlight-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Article CTA Box */
.article-cta-box {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem;
  margin-top: 3rem;
  background-color: var(--color-dark);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(197, 160, 89, 0.3);
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.article-cta-icon {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  background-color: rgba(197, 160, 89, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gold);
}

.article-cta-text {
  flex-grow: 1;
}

.article-cta-text h3 {
  color: var(--color-white);
  font-size: 1.2rem;
  margin-bottom: 0.3rem;
}

.article-cta-text p {
  color: #A0A0A0;
  margin-bottom: 0;
  font-size: 1rem;
}

.article-cta-box .btn {
  flex-shrink: 0;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .article-cta-box {
    flex-direction: column;
    text-align: center;
  }
  
  .article-cta-box .btn {
    width: 100%;
  }
}

/* --- ACCESSIBILITY MENU --- */
.a11y-panel {
  position: fixed;
  bottom: 90px;
  top: auto;
  right: 30px;
  width: 300px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  border: 2px solid rgba(197, 160, 89, 0.5);
  padding: 20px;
  z-index: 10002;
  display: none;
  flex-direction: column;
  gap: 10px;
  direction: rtl;
  max-height: 90vh;
  overflow-y: auto;
}

.a11y-panel.open {
  display: flex;
}

.a11y-panel h3 {
  font-size: 1.1rem;
  margin-bottom: 5px;
  color: #1a1613;
  border-bottom: 2px solid #c5a059;
  padding-bottom: 10px;
  text-align: center;
}

.a11y-btn-option {
  background: #f5f0e8;
  border: 1px solid #ddd;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.95rem;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: right;
  color: #1a1613;
  width: 100%;
}

.a11y-btn-option:hover {
  background: rgba(197, 160, 89, 0.15);
  border-color: #c5a059;
}

.a11y-btn-option.active {
  background: #c5a059;
  color: #fff;
  border-color: #c5a059;
}

.a11y-reset-btn {
  background: #ffeaea;
  border: 1px solid #ffaaaa;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.95rem;
  color: #c0392b;
  width: 100%;
  font-weight: 700;
  transition: all 0.2s;
}

.a11y-reset-btn:hover {
  background: #c0392b;
  color: #fff;
}

.a11y-statement-link {
  display: block;
  text-align: center;
  color: #c5a059;
  font-size: 0.85rem;
  text-decoration: underline;
  cursor: pointer;
  padding: 5px;
}

.a11y-close {
  background: none;
  border: 1px solid #ccc;
  border-radius: 8px;
  color: #666;
  cursor: pointer;
  text-align: center;
  margin-top: 5px;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 8px;
  width: 100%;
  transition: all 0.2s;
}

.a11y-close:hover {
  background: #eee;
  color: #333;
}

/* ===== ACCESSIBILITY MODES ===== */

/* High Contrast: real black background, yellow text */
body.a11y-high-contrast {
  background-color: #000 !important;
  color: #ffff00 !important;
}
body.a11y-high-contrast *:not(.whatsapp-float):not(.a11y-panel):not(.a11y-panel *) {
  background-color: #000 !important;
  color: #ffff00 !important;
  border-color: #ffff00 !important;
}
body.a11y-high-contrast a {
  color: #00ffff !important;
}
body.a11y-high-contrast .header {
  background-color: #000 !important;
}

/* Monochrome: apply to html element, NOT body, to avoid stacking context issues */
html.a11y-monochrome {
  filter: grayscale(100%);
}

/* Invert: apply to html element */
html.a11y-invert {
  filter: invert(100%) hue-rotate(180deg);
}

/* Fixed elements that must stay unaffected by html-level filters */
/* These are re-inverted to cancel out the html filter */
html.a11y-invert .whatsapp-float,
html.a11y-invert .a11y-panel,
html.a11y-monochrome .whatsapp-float {
  filter: invert(100%) hue-rotate(180deg);
}

/* Highlight Links */
body.a11y-highlight-links a {
  background-color: #ffeb3b !important;
  color: #000 !important;
  text-decoration: underline !important;
  padding: 2px 4px;
  border-radius: 3px;
}

/* Large Cursor */
body.a11y-large-cursor,
body.a11y-large-cursor * {
  cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24"><path d="M7 2l12 11.2-5.8.5 3.3 7.3-2.2.9-3.2-7.4-4.4 4.5z" fill="black" stroke="white" stroke-width="1.5"/></svg>'), auto !important;
}

/* Readable Font */
body.a11y-readable-font,
body.a11y-readable-font * {
  font-family: Arial, Helvetica, sans-serif !important;
  letter-spacing: 0.03em !important;
  line-height: 1.7 !important;
}
