/*
Theme Name: Hello Elementor Child (WESTFOLD)
Theme URI: https://westfold.pl
Description: Dedykowany motyw dla WESTFOLD Digital Studio z obsługą Dark & Light Mode, Floating WhatsApp oraz autorską estetyką Dark Luxury.
Author: WESTFOLD Digital Studio
Author URI: https://westfold.pl
Template: hello-elementor
Version: 1.1.0
Text Domain: westfold
*/

/* -------------------------------------------------------------
   1. DESIGN SYSTEM VARIABLES (DARK & LIGHT MODE)
   ------------------------------------------------------------- */
:root,
html[data-theme="dark"] {
  --wf-bg-primary: #08090B;
  --wf-bg-secondary: #111318;
  --wf-surface: #171A20;
  --wf-surface-hover: #1e222a;
  --wf-border: #292D34;
  --wf-border-light: rgba(255, 255, 255, 0.08);
  --wf-border-accent: rgba(199, 243, 107, 0.35);
  --wf-accent: #C7F36B;
  --wf-accent-hover: #d2f782;
  --wf-accent-glow: rgba(199, 243, 107, 0.22);
  --wf-accent-dark: #121808;
  --wf-text-primary: #F5F5F5;
  --wf-text-secondary: #A1A5AD;
  --wf-text-muted: #6C727F;
  --wf-header-bg: rgba(8, 9, 11, 0.88);
  --wf-card-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  --wf-font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --wf-radius-sm: 8px;
  --wf-radius-md: 14px;
  --wf-radius-lg: 20px;
  --wf-radius-full: 9999px;
  --wf-transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

html[data-theme="light"] {
  --wf-bg-primary: #F7F8F5;
  --wf-bg-secondary: #ECEFE8;
  --wf-surface: #FFFFFF;
  --wf-surface-hover: #F2F5EE;
  --wf-border: #DDE2D7;
  --wf-border-light: rgba(0, 0, 0, 0.08);
  --wf-border-accent: rgba(134, 185, 47, 0.4);
  --wf-accent: #86B92F;
  --wf-accent-hover: #75a426;
  --wf-accent-glow: rgba(134, 185, 47, 0.22);
  --wf-accent-dark: #27380b;
  --wf-text-primary: #151812;
  --wf-text-secondary: #62685F;
  --wf-text-muted: #8A9286;
  --wf-header-bg: rgba(247, 248, 245, 0.9);
  --wf-card-shadow: 0 12px 36px rgba(0, 0, 0, 0.07);
}

/* -------------------------------------------------------------
   2. BASE RESET & BODY STYLING
   ------------------------------------------------------------- */
html {
  scroll-behavior: smooth;
  box-sizing: border-box;
  background-color: var(--wf-bg-primary);
  color: var(--wf-text-primary);
  transition: background-color 0.3s ease, color 0.3s ease;
}

*, *:before, *:after {
  box-sizing: inherit;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--wf-bg-primary) !important;
  color: var(--wf-text-primary) !important;
  font-family: var(--wf-font-sans) !important;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Hide unwanted technical entry titles / post titles injected by themes */
.page-header,
.entry-header,
.site-main > .entry-title,
.post-title.entry-title {
  display: none !important;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--wf-font-sans) !important;
  color: var(--wf-text-primary) !important;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-top: 0;
  transition: color 0.3s ease;
}

p {
  color: var(--wf-text-secondary);
  line-height: 1.7;
  margin-bottom: 1.25rem;
  transition: color 0.3s ease;
}

a {
  color: var(--wf-accent);
  text-decoration: none;
  transition: var(--wf-transition);
}

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

/* Selection Highlight */
::selection {
  background-color: var(--wf-accent);
  color: #08090B;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 9px;
}
::-webkit-scrollbar-track {
  background: var(--wf-bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--wf-border);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--wf-text-muted);
}

