/* DEI Construction Management — Premium Styles */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@300;400;500;600;700&family=Lato:wght@300;400;700&display=swap');

/* ===== VARIABLES ===== */
:root {
  --gold: #C5A55A;
  --gold-light: #D9C47C;
  --gold-dark: #A8893D;
  --gold-muted: rgba(197, 165, 90, 0.15);
  --black: #0D0D0D;
  --black-soft: #1A1A1A;
  --black-card: #151515;
  --white: #FFFFFF;
  --off-white: #FAF9F6;
  --gray-100: #F5F4F0;
  --gray-200: #E8E6E1;
  --gray-300: #D1CFC9;
  --gray-400: #9B9890;
  --gray-500: #6B6860;
  --gray-600: #4A4843;
  --gray-700: #2A2925;
  --font-heading: 'Oswald', sans-serif;
  --font-body: 'Lato', sans-serif;
  --max-width: 1200px;
  --nav-height: 80px;
}

/* ===== RESET ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--black);
  background: var(--off-white);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* ===== UTILITY ===== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.section-label {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--gold);
  margin-bottom: 1rem;
}

.gold-line {
  width: 60px;
  height: 2px;
  background: var(--gold);
  margin-bottom: 1.5rem;
}

.btn {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 1rem 2.5rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.btn-gold {
  background: var(--gold);
  color: var(--black);
}
.btn-gold:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(197, 165, 90, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
}
.btn-outline:hover {
  background: var(--gold);
  color: var(--black);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.4);
}
.btn-outline-white:hover {
  background: var(--white);
  color: var(--black);
}

/* ===== NAVIGATION ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  padding: 0 3rem;
  transition: all 0.3s ease;
  background: transparent;
}

.nav.scrolled {
  background: rgba(13, 13, 13, 0.97);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 3px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-logo .dei {
  color: var(--gold);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav-links a {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 400;
  color: rgba(255,255,255,0.75);
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: color 0.3s ease;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gold);
}

.nav-cta {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--black) !important;
  background: var(--gold);
  padding: 0.6rem 1.5rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: all 0.3s ease;
}

.nav-cta:hover {
  background: var(--gold-light) !important;
  color: var(--black) !important;
}

.nav-cta::after { display: none !important; }

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all 0.3s ease;
}

.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translateY(7px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translateY(-7px); }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--black);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 50%, #111 100%);
}

.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(197, 165, 90, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 30%, rgba(197, 165, 90, 0.05) 0%, transparent 50%);
}

.hero-bg::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}

.hero h1 {
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 600;
  color: var(--white);
  margin-bottom: 1.5rem;
  max-width: 800px;
}

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

.hero-subtitle {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.6);
  max-width: 550px;
  line-height: 1.8;
  margin-bottom: 2.5rem;
  font-weight: 300;
}

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

.hero-badge {
  position: absolute;
  bottom: 4rem;
  right: 4rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 2;
}

.hero-badge-item {
  text-align: center;
  color: var(--white);
  padding: 0 1.5rem;
  border-right: 1px solid rgba(255,255,255,0.15);
}

.hero-badge-item:last-child { border-right: none; }

.hero-badge-item .number {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--gold);
}

.hero-badge-item .text {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 0.25rem;
}

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
  position: relative;
  padding: 10rem 0 5rem;
  background: var(--black);
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(197, 165, 90, 0.06) 0%, transparent 60%);
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.3;
}

.page-hero .container { position: relative; z-index: 2; }

.page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  color: var(--white);
  font-weight: 600;
  margin-bottom: 1rem;
}

.page-hero p {
  color: rgba(255,255,255,0.55);
  font-size: 1.1rem;
  max-width: 600px;
  font-weight: 300;
}

/* ===== SECTIONS ===== */
.section {
  padding: 6rem 0;
}

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

.section-dark .section-label { color: var(--gold); }

.section-alt {
  background: var(--gray-100);
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 1rem;
  max-width: 700px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--gray-500);
  max-width: 600px;
  margin-bottom: 3rem;
  font-weight: 300;
}

.section-dark .section-subtitle {
  color: rgba(255,255,255,0.5);
}

/* ===== SERVICE CARDS ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: var(--white);
  padding: 2.5rem 2rem;
  border: 1px solid var(--gray-200);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}

.service-card .icon-wrap {
  width: 56px;
  height: 56px;
  background: var(--gold-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.service-card .icon-wrap svg {
  width: 28px;
  height: 28px;
  stroke: var(--gold-dark);
  fill: none;
  stroke-width: 1.5;
}

.service-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  letter-spacing: 1px;
}

.service-card p {
  font-size: 0.92rem;
  color: var(--gray-500);
  line-height: 1.7;
}

/* Dark variant */
.service-card-dark {
  background: var(--black-card);
  border: 1px solid rgba(255,255,255,0.06);
  color: var(--white);
}

.service-card-dark p {
  color: rgba(255,255,255,0.5);
}

.service-card-dark:hover {
  border-color: rgba(197, 165, 90, 0.3);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

/* ===== SERVICE DETAIL (Services page) ===== */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 5rem 0;
  border-bottom: 1px solid var(--gray-200);
}

.service-detail:last-child {
  border-bottom: none;
}

.service-detail.reverse {
  direction: rtl;
}

.service-detail.reverse > * {
  direction: ltr;
}

.service-detail-img {
  background: var(--black);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.service-detail-img::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(197, 165, 90, 0.1), transparent);
}

.service-detail-img .placeholder-text {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: rgba(255,255,255,0.25);
}

.service-detail-content h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 1rem;
}

.service-detail-content p {
  color: var(--gray-500);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.service-detail-content ul {
  margin-bottom: 1.5rem;
}

.service-detail-content ul li {
  padding: 0.4rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--gray-600);
  font-size: 0.95rem;
}

