/* ===========================================================
   FARHATI.NET - GCC LUXURY PREMIUM STYLING
   Elite Saudi/GCC Wedding Brand Aesthetic
   =========================================================== */

:root {
  --farhati-navy: #0A192F;
  --farhati-gold: #D4AF37;
  --farhati-gold-light: #E8C84A;
  --farhati-gold-dark: #B8941E;
  --farhati-cream: #FAF8F5;
  --farhati-charcoal: #1A1A2E;
  --farhati-sand: #F5F0EB;
  --farhati-teal: #1B4965;
  --farhati-whatsapp: #25D366;
  --farhati-whatsapp-dark: #128C7E;
  --farhati-success: #059669;
  --farhati-border-radius: 12px;
  --farhati-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===========================================================
   1. TOP TRUST RIBBON
   =========================================================== */
.farhati-trust-ribbon {
  background: linear-gradient(135deg, #0A192F 0%, #0F2440 50%, #0A192F 100%);
  color: #fff;
  font-size: clamp(0.7rem, 1.2vw, 0.85rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  padding: 0.5rem 0;
  text-align: center;
  position: relative;
  z-index: 100;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  direction: rtl;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans Arabic', sans-serif;
}

.farhati-trust-ribbon .trust-ribbon-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  flex-wrap: wrap;
}

.farhati-trust-ribbon .trust-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
  opacity: 0.9;
  transition: opacity 0.2s ease;
}

.farhati-trust-ribbon .trust-item:hover {
  opacity: 1;
}

.farhati-trust-ribbon .trust-item .trust-icon {
  font-size: 1.1em;
  line-height: 1;
}

.farhati-trust-ribbon .trust-separator {
  display: inline-block;
  width: 1px;
  height: 1.2em;
  background: linear-gradient(to bottom, transparent 0%, #D4AF37 50%, transparent 100%);
  opacity: 0.5;
}

@media (max-width: 768px) {
  .farhati-trust-ribbon {
    padding: 0.4rem 0;
    font-size: 0.65rem;
  }
  .farhati-trust-ribbon .trust-ribbon-inner {
    gap: 0.5rem;
  }
  .farhati-trust-ribbon .trust-separator:nth-child(4),
  .farhati-trust-ribbon .trust-separator:nth-child(6) {
    display: none;
  }
}

@media (max-width: 480px) {
  .farhati-trust-ribbon .trust-ribbon-inner {
    gap: 0.35rem;
  }
  .farhati-trust-ribbon .trust-separator:nth-child(2),
  .farhati-trust-ribbon .trust-separator:nth-child(4),
  .farhati-trust-ribbon .trust-separator:nth-child(6) {
    display: none;
  }
}

/* ===========================================================
   2. PRICING - MOST POPULAR BADGE
   =========================================================== */
.farhati-popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #D4AF37 0%, #E8C84A 40%, #D4AF37 100%);
  color: #0A192F;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.35rem 1.2rem;
  border-radius: 50px;
  white-space: nowrap;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.35);
  direction: rtl;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans Arabic', sans-serif;
}

.farhati-popular-badge::before {
  content: '★ ';
  font-size: 0.85em;
}

.farhati-popular-badge::after {
  content: ' ★';
  font-size: 0.85em;
}

/* Highlighted pricing card */
.farhati-featured-package {
  position: relative;
  border: 2px solid #D4AF37 !important;
  border-radius: var(--farhati-border-radius) !important;
  box-shadow: 0 8px 32px rgba(212, 175, 55, 0.15), 0 2px 8px rgba(212, 175, 55, 0.1) !important;
  transform: translateY(-4px);
  transition: var(--farhati-transition);
  overflow: visible !important;
}

.farhati-featured-package:hover {
  box-shadow: 0 12px 48px rgba(212, 175, 55, 0.25), 0 4px 16px rgba(212, 175, 55, 0.15) !important;
  transform: translateY(-8px);
}

/* Ensure the card can position the badge */
.wp-block-group:has(.farhati-featured-package),
.wp-block-column:has(.farhati-featured-package) {
  overflow: visible !important;
}

