/* ============================================
   TROV TRACE — Elementor Override Styles
   Ensures Elementor widgets match theme design
   ============================================ */

/* ===========================================
   CONTAINER WIDTH OVERRIDES
   =========================================== */
.elementor-section.elementor-section-boxed > .elementor-container {
  max-width: 1200px;
}

.elementor-section.elementor-section-full_width > .elementor-container {
  max-width: 100%;
}

/* ===========================================
   SECTION PADDING OVERRIDES
   =========================================== */
.elementor-section {
  padding: 0;
}

.elementor-section .elementor-container {
  padding-left: 20px;
  padding-right: 20px;
}

.elementor-section.tt-section {
  padding: 80px 0;
}

.elementor-section.tt-section-sm {
  padding: 48px 0;
}

.elementor-section.tt-section-lg {
  padding: 96px 0;
}

/* Override Elementor default top/bottom padding */
.elementor-widget:not(:last-child) {
  margin-bottom: 24px;
}

.elementor-column-gap-default > .elementor-column > .elementor-element-populated {
  padding: 16px;
}

/* ===========================================
   TYPOGRAPHY OVERRIDES
   =========================================== */
.elementor-widget-heading .elementor-heading-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  line-height: 1.3;
  color: #1a2b4a;
}

.elementor-widget-heading .elementor-heading-title.elementor-size-small {
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
}

.elementor-widget-heading .elementor-heading-title.elementor-size-medium {
  font-size: clamp(1.375rem, 3vw, 1.75rem);
}

.elementor-widget-heading .elementor-heading-title.elementor-size-large {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

.elementor-widget-heading .elementor-heading-title.elementor-size-xl {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
}

.elementor-widget-text-editor {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: #1e293b;
}

.elementor-widget-text-editor p {
  margin-bottom: 16px;
}

.elementor-widget-text-editor p:last-child {
  margin-bottom: 0;
}

/* ===========================================
   BUTTON OVERRIDES
   =========================================== */
.elementor-widget-button .elementor-button {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 12px 28px;
  border-radius: 6px;
  transition: all 0.3s ease;
  letter-spacing: 0;
  line-height: 1.5;
}

.elementor-widget-button .elementor-button:hover {
  transform: translateY(-1px);
}

/* Primary Button (Orange) */
.elementor-widget-button.tt-btn-primary .elementor-button {
  background-color: #f97316;
  border-color: #f97316;
  color: #ffffff;
}

.elementor-widget-button.tt-btn-primary .elementor-button:hover {
  background-color: #ea580c;
  border-color: #ea580c;
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.35);
}

/* Secondary Button (Navy) */
.elementor-widget-button.tt-btn-secondary .elementor-button {
  background-color: #1a2b4a;
  border-color: #1a2b4a;
  color: #ffffff;
}

.elementor-widget-button.tt-btn-secondary .elementor-button:hover {
  background-color: #243a5e;
  border-color: #243a5e;
  box-shadow: 0 4px 12px rgba(26, 43, 74, 0.35);
}

/* Outline Button */
.elementor-widget-button.tt-btn-outline .elementor-button {
  background-color: transparent;
  border: 2px solid #1a2b4a;
  color: #1a2b4a;
}

.elementor-widget-button.tt-btn-outline .elementor-button:hover {
  background-color: #1a2b4a;
  color: #ffffff;
}

/* Large Button */
.elementor-widget-button.tt-btn-lg .elementor-button {
  padding: 16px 36px;
  font-size: 1.0625rem;
}

/* Small Button */
.elementor-widget-button.tt-btn-sm .elementor-button {
  padding: 8px 18px;
  font-size: 0.8125rem;
}

/* ===========================================
   IMAGE WIDGET OVERRIDES
   =========================================== */
.elementor-widget-image img {
  border-radius: 12px;
}

.elementor-widget-image.tt-rounded img {
  border-radius: 9999px;
}

.elementor-widget-image.tt-shadow img {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
}

/* ===========================================
   ICON BOX WIDGET OVERRIDES
   =========================================== */
.elementor-widget-icon-box .elementor-icon {
  background-color: rgba(14, 165, 233, 0.1);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
}

.elementor-widget-icon-box .elementor-icon i,
.elementor-widget-icon-box .elementor-icon svg {
  color: #0ea5e9;
  fill: #0ea5e9;
}

.elementor-widget-icon-box .elementor-icon-box-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1.125rem;
  color: #1a2b4a;
  margin-bottom: 12px;
}

.elementor-widget-icon-box .elementor-icon-box-description {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: #64748b;
}

/* ===========================================
   ICON LIST WIDGET OVERRIDES
   =========================================== */
.elementor-widget-icon-list .elementor-icon-list-item {
  margin-bottom: 12px;
}

