/**
 * THOGAI SYSTEMS - Elementor Integration Styles
 * Official Brand Colors:
 * - Dark Green: #1a6b2e
 * - Light Green: #496951
 */

.elementor-page {
  background-color: var(--color-bg) !important;
  color: var(--color-body);
}

.elementor-section.elementor-section-boxed > .elementor-container {
  max-width: var(--container-max);
}

/* Ensure Elementor Headings honor typography defaults while allowing Elementor overrides */
.elementor-widget-heading .elementor-heading-title {
  color: var(--color-heading);
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: -0.02em;
  font-size: 25px;
}

.elementor-heading-title {
  font-size: 25px;
}

/* Global Elementor typography defaults */
.elementor,
.elementor-widget,
.elementor-heading-title,
.elementor-widget-text-editor,
.elementor-button {
  font-family: Arial, Helvetica, sans-serif;
}

/* Ensure Elementor Buttons align with design system as defaults */
.elementor-button {
  font-family: var(--font-primary);
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  background-color: var(--thogai-dark-green);
  color: #FFFFFF;
  border: 1px solid var(--thogai-dark-green);
}

.elementor-button:hover {
  background-color: var(--thogai-dark-green-hover);
  border-color: var(--thogai-dark-green-hover);
}

.elementor-button.elementor-size-md {
  padding: 0.85rem 1.75rem;
}

/* Elementor Form Field defaults */
.elementor-field-group .elementor-field {
  background-color: var(--color-bg-secondary);
  border-color: var(--color-border);
  color: var(--color-heading);
  border-radius: var(--radius-md);
}

.elementor-field-group .elementor-field:focus {
  border-color: var(--thogai-dark-green);
  box-shadow: 0 0 0 3px rgba(26, 107, 46, 0.25);
}

/* Custom Thogai Elementor Widgets styling */
.thogai-elementor-widget {
  width: 100%;
}

/* Page Hero Title & Description default typography while allowing Elementor widget overrides */
.page-hero-title,
.page-hero h1,
.single-project-hero h1,
.single-project-title {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 25px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.015em;
  color: #F8FAFC;
}

.page-hero-desc,
.single-project-lead,
.single-project-hero p.lead,
.project-hero-excerpt,
.single-project-hero > .container > p {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: #CBD5E1;
}