/* Subtle gold shimmer animation on hover */
.farhati-featured-package::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: inherit;
  background: linear-gradient(
    135deg,
    transparent 0%,
    rgba(212, 175, 55, 0.03) 50%,
    transparent 100%
  );
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.farhati-featured-package:hover::after {
  opacity: 1;
}

/* ===========================================================
   3. FLOATING WHATSAPP CTA
   =========================================================== */
.farhati-whatsapp-float {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 12px;
  direction: ltr;
}

.farhati-whatsapp-float .whatsapp-tooltip {
  background: #fff;
  color: #1a1a1a;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  opacity: 0;
  transform: translateX(10px);
  transition: all 0.3s ease;
  pointer-events: none;
  white-space: nowrap;
  direction: rtl;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans Arabic', sans-serif;
}

.farhati-whatsapp-float:hover .whatsapp-tooltip {
  opacity: 1;
  transform: translateX(0);
}

.farhati-whatsapp-float .whatsapp-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #fff;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.35);
  transition: var(--farhati-transition);
  text-decoration: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.farhati-whatsapp-float .whatsapp-btn svg {
  width: 28px;
  height: 28px;
  fill: #fff;
  transition: transform 0.3s ease;
}

.farhati-whatsapp-float .whatsapp-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 32px rgba(37, 211, 102, 0.45);
}

.farhati-whatsapp-float .whatsapp-btn:hover svg {
  transform: scale(1.1);
}

/* WhatsApp pulse ring */
.farhati-whatsapp-float .whatsapp-btn::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, 0.3);
  animation: farhati-pulse-ring 2s ease-in-out infinite;
}

@keyframes farhati-pulse-ring {
  0% {
    transform: scale(0.95);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.08);
    opacity: 0.3;
  }
  100% {
    transform: scale(0.95);
    opacity: 0.7;
  }
}

@media (max-width: 768px) {
  .farhati-whatsapp-float {
    bottom: 16px;
    left: 16px;
  }
  .farhati-whatsapp-float .whatsapp-btn {
    width: 48px;
    height: 48px;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
  }
  .farhati-whatsapp-float .whatsapp-btn svg {
    width: 24px;
    height: 24px;
  }
  .farhati-whatsapp-float .whatsapp-tooltip {
    display: none;
  }
}

/* ===========================================================
   4. HOW IT WORKS - 4-STEP TIMELINE
   =========================================================== */
.farhati-process-section {
  padding: 4rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  direction: rtl;
}

.farhati-process-section .process-title {
  text-align: center;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 700;
  color: #0A192F;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.farhati-process-section .process-subtitle {
  text-align: center;
  color: #6B7280;
  font-size: 1rem;
  margin-bottom: 3rem;
  font-weight: 400;
}

.farhati-process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  position: relative;
}

/* Connecting line between steps */
.farhati-process-grid::before {
  content: '';
  position: absolute;
  top: 48px;
  left: calc(12.5% + 24px);
  right: calc(12.5% + 24px);
  height: 2px;
  background: linear-gradient(
    to left,
    rgba(212, 175, 55, 0.6) 0%,
    rgba(212, 175, 55, 0.1) 100%
  );
  z-index: 0;
}

.farhati-process-step {
  text-align: center;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.farhati-process-step .step-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0A192F 0%, #1B4965 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 4px 16px rgba(10, 25, 47, 0.15);
  transition: var(--farhati-transition);
}

.farhati-process-step:hover .step-icon {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(10, 25, 47, 0.25);
}

.farhati-process-step .step-icon .step-number {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #D4AF37 0%, #E8C84A 100%);
  color: #0A192F;
  font-size: 0.8rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(212, 175, 55, 0.4);
}

.farhati-process-step .step-icon svg {
  width: 32px;
  height: 32px;
  fill: #D4AF37;
}

.farhati-process-step .step-label {
  font-size: clamp(0.85rem, 1.2vw, 1rem);
  font-weight: 600;
  color: #0A192F;
  line-height: 1.4;
  max-width: 160px;
}

@media (max-width: 900px) {
  .farhati-process-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 1.5rem;
  }
  .farhati-process-grid::before {
    display: none;
  }
}

