/* DIB Management, Inc. — site styles (refreshed visual direction) */

:root {
  --navy: #0b1f4d;
  --navy-light: #17306e;
  --text: #4a4f57;
  --heading: #1a1d24;
  --border: #ececef;
  --bg-alt: #f6f7fa;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(11,31,77,0.08);
  --shadow-hover: 0 16px 40px rgba(11,31,77,0.14);
  --max-width: 1180px;
}

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

body {
  font-family: "Helvetica Neue", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
}

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

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

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

h1, h2, h3, h4 { color: var(--heading); font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; }
h1 { font-size: 38px; margin: 0 0 16px; }
h2 { font-size: 24px; margin: 0 0 14px; }
p { margin: 0 0 18px; }

/* ---------- Header ---------- */

#site-header {
  background: var(--navy);
  box-shadow: 0 2px 16px rgba(0,0,0,0.15);
  position: relative;
  z-index: 10;
}
#site-header .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  flex-wrap: wrap;
}
#site-header .logo img { max-height: 56px; }

#main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
#main-nav a {
  display: block;
  padding: 10px 16px;
  color: rgba(255,255,255,0.88);
  text-transform: uppercase;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}
#main-nav a:hover, #main-nav a.active {
  background: rgba(255,255,255,0.12);
  color: #ffffff;
}

#nav-toggle {
  display: none;
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 14px;
  cursor: pointer;
}

/* ---------- Hero carousel (homepage) ---------- */

.hero-carousel { position: relative; width: 100%; height: 520px; overflow: hidden; background: #000; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.1s ease; }
.hero-slide.active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-slide::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,31,77,0) 40%, rgba(11,31,77,0.75) 100%);
}
.hero-caption {
  position: absolute; left: 0; right: 0; bottom: 56px;
  text-align: center; color: #fff;
  font-size: 30px; font-weight: 600; letter-spacing: 0.03em;
  text-transform: uppercase;
  z-index: 2;
}
.hero-dots { position: absolute; left: 0; right: 0; bottom: 24px; display: flex; justify-content: center; gap: 10px; z-index: 3; }
.hero-dot { width: 9px; height: 9px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.9); background: rgba(255,255,255,0.35); padding: 0; cursor: pointer; transition: background 0.2s ease, transform 0.2s ease; }
.hero-dot.active { background: #fff; transform: scale(1.2); }

@media (max-width: 700px) {
  .hero-carousel { height: 320px; }
  .hero-caption { font-size: 19px; bottom: 34px; }
}

/* ---------- Page banner (non-home page titles) ---------- */

.page-banner { padding: 44px 0; text-align: center; }
.page-banner h1 { color: var(--heading); margin: 0; }

/* ---------- Tagline band (homepage) ---------- */

.tagline-band { padding: 64px 0; text-align: center; background: #ffffff; }
.tagline-band h1 { font-size: 38px; }
.tagline-band p { max-width: 640px; margin: 0 auto; font-size: 17px; color: #6b7078; }
.tagline-band .cta-btn { margin-top: 28px; }

.cta-btn {
  display: inline-block;
  background: var(--navy);
  color: #fff;
  padding: 13px 30px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: background 0.2s ease, transform 0.2s ease;
}
.cta-btn:hover { background: var(--navy-light); transform: translateY(-1px); text-decoration: none; }

/* ---------- Sections ---------- */

main { padding: 40px 0 60px; }

section.band { padding: 70px 0; }
section.band.alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-head p { color: #6b7078; font-size: 16px; }

ul.services-list {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  max-width: 900px;
  margin-left: auto; margin-right: auto;
}
ul.services-list li {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 20px;
  font-weight: 600;
  color: var(--heading);
  font-size: 14.5px;
}

/* ---------- Cards (projects / news / properties / homepage) ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 20px;
}

.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }

.card img { width: 100%; height: 200px; object-fit: cover; }

.card .card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.card h2 { font-size: 17px; margin: 0 0 10px; }
.card p { font-size: 14.5px; flex: 1; color: var(--text); }

.card .read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-weight: 600;
  font-size: 13.5px;
  color: var(--navy);
}

/* ---------- Detail pages (project / news) ---------- */

.detail-images {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin: 24px 0 34px;
}
.detail-images img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  cursor: zoom-in;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.detail-images img:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

/* ---------- Lightbox ---------- */

.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8,13,28,0.93);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.lightbox-overlay.open { display: flex; }

.lightbox-overlay img {
  max-width: 90vw;
  max-height: 86vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.lightbox-close,
.lightbox-nav {
  background: rgba(255,255,255,0.1);
  border: 0;
  color: #fff;
  cursor: pointer;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
}
.lightbox-close:hover { background: rgba(255,255,255,0.22); }

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  font-size: 24px;
}
.lightbox-nav:hover { background: rgba(255,255,255,0.22); }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

.lightbox-counter {
  position: absolute;
  bottom: 22px;
  left: 0;
  right: 0;
  text-align: center;
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  letter-spacing: 0.04em;
}

@media (max-width: 700px) {
  .lightbox-nav { width: 40px; height: 40px; font-size: 18px; }
  .lightbox-close { width: 36px; height: 36px; font-size: 18px; top: 12px; right: 12px; }
}

.back-link {
  display: inline-block;
  margin-bottom: 22px;
  font-weight: 600;
  font-size: 14px;
}

.news-meta { color: #8a8f98; font-size: 13.5px; margin: -8px 0 20px; }

/* ---------- Staff bios ---------- */

.staff {
  margin-bottom: 34px;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--border);
}
.staff:last-child { border-bottom: 0; }
.staff h2 { margin-bottom: 8px; }

/* ---------- Contact ---------- */

.contact-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
@media (max-width: 700px) {
  .contact-block { grid-template-columns: 1fr; }
}
.contact-info p { margin: 0 0 6px; }

/* ---------- Footer ---------- */

#site-footer { background: var(--navy); color: rgba(255,255,255,0.65); padding: 30px 0; font-size: 13px; }
#site-footer .footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
#site-footer a { color: rgba(255,255,255,0.85); }
#site-footer a:hover { color: #fff; }

/* ---------- Responsive ---------- */

@media (max-width: 780px) {
  #nav-toggle { display: inline-block; }
  #main-nav { display: none; width: 100%; margin-top: 14px; }
  #main-nav.open { display: block; }
  #main-nav ul { flex-direction: column; gap: 2px; }

  h1 { font-size: 28px; }
  .tagline-band h1 { font-size: 28px; }
  section.band { padding: 50px 0; }

  .staff { flex-direction: column !important; }
}
