/*
Theme Name: complement Landing Page
Theme URI: https://complement.shop
Author: Othmane Menad
Author URI: https://othmanemenad.com
Description: Professional Arabic RTL product landing page theme for YouCan e-commerce. Fully customizable block theme with all sections needed for high-converting product pages.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: complement-landing
Tags: blog, one-column, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, block-patterns, rtl-language-support, sticky-post, threaded-comments, translation-ready, wide-blocks
*/

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

:root {
  --color-primary: #059669;
  --color-primary-dark: #047857;
  --color-secondary: #f59e0b;
  --color-secondary-light: #fbbf24;
  --color-dark: #1e293b;
  --color-light: #f8fafc;
  --color-success: #22c55e;
  --color-danger: #ef4444;
}

* {
  font-family: 'Cairo', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  direction: rtl;
  text-align: right;
}

/* Ensure order form is fully visible when scrolled to */
#order-form {
  scroll-margin-top: 20px;
}

.gradient-gold {
  background: linear-gradient(135deg, #f5d442 0%, #d4a012 50%, #f5d442 100%);
}

.gradient-primary {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.gradient-dark {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

.text-shadow {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.badge-glow {
  box-shadow: 0 0 20px rgba(245, 212, 66, 0.5);
}

.card-hover {
  transition: all 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.pulse-animation {
  animation: pulse 2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

.float-animation {
  animation: float 3s ease-in-out infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

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

/* CTA Button - styles go on the inner link, not the wrapper */
.cta-button {
  background: transparent !important;
}

.cta-button .wp-block-button__link,
.cta-button.wp-block-button__link {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%) !important;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(34, 197, 94, 0.4);
  color: #fff !important;
  font-weight: 700;
  padding: 1rem 2.5rem;
  border-radius: 9999px;
  display: inline-block;
  text-decoration: none;
  font-size: 1.25rem;
}

.cta-button .wp-block-button__link:hover,
.cta-button.wp-block-button__link:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 25px rgba(34, 197, 94, 0.5);
  color: #fff !important;
}

.trust-badge {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border: 2px solid #f59e0b;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-weight: 700;
}

.before-after-arrow {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(34, 197, 94, 0.4);
}

.product-badge {
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.875rem;
  display: inline-block;
  margin: 0;
}

.product-badge-gold {
  background: linear-gradient(135deg, #f5d442 0%, #d4a012 50%, #f5d442 100%);
  color: #1e293b;
  box-shadow: 0 0 20px rgba(245, 212, 66, 0.5);
}

.product-badge-outline {
  background: #fff;
  border: 2px solid #f59e0b;
  color: #b45309;
}

.section-hero {
  background: linear-gradient(to bottom right, #f8fafc, #fff, #ecfdf5);
  position: relative;
  overflow: hidden;
}

.section-expert {
  background: linear-gradient(to bottom right, #047857, #065f46, #064e3b);
  color: #fff;
}

.section-guarantee {
  background: linear-gradient(to left, #f59e0b, #d97706, #f59e0b);
}

.section-order {
  background: linear-gradient(to bottom right, #334155, #1e293b, #334155);
  color: #fff;
}

.testimonial-card {
  background: #fff;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border: 1px solid #f1f5f9;
}

.feature-card {
  background: linear-gradient(to bottom right, #f8fafc, #f1f5f9);
  border-radius: 1rem;
  padding: 1.5rem;
  text-align: center;
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  width: 4rem;
  height: 4rem;
  background: linear-gradient(135deg, #059669, #047857);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  box-shadow: 0 4px 15px rgba(5, 150, 105, 0.3);
}

.feature-icon svg {
  width: 2rem;
  height: 2rem;
  color: #fff;
}

.star-rating {
  color: #f59e0b;
}

.form-input {
  width: 100%;
  padding: 0.75rem 3rem 0.75rem 1rem;
  border: 2px solid #e2e8f0;
  border-radius: 0.75rem;
  text-align: right;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-input:focus {
  outline: none;
  border-color: #059669;
}

.form-select {
  appearance: none;
  background-color: #fff;
}

.discount-badge {
  background: #ef4444;
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.875rem;
  animation: pulse 2s infinite;
  display: inline-block;
  margin: 0;
}

.price-current {
  font-size: 2rem;
  font-weight: 900;
  color: #059669;
  margin: 0;
}

.price-old {
  font-size: 1.25rem;
  color: #94a3b8;
  text-decoration: line-through;
  margin: 0;
}

.floating-cta {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  z-index: 9999;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-weight: 700;
  box-shadow: 0 10px 25px rgba(34, 197, 94, 0.4);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.floating-cta:hover {
  transform: scale(1.05);
  color: #fff;
}

@media (min-width: 768px) {
  .floating-cta {
    display: none;
  }
}

@media (max-width: 768px) {
  .before-after-arrow svg {
    transform: rotate(-90deg);
  }

  .before-after-arrow-container {
    display: flex;
    justify-content: center;
  }

  .doctor-under-text {
    padding-top: 5rem;
  }

  .guarantee-title-center {
    text-align: center;
    justify-content: center;
    align-items: center;
  }

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

.doctor-image {
  width: 16rem;
  height: 16rem;
  border-radius: 50%;
  border: 4px solid #f59e0b;
  object-fit: cover;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

.quote-icon {
  width: 4rem;
  height: 4rem;
  color: #f59e0b;
  opacity: 0.5;
}

.guarantee-icon {
  width: 5rem;
  height: 5rem;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.guarantee-icon svg {
  width: 2.5rem;
  height: 2.5rem;
  color: #d97706;
}

.order-product-image {
  width: 6rem;
  height: 6rem;
  border-radius: 0.75rem;
  object-fit: cover;
}

.check-icon {
  width: 1.5rem;
  height: 1.5rem;
  background: #22c55e;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.check-icon svg {
  width: 0.75rem;
  height: 0.75rem;
  color: #fff;
}

/* Hero Section Specifics */
.hero-bg-gradient {
  background: linear-gradient(to bottom left, #f8fafc, #ffffff, #ecfdf5) !important;
}

.blob-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.3;
  z-index: 0;
  pointer-events: none;
}

.blob-emerald {
  width: 16rem;
  height: 16rem;
  background-color: #d1fae5;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
}

.blob-amber {
  width: 24rem;
  height: 24rem;
  background-color: #fef3c7;
  bottom: 0;
  right: 0;
  transform: translate(33%, 33%);
}

.z-10 {
  z-index: 10;
  position: relative;
}

.guarantee-gradient {
  background: linear-gradient(to left, #fbbf24, #f59e0b, #fbbf24) !important;
}

.quote-icon-card {
  position: absolute;
  top: 1rem;
  left: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  color: #fde68a;
  z-index: 0;
}

.form-input,
.form-select,
textarea {
  box-sizing: border-box;
}

/* Hero benefits list */
.hero-benefits-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-benefits-list li {
  font-size: 1rem;
  color: #1e293b;
}

/* Fix: Ensure flex-wrap works correctly even when gap is small/0 */
/* WordPress flex layouts need min-width: 0 on children for proper wrapping */
.is-layout-flex>* {
  min-width: 0;
}

/* Force flex-wrap to work properly */
.is-layout-flex {
  flex-wrap: wrap;
}

/* Only apply nowrap when explicitly set */
.is-layout-flex.is-nowrap,
.is-layout-flex[style*="flex-wrap: nowrap"],
.is-layout-flex[style*="flex-wrap:nowrap"] {
  flex-wrap: nowrap;
}

/* Responsive: Force flex items to stack on mobile/tablet */
@media (max-width: 1024px) {

  /* Override fixed flex-basis widths for responsive behavior */
  .section-hero .is-layout-flex>.wp-block-group {
    flex-basis: 100% !important;
    flex-grow: 1 !important;
    max-width: 100% !important;
  }

  /* Center the hero content on smaller screens */
  .section-hero .z-10 {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center;
  }

  .section-hero .z-10>.wp-block-group {
    width: 100% !important;
    max-width: 500px;
  }
}
