/*
Theme Name: EnTech JV Production Theme
Author: Southern Tech
Description: Production-ready WordPress theme for EnTech-JV.com with full site formatting, contact form, capability statement content, services, header, footer, NAICS, and past performance sections.
Version: 5.0.1
Text Domain: entech-jv
*/

:root {
  --navy: #071b36;
  --navy2: #041225;
  --blue: #0f5ea8;
  --sky: #38bdf8;
  --gold: #f59e0b;
  --slate: #475569;
  --muted: #64748b;
  --light: #f8fafc;
  --white: #ffffff;
  --border: #e2e8f0;
  --shadow: 0 20px 70px rgba(15,23,42,.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, Arial, Helvetica, sans-serif;
  background: var(--light);
  color: #0f172a;
  line-height: 1.6;
  overflow-x: hidden;
}

img, iframe { max-width: 100%; }
a { color: inherit; }
p { margin-top: 0; }

.entech-container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

/* Header */
.entech-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.entech-header-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.entech-logo {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  min-width: 250px;
}

.entech-logo strong {
  color: var(--navy);
  font-size: 25px;
  line-height: 1;
  letter-spacing: -.03em;
}

.entech-logo span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.entech-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.entech-nav a,
.entech-news-disabled {
  text-decoration: none;
  font-weight: 800;
  font-size: 14px;
  color: #334155;
  background: #f4f7fb;
  border: 1px solid #e4ebf3;
  border-radius: 14px;
  padding: 11px 16px;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: .2s ease;
}

.entech-nav a:hover {
  background: #e8f2ff;
  color: var(--blue);
  transform: translateY(-1px);
}

.entech-news-disabled {
  cursor: not-allowed;
  opacity: .75;
  position: relative;
}

.entech-news-disabled:hover::after {
  content: "Coming Soon";
  position: absolute;
  top: 48px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  background: var(--navy);
  color: white;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 12px;
  box-shadow: 0 12px 28px rgba(0,0,0,.16);
}

.entech-nav .entech-contact-btn {
  color: white;
  background: linear-gradient(135deg, var(--blue), #063f7c);
  border-color: transparent;
  box-shadow: 0 12px 26px rgba(15,94,168,.25);
}

/* Corrected What We Do Dropdown */
.entech-nav-item {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.entech-dropdown {
  position: relative;
}

.entech-dropdown-toggle span {
  font-size: 11px;
  margin-left: 2px;
}

.entech-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: 380px;
  max-width: calc(100vw - 32px);
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.18);
  padding: 10px;
  display: none;
  z-index: 99999;
}

.entech-dropdown:hover .entech-dropdown-menu,
.entech-dropdown:focus-within .entech-dropdown-menu {
  display: grid;
  gap: 4px;
}

.entech-dropdown-menu a {
  display: block !important;
  min-height: auto !important;
  background: transparent !important;
  border: none !important;
  color: #334155 !important;
  justify-content: flex-start !important;
  padding: 10px 12px !important;
  border-radius: 12px !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
  text-align: left !important;
  box-shadow: none !important;
  white-space: normal !important;
}

.entech-dropdown-menu a:hover {
  background: #eff6ff !important;
  color: var(--blue) !important;
  transform: none !important;
}

.entech-dropdown::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  width: 380px;
  max-width: calc(100vw - 32px);
  height: 12px;
}

/* Hero */
.entech-hero {
  background:
    radial-gradient(circle at 15% 20%, rgba(56,189,248,.22), transparent 32%),
    radial-gradient(circle at 85% 0%, rgba(245,158,11,.18), transparent 28%),
    linear-gradient(135deg, #071b36 0%, #0b2f5c 55%, #0f5ea8 100%);
  color: white;
  padding: 96px 0 86px;
  overflow: hidden;
}

.entech-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr);
  gap: 54px;
  align-items: center;
}

.entech-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #bae6fd;
  font-weight: 900;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .16em;
}

.entech-kicker::before {
  content: "";
  width: 34px;
  height: 3px;
  background: var(--gold);
  border-radius: 99px;
}