/* Section Headings Decorative Line in Elementor (Requirement 2 & 6) */
.section-title::after {
  content: '';
  display: block;
  width: 56px;
  height: 3px;
  background: linear-gradient(90deg, #1a6b2e 0%, #496951 100%);
  border-radius: 3px;
  margin: 0.95rem auto 0 auto;
}

.section-header.text-left .section-title::after,
.text-left .section-title::after,
.thogai-heading-wrapper.align-left .section-title::after,
.thogai-heading-wrapper[style*="left"] .section-title::after {
  margin-left: 0 !important;
  margin-right: auto !important;
}

.section-header.text-center .section-title::after,
.text-center .section-title::after,
.thogai-heading-wrapper.align-center .section-title::after {
  margin-left: auto !important;
  margin-right: auto !important;
}

.section-header.text-right .section-title::after,
.text-right .section-title::after,
.thogai-heading-wrapper.align-right .section-title::after {
  margin-left: auto !important;
  margin-right: 0 !important;
}

.no-accent-line .section-title::after {
  display: none !important;
}

/* Breadcrumb top padding in Elementor (Requirement 2) */
.breadcrumbs,
.thogai-breadcrumb-nav,
.page-hero .breadcrumbs {
  padding-top: 0.5rem !important;
}

/* Hero section 2-column full-width & transparent background in Elementor (Requirement 1) */
.elementor-widget-thogai_hero,
.elementor-widget-thogai_hero .hero-section {
  width: 100% !important;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
}

.elementor-section:has(.elementor-widget-thogai_hero) > .elementor-container,
.elementor-section.elementor-section-boxed:has(.elementor-widget-thogai_hero) > .elementor-container,
.elementor-widget-thogai_hero .hero-container,
.hero-container {
  width: 100% !important;
  max-width: 100% !important;
  padding-left: clamp(1.5rem, 4vw, 4rem) !important;
  padding-right: clamp(1.5rem, 4vw, 4rem) !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  box-sizing: border-box;
}

.elementor-widget-thogai_hero .hero-bg-overlay,
.elementor-widget-thogai_hero .hero-lighting-overlay {
  display: none !important;
}

/* Page Hero Top Padding (Requirement 5) */
.page-hero,
.thogai-elementor-page-hero {
  padding-top: calc(var(--header-height) + 1.5rem) !important;
}

/* Contact Page Office Address Underline Removal (Requirement 4) */
.contact-address-link,
.contact-address-link:link,
.contact-address-link:visited,
.contact-address-link:hover,
.contact-address-link:focus,
.contact-address-link:active,
.contact-address-link * {
  text-decoration: none !important;
  border-bottom: none !important;
}

/* Homepage Who We Are Container 20px Border Radius (Requirement 1) */
#about,
.section-alt#about,
.elementor-widget-thogai_who_we_are #about,
.elementor-widget-thogai_who_we_are .section-alt,
.elementor-widget-thogai_who_we_are .elementor-widget-container > section {
  border-radius: 20px !important;
  overflow: hidden !important;
}

/* About Page Mission & Vision Outer Section 20px Border Radius (Requirement 1) */
#mission-vision,
.section-mission-vision,
.section-alt#mission-vision,
.elementor-widget-thogai_mission_vision #mission-vision,
.elementor-widget-thogai_mission_vision .section-alt,
.elementor-widget-thogai_mission_vision .elementor-widget-container > section {
  border-radius: 20px !important;
  overflow: hidden !important;
}

/* About Page Mission & Vision Cards 20px Border Radius (Requirement 4) */
.mission-card,
.vision-card,
.mission-vision-grid .card,
.elementor-widget-thogai_mission_vision .card {
  border-radius: 20px !important;
  overflow: hidden !important;
}

/* Footer Get In Touch Underline Removal (Requirement 3) */
.footer-contact-link,
.footer-contact-link:link,
.footer-contact-link:visited,
.footer-contact-link:hover,
.footer-contact-link:focus,
.footer-contact-link:active,
.footer-contact-col a,
.footer-contact-col a:hover,
.footer-contact-list a,
.footer-contact-list a:hover,
.footer-contact-item a,
.footer-contact-item a:hover {
  text-decoration: none !important;
  border-bottom: none !important;
}

.footer-contact-link:hover,
.footer-contact-col a:hover,
.footer-contact-list a:hover,
.footer-contact-item a:hover {
  color: #38c263 !important;
  text-decoration: none !important;
}

/* ==========================================================
   DIRECT PROJECT INQUIRY FORM - DARK INPUTS & AUTOFILL
   ========================================================== */
.direct-inquiry-panel input,
.direct-inquiry-panel input[type="text"],
.direct-inquiry-panel input[type="email"],
.direct-inquiry-panel input[type="tel"],
.direct-inquiry-panel .form-control,
.direct-inquiry-panel .thogai-intl-phone-wrapper,
.thogai-contact-form input,
.thogai-contact-form input[type="text"],
.thogai-contact-form input[type="email"],
.thogai-contact-form input[type="tel"],
.thogai-contact-form .form-control,
.thogai-contact-form .thogai-intl-phone-wrapper,
.elementor-element .thogai-contact-form input,
.elementor-element .thogai-contact-form .form-control,
.elementor-element .direct-inquiry-panel input,
.elementor-element .direct-inquiry-panel .form-control {
  background-color: #0f172a !important;
  background: #0f172a !important;
  color: #ffffff !important;
  border-color: #26354A !important;
}

.direct-inquiry-panel .thogai-phone-input,
.thogai-contact-form .thogai-phone-input,
.elementor-element .thogai-phone-input {
  background: transparent !important;
  background-color: transparent !important;
  color: #ffffff !important;
  border: none !important;
}

.direct-inquiry-panel input:-webkit-autofill,
.direct-inquiry-panel input:-webkit-autofill:hover,
.direct-inquiry-panel input:-webkit-autofill:focus,
.thogai-contact-form input:-webkit-autofill,
.thogai-contact-form input:-webkit-autofill:hover,
.thogai-contact-form input:-webkit-autofill:focus,
.elementor-element input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px #0f172a inset !important;
  box-shadow: 0 0 0 1000px #0f172a inset !important;
  -webkit-text-fill-color: #ffffff !important;
  caret-color: #ffffff !important;
  background-color: #0f172a !important;
  transition: background-color 5000s ease-in-out 0s !important;
}

