/*
Theme Name: Hytellux Engineering Theme
Theme URI: https://www.hytellux.com
Author: Hytellux Digital Team
Author URI: https://www.hytellux.com
Description: Custom interactive, modern WordPress theme designed for Hytellux Engineering Ltd (Uganda) — Civil, Energy, Telecom Infrastructure, Turnkey Projects & Heavy Equipment Hire.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hytellux
*/

:root {
  --hx-navy: #0B192C;
  --hx-navy-light: #152842;
  --hx-amber: #F59E0B;
  --hx-amber-hover: #D97706;
  --hx-slate: #334155;
  --hx-bg: #F8FAFC;
  --hx-white: #FFFFFF;
  --hx-border: #E2E8F0;
  --hx-green: #10B981;
  --hx-font-head: 'Space Grotesk', 'Plus Jakarta Sans', sans-serif;
  --hx-font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--hx-font-body);
  background-color: var(--hx-bg);
  color: var(--hx-navy);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  font-family: var(--hx-font-head);
  font-weight: 700;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Top Utility Bar */
.hx-topbar {
  background: #060E1A;
  color: #CBD5E1;
  font-size: 0.85rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.hx-topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hx-topbar-items {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.hx-topbar-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.hx-topbar-item svg {
  color: var(--hx-amber);
  width: 15px;
  height: 15px;
}

/* Sticky Header */
.hx-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(11, 25, 44, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem 0;
}

.hx-nav-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hx-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--hx-white);
  font-family: var(--hx-font-head);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hx-logo-badge {
  width: 40px;
  height: 40px;
  background: var(--hx-amber);
  color: var(--hx-navy);
  display: grid;
  place-items: center;
  border-radius: 8px;
  font-weight: 900;
  font-size: 1.2rem;
}

.hx-logo span {
  color: var(--hx-amber);
}

.hx-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.hx-menu a {
  color: #E2E8F0;
  font-weight: 500;
  font-size: 0.95rem;
}

.hx-menu a:hover {
  color: var(--hx-amber);
}

.hx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: transform 0.2s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.hx-btn-primary {
  background: var(--hx-amber);
  color: var(--hx-navy);
}

.hx-btn-primary:hover {
  background: var(--hx-amber-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(245, 158, 11, 0.25);
}

.hx-btn-outline {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.35);
  color: var(--hx-white);
}

.hx-btn-outline:hover {
  border-color: var(--hx-amber);
  color: var(--hx-amber);
}

.hx-mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--hx-white);
  font-size: 1.6rem;
  cursor: pointer;
}

/* Hero Section */
.hx-hero {
  position: relative;
  background: linear-gradient(135deg, rgba(11,25,44,0.92) 0%, rgba(15,38,68,0.86) 60%, rgba(11,25,44,0.95) 100%),
              url('https://images.unsplash.com/photo-1541888946425-d81bb19240f5?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
  color: var(--hx-white);
  padding: 6.5rem 0 5rem;
  overflow: hidden;
}

.hx-hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 3rem;
  align-items: center;
}

.hx-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: var(--hx-amber);
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1.5rem;
}

.hx-hero h1 {
  font-size: clamp(2.3rem, 4.5vw, 3.8rem);
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.hx-hero h1 span {
  color: var(--hx-amber);
}

.hx-hero p {
  font-size: 1.12rem;
  color: #CBD5E1;
  max-width: 640px;
  margin-bottom: 2rem;
}

.hx-hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Interactive Hero Quick Estimator Card */
.hx-hero-card {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 2rem;
}

.hx-hero-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.4rem;
  color: var(--hx-white);
}

.hx-hero-card p {
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
  color: #94A3B8;
}

.hx-form-group {
  margin-bottom: 1rem;
}

.hx-form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: #E2E8F0;
}

.hx-input, .hx-select, .hx-textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(11, 25, 44, 0.75);
  color: var(--hx-white);
  font-family: inherit;
  font-size: 0.95rem;
}

.hx-input:focus, .hx-select:focus, .hx-textarea:focus {
  outline: none;
  border-color: var(--hx-amber);
}

/* Stats Strip */
.hx-stats {
  background: var(--hx-white);
  border-bottom: 1px solid var(--hx-border);
  padding: 2.5rem 0;
}

.hx-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.hx-stat-num {
  font-family: var(--hx-font-head);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--hx-navy);
}

.hx-stat-num span {
  color: var(--hx-amber);
}

.hx-stat-label {
  font-size: 0.9rem;
  color: var(--hx-slate);
  font-weight: 600;
}

/* Section Headers */
.hx-section {
  padding: 5.5rem 0;
}

.hx-section-dark {
  background: var(--hx-navy);
  color: var(--hx-white);
}

.hx-section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3.5rem;
}

.hx-eyebrow {
  color: var(--hx-amber);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 0.5rem;
}

.hx-section-head h2 {
  font-size: clamp(1.9rem, 3.2vw, 2.75rem);
  margin-bottom: 1rem;
}

.hx-section-head p {
  color: var(--hx-slate);
  font-size: 1.05rem;
}

.hx-section-dark .hx-section-head p {
  color: #94A3B8;
}

