/* WebForge Pro — components.css (design layer, auto-generated) */
/* theme: creative_agency */
.wf-landing {
  font-family: var(--wf-font-en);
  background: var(--wf-bg);
  color: var(--wf-text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html[dir="rtl"] .wf-landing { font-family: var(--wf-font-he); }
html { scroll-behavior: smooth; }

.wf-landing .elementor-container {
  max-width: 1180px !important;
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 40px);
}

/* --- Section rhythm --- */
.wf-landing .elementor-top-section {
  padding-block: clamp(64px, 9vw, 130px);
  position: relative;
}
.wf-landing .elementor-top-section:nth-child(even) {
  background: var(--wf-surface-alt);
}

/* --- Typography --- */
.wf-landing .elementor-heading-title {
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.wf-landing h2.elementor-heading-title {
  font-size: clamp(1.9rem, 3.4vw, 2.75rem);
  font-weight: 800;
  text-align: center;
  margin-inline: auto;
  max-width: 22ch;
  color: var(--wf-text);
}
.wf-landing .elementor-widget-heading { margin-block-end: clamp(24px, 4vw, 48px); }

/* Accent underline under each section's title (not the hero). */
.wf-landing .elementor-top-section:not(:first-child) .elementor-widget-heading:first-child .elementor-heading-title::after {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  margin: 18px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--wf-color-primary), var(--wf-color-accent));
}

/* --- Hero --- */
.wf-landing .elementor-top-section:first-child {
  min-height: 100vh;
  display: flex;
  align-items: center;
  text-align: center;
  overflow: hidden;
  background: var(--wf-hero) !important;
}
.wf-landing .elementor-top-section:first-child::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 60% at 25% 20%, rgba(255, 255, 255, 0.18), transparent 60%),
    radial-gradient(55% 55% at 85% 95%, rgba(0, 0, 0, 0.18), transparent 60%);
  pointer-events: none;
}
.wf-landing .elementor-top-section:first-child > .elementor-container {
  position: relative;
  z-index: 2;
}

/* Hero background video (injected by JS behind the content). */
.wf-hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}
.wf-landing .elementor-top-section.wf-has-hero-video { background: #0b0b12 !important; }
.wf-landing .elementor-top-section.wf-has-hero-video::before {
  background: linear-gradient(180deg, rgba(11, 11, 18, 0.5), rgba(11, 11, 18, 0.82)) !important;
  z-index: 1;
}
.wf-landing .elementor-top-section:first-child .elementor-heading-title { color: #ffffff !important; }
/* Big logo standing in for the hero headline (keeps .wf-logo-img white blend). */
.wf-landing .wf-hero-logo-wrap { text-align: center; }
.wf-landing .wf-hero-logo {
  width: min(520px, 78vw);
  height: auto;
  margin-inline: auto;
  margin-block-end: clamp(20px, 3vw, 34px);
}
.wf-landing .elementor-top-section:first-child .elementor-widget-heading:first-child .elementor-heading-title {
  font-size: clamp(2.6rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-block-end: var(--wf-space-4);
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.15);
}
.wf-landing .elementor-top-section:first-child h3.elementor-heading-title {
  font-size: clamp(1.05rem, 1.8vw, 1.4rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
  max-width: 46ch;
  margin-inline: auto;
  margin-block-end: var(--wf-space-6);
}

/* --- Buttons + micro-interactions --- */
.wf-landing .elementor-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--wf-color-accent);
  color: var(--wf-on-accent) !important;
  padding: 16px 42px;
  border-radius: var(--wf-radius);
  font-size: var(--wf-text-lg);
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.25s ease, filter 0.25s ease;
}
.wf-landing .elementor-button:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.24);
  filter: brightness(1.05);
}
.wf-landing .wf-btn-glow .elementor-button {
  box-shadow: 0 10px 30px rgba(245, 158, 11, 0.45);
}
.wf-landing .wf-btn-glow .elementor-button:hover {
  box-shadow: 0 0 42px rgba(245, 158, 11, 0.6);
}

