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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'DM Sans', sans-serif;
  color: #1a1a1a;
  background: #fff;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
}

.btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn-orange {
  background: #084480;
  color: #fff;
  padding: 14px 28px;
  box-shadow: 0 10px 20px rgba(8, 68, 128, 0.25);
  letter-spacing: 0.3px;
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.82rem;
  border-radius: 20px;
}

.btn-outline-white {
  background: transparent;
  color: #fff;
  border: 1.5px solid #fff;
  padding: 12px 24px;
  border-radius: 6px;
}

.btn-outline-white:hover {
  background: rgba(255,255,255,0.1);
}

.text-link {
  font-weight: 500;
  font-size: 0.95rem;
  color: #1a1a1a;
  transition: color 0.2s;
}

.text-link:hover {
  color: #084480;
}

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(8, 68, 128, 0.82);
  backdrop-filter: blur(8px);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 8px 24px;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

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

.logo img {
  height: 68px;
  width: auto;
  object-fit: contain;
}

.nav {
  display: flex;
  gap: 32px;
}

.nav-link {
  color: rgba(255,255,255,0.85);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 1.5px;
  transition: color 0.2s;
}

.nav-link:hover {
  color: #fff;
}

.header .btn-orange {
  background: #e3e6ea;
  color: #0b2f55;
  border: 1px solid rgba(255,255,255,0.6);
  box-shadow: 0 10px 20px rgba(0,0,0,0.12);
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  height: 780px;
  display: flex;
  align-items: center;
  background: url('webimages/coho-concrete-gallery-18.webp') center/cover no-repeat;
  margin-top: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.3) 60%, rgba(0,0,0,0.1) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  padding-top: 64px;
  width: 100%;
}

.hero h1 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 3.2rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 16px;
}

.hero-sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.85);
  max-width: 420px;
  margin-bottom: 32px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  align-items: flex-start;
}

/* ===== SERVICES ===== */
.services {
  padding: 0 0 0;
  margin-top: -100px;
  position: relative;
  z-index: 3;
  background: transparent;
}

.services .container {
  background: #f0f3f6;
  border-radius: 16px;
  padding: 56px 48px 56px;
}

.section-tag {
  display: inline-block;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #084480;
  margin-bottom: 10px;
}

.section-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #1a1a1a;
}

.services-title-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.services-title-link:hover {
  color: #084480;
}

.section-desc {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.6;
  max-width: 480px;
}

.services-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 40px;
  gap: 32px;
}

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

.service-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  height: 380px;
  background: #333;
  cursor: pointer;
  display: block;
  color: inherit;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: #084480;
  z-index: 3;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

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

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 28px rgba(0,0,0,0.2);
}

.service-img {
  position: absolute;
  inset: 0;
}

.service-img img {
  transition: transform 0.6s ease;
}

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

.service-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0.05) 100%);
  transition: background 0.4s ease;
}

.service-card:hover .service-img::after {
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.35) 55%, rgba(0,0,0,0.1) 100%);
}

.service-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 28px;
  z-index: 2;
  color: #fff;
  transition: transform 0.35s ease;
}

.service-number {
  display: block;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,0.4);
  margin-bottom: 12px;
}

.service-info h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.3;
  transition: transform 0.35s ease;
}

.service-card:hover .service-info h3 {
  transform: translateY(-4px);
}

.service-info p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(10px);
  transition: max-height 0.4s ease, opacity 0.35s ease, transform 0.35s ease;
}

.service-card:hover .service-info p {
  max-height: 80px;
  opacity: 1;
  transform: translateY(0);
}

.service-card:hover .service-info {
  transform: translateY(-10px);
}

.service-card:hover .service-number {
  color: rgba(255,255,255,0.7);
}

.service-card:hover .service-info h3 {
  transform: translateY(-8px);
}

/* ===== PROJECTS ===== */
.projects {
  padding: 80px 0;
  margin-top: 60px;
  background: #fff;
}

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

.project-card {
  border-radius: 10px;
  overflow: hidden;
  background: #f0f3f6;
}

.project-img {
  height: 220px;
  overflow: hidden;
}

.project-info {
  padding: 20px;
}

.project-info h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.project-tag {
  font-size: 0.82rem;
  color: #777;
}

.cta-card {
  background: #084480;
  border-radius: 10px;
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
}

.cta-card h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.cta-card p {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 24px;
  color: rgba(255,255,255,0.9);
}

/* ===== FOOTER ===== */
.footer {
  color: #1a1a1a;
  padding: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  max-width: 100%;
}

.footer-about {
  padding: 60px 60px 60px 0;
  padding-left: calc((100vw - 1200px) / 2 + 24px);
  background: #fff;
  max-width: none;
}

.footer-heading {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.3;
  color: #1a1a1a;
}