/* ==========================================================
   ELEMENTOR HEADER & FOOTER TEMPLATE STYLING
   ========================================================== */
.site-header-elementor {
  width: 100%;
}
.site-header-elementor .elementor {
  width: 100%;
}
.site-header-elementor .elementor-section {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}
.site-header-elementor .elementor-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-header-elementor .elementor-column {
  display: flex;
  align-items: center;
}
.site-header-elementor .elementor-widget-image {
  margin-bottom: 0;
}
.site-header-elementor .elementor-widget-image img {
  max-height: 80px;
  width: auto;
  object-fit: contain;
}

/* Mobile Header Responsiveness Fix */
@media (max-width: 991px) {
  .site-header,
  .site-header-elementor {
    height: 72px !important;
  }
  .site-header.is-scrolled,
  .site-header-elementor.is-scrolled {
    height: 68px !important;
  }
  .site-header-elementor .elementor-container {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    height: 100% !important;
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
    box-sizing: border-box !important;
  }
  .site-header-elementor .elementor-column:first-child {
    width: auto !important;
    max-width: calc(100% - 64px) !important;
    flex: 0 1 auto !important;
    display: flex !important;
    align-items: center !important;
  }
  .site-header-elementor .elementor-column:last-child {
    width: auto !important;
    flex: 0 0 auto !important;
    margin-left: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
  }
  .site-header-elementor .elementor-widget-image img,
  .site-header .site-logo {
    max-height: 52px !important;
    width: auto !important;
    object-fit: contain !important;
  }
  .site-header-elementor .main-nav,
  .site-header .main-nav {
    display: none !important;
  }
  .site-header-elementor .menu-toggle,
  .site-header .menu-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-width: 44px !important;
    min-height: 44px !important;
    padding: 0;
    margin: 0;
    cursor: pointer;
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: #F1F5F9;
  }
}