.service-detail-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 8px;
  height: 1px;
  background: var(--gold);
}

/* ===== VALUES GRID ===== */
.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.value-card {
  padding: 2.5rem;
  border: 1px solid var(--gray-200);
  background: var(--white);
}

.value-card .number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--gold);
  margin-bottom: 1rem;
  line-height: 1;
}

.value-card h3 {
  font-size: 1.1rem;
  letter-spacing: 1px;
  margin-bottom: 0.75rem;
}

.value-card p {
  font-size: 0.92rem;
  color: var(--gray-500);
  line-height: 1.7;
}

/* ===== MAP / SERVICE AREA ===== */
.area-map {
  background: var(--black-card);
  padding: 4rem;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

.area-map svg {
  max-width: 100%;
  height: auto;
}

.states-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.state-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background: var(--white);
  border: 1px solid var(--gray-200);
  transition: all 0.2s ease;
}

.state-item:hover {
  border-color: var(--gold);
}

.state-item .dot {
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
}

.state-item .name {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ===== CONTACT FORM ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-info h3 {
  font-size: 1.3rem;
  letter-spacing: 1px;
  margin-bottom: 2rem;
}

.contact-detail {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.contact-detail .icon {
  width: 44px;
  height: 44px;
  background: var(--gold-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-detail .icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--gold-dark);
  fill: none;
  stroke-width: 1.5;
}

.contact-detail .label {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gray-400);
  margin-bottom: 0.25rem;
}

.contact-detail .value {
  font-size: 1rem;
  color: var(--black);
}

.contact-detail .value a {
  color: var(--black);
  transition: color 0.2s ease;
}

.contact-detail .value a:hover { color: var(--gold-dark); }

.contact-form {
  background: var(--white);
  padding: 3rem;
  border: 1px solid var(--gray-200);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gray-500);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.9rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--black);
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  outline: none;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--gold);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-success {
  display: none;
  background: var(--gold-muted);
  padding: 1.5rem;
  text-align: center;
  margin-top: 1rem;
}

.form-success.show { display: block; }

.form-success p {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  color: var(--gold-dark);
}

/* ===== CTA BANNER ===== */
.cta-banner {
  background: var(--black);
  padding: 5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(197, 165, 90, 0.08), transparent 70%);
}

.cta-banner .container { position: relative; z-index: 2; }

.cta-banner h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--white);
  margin-bottom: 1rem;
}

.cta-banner p {
  color: rgba(255,255,255,0.5);
  font-size: 1.05rem;
  max-width: 500px;
  margin: 0 auto 2rem;
  font-weight: 300;
}

/* ===== STATS ROW ===== */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  padding: 4rem 0;
}

.stat-item {
  text-align: center;
  padding: 2rem;
}

.stat-item .num {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.section-dark .stat-item .num { color: var(--gold); }

.stat-item .desc {
  font-size: 0.85rem;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: var(--font-heading);
}

.section-dark .stat-item .desc { color: rgba(255,255,255,0.45); }

/* ===== TWO COLUMN TEXT ===== */
.two-col-text {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.two-col-text h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
}

.two-col-text p {
  color: var(--gray-500);
  line-height: 1.8;
  margin-bottom: 1rem;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--black);
  color: var(--white);
  padding: 4rem 0 2rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand .nav-logo {
  margin-bottom: 1rem;
}

.footer-brand p {
  color: rgba(255,255,255,0.4);
  font-size: 0.9rem;
  max-width: 300px;
  line-height: 1.7;
}

.footer-col h4 {
  font-size: 0.8rem;
  letter-spacing: 2px;
  color: var(--gold);
  margin-bottom: 1.25rem;
}

.footer-col a {
  display: block;
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
  padding: 0.3rem 0;
  transition: color 0.2s ease;
}

.footer-col a:hover { color: var(--gold); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
}

.footer-bottom a { color: rgba(255,255,255,0.3); transition: color 0.2s; }
.footer-bottom a:hover { color: var(--gold); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  .nav { padding: 0 1.5rem; }
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: var(--black);
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    padding: 2rem;
    transition: right 0.3s ease;
  }
  .nav-links.open { right: 0; }
  .nav-toggle { display: flex; }

  .hero { min-height: auto; padding: 8rem 0 4rem; }
  .hero h1 { font-size: clamp(2rem, 8vw, 3rem); }
  .hero-badge { display: none; }

  .page-hero { padding: 8rem 0 3rem; }

  .section { padding: 4rem 0; }
  .container { padding: 0 1.25rem; }

  .services-grid { grid-template-columns: 1fr; }
  .service-detail {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 3rem 0;
  }
  .service-detail.reverse { direction: ltr; }

  .values-grid { grid-template-columns: 1fr; }
  .states-list { grid-template-columns: 1fr 1fr; }

  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .contact-form { padding: 2rem 1.5rem; }

  .two-col-text { grid-template-columns: 1fr; gap: 2rem; }
  .stats-row { grid-template-columns: 1fr 1fr; }

  .cta-banner { padding: 3rem 0; }

  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }

  .form-row { grid-template-columns: 1fr; }

  .hero-cta { flex-direction: column; }
  .hero-cta .btn { text-align: center; }
}

@media (max-width: 480px) {
  .states-list { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr; }
  .nav-logo { font-size: 1.1rem; letter-spacing: 2px; }
  .form-group input,
  .form-group textarea,
  .form-group select { font-size: 16px; }
}

/* ===== OVERLAY for mobile nav ===== */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.nav-overlay.show {
  opacity: 1;
  pointer-events: all;
}

/* ===== SCROLL ANIMATIONS ===== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
