/* ================================
   GLOBAL STYLES – ProComply 360
   ================================ */

:root {
  --primary: #14b8a6;
  --primary-soft: rgba(20,184,166,.1);
  --text: #0f172a;
  --muted: #64748b;
  --bg: #f8fafc;
  --card: #ffffff;
  --radius-lg: 1.4rem;
}

* {
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}

/* Default container width */
.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 1.4rem;
}

/* Narrower layout on some pages */
.home .container,
.services-page .container,
.about-page .container {
  max-width: 1120px;
}

/* ================================
   LINK COLORS – Override browser blue
   ================================ */
a {
  color: var(--primary);
  text-decoration: none;
}
a:hover {
  color: #0f766e;
  text-decoration: underline;
}

/* ================================
   TOP DARK BAR
   ================================ */
.topbar {
  background: #0f172a;
  color: #e2e8f0;
  font-size: 0.75rem;
  width: 100%;
  z-index: 60;
  padding: 0.4rem 0;
}
.topbar-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.topbar a {
  color: #fff;
  font-weight: 500;
}

/* ================================
   HEADER / NAV – Taller + IOSH badge
   ================================ */
.site-header {
  position: relative;
  background: #fff;
  width: 100%;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  z-index: 50;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 90px;
  gap: 1rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}
.logo-img {
  height: 58px;
  object-fit: contain;
}
.nav-links {
  display: flex;
  gap: 1.3rem;
  align-items: center;
}
.nav-links a {
  font-size: 0.88rem;
  opacity: 0.75;
  font-weight: 500;
  transition: 0.15s;
}
.nav-links a:hover,
.nav-links a.active {
  opacity: 1;
  color: var(--primary);
}
.btn-primary-sm {
  background: var(--primary);
  color: #fff;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.8rem;
}
.badge-iosh {
  height: 42px;
  object-fit: contain;
  margin-left: 0.8rem;
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
}

/* ================================
   PAGE HERO / BREADCRUMB
   ================================ */
.page-hero {
  background: #ffffff;
  border-bottom: 1px solid rgba(15,23,42,.05);
  padding: 1.6rem 0 1.4rem;
  margin-bottom: 1.8rem;
}
.page-hero .crumbs {
  font-size: 0.7rem;
  color: #94a3b8;
  margin-bottom: 0.4rem;
}
.page-hero .crumbs a {
  color: #0f766e;
  text-decoration: none;
}
.page-hero h1 {
  margin: 0;
  font-size: 1.9rem;
}
.page-hero .sub {
  margin-top: 0.3rem;
  color: #64748b;
  max-width: 34rem;
  font-size: 0.8rem;
}

/* ================================
   HERO (Home Page)
   ================================ */