/* Accessible Mobile Navigation Backdrop */
.mobile-nav-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(11, 18, 32, 0.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.mobile-nav-backdrop.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

@media (max-width: 480px) {
  .site-header,
  .site-header-elementor {
    height: 66px !important;
  }
  .site-header-elementor .elementor-widget-image img,
  .site-header .site-logo {
    max-height: 44px !important;
  }
  .site-header-elementor .elementor-container,
  .site-header .container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
}

/* Compact, Balanced Project Single Elementor Sections */
.elementor-widget-thogai_project_hero {
  margin-bottom: 0 !important;
}
.elementor-widget-thogai_project_featured_media {
  margin-bottom: 0 !important;
}
.single-project-media-wrap {
  padding-top: 1.5rem !important;
  padding-bottom: 0 !important;
}
.single-project-media-wrap .single-project-featured {
  margin-bottom: 1.75rem !important;
}
.thogai-project-overview-section {
  margin-bottom: 2rem !important;
}
.thogai-project-gallery-section {
  margin-bottom: 2rem !important;
}
.thogai-project-results-section {
  margin-bottom: 2rem !important;
}
.thogai-project-related-section {
  margin-bottom: 2.5rem !important;
}

/* ==========================================================
   FOOTER LAYOUT & RESPONSIVENESS FIX
   ========================================================== */

/* Outer Footer Wrapper - Remove duplicate padding and unwanted top gap */
.site-footer.site-footer-elementor,
.site-footer-elementor {
  background-color: #080D17 !important;
  color: #8A9BB5 !important;
  width: 100% !important;
  box-sizing: border-box !important;
  overflow-x: hidden !important;
  border-top: 1px solid #152033 !important;
  padding: 0 !important;
  margin-top: 0 !important;
}

.site-footer-elementor .elementor {
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Main Footer Section - Proper top spacing without excessive empty gap */
.site-footer-elementor .elementor-element-thogai_ftr_sec_main {
  padding-top: 3.5rem !important;
  padding-bottom: 2.5rem !important;
  margin: 0 !important;
}

/* Main Footer Container - Desktop 4 Columns (>= 992px) */
.site-footer-elementor .elementor-element-thogai_ftr_sec_main > .elementor-container {
  display: grid !important;
  grid-template-columns: 1.35fr 1fr 1.35fr 1.15fr !important;
  gap: 2.5rem !important;
  align-items: start !important;
  width: 100% !important;
  max-width: var(--container-max, 1280px) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 1.5rem !important;
  padding-right: 1.5rem !important;
  box-sizing: border-box !important;
}

/* Individual Columns Reset within Main Footer */
.site-footer-elementor .elementor-element-thogai_ftr_sec_main .elementor-column,
.site-footer-elementor .elementor-element-thogai_ftr_sec_main .elementor-top-column {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  flex: none !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  align-items: flex-start !important;
}

.site-footer-elementor .elementor-element-thogai_ftr_sec_main .elementor-widget-wrap {
  width: 100% !important;
  padding: 0 !important;
}

/* Prevent narrow wrapping on Quick Links and Services */
.site-footer-elementor .elementor-widget-icon-list {
  width: 100% !important;
}

.site-footer-elementor .elementor-icon-list-items {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0.75rem !important;
}

.site-footer-elementor .elementor-icon-list-item {
  display: flex !important;
  align-items: flex-start !important;
  gap: 0.65rem !important;
  line-height: 1.6 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.site-footer-elementor .elementor-icon-list-item a {
  color: #8A9BB5 !important;
  font-size: 0.92rem !important;
  text-decoration: none !important;
  transition: color 0.2s ease, transform 0.2s ease !important;
  display: inline-flex !important;
  align-items: flex-start !important;
  gap: 0.65rem !important;
  white-space: normal !important;
  word-break: normal !important;
  line-height: 1.6 !important;
}

.site-footer-elementor .elementor-icon-list-item a:hover {
  color: #38c263 !important;
  transform: translateX(3px) !important;
}

.site-footer-elementor .elementor-icon-list-icon {
  margin-top: 3px !important;
  flex-shrink: 0 !important;
}

.site-footer-elementor .elementor-icon-list-icon svg,
.site-footer-elementor .elementor-icon-list-icon i {
  color: #38c263 !important;
  fill: #38c263 !important;
  width: 16px !important;
  height: 16px !important;
}

.site-footer-elementor .elementor-icon-list-text {
  color: inherit !important;
  font-size: inherit !important;
  line-height: inherit !important;
}

/* Headings in Footer */
.site-footer-elementor .elementor-widget-heading .elementor-heading-title {
  color: #ffffff !important;
  font-size: 1.15rem !important;
  font-weight: 700 !important;
  margin-top: 0 !important;
  margin-bottom: 1.25rem !important;
  letter-spacing: -0.01em !important;
  text-transform: none !important;
  line-height: 1.3 !important;
}

/* Brand Column Image & Description */
.site-footer-elementor .elementor-widget-image {
  margin-bottom: 0 !important;
}

.site-footer-elementor .elementor-widget-image img {
  max-width: 200px !important;
  height: auto !important;
  object-fit: contain !important;
}

.site-footer-elementor .elementor-element-thogai_ftr_desc p {
  color: #8A9BB5 !important;
  font-size: 0.95rem !important;
  line-height: 1.7 !important;
  margin-top: 1rem !important;
  margin-bottom: 1.5rem !important;
}

/* Social Media Icons */
.site-footer-elementor .footer-socials {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 0.65rem !important;
  margin-top: 0.5rem !important;
}

/* Contact Column Specifics */
.site-footer-elementor .elementor-element-thogai_ftr_col_contact .elementor-icon-list-text {
  word-break: break-word !important;
}

/* Bottom Bar - Desktop Layout */
.site-footer-elementor .elementor-element-thogai_ftr_sec_bottom {
  border-top: 1px solid #162338 !important;
  background-color: #05080E !important;
  padding: 1.5rem 0 !important;
  width: 100% !important;
}

.site-footer-elementor .elementor-element-thogai_ftr_sec_bottom > .elementor-container {
  display: flex !important;
  flex-direction: row !important;
  justify-content: space-between !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  width: 100% !important;
  max-width: var(--container-max, 1280px) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 1.5rem !important;
  padding-right: 1.5rem !important;
  box-sizing: border-box !important;
}

.site-footer-elementor .elementor-element-thogai_ftr_col_copy {
  flex: 1 1 auto !important;
  width: auto !important;
  text-align: left !important;
}

.site-footer-elementor .elementor-element-thogai_ftr_wid_copy .elementor-heading-title,
.site-footer-elementor .elementor-element-thogai_ftr_wid_copy p {
  text-align: left !important;
  margin: 0 !important;
  font-size: 0.88rem !important;
  color: #77869C !important;
  line-height: 1.5 !important;
}

.site-footer-elementor .elementor-element-thogai_ftr_col_legal {
  flex: 0 0 auto !important;
  width: auto !important;
  text-align: right !important;
}

.site-footer-elementor .elementor-element-thogai_ftr_wid_legal p,
.site-footer-elementor .elementor-element-thogai_ftr_wid_legal a {
  text-align: right !important;
  margin: 0 !important;
  font-size: 0.88rem !important;
  color: #77869C !important;
  text-decoration: none !important;
  transition: color 0.2s ease !important;
}

.site-footer-elementor .elementor-element-thogai_ftr_wid_legal a:hover {
  color: #38c263 !important;
}

/* ==========================================================
   RESPONSIVE: TABLET (768px – 991px) -> 2 COLUMNS
   ========================================================== */
@media (min-width: 768px) and (max-width: 991px) {
  .site-footer-elementor .elementor-element-thogai_ftr_sec_main {
    padding-top: 2.75rem !important;
    padding-bottom: 2rem !important;
  }

  .site-footer-elementor .elementor-element-thogai_ftr_sec_main > .elementor-container {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 3rem 2.5rem !important;
    padding-left: 2rem !important;
    padding-right: 2rem !important;
  }

  .site-footer-elementor .elementor-element-thogai_ftr_sec_bottom > .elementor-container {
    padding-left: 2rem !important;
    padding-right: 2rem !important;
  }
}

/* ==========================================================
   RESPONSIVE: MOBILE (< 768px) -> 1 COLUMN STACKED
   ========================================================== */
@media (max-width: 767px) {
  .site-footer-elementor .elementor-element-thogai_ftr_sec_main {
    padding-top: 2.25rem !important;
    padding-bottom: 1.75rem !important;
  }

  .site-footer-elementor .elementor-element-thogai_ftr_sec_main > .elementor-container {
    grid-template-columns: 1fr !important;
    gap: 2.25rem !important;
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
  }

  .site-footer-elementor .elementor-element-thogai_ftr_sec_bottom > .elementor-container {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 0.75rem !important;
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
  }

  .site-footer-elementor .elementor-element-thogai_ftr_col_copy,
  .site-footer-elementor .elementor-element-thogai_ftr_col_legal {
    width: 100% !important;
    text-align: center !important;
  }

  .site-footer-elementor .elementor-element-thogai_ftr_wid_copy .elementor-heading-title,
  .site-footer-elementor .elementor-element-thogai_ftr_wid_copy p,
  .site-footer-elementor .elementor-element-thogai_ftr_wid_legal p {
    text-align: center !important;
  }
}