.entech-hero h1 {
  margin: 18px 0 20px;
  font-size: clamp(38px, 5.6vw, 70px);
  line-height: .98;
  letter-spacing: -.055em;
}

.entech-hero p {
  max-width: 760px;
  font-size: 20px;
  color: #dbeafe;
  margin: 0 0 30px;
}

.entech-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.entech-btn {
  appearance: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 13px 20px;
  border-radius: 15px;
  font-weight: 900;
  text-decoration: none;
  border: 1px solid transparent;
  transition: .2s ease;
}

.entech-btn:hover { transform: translateY(-1px); }

.entech-btn-primary {
  background: var(--gold);
  color: #111827;
}

.entech-btn-secondary {
  background: rgba(255,255,255,.1);
  color: white;
  border-color: rgba(255,255,255,.25);
}

.entech-hero-card {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 28px;
  padding: 28px;
  box-shadow: 0 30px 80px rgba(0,0,0,.22);
}

.entech-hero-card h3 {
  margin: 0 0 18px;
  font-size: 24px;
}

.entech-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.entech-list li {
  padding: 13px 0;
  border-bottom: 1px solid rgba(255,255,255,.14);
  color: #e0f2fe;
}

/* Sections */
.entech-section { padding: 78px 0; }
.entech-section-white { background: white; }
.entech-section-dark { background: var(--navy); color: white; }

.entech-section-title {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 42px;
}

.entech-section-title span {
  color: var(--blue);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .15em;
  font-size: 13px;
}

.entech-section-dark .entech-section-title span { color: var(--sky); }

.entech-section-title h1,
.entech-section-title h2 {
  margin: 10px 0 12px;
  color: var(--navy);
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: -.04em;
}

.entech-section-dark .entech-section-title h1,
.entech-section-dark .entech-section-title h2 { color: white; }

.entech-section-title p {
  color: var(--slate);
  font-size: 18px;
}

.entech-section-dark .entech-section-title p { color: #dbeafe; }

/* Cards */
.entech-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.entech-cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.entech-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 26px;
  box-shadow: 0 18px 50px rgba(15,23,42,.06);
}

.entech-card-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: #e0f2fe;
  color: var(--blue);
  display: grid;
  place-items: center;
  font-weight: 900;
  margin-bottom: 16px;
}

.entech-card h3 {
  color: var(--navy);
  font-size: 21px;
  margin: 0 0 9px;
  line-height: 1.2;
}

.entech-card p {
  color: var(--slate);
  margin: 0 0 12px;
}

.entech-service-card { min-height: 100%; }

.entech-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}

.entech-panel {
  background: white;
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 34px;
  box-shadow: var(--shadow);
}

.entech-panel h1,
.entech-panel h2 {
  color: var(--navy);
  font-size: clamp(30px, 3vw, 40px);
  line-height: 1.05;
  margin: 0 0 18px;
}

.entech-panel p,
.entech-panel li { color: var(--slate); }

.entech-dark-card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 24px;
  padding: 26px;
}

.entech-dark-card h3 {
  margin: 0 0 10px;
  color: white;
}