/* -------------------------------------------------------------
   3. HEADER & LOGO WITH THEME SWITCHER
   ------------------------------------------------------------- */
.wf-header-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: var(--wf-header-bg);
  border-bottom: 1px solid var(--wf-border);
  transition: var(--wf-transition);
}

.wf-header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wf-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  cursor: pointer;
}

.wf-logo-img {
  height: 38px;
  width: auto;
  display: block;
}

/* Show correct logo depending on theme */
html[data-theme="dark"] .wf-logo-light {
  display: none !important;
}
html[data-theme="dark"] .wf-logo-dark {
  display: block !important;
}

html[data-theme="light"] .wf-logo-dark {
  display: none !important;
}
html[data-theme="light"] .wf-logo-light {
  display: block !important;
}

.wf-nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.wf-nav-links a {
  color: var(--wf-text-secondary);
  font-size: 14.5px;
  font-weight: 500;
  transition: var(--wf-transition);
  position: relative;
}

.wf-nav-links a:hover,
.wf-nav-links a.active {
  color: var(--wf-text-primary);
}

.wf-nav-links a:after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--wf-accent);
  transition: var(--wf-transition);
}

.wf-nav-links a:hover:after,
.wf-nav-links a.active:after {
  width: 100%;
}

/* Theme Switcher Button */
.wf-theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--wf-surface);
  border: 1px solid var(--wf-border);
  color: var(--wf-text-primary);
  cursor: pointer;
  outline: none;
  transition: var(--wf-transition);
  padding: 0;
}

.wf-theme-toggle:hover {
  border-color: var(--wf-accent);
  color: var(--wf-accent);
  transform: scale(1.05);
}

.wf-theme-toggle svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
}

/* Switcher icons display */
html[data-theme="dark"] .wf-icon-sun {
  display: block;
}
html[data-theme="dark"] .wf-icon-moon {
  display: none;
}

html[data-theme="light"] .wf-icon-sun {
  display: none;
}
html[data-theme="light"] .wf-icon-moon {
  display: block;
}

/* Mobile Toggle */
.wf-mobile-toggle {
  display: none;
  background: var(--wf-surface);
  border: 1px solid var(--wf-border);
  border-radius: 8px;
  padding: 8px 12px;
  color: var(--wf-text-primary);
  cursor: pointer;
  font-size: 20px;
}

/* Mobile Drawer */
.wf-mobile-drawer {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  background: var(--wf-bg-primary);
  border-bottom: 1px solid var(--wf-border);
  padding: 24px;
  z-index: 999;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.wf-mobile-drawer.is-open {
  display: block;
}

.wf-mobile-drawer .wf-nav-links {
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.wf-mobile-drawer .wf-nav-links a {
  font-size: 18px;
  padding: 8px 0;
  width: 100%;
  display: block;
}

/* -------------------------------------------------------------
   4. UI COMPONENTS (BUTTONS, BADGES, CARDS)
   ------------------------------------------------------------- */
.wf-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--wf-radius-full);
  background: rgba(199, 243, 107, 0.08);
  border: 1px solid var(--wf-border-accent);
  color: var(--wf-accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

html[data-theme="light"] .wf-badge {
  background: rgba(134, 185, 47, 0.1);
  color: #55771d;
}

.wf-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--wf-accent);
  box-shadow: 0 0 10px var(--wf-accent);
  animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.wf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--wf-radius-full);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: var(--wf-transition);
  text-decoration: none;
  border: none;
  outline: none;
}

.wf-btn-primary {
  background-color: var(--wf-accent);
  color: #08090B !important;
  box-shadow: 0 4px 20px var(--wf-accent-glow);
}

html[data-theme="light"] .wf-btn-primary {
  color: #FFFFFF !important;
}

.wf-btn-primary:hover {
  background-color: var(--wf-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--wf-accent-glow);
}

.wf-btn-secondary {
  background: var(--wf-surface);
  color: var(--wf-text-primary) !important;
  border: 1px solid var(--wf-border);
}

