* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
  }
  
  body {
    line-height: 1.6;
    color: #222;
  }
  
  /* NAV */
  header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background: #0f172a;
    color: white;
    position: sticky;
    top: 0;
    z-index: 100;
  }

  header .logo {
    font-size: 1.6rem;
    font-weight: bold;
    line-height: 1.2;
  }
  
  .menu-dropdown {
    position: relative;
    display: inline-block;
  }

  .menu-button {
    background: #1e293b;
    color: #fff;
    border: 1px solid #334155;
    padding: 8px 14px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
  }

  .menu-button::after {
    content: " \25BE";
    display: inline-block;
    margin-left: 6px;
    transition: transform 0.25s ease;
  }

  .menu-list {
    list-style: none;
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    min-width: 180px;
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 6px;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transform: translateY(-6px);
    transition: max-height 0.28s ease, opacity 0.22s ease, transform 0.28s ease;
    pointer-events: none;
    z-index: 150;
  }

  .menu-list a {
    color: #fff;
    text-decoration: none;
    display: block;
    padding: 10px 12px;
  }

  .menu-list a:hover {
    background: #1e293b;
  }

  .menu-dropdown.open .menu-list {
    max-height: 320px;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .menu-dropdown.open .menu-button::after {
    transform: rotate(180deg);
  }
  
  /* HERO - .hero-bg img sits behind heading (Images/Welder.jpg) */
  .hero {
    position: relative;
    min-height: 90vh;
    background-color: #0f172a;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 50px;
    overflow: hidden;
  }

  .hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
    opacity: 0;
    transition: opacity 1s ease;
  }

  .hero-bg--active {
    opacity: 1;
  }

  .hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
      to right,
      rgba(0, 0, 0, 0.75),
      rgba(0, 0, 0, 0.6)
    );
    z-index: 1;
  }

  .hero h1,
  .hero p,
  .hero .btn {
    position: relative;
    z-index: 2;
  }

  .hero-logo {
    position: absolute;
    top: 32px;
    right: 32px;
    z-index: 2;
    width: clamp(140px, 18vw, 260px);
    height: auto;
    padding: 12px;
    background: rgba(255, 255, 255, 0.88);
    border-radius: 8px;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.3));
  }
  
  .hero h1 {
    font-size: 48px;
  }
  
  .btn {
    margin-top: 20px;
    padding: 12px 20px;
    background: #facc15;
    color: black;
    width: fit-content;
    text-decoration: none;
    font-weight: bold;
  }
  
  /* SECTIONS */
  .section {
    padding: 60px 20px;
    text-align: center;
  }
  
  .dark {
    background: #f3f4f6;
  }

  .section-lead {
    max-width: 640px;
    margin: 12px auto 0;
    color: #4b5563;
  }

  .location-map {
    max-width: 1000px;
    margin: 28px auto 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
  }

  .location-map iframe {
    display: block;
    width: 100%;
    height: 450px;
    border: 0;
  }

  .projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 28px;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
  }

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

  .project-card {
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08), 0 4px 10px rgba(0, 0, 0, 0.04);
  }
  
  .project-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
  }

  .project-card-link .project-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }

  .project-card-link:hover .project-card {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12), 0 6px 12px rgba(0, 0, 0, 0.05);
  }

  .project-card__image-wrap {
    aspect-ratio: 16 / 10;
    background: #e5e7eb;
    overflow: hidden;
  }

  .project-card__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  .project-card__body {
    padding: 20px 18px 22px;
    text-align: center;
  }

  .project-card h3 {
    font-size: 1.05rem;
    margin-bottom: 6px;
    color: #0f172a;
    font-weight: bold;
  }

  .project-card .project-card__subtitle {
    color: #374151;
    font-size: 0.85rem;
    font-weight: bold;
    margin-bottom: 12px;
  }

  .project-card p {
    color: #6b7280;
    font-size: 0.92rem;
    line-height: 1.55;
    margin: 0;
  }

  .other-services-list {
    list-style: none;
    max-width: 560px;
    margin: 28px auto 0;
    padding: 0;
    text-align: left;
  }

  .other-services-list li {
    position: relative;
    padding: 12px 0 12px 28px;
    border-bottom: 1px solid #e5e7eb;
    color: #374151;
  }

  .other-services-list li:last-child {
    border-bottom: none;
  }

  .other-services-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: #facc15;
    border-radius: 1px;
  }
  
  /* GRID */
  .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
  }
  
  .card {
    padding: 20px;
    background: white;
    border: 1px solid #ddd;
  }

