/* =========================================================
   GLOBAL RESET & BASE
   ========================================================= */

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

h1, h2, h3, p, ul {
  margin-top: 0;
}

/* =========================================================
   GLOBAL TOP NAVIGATION
   ========================================================= */

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  box-sizing: border-box;
}

.site-brand {
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.site-nav a {
  text-decoration: none;
  margin-left: 18px;
  font-weight: 600;
}

.site-nav a:hover {
  text-decoration: underline;
}

/* =========================================================
   HOME PAGE (HERO)
   File: index.html
   ========================================================= */

body.index_page {
  font-family: 'Bitter', serif;
  background-color: #0b0f14;
  color: #ffffff;
}

body.index_page .site-brand,
body.index_page .site-nav a {
  color: #ffffff;
}

.hero-content {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  box-sizing: border-box;
  background: url('images/culvert-hero.png') center 10% / cover no-repeat;
  position: relative;
}

.hero-content::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 900px;
  text-align: center;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.65);
}

.hero-title {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 16px;
}

.hero-subtitle {
  font-size: 20px;
  margin-bottom: 20px;
}

.hero-body {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 26px;
}

.hero-cta .cta-button {
  display: inline-block;
  font-size: 16px;
  padding: 10px 18px;
  background: #ffffff;
  color: #000000;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
}

.hero-cta .cta-button:hover {
  filter: brightness(0.95);
}

.hero-logos {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
}

.hero-logos img {
  height: 55px;
}

@media (max-width: 700px) {
  .hero-logos img {
    height: 44px;
  }
}

/* =========================================================
   LIGHT PAGES (SERVICES / PROJECTS / ABOUT / CONTACT)
   ========================================================= */

body.services_page,
body.projects_page,
body.about_page,
body.contact_page {
  background: #f7f9fc;
  color: #1f2933;
}

body.services_page .site-header,
body.projects_page .site-header,
body.about_page .site-header,
body.contact_page .site-header {
  position: sticky;
  top: 0;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
}

body.services_page .site-brand,
body.projects_page .site-brand,
body.about_page .site-brand,
body.contact_page .site-brand,
body.services_page .site-nav a,
body.projects_page .site-nav a,
body.about_page .site-nav a,
body.contact_page .site-nav a {
  color: #1f2933;
}

/* =========================================================
   SERVICES PAGE
   ========================================================= */

#services {
  max-width: 1100px;
  margin: 0 auto;
  padding: 56px 6%;
}

#services h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 18px;
}

#services h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #0f172a;
  margin: 28px 0 10px;
}

#services p,
#services li {
  font-size: 1.05rem;
  line-height: 1.55;
  max-width: 85ch;
}

#services ul {
  padding-left: 1.2rem;
  margin-bottom: 18px;
}

/* =========================================================
   PROJECTS PAGE
   ========================================================= */

#projects {
  max-width: 1100px;
  margin: 0 auto;
  padding: 56px 6%;
}

#projects h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 18px;
}

.project-block {
  margin-top: 40px;
  padding-top: 10px;
  border-top: 1px solid rgba(15,23,42,0.12);
}

.project-block h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #0f172a;
}

.project-desc {
  margin-bottom: 16px;
  color: #334155;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.project-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
}

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

.project-card .caption {
  padding: 10px 12px;
  font-size: 0.95rem;
  color: #334155;
}

@media (max-width: 900px) {
  .project-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .project-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   ABOUT PAGE
   ========================================================= */

#about {
  max-width: 900px;
  margin: 0 auto;
  padding: 56px 6%;
}

#about h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #0f172a;
}

#about h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #0f172a;
  margin-top: 32px;
}

#about p {
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 80ch;
}

/* =========================================================
   CONTACT PAGE
   ========================================================= */

#contact {
  max-width: 900px;
  margin: 0 auto;
  padding: 56px 6%;
}

.contact-form {
  max-width: 80ch;
  margin: 22px auto 0;
  padding: 18px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
}

.contact-form label {
  display: block;
  font-weight: 700;
  margin-top: 14px;
  color: #0f172a;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px 12px;
  font-family: inherit;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
}

.contact-form textarea {
  min-height: 8.5em;
}

.contact-form button {
  margin-top: 16px;
  padding: 10px 18px;
  font-weight: 700;
  background: #0f172a;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  cursor: pointer;
}

/* =========================================================
   PRINT OVERRIDES
   ========================================================= */

@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
  }
  .site-header {
    display: none !important;
  }
}