.footer-about p {
  font-size: 0.88rem;
  color: #555;
  line-height: 1.7;
  margin-bottom: 14px;
  max-width: 540px;
}

.footer-links {
  display: flex;
  gap: 48px;
  background: #2a2a2a;
  padding: 60px 40px;
  color: #fff;
  align-items: flex-start;
}

.footer-logo {
  margin-left: 16px;
  display: flex;
  align-items: flex-start;
}

.footer-logo img {
  height: 164px;
  width: auto;
  object-fit: contain;
  opacity: 0.85;
}

.footer-col h4 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: rgba(255,255,255,0.9);
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  transition: color 0.2s;
}

.footer-col a:hover {
  color: #fff;
}

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

.modal {
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 560px;
  padding: 40px;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(30px) scale(0.97);
}

.modal-overlay.active .modal {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: #999;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

.modal-close:hover {
  color: #1a1a1a;
  background: #f0f0f0;
}

.modal-header {
  margin-bottom: 28px;
}

.modal-header h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 6px;
}

.modal-header p {
  font-size: 0.9rem;
  color: #777;
}

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

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 6px;
  letter-spacing: 0.3px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  padding: 12px 14px;
  border: 1.5px solid #ddd;
  border-radius: 8px;
  background: #fafafa;
  color: #1a1a1a;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #bbb;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #084480;
  box-shadow: 0 0 0 3px rgba(8, 68, 128, 0.15);
  background: #fff;
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23999' d='M1.41 0L6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

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

.btn-submit {
  width: 100%;
  padding: 14px;
  font-size: 0.95rem;
  margin-top: 4px;
  border-radius: 8px;
  cursor: pointer;
}

/* Success state */
.modal-success {
  text-align: center;
  padding: 40px 20px;
}

.modal-success .success-icon {
  width: 64px;
  height: 64px;
  background: #084480;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.modal-success .success-icon svg {
  width: 28px;
  height: 28px;
  stroke: #fff;
  stroke-width: 3;
  fill: none;
}

.modal-success h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #1a1a1a;
}

.modal-success p {
  font-size: 0.9rem;
  color: #777;
  margin-bottom: 24px;
}

/* ===== DEMO GATE ===== */
.demo-gate {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(7, 20, 33, 0.92);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.demo-gate.is-hidden {
  display: none;
}

.demo-gate-card {
  width: 100%;
  max-width: 520px;
  background: #0b2f55;
  color: #fff;
  padding: 36px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 24px 48px rgba(0,0,0,0.35);
  text-align: center;
}

.demo-gate-logo {
  width: 160px;
  height: auto;
  margin: 0 auto 12px;
}

.demo-gate-card h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.demo-gate-card p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 18px;
}

.demo-gate-form {
  display: grid;
  gap: 12px;
}

.demo-gate-form input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.08);
  color: #fff;
  outline: none;
}

.demo-gate-form input::placeholder {
  color: rgba(255,255,255,0.6);
}

.demo-gate-error {
  display: none;
  color: #ffb3b3;
  font-size: 0.85rem;
  margin-top: 12px;
}

/* ===== MOBILE MENU ===== */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.mobile-menu.active {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

.mobile-menu-inner {
  text-align: center;
  padding: 24px;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 40px;
}

.mobile-nav-link {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: rgba(255,255,255,0.5);
  padding: 8px 0;
  transition: color 0.3s ease;
  display: inline-block;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: #fff;
}

.mobile-menu-cta {
  padding: 16px 40px;
  font-size: 1rem;
  border-radius: 8px;
}

.mobile-menu-footer {
  margin-top: 48px;
}

.mobile-menu-logo {
  height: 48px;
  width: auto;
  object-fit: contain;
  opacity: 0.3;
  margin: 0 auto;
}

/* Hamburger X animation */
.mobile-menu-btn.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-btn.is-open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.mobile-menu-btn.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu-btn span {
  transition: transform 0.35s ease, opacity 0.25s ease;
}

.mobile-menu-btn.is-open {
  z-index: 101;
  position: relative;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .nav {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .header .btn-sm {
    display: none;
  }

  .header-inner {
    padding: 0 16px;
  }

  .hero h1 {
    font-size: 2.4rem;
  }

  .hero {
    height: 600px;
  }

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

  .services-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .services-header .btn {
    width: 100%;
    text-align: center;
  }

  .service-card {
    height: 260px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-about {
    padding: 40px 24px;
    width: 100%;
  }

  .footer-heading {
    word-break: break-word;
  }
}

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .modal {
    padding: 28px 24px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero {
    height: 520px;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .services {
    padding: 60px 0 40px;
  }

  .projects {
    padding: 60px 0;
  }

  .footer {
    padding: 48px 0 40px;
  }

  .footer-links {
    gap: 32px;
  }
}

@media (max-width: 600px) {
  .footer-logo img {
    height: 110px;
  }
}