.hero {
  padding: 2.3rem 0 3rem;
  min-height: calc(90vh - 100px);
  display: flex;
  align-items: center;
}
.hero-split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}
.hero-tag {
  background: rgba(20, 184, 166, 0.12);
  border: 1px solid rgba(20, 184, 166, 0.25);
  color: #0f766e;
  display: inline-flex;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
h1 {
  font-size: clamp(2.5rem, 5vw, 3.15rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}
.hero p {
  color: var(--muted);
  line-height: 1.6;
  font-size: 1rem;
  max-width: 36rem;
}
.hero-actions {
  display: flex;
  gap: 0.8rem;
  margin-top: 1.3rem;
  align-items: center;
  flex-wrap: wrap;
}
.btn-primary {
  background: linear-gradient(120deg, #14b8a6 0%, #0f766e 100%);
  color: white;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.85rem;
}
.hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-weight: 500;
  font-size: 0.8rem;
  color: #0f172a;
}
.hero-img {
  min-height: 360px;
  border-radius: 1.6rem;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(15,23,42,.05);
  box-shadow: 0 30px 80px rgba(15,23,42,.12);
}
.hero-img.hospitality {
  background: linear-gradient(150deg, rgba(20, 184, 166, 0.09) 0%, rgba(15, 23, 42, 0) 60%), url("https://images.unsplash.com/photo-1571896349842-33c89424de2d?auto=format&fit=crop&w=1400&q=60") center/cover no-repeat;
}
.hero-card {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  background: rgba(248, 250, 252, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 1.1rem;
  padding: 0.8rem;
  min-width: 180px;
  border: 1px solid rgba(255,255,255,0.5);
  display: grid;
  gap: 0.4rem;
}
.hero-card-title { font-weight: 600; font-size: 0.75rem; }
.hero-card-metric { font-weight: 600; font-size: 0.7rem; color: #0f766e; }

/* ================================
   SECTIONS
   ================================ */
.section {
  padding: 3rem 0;
}
.section-title-wrap {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.section-title h2 {
  margin-bottom: 0.4rem;
}
.section-title p {
  color: var(--muted);
  max-width: 29rem;
}

/* ================================
   CORE SOLUTIONS GRID
   ================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
  gap: 1.3rem;
}
.service-card-img {
  background: #fff;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(148,163,184,.12);
  display: flex;
  flex-direction: column;
  min-height: 270px;
  box-shadow: 0 14px 50px rgba(15,23,42,.02);
}
.service-img {
  height: 150px;
  background-size: cover;
  background-position: center;
}
.service-body {
  padding: 1rem;
  display: grid;
  gap: 0.4rem;
}
.service-body p {
  color: #64748b;
  font-size: 0.78rem;
}

/* ================================
   WHY / CARDS
   ================================ */
.two-col {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 2.2rem;
  align-items: flex-start;
}
.card {
  background: #fff;
  border-radius: 1.2rem;
  border: 1px solid rgba(148,163,184,.12);
  padding: 1.3rem 1.35rem;
}
.list-check {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}
.list-check li {
  position: relative;
  padding-left: 1.3rem;
  margin-bottom: .4rem;
  font-size: .83rem;
}
.list-check li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #14b8a6;
  font-weight: 700;
}

/* ================================
   TRUSTED SUPPORT BLOCKS
   ================================ */
.bg-soft {
  background: #ecfeff;
}
.trusted-wrap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
  margin-top: 1.7rem;
}
.trusted-card {
  background: #fff;
  border-radius: 1rem;
  padding: 1rem 1rem 0.9rem;
  border: 1px solid rgba(148,163,184,.12);
  text-align: left;
}
.trusted-card h3 {
  margin: 0 0 0.35rem;
  font-size: 0.9rem;
}
.trusted-card p {
  margin: 0;
  font-size: 0.75rem;
  color: #64748b;
}
.trusted-line {
  text-align: center;
  margin-top: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow-x: auto;
}
.trusted-subline {
  white-space: nowrap;
}
@media (max-width: 550px) {
  .trusted-subline {
    white-space: normal;
  }
}

/* ================================
   SERVICES PAGE BLOCKS
   ================================ */
.services-page .section {
  padding-top: 2.4rem;
}
.service-block {
  margin-bottom: 1.2rem;
}
.service-block-img {
  display: grid;
  grid-template-columns: 0.55fr 1.45fr;
  gap: 1.1rem;
  align-items: stretch;
}
.service-block-pic {
  border-radius: 1rem;
  background-size: cover;
  background-position: center;
  min-height: 200px;
  border: 1px solid rgba(148,163,184,.12);
}
.service-block-body {
  background: #fff;
  border-radius: 1rem;
  padding: 1.1rem 1.2rem 1rem;
}
.service-block-body h2 {
  margin-top: 0;
  font-size: 1.05rem;
}
.service-block-body ul {
  margin-top: 0.4rem;
  padding-left: 1.2rem;
  color: #475569;
  font-size: 0.8rem;
}
.cta-panel {
  background: linear-gradient(120deg, #0f172a 0%, #0f766e 100%);
  border-radius: 1.1rem;
  padding: 1.5rem 1.4rem;
  color: #fff;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

/* ================================
   ABOUT PAGE
   ================================ */
.about-page .section {
  padding-top: 2.4rem;
}
.about-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
  align-items: start;
}
.about-media {
  min-height: 310px;
  border-radius: 1.2rem;
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(148,163,184,.15);
  /* subtle shadow so it pops, also on mobile */
  box-shadow: 0 18px 40px rgba(15,23,42,.12);
}
.about-content p {
  color: #475569;
  line-height: 1.6;
}

/* ================================
   CONTACT PAGE
   ================================ */
.contact-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.7fr;
  gap: 2rem;
}
.contact-panel {
  background: #fff;
  border-radius: 1.1rem;
  padding: 1.2rem 1.2rem;
  border: 1px solid rgba(148,163,184,.12);
}
.contact-form {
  display: grid;
  gap: 0.6rem;
}
label {
  font-size: 0.7rem;
  font-weight: 500;
}
input,
textarea {
  border-radius: 0.7rem;
  border: 1px solid rgba(148,163,184,.6);
  padding: 0.5rem 0.6rem;
  font-family: inherit;
  font-size: 0.8rem;
  background: #fff;
}
textarea { resize: vertical; }

/* ================================
   FOOTER
   ================================ */
.site-footer {
  padding: 2rem 0 2.8rem;
  text-align: center;
  font-size: 0.7rem;
  color: #94a3b8;
  margin-top: 3rem;
}
.footer-flex {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ================================
   RESPONSIVE / MOBILE NAVIGATION
   ================================ */
@media (max-width: 950px) {
  .hero-split,
  .two-col,
  .about-layout,
  .contact-layout,
  .service-block-img,
  .trusted-wrap {
    grid-template-columns: 1fr;
  }

  /* mobile nav dropdown */
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    right: 1.4rem;
    background: #ffffff;
    border: 1px solid rgba(15,23,42,.06);
    border-radius: 0.9rem;
    box-shadow: 0 18px 35px rgba(15,23,42,.12);
    padding: 0.6rem 0.5rem;
    flex-direction: column;
    gap: 0.3rem;
    min-width: 180px;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 0.4rem 0.6rem;
    border-radius: 0.5rem;
  }

  .nav-toggle {
    display: block;
  }

  .badge-iosh {
    display: none;
  }

  .trusted-line {
    white-space: normal;
  }
}

/* ================================
   EXTRA MOBILE POLISH (all pages)
   ================================ */
@media (max-width: 650px) {
  /* a bit more breathing room on small screens */
  .container {
    padding: 0 1.2rem;
  }

  /* about page grid gets extra padding so it doesn’t touch edges */
  .about-page .about-layout {
    padding: 0 0.3rem;
  }

  .about-content {
    padding: 0.4rem 0.1rem 0;
  }
}
