/* ===========================================================
   Men at Work Facilities Ltd — stylesheet
   =========================================================== */

:root {
  --navy: #16244e;
  --navy-dark: #0f1a3a;
  --orange: #f15a24;
  --orange-dark: #d6481a;
  --grey-bg: #f5f6f8;
  --grey-line: #e3e6ec;
  --text: #1a1d2b;
  --text-muted: #5b6378;
  --white: #ffffff;
  --radius: 12px;
  --shadow: 0 6px 24px rgba(22, 36, 78, 0.08);
  --shadow-lg: 0 14px 40px rgba(22, 36, 78, 0.14);
  --maxw: 1160px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  line-height: 1.6;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--orange);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1,
h2,
h3 {
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 0.5em;
  font-weight: 800;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
}

h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.3rem);
}

p {
  margin: 0 0 1rem;
}

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

.section {
  padding: 72px 0;
}

.section--grey {
  background: var(--grey-bg);
}

.section__head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}

.section__head--wide {
  max-width: 960px;
}

.section__head p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.eyebrow {
  display: inline-block;
  color: var(--orange);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 12px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
}

.btn--primary {
  background: var(--orange);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--orange-dark);
}

.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn--navy {
  background: var(--navy);
  color: var(--white);
}

.btn--navy:hover {
  background: var(--navy-dark);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--grey-line);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

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

.brand:hover {
  text-decoration: none;
}

.brand__mark {
  height: 44px;
  width: auto;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand__name {
  font-weight: 800;
  color: var(--navy);
  font-size: 1.25rem;
  letter-spacing: 0.01em;
}

.brand__tag {
  font-size: 0.68rem;
  color: var(--orange);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

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

.nav a {
  color: var(--navy);
  font-weight: 600;
  font-size: 0.98rem;
}

.nav a:hover {
  color: var(--orange);
  text-decoration: none;
}

.nav .btn {
  padding: 10px 20px;
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--navy);
  border-radius: 3px;
  margin: 5px 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
  overflow: hidden;
}

/* Slideshow background */
.hero__slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: heroFade 24s infinite;
}

.hero__slide:nth-child(1) { animation-delay: 0s; }
.hero__slide:nth-child(2) { animation-delay: 6s; }
.hero__slide:nth-child(3) { animation-delay: 12s; }
.hero__slide:nth-child(4) { animation-delay: 18s; }

@keyframes heroFade {
  0%   { opacity: 0; }
  3%   { opacity: 1; }
  25%  { opacity: 1; }
  28%  { opacity: 0; }
  100% { opacity: 0; }
}

/* Dark overlay so text stays readable over photos */
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    115deg,
    rgba(15, 26, 58, 0.92) 0%,
    rgba(22, 36, 78, 0.82) 45%,
    rgba(22, 36, 78, 0.55) 100%
  );
}

.hero .container {
  position: relative;
  z-index: 1;
  padding-top: 96px;
  padding-bottom: 96px;
  max-width: 820px;
}

@media (prefers-reduced-motion: reduce) {
  .hero__slide {
    animation: none;
  }
  .hero__slide:nth-child(1) {
    opacity: 1;
  }
}

.hero h1 {
  color: var(--white);
}

.hero p {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 620px;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 28px;
}

.hero__pillars {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 40px;
}

.pillar {
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  padding: 8px 18px;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

.pillar span {
  color: var(--orange);
}

/* ---------- Services ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.card {
  background: var(--white);
  border: 1px solid var(--grey-line);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card__icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(241, 90, 36, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.card__icon svg {
  width: 26px;
  height: 26px;
  stroke: var(--orange);
}

.card h3 {
  font-size: 1.2rem;
}

.card p {
  color: var(--text-muted);
  margin: 0;
  font-size: 0.97rem;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.gallery-item {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--grey-line);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
}

.gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* ---------- Split / About ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
}

.checklist li {
  position: relative;
  padding-left: 34px;
  margin-bottom: 14px;
  color: var(--text);
  font-weight: 500;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--orange);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.about-panel {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  padding: 40px;
}

.about-panel h3 {
  color: var(--white);
}

.about-panel p {
  color: rgba(255, 255, 255, 0.82);
}

/* ---------- Accreditations ---------- */
.accred {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

.accred__item {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 700;
  color: var(--navy);
}


.accred__logo {
  height: 80px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
}

.accred__item small {
  display: block;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.8rem;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--orange);
  color: var(--white);
  text-align: center;
}

.cta-band h2 {
  color: var(--white);
}

.cta-band p {
  color: rgba(255, 255, 255, 0.9);
  max-width: 560px;
  margin: 0 auto 26px;
}

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.info-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.info-list li {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--grey-line);
}

.info-list li:last-child {
  border-bottom: 0;
}

.info-icon {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
}

.info-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--white);
}

.info-text strong {
  display: block;
  color: var(--navy);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.info-text a,
.info-text span {
  color: var(--text);
  font-size: 1.05rem;
}

/* ---------- Form ---------- */
.form-card {
  background: var(--white);
  border: 1px solid var(--grey-line);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
}

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--navy);
  font-size: 0.95rem;
}

.field input,
.field textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--grey-line);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(241, 90, 36, 0.15);
}

.field textarea {
  resize: vertical;
  min-height: 140px;
}

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


.form-note {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 12px 0 0;
}

.form-status {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 8px;
  font-weight: 600;
  display: none;
}

.form-status.is-success {
  display: block;
  background: #e7f6ec;
  color: #1c7a3d;
}

.form-status.is-error {
  display: block;
  background: #fde8e3;
  color: #c0341a;
}

/* honeypot */
.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
}

.map-embed {
  margin-top: 32px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--grey-line);
}

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

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.78);
  padding: 56px 0 24px;
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.site-footer h4 {
  color: var(--white);
  font-size: 1rem;
  margin: 0 0 16px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.78);
}

.site-footer a:hover {
  color: var(--orange);
  text-decoration: none;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

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

.footer-strap {
  color: var(--orange);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-top: 14px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .split,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

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

  .nav {
    position: fixed;
    inset: 76px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--grey-line);
    box-shadow: var(--shadow);
    padding: 8px 24px 20px;
    transform: translateY(-120%);
    transition: transform 0.28s ease;
  }

  .nav.is-open {
    transform: translateY(0);
  }

  .nav a {
    padding: 14px 0;
    border-bottom: 1px solid var(--grey-line);
  }

  .nav .btn {
    margin-top: 14px;
    justify-content: center;
  }

  .nav-toggle {
    display: block;
  }

  .nav-toggle.is-active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .nav-toggle.is-active span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle.is-active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}

@media (max-width: 560px) {
  .section {
    padding: 52px 0;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .form-card {
    padding: 24px;
  }
}