.card-link {
  color: inherit;
  text-decoration: none;
  display: block;
}

.card-link .card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Services: full-bleed photos */
#services .grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  max-width: 1100px;
  margin: 28px auto 0;
}

#services > h2 {
  font-size: 2.5rem;
}

#services .card-link .card {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 300px;
  padding: 28px;
  color: #fff;
  font-size: 1.75rem;
  font-weight: bold;
  border: none;
  border-radius: 6px;
  background-color: #1e293b;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85), 0 2px 14px rgba(0, 0, 0, 0.55);
}

#services .card--electrical-installations .card {
  background: #1e293b url("Images/Electrical Installations.jpg") center / cover no-repeat;
}

#services .card--maintenance-repairs .card {
  background: #1e293b url("Images/Maintenance and Installations.jpg") center / cover no-repeat;
}

#services .card--industrial-automation .card {
  background: #1e293b url("Images/Industrial Automation.jpg") center / cover no-repeat;
}

#services .card--mechanical-engineering .card {
  background: #1e293b url("Images/Mechanical Engineering.jpg") center / cover no-repeat;
}

.card-link:hover .card {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

/* Service detail page heroes */
.service-hero {
  position: relative;
  min-height: clamp(420px, 62vh, 650px);
  display: flex;
  align-items: center;
  color: #fff;
  background-color: #0f172a;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  overflow: hidden;
}

.service-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(2, 6, 23, 0.88) 0%,
    rgba(2, 6, 23, 0.64) 48%,
    rgba(2, 6, 23, 0.2) 100%
  );
}

.service-hero__content {
  position: relative;
  z-index: 1;
  width: min(1100px, calc(100% - 40px));
  margin: 0 auto;
  padding: 72px 0;
  text-align: left;
}

.service-hero h1 {
  max-width: 780px;
  font-size: clamp(2.5rem, 6vw, 4.75rem);
  line-height: 1.05;
  text-wrap: balance;
  color: #facc15;
}

.service-hero p {
  max-width: 680px;
  margin-top: 18px;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.92);
}

.service-hero--electrical-installations {
  background-image: url("Images/Electrical Installations.jpg");
}

.service-hero--maintenance-repairs {
  background-image: url("Images/Maintenance and Installations.jpg");
}

.service-hero--industrial-automation {
  background-image: url("Images/Industrial Automation.jpg");
}

.service-hero--mechanical-engineering {
  background-image: url("Images/Mechanical Engineering.jpg");
}

.service-detail {
  max-width: 900px;
  margin: auto;
  text-align: left;
}

.service-detail h1 {
  margin-bottom: 15px;
}

.service-detail h2 {
  margin-top: 25px;
  margin-bottom: 10px;
}

.service-detail ul {
  padding-left: 20px;
}

.service-detail .btn {
  display: inline-block;
}

.project-detail {
  max-width: 1100px;
  margin: auto;
  text-align: left;
}

.project-detail h1 {
  margin-bottom: 18px;
  color: #0f172a;
}

.project-detail__subtitle {
  margin-top: -10px;
  margin-bottom: 22px;
  color: #374151;
  font-weight: bold;
}

.project-video-section {
  margin-bottom: 28px;
}

.project-video {
  display: block;
  width: 100%;
  max-height: 640px;
  background: #000;
  border-radius: 6px;
}

.project-model-section h2,
.project-gallery-section h2,
.project-description h2,
.project-testimonial h2 {
  margin-bottom: 12px;
  color: #0f172a;
}

.project-gallery-shell {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
}

.project-model-section {
  margin-top: 24px;
}

.project-model-viewer {
  width: 100%;
  max-width: 960px;
  height: 540px;
  background: #e5e7eb;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
}

.gallery-nav {
  background: #0f172a;
  color: #fff;
  border: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
}

.gallery-nav:disabled {
  background: #94a3b8;
  cursor: not-allowed;
}

.project-gallery-window {
  overflow: hidden;
}

