/* Text Field Theme Widget Styles */

/* CSS Variables */
#textfield-theme {
  --color-gray-50: oklch(.985 .002 247.839);
  --color-gray-100: oklch(.967 .003 264.542);
  --color-gray-200: oklch(.928 .006 264.531);
  --color-gray-300: oklch(.872 .01 258.338);
  --color-gray-400: oklch(.707 .022 261.325);
  --color-gray-500: oklch(.551 .027 264.364);
  --color-gray-600: oklch(.446 .03 256.802);
  --color-gray-700: oklch(.373 .034 259.733);
  --color-gray-800: oklch(.278 .033 256.848);
  --color-gray-900: oklch(.21 .034 264.665);
  --color-white: #fff;
  --spacing: .25rem;
  --container-2xl: 42rem;
  --container-4xl: 80rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;
  --text-lg--line-height: calc(1.75 / 1.125);
  --text-xl--line-height: calc(1.75 / 1.25);
  --text-2xl--line-height: calc(2 / 1.5);
  --text-3xl--line-height: calc(2.25 / 1.875);
  --text-4xl--line-height: calc(2.5 / 2.25);
  --text-5xl--line-height: 1;
  --text-6xl--line-height: 1;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --leading-relaxed: 1.625;
  --tw-gradient-from: #0000;
  --tw-gradient-to: #0000;
  --tw-gradient-stops: initial;
  --tw-gradient-via-stops: initial;
  --tw-gradient-from-position: 0%;
  --tw-gradient-to-position: 100%;
}

/* Base styles */
#textfield-theme {
  font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  opacity: 1 !important;
  visibility: visible !important;
}

.elementor-editor-active #textfield-theme * {
  opacity: 1 !important;
  visibility: visible !important;
  color: inherit !important;
}

/* Ensure text has proper visibility, but allow animation */
#textfield-theme h1,
#textfield-theme h2,
#textfield-theme h3,
#textfield-theme p,
#textfield-theme li {
  visibility: visible;
}

/* Layout utilities */
#textfield-theme .min-h-screen {
  min-height: 100vh;
}

#textfield-theme .bg-white {
  background-color: transparent !important;
}

#textfield-theme .relative {
  position: relative;
}

#textfield-theme .absolute {
  position: absolute;
}

#textfield-theme .inset-0 {
  inset: calc(var(--spacing) * 0);
}

/* Gradient background */
#textfield-theme .bg-gradient-to-br {
  background-image: none !important;
  background-color: transparent !important;
}

#textfield-theme .from-gray-50 {
  --tw-gradient-from: transparent;
}

#textfield-theme .to-white {
  --tw-gradient-to: transparent;
}

#textfield-theme .bg-grid-pattern {
  background-image: none !important;
  background-size: 0;
}

#textfield-theme .opacity-5 {
  opacity: .05;
}

/* Spacing */
#textfield-theme .py-16 {
  padding-top: calc(var(--spacing) * 16);
  padding-bottom: calc(var(--spacing) * 16);
}

#textfield-theme .py-20 {
  padding-top: calc(var(--spacing) * 20);
  padding-bottom: calc(var(--spacing) * 20);
}

#textfield-theme .px-4 {
  padding-left: calc(var(--spacing) * 4);
  padding-right: calc(var(--spacing) * 4);
}

#textfield-theme .px-6 {
  padding-left: calc(var(--spacing) * 6);
  padding-right: calc(var(--spacing) * 6);
}

#textfield-theme .px-8 {
  padding-left: calc(var(--spacing) * 8);
  padding-right: calc(var(--spacing) * 8);
}

#textfield-theme .mb-4 {
  margin-bottom: calc(var(--spacing) * 4);
}

#textfield-theme .mb-6 {
  margin-bottom: calc(var(--spacing) * 6);
}

#textfield-theme .mb-12 {
  margin-bottom: calc(var(--spacing) * 12);
}

#textfield-theme .mt-16 {
  margin-top: calc(var(--spacing) * 16);
}

#textfield-theme .pt-8 {
  padding-top: calc(var(--spacing) * 8);
}

#textfield-theme .pl-6 {
  padding-left: calc(var(--spacing) * 6);
}

/* Container */
#textfield-theme .max-w-2xl {
  max-width: var(--container-2xl);
}

#textfield-theme .max-w-4xl {
  max-width: var(--container-4xl);
}

#textfield-theme .max-w-none {
  max-width: none;
}

#textfield-theme .mx-auto {
  margin-left: auto;
  margin-right: auto;
}

/* Typography */
#textfield-theme .text-4xl {
  font-size: var(--text-4xl);
  line-height: var(--text-4xl--line-height);
}

#textfield-theme .text-5xl {
  font-size: var(--text-5xl);
  line-height: var(--text-5xl--line-height);
}

#textfield-theme .text-6xl {
  font-size: var(--text-6xl);
  line-height: var(--text-6xl--line-height);
}

#textfield-theme .text-2xl {
  font-size: var(--text-2xl);
  line-height: var(--text-2xl--line-height);
}

#textfield-theme .text-3xl {
  font-size: var(--text-3xl);
  line-height: var(--text-3xl--line-height);
}

#textfield-theme .text-lg {
  font-size: var(--text-lg);
  line-height: var(--text-lg--line-height);
}

#textfield-theme .text-xl {
  font-size: var(--text-xl);
  line-height: var(--text-xl--line-height);
}

#textfield-theme .font-bold {
  font-weight: var(--font-weight-bold);
}