.wf-btn-secondary:hover {
  border-color: var(--wf-accent);
  transform: translateY(-2px);
}

/* Card */
.wf-card {
  background: var(--wf-surface);
  border: 1px solid var(--wf-border);
  border-radius: var(--wf-radius-lg);
  padding: 32px;
  transition: var(--wf-transition);
  position: relative;
}

.wf-card:hover {
  background: var(--wf-surface-hover);
  border-color: var(--wf-border-accent);
  transform: translateY(-4px);
  box-shadow: var(--wf-card-shadow);
}

/* Layout helpers */
.wf-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.wf-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 32px;
}

/* -------------------------------------------------------------
   5. FLOATING WHATSAPP BUTTON
   ------------------------------------------------------------- */
.wf-whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: #25D366;
  color: #FFFFFF !important;
  border-radius: var(--wf-radius-full);
  font-weight: 700;
  font-size: 14.5px;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
  text-decoration: none;
  transition: var(--wf-transition);
}

.wf-whatsapp-float:hover {
  background: #20bd5a;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 35px rgba(37, 211, 102, 0.55);
}

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

/* -------------------------------------------------------------
   6. PRICING CARDS
   ------------------------------------------------------------- */
.wf-pricing-card {
  background: var(--wf-surface);
  border: 1px solid var(--wf-border);
  border-radius: var(--wf-radius-lg);
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: var(--wf-transition);
}

.wf-pricing-card.is-featured {
  border-color: var(--wf-accent);
  box-shadow: 0 10px 40px var(--wf-accent-glow);
  transform: scale(1.02);
}

.wf-pricing-badge {
  position: absolute;
  top: -14px;
  right: 28px;
  background: var(--wf-accent);
  color: #08090B;
  padding: 4px 14px;
  border-radius: var(--wf-radius-full);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

html[data-theme="light"] .wf-pricing-badge {
  color: #FFFFFF;
}

.wf-price-val {
  font-size: 44px;
  font-weight: 800;
  color: var(--wf-text-primary);
  line-height: 1;
  margin: 18px 0 6px 0;
}

.wf-price-val span {
  font-size: 20px;
  color: var(--wf-accent);
  font-weight: 600;
}

.wf-feature-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 32px 0;
}

.wf-feature-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--wf-text-secondary);
  font-size: 14.5px;
  padding: 8px 0;
  border-bottom: 1px solid var(--wf-border-light);
}

.wf-feature-list li svg {
  color: var(--wf-accent);
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

/* -------------------------------------------------------------
   7. FAQ ACCORDION
   ------------------------------------------------------------- */
.wf-faq-item {
  background: var(--wf-surface);
  border: 1px solid var(--wf-border);
  border-radius: var(--wf-radius-md);
  margin-bottom: 14px;
  overflow: hidden;
  transition: var(--wf-transition);
}

.wf-faq-item:hover {
  border-color: var(--wf-border-accent);
}

.wf-faq-trigger {
  width: 100%;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: none;
  color: var(--wf-text-primary);
  font-size: 17px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  outline: none;
  font-family: inherit;
}

.wf-faq-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--wf-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--wf-accent);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.wf-faq-item.is-open .wf-faq-icon {
  transform: rotate(180deg);
  background: var(--wf-accent);
  color: #08090B;
}

html[data-theme="light"] .wf-faq-item.is-open .wf-faq-icon {
  color: #FFFFFF;
}

.wf-faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0 24px;
  color: var(--wf-text-secondary);
  font-size: 15px;
  line-height: 1.7;
}

.wf-faq-item.is-open .wf-faq-content {
  max-height: 600px;
  padding-bottom: 22px;
}

/* -------------------------------------------------------------
   8. CONTACT FORM STYLING (FIXED NO-OVERLAP)
   ------------------------------------------------------------- */
.wf-contact-form-wrap {
  width: 100%;
}

