/* Del Engineering — site styles */

:root {
  --navy: #262663;
  --navy-dark: #1a1a45;
  --black: #0d0d0d;
  --white: #ffffff;
  --offwhite: #f6f6f8;
  --gray: #767676;
  --border: #e3e3e8;
  --maxw: 1180px;
  --radius: 6px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--black);
  background: var(--white);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: 'Montserrat', 'Inter', sans-serif;
  font-weight: 700;
  margin: 0 0 0.5em;
  line-height: 1.2;
}

p { margin: 0 0 1em; color: #333; }

a { color: var(--navy); text-decoration: none; }

img { max-width: 100%; display: block; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 80px 0; }
.section-alt { background: var(--offwhite); }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head .eyebrow {
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
  display: block;
}
.section-head h2 { font-size: 2rem; }
.section-head p { color: var(--gray); }

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease;
}
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--navy-dark); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--white); border-color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--navy); transform: translateY(-2px); }

/* Header */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.97);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.2s ease;
}
.site-header.scrolled { box-shadow: 0 2px 12px rgba(0,0,0,0.08); }

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

.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 46px; width: auto; }
.brand-name {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--black);
  letter-spacing: 0.3px;
  line-height: 1.1;
}
.brand-name span { display: block; font-size: 0.68rem; font-weight: 600; color: var(--navy); letter-spacing: 1.5px; text-transform: uppercase; }

.nav-links { display: flex; gap: 36px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  color: var(--black);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover { border-bottom-color: var(--navy); }

.nav-cta { display: flex; align-items: center; gap: 20px; }
.nav-cta .btn-primary { padding: 11px 24px; font-size: 0.9rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span { width: 26px; height: 3px; background: var(--black); border-radius: 2px; }

.mobile-menu { display: none; }

/* Hero */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  color: var(--white);
  background: linear-gradient(180deg, rgba(13,13,13,0.55) 0%, rgba(38,38,99,0.75) 100%), url('Photos/87848688_1231339923707819_8685489028696375296_n.jpg') center/cover no-repeat;
}
.hero-content { max-width: 680px; padding-top: 78px; }
.hero .eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #c9c9ee;
  display: block;
  margin-bottom: 14px;
}
.hero h1 { font-size: 3rem; margin-bottom: 20px; }
.hero p { font-size: 1.15rem; color: #e7e7f2; max-width: 560px; }
.hero-actions { display: flex; gap: 16px; margin-top: 32px; flex-wrap: wrap; }

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.about-image img { border-radius: var(--radius); box-shadow: 0 16px 40px rgba(0,0,0,0.15); }
.about-text .eyebrow {
  text-transform: uppercase; letter-spacing: 1.5px; font-size: 0.8rem;
  font-weight: 700; color: var(--navy); display: block; margin-bottom: 10px;
}
.about-text h2 { font-size: 2rem; }
.about-list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.about-list li { font-weight: 600; font-size: 0.95rem; padding-left: 26px; position: relative; }
.about-list li::before {
  content: "";
  position: absolute; left: 0; top: 6px;
  width: 14px; height: 14px;
  background: var(--navy);
  border-radius: 3px;
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.service-card:hover { box-shadow: 0 16px 32px rgba(0,0,0,0.1); transform: translateY(-4px); }
.service-card .img-wrap { aspect-ratio: 4/3; overflow: hidden; }
.service-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.service-card:hover img { transform: scale(1.06); }
.service-card-body { padding: 22px 22px 26px; }
.service-card-body h3 { font-size: 1.1rem; margin-bottom: 8px; }
.service-card-body p { font-size: 0.9rem; color: var(--gray); margin-bottom: 0; }

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 16px;
}
.gallery-item { border-radius: var(--radius); overflow: hidden; cursor: pointer; position: relative; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item.wide { grid-column: span 2; }
.gallery-item.tall { grid-row: span 2; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(10,10,20,0.92);
  display: none; align-items: center; justify-content: center;
  padding: 40px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 85vh; border-radius: 4px; }
.lightbox-close {
  position: absolute; top: 24px; right: 32px;
  color: var(--white); font-size: 2.2rem; cursor: pointer; line-height: 1;
  background: none; border: none;
}
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  color: var(--white); font-size: 2.5rem; cursor: pointer;
  background: none; border: none; padding: 12px;
}
.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }

/* Contact */
.contact-section { background: var(--navy); color: var(--white); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}
.contact-section h2 { color: var(--white); }
.contact-section .section-head p { color: #cfcfec; }
.contact-info { display: flex; flex-direction: column; gap: 22px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-item .icon {
  width: 44px; height: 44px; flex-shrink: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}
.contact-item h4 { color: var(--white); margin-bottom: 2px; font-size: 1rem; }
.contact-item a, .contact-item span { color: #d9d9f2; }
.contact-item a:hover { color: var(--white); }

.contact-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  color: var(--black);
}
.contact-form h3 { color: var(--black); font-size: 1.2rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 0.85rem; font-weight: 700; color: var(--gray); }
.form-field input, .form-field textarea {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.95rem;
  resize: vertical;
}
.form-field input:focus, .form-field textarea:focus { outline: 2px solid var(--navy); outline-offset: 1px; }
.form-note { font-size: 0.8rem; color: var(--gray); margin-top: 10px; }

/* Footer */
.site-footer {
  background: var(--black);
  color: #bbb;
  padding: 40px 0;
  font-size: 0.9rem;
}
.footer-grid { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: var(--white); font-weight: 700; }
.footer-brand img { height: 30px; width: 30px; object-fit: contain; background: var(--white); border-radius: 6px; padding: 3px; }
.site-footer a { color: #ddd; }
.site-footer a:hover { color: var(--white); }

/* Responsive */
@media (max-width: 980px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item.wide { grid-column: span 2; }
  .about-list { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav-links, .nav-cta .btn-primary { display: none; }
  .nav-toggle { display: flex; }
  .nav-wrap.open ~ .mobile-menu,
  .mobile-menu.open { display: flex; }
  .mobile-menu {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: var(--white);
    border-top: 1px solid var(--border);
    padding: 16px 24px 24px;
  }
  .mobile-menu a {
    padding: 12px 0;
    font-weight: 600;
    border-bottom: 1px solid var(--border);
  }
  .hero h1 { font-size: 2.1rem; }
  .hero-content { padding-top: 60px; }
  .services-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .form-row { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .footer-grid { flex-direction: column; text-align: center; }
}