/* Interactive Filter Tabs */
.hx-filter-bar {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.hx-filter-btn {
  padding: 0.6rem 1.25rem;
  border-radius: 999px;
  border: 1px solid var(--hx-border);
  background: var(--hx-white);
  color: var(--hx-navy);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.25s ease;
}

.hx-filter-btn.active, .hx-filter-btn:hover {
  background: var(--hx-navy);
  color: var(--hx-amber);
  border-color: var(--hx-navy);
}

/* Services Grid */
.hx-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.75rem;
}

.hx-service-card {
  background: var(--hx-white);
  border: 1px solid var(--hx-border);
  border-radius: 14px;
  padding: 2rem;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hx-service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 35px rgba(11, 25, 44, 0.08);
  border-color: var(--hx-amber);
}

.hx-service-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(245, 158, 11, 0.14);
  color: var(--hx-amber-hover);
  display: grid;
  place-items: center;
  margin-bottom: 1.25rem;
  font-size: 1.5rem;
}

.hx-service-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--hx-amber-hover);
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
  display: block;
}

.hx-service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.hx-service-card p {
  color: var(--hx-slate);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.hx-card-link {
  color: var(--hx-navy);
  font-weight: 700;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.hx-card-link:hover {
  color: var(--hx-amber-hover);
}

/* Fleet Hire & Interactive Calculator */
.hx-fleet-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.hx-fleet-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.hx-fleet-card {
  background: var(--hx-navy-light);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  padding: 1.5rem;
  transition: border-color 0.3s ease;
}

.hx-fleet-card:hover {
  border-color: var(--hx-amber);
}

.hx-fleet-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.hx-badge-avail {
  background: rgba(16, 185, 129, 0.15);
  color: #34D399;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
}

.hx-fleet-card h4 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.hx-fleet-specs {
  list-style: none;
  font-size: 0.88rem;
  color: #CBD5E1;
  margin-bottom: 1.25rem;
}

.hx-fleet-specs li {
  margin-bottom: 0.3rem;
}

.hx-calc-box {
  background: var(--hx-white);
  color: var(--hx-navy);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 25px 50px rgba(0,0,0,0.25);
}

.hx-calc-box h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.hx-calc-box .hx-input, .hx-calc-box .hx-select {
  background: #F1F5F9;
  color: var(--hx-navy);
  border: 1px solid #CBD5E1;
}

.hx-calc-box label {
  color: var(--hx-navy);
}

.hx-estimate-result {
  background: #FEF3C7;
  border: 1px solid #F59E0B;
  border-radius: 10px;
  padding: 1rem;
  margin: 1.25rem 0;
  text-align: center;
}

.hx-estimate-result span {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: #92400E;
}

.hx-estimate-result strong {
  font-family: var(--hx-font-head);
  font-size: 1.65rem;
  color: var(--hx-navy);
}

/* Contact & Coronation House Section */
.hx-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
}

.hx-info-card {
  background: var(--hx-navy);
  color: var(--hx-white);
  border-radius: 16px;
  padding: 2.5rem;
}

.hx-info-list {
  list-style: none;
  margin-top: 2rem;
}

.hx-info-list li {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  align-items: flex-start;
}

.hx-info-icon {
  width: 42px;
  height: 42px;
  background: rgba(245,158,11,0.18);
  color: var(--hx-amber);
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.hx-contact-form-wrap {
  background: var(--hx-white);
  border: 1px solid var(--hx-border);
  border-radius: 16px;
  padding: 2.5rem;
}

.hx-contact-form-wrap .hx-input,
.hx-contact-form-wrap .hx-select,
.hx-contact-form-wrap .hx-textarea {
  background: #F8FAFC;
  border: 1px solid #CBD5E1;
  color: var(--hx-navy);
}

.hx-contact-form-wrap label {
  color: var(--hx-navy);
}

/* Footer */
.hx-footer {
  background: #060E1A;
  color: #94A3B8;
  padding: 4.5rem 0 2rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.hx-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.hx-footer h4 {
  color: var(--hx-white);
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
}

.hx-footer ul {
  list-style: none;
}

.hx-footer ul li {
  margin-bottom: 0.65rem;
  font-size: 0.92rem;
}

.hx-footer ul a:hover {
  color: var(--hx-amber);
}

.hx-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.88rem;
}

/* Modal */
.hx-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(6, 14, 26, 0.78);
  backdrop-filter: blur(6px);
  display: none;
  place-items: center;
  z-index: 2000;
  padding: 1rem;
}

.hx-modal-backdrop.open {
  display: grid;
}

.hx-modal {
  background: var(--hx-white);
  color: var(--hx-navy);
  max-width: 560px;
  width: 100%;
  border-radius: 16px;
  padding: 2rem;
  position: relative;
  animation: popIn 0.25s ease;
}

@keyframes popIn {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.hx-modal-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--hx-slate);
}

/* Responsive */
@media (max-width: 992px) {
  .hx-hero-grid, .hx-fleet-layout, .hx-contact-grid {
    grid-template-columns: 1fr;
  }
  .hx-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hx-footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hx-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--hx-navy);
    flex-direction: column;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  .hx-menu.open {
    display: flex;
  }
  .hx-mobile-toggle {
    display: block;
  }
  .hx-fleet-grid {
    grid-template-columns: 1fr;
  }
  .hx-footer-grid {
    grid-template-columns: 1fr;
  }
}