/* --- Feature cards (bento grid) --- */
.wf-landing .elementor-widget-wrap:has(> .elementor-widget-icon-box) {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(16px, 2vw, 28px);
  align-items: stretch;
}
/* A heading inside a grid wrap spans the full row (sits above the cards). */
.wf-landing .elementor-widget-wrap:has(> .elementor-widget-icon-box) > .elementor-widget-heading,
.wf-landing .elementor-widget-wrap:has(> .elementor-widget-html .wf-testimonial) > .elementor-widget-heading {
  grid-column: 1 / -1;
}
.wf-landing .elementor-widget-icon-box {
  background: var(--wf-surface);
  border: 1px solid var(--wf-border);
  border-radius: 18px;
  padding: clamp(26px, 3vw, 40px);
  text-align: center;
  box-shadow: var(--wf-card-shadow);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  height: 100%;
}
.wf-landing .elementor-widget-icon-box:hover {
  transform: translateY(-6px);
  box-shadow: var(--wf-card-shadow-hover);
  border-color: var(--wf-color-primary);
}
.wf-landing .elementor-icon-box-icon,
.wf-landing .elementor-icon-box-icon .elementor-icon {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin-inline: auto;
  margin-block-end: var(--wf-space-4);
  border-radius: 50%;
  background: linear-gradient(135deg, var(--wf-color-primary-50), var(--wf-color-primary-100));
  line-height: 1;
}
.wf-landing .elementor-icon-box-icon .elementor-icon { margin-block-end: 0; }
.wf-landing .elementor-icon-box-icon i,
.wf-landing .elementor-icon-box-icon svg {
  color: var(--wf-color-primary);
  fill: var(--wf-color-primary);
  font-size: 30px;
  width: 30px;
  height: 30px;
}
.wf-landing .elementor-icon-box-title,
.wf-landing .elementor-icon-box-title a {
  font-size: var(--wf-text-xl);
  margin-block-end: var(--wf-space-2);
  font-weight: 700;
  color: var(--wf-text);
}
.wf-landing .elementor-icon-box-description { color: var(--wf-text-muted); }

/* --- Stats --- */
.wf-landing .elementor-widget-wrap:has(> .elementor-widget-html .wf-stat) {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: clamp(16px, 3vw, 40px);
}
.wf-stat { text-align: center; padding: var(--wf-space-4); }
.wf-stat .wf-counter,
.wf-stat .wf-stat__suffix {
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, var(--wf-color-primary), var(--wf-color-secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.wf-stat .wf-stat__suffix {
  background: none;
  -webkit-text-fill-color: initial;
  color: var(--wf-color-accent);
}
.wf-stat__label {
  margin-block-start: var(--wf-space-2);
  color: var(--wf-text-muted);
  font-size: var(--wf-text-lg);
  font-weight: 500;
}

/* --- Testimonials --- */
.wf-landing .elementor-widget-wrap:has(> .elementor-widget-html .wf-testimonial) {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(16px, 2vw, 28px);
}
.wf-testimonial {
  position: relative;
  background: var(--wf-surface);
  border-radius: 18px;
  padding: clamp(28px, 3vw, 44px);
  box-shadow: var(--wf-card-shadow);
  border: 1px solid var(--wf-border);
}
.wf-testimonial::before {
  content: "\201C";
  position: absolute;
  inset-block-start: 6px;
  inset-inline-start: 22px;
  font-size: 84px;
  line-height: 1;
  color: var(--wf-color-primary);
  opacity: 0.35;
  font-family: Georgia, serif;
}
.wf-testimonial__quote {
  position: relative;
  font-size: var(--wf-text-lg);
  font-style: italic;
  color: var(--wf-text);
}
.wf-testimonial__author {
  display: block;
  font-weight: 700;
  margin-block-start: var(--wf-space-4);
  color: var(--wf-text);
}
.wf-testimonial__role { color: var(--wf-text-muted); font-size: var(--wf-text-sm); }

/* --- CTA band (gradient section, white text) --- */
.wf-landing .elementor-top-section:nth-last-child(2) .elementor-heading-title { color: #ffffff; }

/* --- Contact form --- */
.wf-landing .wf-contact-form { max-width: 640px; margin-inline: auto; }
.wf-landing .wf-contact-form .elementor-field-group { margin-block-end: var(--wf-space-3); }
.wf-landing .wf-contact-form .elementor-field {
  border: 1px solid var(--wf-border) !important;
  border-radius: 12px !important;
  padding: 14px 18px !important;
  width: 100%;
  font-size: var(--wf-text-base);
  background: var(--wf-surface);
  color: var(--wf-text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.wf-landing .wf-contact-form .elementor-field::placeholder { color: var(--wf-text-muted); }
.wf-landing .wf-contact-form .elementor-field:focus {
  border-color: var(--wf-color-primary) !important;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.25) !important;
  outline: none;
}

/* --- About (image + story) --- */
.wf-landing .wf-about__media img,
.wf-landing .wf-about__img img {
  width: 100%;
  border-radius: 20px;
  box-shadow: var(--wf-card-shadow-hover);
  display: block;
}
.wf-landing .wf-about__title .elementor-heading-title {
  text-align: start;
  margin-inline: 0;
  max-width: none;
}
.wf-landing .wf-about__title .elementor-heading-title::after { margin-inline: 0 auto; }
.wf-landing .wf-about__text {
  color: var(--wf-text-muted);
  font-size: var(--wf-text-lg);
  line-height: 1.9;
}

/* --- Portfolio / works grid --- */
.wf-landing .elementor-widget-wrap:has(> .elementor-widget-html .wf-work) {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(16px, 2vw, 28px);
}
.wf-landing .elementor-widget-wrap:has(> .elementor-widget-html .wf-work) > .elementor-widget-heading,
.wf-landing .elementor-widget-wrap:has(> .elementor-widget-html .wf-post) > .elementor-widget-heading {
  grid-column: 1 / -1;
}
.wf-work { display: block; text-decoration: none; color: var(--wf-text); }
.wf-work__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--wf-card-shadow);
}
.wf-work__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.wf-work:hover .wf-work__media img { transform: scale(1.06); }
.wf-work__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(11, 11, 18, 0.35);
  transition: background 0.3s ease;
}
.wf-work__play i {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--wf-color-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease;
  font-size: 0; /* hide any icon-font glyph */
}
/* CSS play triangle (overrides the icon font, which may not be loaded). */
.wf-work__play i::before {
  content: "";
  display: block;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 12px 0 12px 20px;
  border-color: transparent transparent transparent #0f172a;
  margin-left: 5px;
}
.wf-work:hover .wf-work__play { background: rgba(11, 11, 18, 0.15); }
.wf-work:hover .wf-work__play i { transform: scale(1.1); }
.wf-work__title {
  display: block;
  margin-block-start: var(--wf-space-3);
  font-weight: 700;
  font-size: var(--wf-text-lg);
  text-align: center;
}

/* --- Blog cards --- */
.wf-landing .elementor-widget-wrap:has(> .elementor-widget-html .wf-post) {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(16px, 2vw, 28px);
}
.wf-post {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--wf-text);
  background: var(--wf-surface);
  border: 1px solid var(--wf-border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--wf-card-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.wf-post:hover { transform: translateY(-6px); box-shadow: var(--wf-card-shadow-hover); }
.wf-post__media { aspect-ratio: 16 / 9; overflow: hidden; }
.wf-post__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.wf-post:hover .wf-post__media img { transform: scale(1.05); }
.wf-post__body {
  padding: clamp(20px, 2.4vw, 28px);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.wf-post__title { font-weight: 700; font-size: var(--wf-text-xl); line-height: 1.3; }
.wf-post__excerpt { color: var(--wf-text-muted); font-size: var(--wf-text-base); }
.wf-post__more { color: var(--wf-color-primary); font-weight: 700; margin-block-start: 6px; }

/* --- Single blog post page --- */
.wf-single { padding-block: clamp(90px, 12vw, 160px); }
.wf-post-page {
  max-width: 760px;
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 40px);
}
.wf-post-page__back {
  display: inline-block;
  color: var(--wf-color-primary);
  font-weight: 700;
  text-decoration: none;
  margin-block-end: 24px;
}
.wf-post-page__title {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--wf-text);
}
.wf-post-page__meta { color: var(--wf-text-muted); margin-block: 10px 28px; }
.wf-post-page__content {
  color: var(--wf-text);
  font-size: var(--wf-text-lg);
  line-height: 1.9;
}
.wf-post-page__content p { margin-block-end: 1.1em; }
.wf-post-page__content figure { margin: 0; }
.wf-post-page__content img {
  width: 100%;
  border-radius: 16px;
  margin-block: 24px;
  box-shadow: var(--wf-card-shadow);
}

/* --- Video lightbox --- */
.wf-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.88);
}
.wf-lightbox.is-open { display: flex; }
.wf-lightbox__inner { position: relative; width: min(1040px, 92vw); }
.wf-lightbox__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
.wf-lightbox__frame iframe,
.wf-lightbox__frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.wf-lightbox__close {
  position: absolute;
  inset-block-start: -46px;
  inset-inline-end: 0;
  background: none;
  border: 0;
  color: #fff;
  font-size: 38px;
  line-height: 1;
  cursor: pointer;
}