.elementor-widget-icon-list .elementor-icon-list-icon i {
  color: #10b981;
}

.elementor-widget-icon-list .elementor-icon-list-text {
  font-size: 0.9375rem;
  color: #1e293b;
}

/* ===========================================
   FORM WIDGET OVERRIDES
   =========================================== */
.elementor-widget-form .elementor-field-group {
  margin-bottom: 20px;
}

.elementor-widget-form .elementor-field-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #1a2b4a;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.elementor-widget-form .elementor-field {
  padding: 12px 16px;
  font-size: 0.9375rem;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  transition: all 0.3s ease;
  background-color: #ffffff;
}

.elementor-widget-form .elementor-field:focus {
  border-color: #0ea5e9;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
  outline: none;
}

.elementor-widget-form .elementor-field::placeholder {
  color: #94a3b8;
}

.elementor-widget-form .elementor-button[type="submit"] {
  background-color: #f97316;
  border-color: #f97316;
  color: #ffffff;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.elementor-widget-form .elementor-button[type="submit"]:hover {
  background-color: #ea580c;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.35);
}

/* ===========================================
   TESTIMONIAL WIDGET OVERRIDES
   =========================================== */
.elementor-widget-testimonial .elementor-testimonial-content {
  font-size: 1rem;
  line-height: 1.8;
  font-style: italic;
  color: #1e293b;
  margin-bottom: 24px;
}

.elementor-widget-testimonial .elementor-testimonial-name {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.9375rem;
  color: #1a2b4a;
}

.elementor-widget-testimonial .elementor-testimonial-job {
  font-size: 0.8125rem;
  color: #64748b;
}

.elementor-widget-testimonial .elementor-testimonial-image img {
  border-radius: 50%;
  border: 3px solid #e2e8f0;
}

/* ===========================================
   COUNTER / STATS WIDGET OVERRIDES
   =========================================== */
.elementor-widget-counter .elementor-counter-number-wrapper {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  color: #1a2b4a;
  line-height: 1.2;
  margin-bottom: 8px;
}

.elementor-widget-counter .elementor-counter-title {
  font-size: 0.9375rem;
  font-weight: 500;
  color: #64748b;
}

/* Dark section counter override */
.elementor-section.tt-dark .elementor-widget-counter .elementor-counter-number-wrapper {
  color: #ffffff;
}

.elementor-section.tt-dark .elementor-widget-counter .elementor-counter-title {
  color: rgba(255, 255, 255, 0.75);
}

/* ===========================================
   TABS & ACCORDION WIDGET OVERRIDES
   =========================================== */
.elementor-widget-accordion .elementor-accordion-item {
  border: none;
  border-bottom: 1px solid #e2e8f0;
}

.elementor-widget-accordion .elementor-tab-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1.0625rem;
  color: #1a2b4a;
  padding: 20px 0;
}

.elementor-widget-accordion .elementor-tab-title .elementor-accordion-icon {
  color: #0ea5e9;
}

.elementor-widget-accordion .elementor-tab-content {
  font-size: 0.9375rem;
  line-height: 1.8;
  color: #64748b;
  padding: 0 0 20px;
  border: none;
}

/* Tabs */
.elementor-widget-tabs .elementor-tab-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.9375rem;
  color: #64748b;
  padding: 12px 24px;
  border: none;
  border-bottom: 2px solid transparent;
}

.elementor-widget-tabs .elementor-tab-title.elementor-active {
  color: #1a2b4a;
  border-bottom-color: #0ea5e9;
}

.elementor-widget-tabs .elementor-tab-content {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: #1e293b;
  padding: 24px 0;
  border: none;
}

/* ===========================================
   SECTION BACKGROUND VARIANTS
   =========================================== */
.elementor-section.tt-bg-light {
  background-color: #f8fafc;
}

.elementor-section.tt-bg-dark {
  background-color: #0f1729;
}

.elementor-section.tt-bg-dark .elementor-heading-title {
  color: #ffffff;
}

.elementor-section.tt-bg-dark .elementor-widget-text-editor {
  color: rgba(255, 255, 255, 0.75);
}

.elementor-section.tt-bg-navy {
  background-color: #1a2b4a;
}

.elementor-section.tt-bg-navy .elementor-heading-title {
  color: #ffffff;
}

.elementor-section.tt-bg-navy .elementor-widget-text-editor {
  color: rgba(255, 255, 255, 0.8);
}

/* ===========================================
   SPACING RHYTHM
   =========================================== */
.elementor-widget-spacer.tt-space-sm .elementor-spacer-inner {
  height: 24px;
}

.elementor-widget-spacer.tt-space-md .elementor-spacer-inner {
  height: 48px;
}

