/*
Theme Name: ECD Vision
Theme URI: https://www.ecd-iq.com
Author: ECD Vision
Author URI: https://www.ecd-iq.com
Description: Corporate EPC website theme for ECD Vision — engineering, oil & gas, power systems. Edit pages and news from WordPress admin.
Version: 1.2.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ecd-vision
Tags: custom-menu, featured-images, translation-ready, rtl-language-support, full-width-template

ECD Vision corporate theme — converted from Next.js site.
*/

/* Main styles loaded via functions.php → assets/css/main.css */

/* Critical header fixes — works even if custom logo or cache breaks Tailwind */
:root {
  --header-height: 5.75rem;
  --container-max: 84rem;
}

#ecd-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  width: 100%;
  max-width: 100vw;
}

body.admin-bar #ecd-header {
  top: 32px;
}

@media screen and (max-width: 782px) {
  body.admin-bar #ecd-header {
    top: 46px;
  }
}

#ecd-header .ecd-header-inner {
  height: var(--header-height);
  max-height: var(--header-height);
  overflow: hidden;
}

.ecd-site-logo,
.custom-logo,
.custom-logo-link img,
#ecd-header img.ecd-site-logo {
  display: block;
  width: 3rem !important;
  height: 3rem !important;
  max-width: 3rem !important;
  max-height: 3rem !important;
  min-width: 0;
  object-fit: cover;
  border-radius: 9999px;
}

@media (min-width: 640px) {
  .ecd-site-logo,
  .custom-logo,
  .custom-logo-link img,
  #ecd-header img.ecd-site-logo {
    width: 3.5rem !important;
    height: 3.5rem !important;
    max-width: 3.5rem !important;
    max-height: 3.5rem !important;
  }
}

.custom-logo-link {
  display: flex;
  align-items: center;
  line-height: 0;
}

.ecd-brand-link {
  min-width: 0;
  max-width: 100%;
}

/* Desktop nav: hidden on mobile */
.ecd-primary-nav,
.ecd-primary-fallback {
  display: none;
}

@media (min-width: 1024px) {
  .ecd-primary-nav,
  .ecd-primary-fallback {
    display: flex;
  }

  #ecd-mobile-menu,
  .ecd-mobile-panel {
    display: none !important;
  }
}

/* Mobile menu list reset */
.ecd-mobile-nav,
#ecd-mobile-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

#ecd-mobile-menu li {
  margin: 0;
  padding: 0;
}
