/* =============================================
   Columbia Northwest Engineering - Site Styles
   Font: Montserrat | Pixel-perfect clone
   ============================================= */

/* Reset & Base */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: #333333;
  background-color: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

ul {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-heading {
  font-size: 32px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 40px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.section-heading.centered {
  text-align: center;
}

/* =============================================
   HEADER / NAVIGATION
   ============================================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.3s ease;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo-link {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 48px;
  width: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: #555555;
  padding: 10px 18px;
  border-radius: 4px;
  transition: color 0.2s ease, background-color 0.2s ease;
  letter-spacing: 0.3px;
}

.nav-link:hover {
  color: #1a1a1a;
  background-color: #f5f5f5;
}

.nav-link.nav-cta {
  background-color: #2c5282;
  color: #ffffff;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 6px;
}

.nav-link.nav-cta:hover {
  background-color: #234876;
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background-color: #333333;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-menu-btn.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero {
  position: relative;
  width: 100%;
  height: 70vh;
  min-height: 500px;
  max-height: 700px;
  margin-top: 80px; /* account for fixed header */
  overflow: hidden;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.3) 0%,
    rgba(0, 0, 0, 0.5) 100%
  );
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  z-index: 2;
}

.hero-title {
  font-size: 56px;
  font-weight: 700;
  color: #ffffff;
  text-transform: none;
  letter-spacing: -0.5px;
  line-height: 1.15;
  max-width: 800px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: 20px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
  margin-top: 20px;
  max-width: 600px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

/* =============================================
   WHO WE ARE SECTION
   ============================================= */
.who-we-are {
  padding: 80px 0;
  background-color: #ffffff;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text p {
  font-size: 16px;
  line-height: 1.8;
  color: #555555;
  margin-bottom: 20px;
}

.about-text p:last-child {
  margin-bottom: 0;
}

.about-images {
  position: relative;
}

.about-photo-wrapper {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.about-photo {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.about-logo-overlay {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 140px;
  opacity: 0.15;
}

.logo-watermark {
  width: 100%;
}

/* =============================================
   WHAT WE DO (SERVICES) SECTION
   ============================================= */
.what-we-do {
  padding: 80px 0;
  background-color: #f8f8f8;
}

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

.service-card {
  display: block;
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.service-image {
  width: 100%;
  height: 240px;
  overflow: hidden;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .service-image img {
  transform: scale(1.05);
}

.service-content {
  padding: 28px 24px;
}

.service-content h3 {
  font-size: 22px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 12px;
}

.service-content p {
  font-size: 15px;
  line-height: 1.7;
  color: #666666;
}

/* =============================================
   CTA BANNER
   ============================================= */
.cta-banner {
  background-color: #2c5282;
  padding: 40px 0;
  text-align: center;
}

.cta-banner .section-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.cta-text {
  font-size: 20px;
  font-weight: 600;
  color: #ffffff;
}

.cta-phone {
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.4);
  padding: 10px 28px;
  border-radius: 6px;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.cta-phone:hover {
  border-color: #ffffff;
  background-color: rgba(255, 255, 255, 0.1);
}

/* =============================================
   PROJECTS SECTION
   ============================================= */
.projects {
  padding: 80px 0;
  background-color: #ffffff;
}

.projects-intro {
  text-align: center;
  font-size: 17px;
  color: #555555;
  max-width: 700px;
  margin: -20px auto 40px;
  line-height: 1.7;
}

.projects-slider {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 800px;
  margin: 0 auto;
}

.slider-track {
  flex: 1;
  overflow: hidden;
  border-radius: 8px;
}

.slide {
  display: none;
}

.slide.active {
  display: block;
}

.slide-content {
  background: #f8f8f8;
  padding: 48px 40px;
  border-radius: 8px;
  text-align: center;
}

.slide-content h3 {
  font-size: 24px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 16px;
}

.slide-content p {
  font-size: 16px;
  color: #555555;
  line-height: 1.7;
}

.slider-btn {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid #ddd;
  background: #ffffff;
  color: #555;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, color 0.2s, background-color 0.2s;
}

.slider-btn:hover {
  border-color: #2c5282;
  color: #2c5282;
  background-color: #f0f4f8;
}

/* =============================================
   CONTACT SECTION
   ============================================= */
.contact {
  padding: 80px 0;
  background-color: #f8f8f8;
}

.contact-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-form {
  background: #ffffff;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group.full-width {
  margin-bottom: 20px;
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: #444444;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea {
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 4px;
  color: #333;
  background: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #2c5282;
  box-shadow: 0 0 0 3px rgba(44, 82, 130, 0.1);
}

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

.submit-btn {
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 40px;
  background-color: #2c5282;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.submit-btn:hover {
  background-color: #234876;
}

.contact-info {
  padding-top: 20px;
}

.contact-detail {
  margin-bottom: 32px;
}

.contact-detail h4 {
  font-size: 13px;
  font-weight: 700;
  color: #1a1a1a;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.contact-detail a,
.contact-detail p {
  font-size: 16px;
  color: #555555;
  line-height: 1.6;
}

.contact-detail a:hover {
  color: #2c5282;
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background-color: #1a1a1a;
  color: #999999;
  padding: 48px 0 32px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 28px;
  border-bottom: 1px solid #333333;
  margin-bottom: 28px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer-logo {
  height: 48px;
  width: auto;
  opacity: 0.7;
}

.footer-phone {
  font-size: 18px;
  font-weight: 600;
  color: #cccccc;
  transition: color 0.2s;
}

.footer-phone:hover {
  color: #ffffff;
}

.footer-social {
  display: flex;
  gap: 16px;
}

.footer-social a {
  color: #999999;
  transition: color 0.2s;
  display: flex;
  align-items: center;
}

.footer-social a:hover {
  color: #ffffff;
}

.footer-social svg {
  width: 20px;
  height: 20px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-address a {
  font-size: 14px;
  color: #999999;
  transition: color 0.2s;
}

.footer-address a:hover {
  color: #ffffff;
}

.footer-copyright {
  font-size: 14px;
  color: #666666;
}

/* =============================================
   MOBILE RESPONSIVE
   ============================================= */
@media (max-width: 992px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  /* Header Mobile */
  .mobile-menu-btn {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 16px 24px;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s;
  }

  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-list {
    flex-direction: column;
    gap: 4px;
  }

  .nav-link {
    display: block;
    padding: 12px 16px;
    font-size: 16px;
  }

  .nav-link.nav-cta {
    text-align: center;
    margin-top: 8px;
  }

  /* Hero Mobile */
  .hero {
    height: 50vh;
    min-height: 360px;
  }

  .hero-title {
    font-size: 32px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  /* Section headings */
  .section-heading {
    font-size: 26px;
    margin-bottom: 28px;
  }

  /* Who We Are */
  .who-we-are {
    padding: 60px 0;
  }

  .about-photo {
    height: 280px;
  }

  /* Services */
  .what-we-do {
    padding: 60px 0;
  }

  .service-image {
    height: 200px;
  }

  /* CTA */
  .cta-banner .section-container {
    flex-direction: column;
    gap: 16px;
  }

  .cta-text {
    font-size: 18px;
  }

  .cta-phone {
    font-size: 20px;
  }

  /* Projects */
  .projects {
    padding: 60px 0;
  }

  .slide-content {
    padding: 32px 24px;
  }

  /* Contact */
  .contact {
    padding: 60px 0;
  }

  .contact-form {
    padding: 24px;
  }

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

  /* Footer */
  .footer-top {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .footer-brand {
    flex-direction: column;
    gap: 12px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .header-container {
    height: 64px;
  }

  .logo-img {
    height: 36px;
  }

  .hero {
    margin-top: 64px;
    height: 45vh;
    min-height: 320px;
  }

  .hero-title {
    font-size: 28px;
  }

  .main-nav {
    top: 64px;
  }
}