.elementor-widget-spacer.tt-space-lg .elementor-spacer-inner {
  height: 80px;
}

/* ===========================================
   DIVIDER WIDGET OVERRIDES
   =========================================== */
.elementor-widget-divider .elementor-divider-separator {
  border-top-color: #e2e8f0;
}

.elementor-section.tt-bg-dark .elementor-widget-divider .elementor-divider-separator {
  border-top-color: rgba(255, 255, 255, 0.1);
}

/* ===========================================
   SOCIAL ICONS WIDGET OVERRIDES
   =========================================== */
.elementor-widget-social-icons .elementor-social-icon {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  transition: all 0.3s ease;
}

.elementor-widget-social-icons .elementor-social-icon:hover {
  background-color: #0ea5e9;
  transform: translateY(-2px);
}

/* ===========================================
   PROGRESS BAR WIDGET OVERRIDES
   =========================================== */
.elementor-widget-progress .elementor-title {
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: #1a2b4a;
}

.elementor-widget-progress .elementor-progress-wrapper {
  background-color: #e2e8f0;
  border-radius: 9999px;
  height: 8px;
  overflow: hidden;
}

.elementor-widget-progress .elementor-progress-bar {
  background-color: #0ea5e9;
  border-radius: 9999px;
}

/* ===========================================
   ELEMENTOR POPUP OVERRIDES
   =========================================== */
.elementor-popup-modal .dialog-widget-content {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
}

.elementor-popup-modal .dialog-close-button {
  top: 16px;
  right: 16px;
  font-size: 20px;
  color: #64748b;
  transition: color 0.3s ease;
}

.elementor-popup-modal .dialog-close-button:hover {
  color: #1a2b4a;
}

/* ===========================================
   GLOBAL LINK STYLES IN ELEMENTOR
   =========================================== */
.elementor-widget-text-editor a {
  color: #0ea5e9;
  text-decoration: none;
  transition: color 0.3s ease;
}

.elementor-widget-text-editor a:hover {
  color: #1a2b4a;
  text-decoration: underline;
}

/* ===========================================
   HERO SECTION COLUMN GAP
   =========================================== */
.elementor-section.hero-section .elementor-column:first-child > .elementor-element-populated {
  padding-right: 60px;
}

.elementor-section.hero-section .elementor-column:last-child > .elementor-element-populated {
  padding-left: 40px;
}

.elementor-section.hero-section > .elementor-container {
  gap: 40px;
}

/* Hero section responsive spacing for desktop */
/* Standard laptops (1024px - 1280px) */
@media (min-width: 1024px) and (max-width: 1280px) {
  .elementor-section.hero-section .elementor-column:first-child > .elementor-element-populated {
    padding-right: 40px !important;
  }
  .elementor-section.hero-section .elementor-column:last-child > .elementor-element-populated {
    padding-left: 20px !important;
  }
  .elementor-section.hero-section > .elementor-container {
    gap: 30px;
  }
}

/* Medium desktops (1281px - 1439px) */
@media (min-width: 1281px) and (max-width: 1439px) {
  .elementor-section.hero-section .elementor-column:first-child > .elementor-element-populated {
    padding-right: 60px !important;
  }
  .elementor-section.hero-section .elementor-column:last-child > .elementor-element-populated {
    padding-left: 40px !important;
  }
  .elementor-section.hero-section > .elementor-container {
    gap: 40px;
  }
}

/* Large desktops (1440px+) */
@media (min-width: 1440px) {
  .elementor-section.hero-section .elementor-column:first-child > .elementor-element-populated {
    padding-right: 100px !important;
  }
  .elementor-section.hero-section .elementor-column:last-child > .elementor-element-populated {
    padding-left: 60px !important;
  }
  .elementor-section.hero-section > .elementor-container {
    gap: 50px;
  }
}

/* Extra large screens (1600px+) */
@media (min-width: 1600px) {
  .elementor-section.hero-section .elementor-column:first-child > .elementor-element-populated {
    padding-right: 120px !important;
  }
  .elementor-section.hero-section .elementor-column:last-child > .elementor-element-populated {
    padding-left: 80px !important;
  }
  .elementor-section.hero-section > .elementor-container {
    gap: 60px;
  }
}

/* ===========================================
   ELEMENTOR COLUMN CARD STYLE
   =========================================== */
.elementor-column.tt-card > .elementor-element-populated {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(26, 43, 74, 0.08);
  padding: 32px;
  transition: all 0.3s ease;
}

.elementor-column.tt-card > .elementor-element-populated:hover {
  box-shadow: 0 12px 32px rgba(26, 43, 74, 0.12);
  transform: translateY(-4px);
}