#textfield-theme .font-semibold {
  font-weight: var(--font-weight-semibold);
}

#textfield-theme .leading-relaxed {
  line-height: var(--leading-relaxed);
}

/* Text colors */
#textfield-theme .text-gray-900 {
  color: var(--color-gray-900) !important;
}

#textfield-theme .text-gray-700 {
  color: var(--color-gray-700) !important;
}

#textfield-theme .text-gray-600 {
  color: var(--color-gray-600) !important;
}

#textfield-theme .text-gray-500 {
  color: var(--color-gray-500) !important;
}

/* Force text visibility with specific colors */
#textfield-theme h1 { color: #1f2937 !important; }
#textfield-theme h2 { color: #1f2937 !important; }
#textfield-theme h3 { color: #1f2937 !important; }
#textfield-theme p { color: #4b5563 !important; }
#textfield-theme li { color: #4b5563 !important; }

/* Layout */
#textfield-theme .text-center {
  text-align: center;
}

#textfield-theme .space-y-2 > :not(:last-child) {
  margin-bottom: calc(var(--spacing) * 2);
}

/* Prose styling */
#textfield-theme .prose {
  color: var(--color-gray-700);
}

#textfield-theme .prose-lg {
  font-size: var(--text-lg);
  line-height: var(--text-lg--line-height);
}

/* List styles */
#textfield-theme .list-disc {
  list-style-type: disc;
}

/* Border */
#textfield-theme .border-t {
  border-top-width: 1px;
  border-top-style: solid;
}

#textfield-theme .border-gray-200 {
  border-color: var(--color-gray-200);
}

/* Animation */
#textfield-theme .fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

#textfield-theme.animated .fade-in-up {
  opacity: 1;
  transform: translateY(0);
}

/* Disable animation in Elementor editor only */
.elementor-editor-active #textfield-theme .fade-in-up {
  opacity: 1 !important;
  transform: translateY(0) !important;
  transition: none !important;
}

/* Header spacing - responsive */
#textfield-theme section:first-child {
  margin-top: calc(var(--spacing) * 20) !important; /* ~80px - mobile header */
  padding-top: calc(var(--spacing) * 8) !important; /* ~32px additional padding */
}

/* Responsive Design */
@media (min-width: 640px) {
  #textfield-theme section:first-child {
    margin-top: calc(var(--spacing) * 16) !important; /* ~64px - tablet header */
    padding-top: calc(var(--spacing) * 8) !important; /* ~32px additional padding */
  }

  #textfield-theme .sm\:py-24 {
    padding-top: calc(var(--spacing) * 24);
    padding-bottom: calc(var(--spacing) * 24);
  }

  #textfield-theme .sm\:py-20 {
    padding-top: calc(var(--spacing) * 20);
    padding-bottom: calc(var(--spacing) * 20);
  }

  #textfield-theme .sm\:px-6 {
    padding-left: calc(var(--spacing) * 6);
    padding-right: calc(var(--spacing) * 6);
  }

  #textfield-theme .sm\:text-5xl {
    font-size: var(--text-5xl);
    line-height: var(--text-5xl--line-height);
  }

  #textfield-theme .sm\:text-xl {
    font-size: var(--text-xl);
    line-height: var(--text-xl--line-height);
  }

  #textfield-theme .sm\:text-3xl {
    font-size: var(--text-3xl);
    line-height: var(--text-3xl--line-height);
  }
}

@media (min-width: 768px) {
  #textfield-theme section:first-child {
    margin-top: calc(var(--spacing) * 14) !important; /* ~56px - desktop header */
    padding-top: calc(var(--spacing) * 8) !important; /* ~32px additional padding */
  }

  #textfield-theme .md\:py-32 {
    padding-top: calc(var(--spacing) * 32);
    padding-bottom: calc(var(--spacing) * 32);
  }
}

@media (min-width: 1024px) {
  #textfield-theme section:first-child {
    margin-top: calc(var(--spacing) * 16) !important; /* ~64px - large desktop header */
    padding-top: calc(var(--spacing) * 8) !important; /* ~32px additional padding */
  }

  #textfield-theme .lg\:px-8 {
    padding-left: calc(var(--spacing) * 8);
    padding-right: calc(var(--spacing) * 8);
  }

  #textfield-theme .lg\:text-6xl {
    font-size: var(--text-6xl);
    line-height: var(--text-6xl--line-height);
  }
}

@media (min-width: 1280px) {
  #textfield-theme section:first-child {
    margin-top: calc(var(--spacing) * 16) !important;
    padding-top: calc(var(--spacing) * 8) !important;
  }
}

/* Animation sequence */
#textfield-theme .fade-in-up:nth-child(1) { transition-delay: 0.1s; }
#textfield-theme .fade-in-up:nth-child(2) { transition-delay: 0.2s; }
#textfield-theme .fade-in-up:nth-child(3) { transition-delay: 0.3s; }
#textfield-theme .fade-in-up:nth-child(4) { transition-delay: 0.4s; }
#textfield-theme .fade-in-up:nth-child(5) { transition-delay: 0.5s; }
#textfield-theme .fade-in-up:nth-child(6) { transition-delay: 0.6s; }
#textfield-theme .fade-in-up:nth-child(7) { transition-delay: 0.7s; }
#textfield-theme .fade-in-up:nth-child(8) { transition-delay: 0.8s; }
#textfield-theme .fade-in-up:nth-child(9) { transition-delay: 0.9s; }
#textfield-theme .fade-in-up:nth-child(10) { transition-delay: 1.0s; }