.project-gallery-track {
  display: flex;
  transition: transform 0.3s ease;
}

.project-gallery-set {
  min-width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.project-gallery-set img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}

.project-description {
  margin-top: 28px;
}

.project-description p {
  color: #374151;
}

.project-testimonial {
  margin-top: 24px;
  border-left: 4px solid #0f172a;
  padding: 16px 18px;
  background: #f8fafc;
  border-radius: 0 6px 6px 0;
}

.project-testimonial blockquote {
  margin: 0;
  color: #374151;
  font-size: 1.05rem;
  line-height: 1.7;
}

.admin-console {
  max-width: 980px;
  margin: auto;
  text-align: left;
}

.admin-note {
  margin-top: 8px;
  color: #4b5563;
}

.admin-form {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  max-width: 100%;
}

.admin-form label {
  font-weight: bold;
  color: #0f172a;
}

.admin-form input,
.admin-form textarea {
  width: 100%;
  margin-bottom: 6px;
}

.admin-buttons {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.admin-project-list {
  margin-top: 16px;
  display: grid;
  gap: 14px;
}

.admin-project-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 14px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  overflow: hidden;
}

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

.admin-project-content {
  padding: 12px;
}

.admin-project-content p {
  color: #4b5563;
  margin-top: 6px;
}

.admin-project-actions {
  margin-top: 10px;
  display: flex;
  gap: 8px;
}

.danger-btn {
  background: #b91c1c;
}

@media (max-width: 900px) {
  .hero {
    padding: 40px 24px;
  }

  #services .grid {
    grid-template-columns: 1fr;
  }

  #services .card-link .card {
    min-height: 240px;
    font-size: 1.4rem;
  }

  .hero-logo {
    top: 20px;
    right: 20px;
    width: 130px;
    padding: 8px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .service-hero {
    min-height: 520px;
    background-position: center;
  }

  .service-hero::before {
    background: linear-gradient(
      180deg,
      rgba(2, 6, 23, 0.25) 0%,
      rgba(2, 6, 23, 0.88) 100%
    );
  }

  .service-hero__content {
    width: min(100% - 40px, 680px);
    padding: 50px 0;
  }

  .location-map iframe {
    height: 340px;
  }

  .project-model-viewer {
    height: 380px;
  }

  .project-gallery-shell {
    grid-template-columns: 1fr;
  }

  .gallery-nav {
    width: 100%;
    border-radius: 6px;
  }

  .project-gallery-set {
    grid-template-columns: 1fr;
  }

  .admin-project-card {
    grid-template-columns: 1fr;
  }
}
  
  /* FORM */
  form {
    display: flex;
    flex-direction: column;
    max-width: 400px;
    margin: auto;
  }

  #contact .contact-form {
    width: 100%;
    max-width: 1000px;
    margin-top: 28px;
  }

  #contact .contact-form textarea {
    min-height: 150px;
    resize: vertical;
  }
  
  input, textarea {
    margin-bottom: 10px;
    padding: 10px;
  }
  
  button {
    padding: 10px;
    background: #0f172a;
    color: white;
    border: none;
  }
  
  /* FOOTER */
  footer {
    padding: 48px 20px;
    background: #0f172a;
    color: white;
  }

  .footer-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px;
    max-width: 760px;
    margin: 0 auto;
  }

  .footer-brand,
  .footer-column {
    text-align: left;
  }

  .footer-brand img {
    display: block;
    width: 170px;
    height: auto;
    margin-bottom: 14px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 6px;
  }

  .footer-brand p {
    color: #cbd5e1;
  }

  .footer-column {
    padding-left: 32px;
    border-left: 1px solid #334155;
  }

  .footer-column h2 {
    margin-bottom: 16px;
    color: #facc15;
    font-size: 1.25rem;
  }

  .footer-column address {
    display: grid;
    gap: 10px;
    color: #cbd5e1;
    font-style: normal;
  }

  .footer-column address a {
    color: #cbd5e1;
    text-decoration: none;
  }

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

  @media (max-width: 700px) {
    .footer-grid {
      grid-template-columns: 1fr;
      gap: 28px;
    }

    .footer-column {
      padding-top: 24px;
      padding-left: 0;
      border-top: 1px solid #334155;
      border-left: 0;
    }

  }