.wf-form-group {
  margin-bottom: 22px;
  position: relative;
}

.wf-form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--wf-text-primary);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.wf-form-input,
.wf-form-select,
.wf-form-textarea {
  width: 100%;
  padding: 14px 18px;
  background: var(--wf-bg-secondary);
  border: 1px solid var(--wf-border);
  border-radius: var(--wf-radius-sm);
  color: var(--wf-text-primary);
  font-family: inherit;
  font-size: 15px;
  transition: var(--wf-transition);
  outline: none;
  box-sizing: border-box;
}

.wf-form-input:focus,
.wf-form-select:focus,
.wf-form-textarea:focus {
  border-color: var(--wf-accent);
  box-shadow: 0 0 0 3px var(--wf-accent-glow);
  background: var(--wf-surface);
}

.wf-form-select option {
  background-color: var(--wf-surface);
  color: var(--wf-text-primary);
}

.wf-form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13.5px;
  color: var(--wf-text-secondary);
  line-height: 1.5;
  cursor: pointer;
}

.wf-form-checkbox input[type="checkbox"] {
  margin-top: 3px;
  accent-color: var(--wf-accent);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.wf-form-alert {
  padding: 16px 20px;
  border-radius: var(--wf-radius-sm);
  font-size: 14.5px;
  line-height: 1.5;
  margin-bottom: 22px;
  display: none;
}

.wf-form-alert.is-success {
  display: block;
  background: rgba(199, 243, 107, 0.15);
  border: 1px solid var(--wf-accent);
  color: var(--wf-accent);
}

html[data-theme="light"] .wf-form-alert.is-success {
  background: rgba(134, 185, 47, 0.15);
  color: #3b5b0f;
}

.wf-form-alert.is-error {
  display: block;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #ef4444;
}

/* -------------------------------------------------------------
   9. FOOTER
   ------------------------------------------------------------- */
.wf-footer {
  background: var(--wf-bg-secondary);
  border-top: 1px solid var(--wf-border);
  padding: 70px 24px 36px 24px;
  transition: var(--wf-transition);
}

.wf-footer-inner {
  max-width: 1240px;
  margin: 0 auto;
}

.wf-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 50px;
}

.wf-footer-title {
  color: var(--wf-text-primary);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.wf-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.wf-footer-links li {
  margin-bottom: 12px;
}

.wf-footer-links a {
  color: var(--wf-text-secondary);
  font-size: 14.5px;
  transition: var(--wf-transition);
}

.wf-footer-links a:hover {
  color: var(--wf-accent);
  padding-left: 4px;
}

.wf-footer-bottom {
  border-top: 1px solid var(--wf-border);
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13.5px;
  color: var(--wf-text-muted);
}

/* -------------------------------------------------------------
   10. COOKIE BANNER
   ------------------------------------------------------------- */
.wf-cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: 24px;
  max-width: 540px;
  background: var(--wf-surface);
  border: 1px solid var(--wf-border);
  border-radius: var(--wf-radius-md);
  padding: 22px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  z-index: 99998;
  display: none;
  animation: slide-up 0.4s ease-out forwards;
}

@keyframes slide-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* -------------------------------------------------------------
   11. RESPONSIVENESS & PREFERS-REDUCED-MOTION
   ------------------------------------------------------------- */
@media (max-width: 992px) {
  .wf-header-nav .wf-nav-links {
    display: none;
  }
  .wf-mobile-toggle {
    display: block;
  }
  .wf-header-cta {
    display: none;
  }
  .wf-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

@media (max-width: 640px) {
  .wf-footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .wf-footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  .wf-pricing-card.is-featured {
    transform: none;
  }
  .wf-price-val {
    font-size: 38px;
  }
  .wf-btn {
    width: 100%;
  }
  .wf-whatsapp-float {
    bottom: 20px;
    right: 20px;
    padding: 10px 16px;
    font-size: 13.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