/* --- Footer --- */
.wf-footer {
  background: var(--wf-surface-alt);
  color: var(--wf-text-muted);
  border-block-start: 1px solid var(--wf-border);
  padding-block: clamp(40px, 6vw, 72px);
  font-family: var(--wf-font-en);
}
html[dir="rtl"] .wf-footer { font-family: var(--wf-font-he); }
.wf-footer__inner {
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 40px);
  text-align: center;
}
.wf-footer__brand {
  font-size: var(--wf-text-2xl);
  font-weight: 800;
  color: var(--wf-text);
  letter-spacing: 0.04em;
}
.wf-footer__tagline { margin-block: 8px 20px; }
.wf-footer__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25d366;
  color: #fff;
  padding: 12px 26px;
  border-radius: var(--wf-radius);
  font-weight: 700;
  text-decoration: none;
  margin-block-end: 20px;
}
.wf-footer__copy { font-size: var(--wf-text-sm); opacity: 0.85; }
.wf-footer__logo { height: 54px; margin-inline: auto; margin-block-end: 16px; }

/* --- Sticky header + logo --- */
.wf-header {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 100;
  padding-block: 14px;
  transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}
.wf-header.wf-scrolled {
  background: rgba(11, 11, 18, 0.85);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}
.wf-header__inner {
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 40px);
  display: flex;
  align-items: center;
}
.wf-header__logo { display: inline-flex; }
/* White transparent SVG logo — already correct on the dark theme. */
.wf-logo-img {
  height: 46px;
  width: auto;
  display: block;
}

/* --- Respect reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .wf-landing * { transition: none !important; }
}