@media (max-width: 480px) {
  .farhati-process-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .farhati-process-step {
    flex-direction: row;
    text-align: right;
    gap: 1rem;
  }
  .farhati-process-step .step-icon {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
  }
  .farhati-process-step .step-icon svg {
    width: 28px;
    height: 28px;
  }
  .farhati-process-step .step-label {
    max-width: none;
    text-align: right;
  }
}

/* ===========================================================
   5. B2B & LEAD CAPTURE SECTION
   =========================================================== */
.farhati-b2b-section {
  background: linear-gradient(135deg, #0A192F 0%, #1B4965 50%, #0A192F 100%);
  padding: 5rem 1.5rem;
  position: relative;
  overflow: hidden;
  direction: rtl;
}

.farhati-b2b-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(212, 175, 55, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(255, 255, 255, 0.03) 0%, transparent 50%);
  pointer-events: none;
}

.farhati-b2b-container {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.farhati-b2b-header {
  text-align: center;
  margin-bottom: 3rem;
}

.farhati-b2b-header .b2b-title {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.farhati-b2b-header .b2b-subtitle {
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
  color: rgba(255, 255, 255, 0.75);
  font-weight: 400;
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.6;
}

.farhati-b2b-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.farhati-b2b-feature {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: 12px;
  padding: 1.5rem;
  transition: var(--farhati-transition);
}

.farhati-b2b-feature:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(212, 175, 55, 0.3);
  transform: translateY(-2px);
}

.farhati-b2b-feature .feature-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  display: block;
}

.farhati-b2b-feature .feature-title {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.35rem;
}

.farhati-b2b-feature .feature-desc {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
}

.farhati-b2b-cta {
  text-align: center;
}

.farhati-b2b-cta .b2b-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #D4AF37 0%, #E8C84A 100%);
  color: #0A192F;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 0.9rem 2.5rem;
  border-radius: 50px;
  text-decoration: none;
  transition: var(--farhati-transition);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.3);
  font-family: inherit;
}

.farhati-b2b-cta .b2b-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(212, 175, 55, 0.45);
  color: #0A192F;
}

.farhati-b2b-form {
  max-width: 480px;
  margin: 2rem auto 0;
  display: none;
  direction: rtl;
}

.farhati-b2b-form.active {
  display: block;
  animation: farhati-fadeIn 0.4s ease;
}

.farhati-b2b-form .form-group {
  margin-bottom: 1rem;
}

.farhati-b2b-form .form-group input {
  width: 100%;
  padding: 0.85rem 1.2rem;
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 0.95rem;
  font-family: inherit;
  transition: var(--farhati-transition);
  box-sizing: border-box;
  direction: rtl;
}

.farhati-b2b-form .form-group input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.farhati-b2b-form .form-group input:focus {
  outline: none;
  border-color: #D4AF37;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.farhati-b2b-form .form-submit {
  width: 100%;
  padding: 0.85rem;
  background: linear-gradient(135deg, #D4AF37 0%, #E8C84A 100%);
  color: #0A192F;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--farhati-transition);
  font-family: inherit;
}

.farhati-b2b-form .form-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.3);
}

.farhati-b2b-form .form-message {
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  margin-top: 0.75rem;
}