.entech-dark-card p,
.entech-dark-card li { color: #dbeafe; }

.entech-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.entech-badge {
  background: #eff6ff;
  color: var(--blue);
  font-weight: 900;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
}

.entech-section-dark .entech-badge {
  background: rgba(56,189,248,.13);
  color: #bae6fd;
  border: 1px solid rgba(56,189,248,.25);
}

/* NAICS */
.entech-naics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.entech-naics div {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px;
  font-weight: 900;
  color: var(--navy);
  box-shadow: 0 10px 30px rgba(15,23,42,.05);
}

.entech-naics span {
  display: block;
  font-weight: 600;
  color: var(--slate);
  font-size: 13px;
}

/* Contact */
.entech-contact-grid {
  display: grid;
  grid-template-columns: minmax(280px, .8fr) minmax(0, 1.2fr);
  gap: 28px;
  align-items: stretch;
}

.entech-contact-box {
  background: var(--navy);
  color: white;
  border-radius: 28px;
  padding: 32px;
}

.entech-contact-box h2 {
  margin-top: 0;
  font-size: 34px;
}

.entech-contact-box p { color: #dbeafe; }

.entech-map iframe {
  width: 100%;
  min-height: 390px;
  border: 0;
  border-radius: 28px;
  box-shadow: 0 20px 60px rgba(15,23,42,.1);
}

.entech-contact-form {
  display: grid;
  gap: 18px;
}

.entech-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.entech-form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.entech-form-group label {
  font-weight: 800;
  color: var(--navy);
  font-size: 14px;
}

.entech-contact-form input,
.entech-contact-form textarea {
  width: 100%;
  padding: 15px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  font-size: 15px;
  font-family: inherit;
  background: #ffffff;
  color: #0f172a;
}

.entech-contact-form input:focus,
.entech-contact-form textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(15,94,168,.12);
}

.entech-contact-form textarea {
  min-height: 160px;
  resize: vertical;
}

.entech-form-submit { margin-top: 8px; }

.entech-form-success,
.entech-form-error {
  width: min(1180px, calc(100% - 40px));
  margin: 24px auto 0;
  padding: 16px 18px;
  border-radius: 14px;
  font-weight: 800;
}

.entech-form-success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.entech-form-error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* Footer */
.entech-footer {
  background: #041225;
  color: white;
  padding: 56px 0 24px;
}

.entech-footer-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr .8fr .8fr;
  gap: 30px;
}

.entech-footer h3,
.entech-footer h4 { margin-top: 0; }

.entech-footer p,
.entech-footer a {
  color: #cbd5e1;
  text-decoration: none;
}

.entech-footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  margin-top: 34px;
  padding-top: 20px;
  text-align: center;
  color: #94a3b8;
  font-size: 14px;
}

/* WordPress defaults */
.wp-block-image img { height: auto; }
.alignwide, .alignfull { max-width: 100%; }

/* Responsive */
@media (max-width: 1100px) {
  .entech-cards,
  .entech-cards-3,
  .entech-naics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .entech-header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px 0;
  }

  .entech-nav { justify-content: flex-start; }
}

@media (max-width: 900px) {
  .entech-hero-grid,
  .entech-split,
  .entech-contact-grid,
  .entech-footer-grid {
    grid-template-columns: 1fr;
  }

  .entech-hero { padding: 78px 0; }

  .entech-nav-item,
  .entech-dropdown-toggle {
    width: 100%;
  }

  .entech-dropdown-menu {
    position: static;
    width: 100%;
    max-width: 100%;
    margin-top: 8px;
    display: grid;
    gap: 4px;
    box-shadow: none;
    border-radius: 14px;
  }

  .entech-dropdown::after { display: none; }
}

@media (max-width: 640px) {
  .entech-container {
    width: min(100% - 28px, 1180px);
  }

  .entech-section { padding: 56px 0; }

  .entech-cards,
  .entech-cards-3,
  .entech-naics,
  .entech-form-row {
    grid-template-columns: 1fr;
  }

  .entech-nav,
  .entech-nav a,
  .entech-news-disabled {
    width: 100%;
  }

  .entech-nav a,
  .entech-news-disabled {
    justify-content: center;
  }

  .entech-logo { min-width: 0; }

  .entech-logo strong { font-size: 22px; }

  .entech-hero h1 { font-size: 40px; }

  .entech-actions .entech-btn { width: 100%; }

  .entech-panel,
  .entech-card,
  .entech-contact-box,
  .entech-hero-card {
    padding: 22px;
    border-radius: 20px;
  }
}
.entech-card,
.entech-service-card {
  scroll-margin-top: 125px;
}
.entech-dropdown-menu {
  pointer-events: auto;
}

.entech-dropdown-menu a {
  pointer-events: auto !important;
  cursor: pointer !important;
}

.entech-card,
.entech-service-card {
  scroll-margin-top: 125px;
}
/* Sticky header anchor offset */
html {
  scroll-behavior: smooth;
}

.entech-card,
.entech-service-card {
  scroll-margin-top: 125px;
}