@keyframes farhati-fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 640px) {
  .farhati-b2b-features {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .farhati-b2b-section {
    padding: 3rem 1rem;
  }
}

/* ===========================================================
   6. LAUNCH OFFER / PRICING URGENCY
   =========================================================== */
.farhati-launch-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: linear-gradient(135deg, #DC2626 0%, #EF4444 100%);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
  direction: rtl;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans Arabic', sans-serif;
  white-space: nowrap;
}

.farhati-launch-badge::before {
  content: '🔥 ';
  font-size: 0.9em;
}

.farhati-price-original {
  text-decoration: line-through;
  color: #9CA3AF;
  font-size: 0.9em;
  font-weight: 400;
  margin-left: 0.5rem;
  margin-right: 0.3rem;
}

.farhati-price-current {
  color: #0A192F;
  font-weight: 700;
}

.farhati-urgency-copy {
  text-align: center;
  font-size: 0.8rem;
  color: #EF4444;
  font-weight: 500;
  margin-top: 0.35rem;
  direction: rtl;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans Arabic', sans-serif;
  opacity: 0.8;
}

/* ===========================================================
   7. TESTIMONIALS PLACEHOLDER
   =========================================================== */
.farhati-testimonials-section {
  padding: 4rem 1.5rem;
  max-width: 900px;
  margin: 0 auto;
  direction: rtl;
}

.farhati-testimonials-section .testimonials-title {
  text-align: center;
  font-size: clamp(1.3rem, 3vw, 2rem);
  font-weight: 700;
  color: #0A192F;
  margin-bottom: 2rem;
}

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

.farhati-testimonial-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 2rem;
  background: #FAF8F5;
  border: 1px dashed rgba(212, 175, 55, 0.3);
  border-radius: 16px;
  color: #6B7280;
  font-size: 1rem;
  font-weight: 400;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.farhati-testimonial-empty .empty-icon {
  font-size: 2.5rem;
  opacity: 0.4;
}

.farhati-testimonial-empty .empty-text {
  font-style: italic;
  font-size: 0.95rem;
}

/* ===========================================================
   8. FAQ UPDATES
   =========================================================== */
.farhati-faq-section {
  padding: 3rem 1.5rem;
  max-width: 800px;
  margin: 0 auto;
  direction: rtl;
}

.farhati-faq-item {
  border-bottom: 1px solid #E5E7EB;
  padding: 1.25rem 0;
}

.farhati-faq-question {
  font-weight: 600;
  color: #0A192F;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  user-select: none;
}

.farhati-faq-question:hover {
  color: #D4AF37;
}

.farhati-faq-question .faq-toggle {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
  color: #D4AF37;
  flex-shrink: 0;
}

.farhati-faq-question.active .faq-toggle {
  transform: rotate(45deg);
}

.farhati-faq-answer {
  padding-top: 0.75rem;
  font-size: 0.9rem;
  color: #4B5563;
  line-height: 1.7;
  display: none;
}

.farhati-faq-answer.active {
  display: block;
  animation: farhati-fadeIn 0.3s ease;
}

/* ===========================================================
   9. HERO SECTION REFINEMENTS
   =========================================================== */
.farhati-hero-gradient {
  position: relative;
}

.farhati-hero-gradient::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to top, var(--wp--preset--color--background, #fff) 0%, transparent 100%);
  pointer-events: none;
}

/* ===========================================================
   10. GENERAL LUXURY REFINEMENTS
   =========================================================== */

/* Smooth transitions on all interactive elements */
.wp-block-button__link,
.wp-block-button a,
a.wp-block-button__link {
  transition: var(--farhati-transition) !important;
}

/* Gold accent on hover for nav items */
.wp-block-navigation-item a:hover {
  color: #D4AF37 !important;
}

/* Refined card styling */
.wp-block-group[class*="item-card"] {
  transition: var(--farhati-transition);
  border-radius: var(--farhati-border-radius);
  overflow: hidden;
}

.wp-block-group[class*="item-card"]:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

/* Premium button styling overrides */
.wp-block-button__link {
  border-radius: 50px !important;
  font-weight: 600 !important;
  letter-spacing: 0.02em;
}

/* Gold outline button variant */
.is-style-outline .wp-block-button__link {
  border-color: #D4AF37 !important;
  color: #D4AF37 !important;
}

.is-style-outline .wp-block-button__link:hover {
  background: #D4AF37 !important;
  color: #0A192F !important;
}

/* ===========================================================
   11. MOBILE RESPONSIVENESS
   =========================================================== */

@media (max-width: 600px) {
  .wp-block-group.has-background {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  
  .entry-content > .wp-block-group {
    scroll-margin-top: 80px;
  }
}

/* ===========================================================
   12. PRINT STYLES
   =========================================================== */
@media print {
  .farhati-trust-ribbon,
  .farhati-whatsapp-float,
  .farhati-b2b-section {
    display: none !important;
  }
}
