:root {
  --accent: #ab191e;
  --accent-dark: #7f1317;
  --ink: #122033;
  --ink-soft: #4b5a6e;
  --steel-1: #56657a;
  --steel-2: #46586f;
  --line: rgba(18, 32, 51, 0.14);
  --page: #dfe4eb;
  --panel: #ffffff;
  --panel-soft: #f3f6fa;
  --white: #ffffff;
  --radius: 12px;
  --shadow: 0 16px 36px rgba(8, 16, 30, 0.13);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Source Sans 3", sans-serif;
  color: var(--ink);
  background: var(--page);
  line-height: 1.55;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  letter-spacing: 0.01em;
}

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

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

.wrap {
  width: min(1120px, 94vw);
  margin: 0 auto;
}

.top-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 15, 27, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.top-nav.scrolled {
  background: rgba(8, 15, 27, 0.98);
}

.nav-wrap {
  min-height: 74px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 20px;
  align-items: center;
}

.brand img {
  height: 40px;
  width: auto;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.86rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.62rem 1.14rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: transform 0.2s ease;
}

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

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #ce2d31);
  box-shadow: 0 8px 18px rgba(171, 25, 30, 0.32);
}

.btn-outline {
  color: var(--ink);
  border-color: rgba(18, 32, 51, 0.35);
  background: transparent;
}

.landing-canvas {
  background: var(--panel-soft);
}

.hero-block {
  position: relative;
  min-height: clamp(390px, 72vh, 620px);
  display: grid;
  align-items: end;
  border-bottom: 4px solid #3d4f66;
}

.hero-image {
  position: absolute;
  inset: 0;
  background: url("../img/hero-safextra.jpg") center center / cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(9, 17, 30, 0.12) 0%, rgba(8, 15, 28, 0.7) 68%, rgba(8, 15, 28, 0.88) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-bottom: clamp(28px, 5vw, 58px);
  color: var(--white);
}

.hero-content h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 0.95;
  text-transform: uppercase;
}

.hero-content p {
  margin: 10px 0 0;
  font-size: clamp(1.05rem, 1.9vw, 1.45rem);
  color: rgba(255, 255, 255, 0.94);
}

.section-strip {
  padding: 28px 0 34px;
}

.section-strip h2,
.section-title,
.contact-wrap h2 {
  position: relative;
  text-align: center;
  text-transform: uppercase;
  font-size: clamp(1.15rem, 2.1vw, 1.95rem);
  letter-spacing: 0.03em;
}

.section-strip h2::before,
.section-strip h2::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 26%;
  border-top: 1px solid currentColor;
  opacity: 0.24;
}

.section-strip h2::before {
  left: 0;
}

.section-strip h2::after {
  right: 0;
}

.expertise-strip {
  background: var(--steel-1);
  color: var(--white);
}

.expertise-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.expertise-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.expertise-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.expertise-card h3 {
  padding: 10px 10px 12px;
  text-align: center;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.96);
}

.why-strip {
  background: #f8fafc;
}

.why-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.why-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 12px;
  background: #fff;
  text-align: center;
}

.why-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #203147;
  background: #edf2f8;
  font-size: 1.05rem;
}

.why-grid h3 {
  margin-top: 8px;
  font-size: 1.02rem;
  text-transform: uppercase;
}

.why-grid p {
  margin: 5px 0 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.snapshots-strip {
  background: var(--steel-2);
  color: var(--white);
}

.snap-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.snap-grid img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.cert-strip {
  background: #f8fafc;
}

.logo-wall {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.logo-tile {
  min-height: 76px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-tile img {
  width: 100%;
  max-width: 126px;
  max-height: 52px;
  object-fit: contain;
}

.products-detail {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 10% 10%, rgba(171, 25, 30, 0.08), transparent 36%),
    radial-gradient(circle at 88% 88%, rgba(23, 47, 74, 0.12), transparent 33%),
    linear-gradient(180deg, #e8edf4 0%, #dde5ee 100%);
  padding: 54px 0 62px;
}

.products-detail::before,
.products-detail::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.products-detail::before {
  width: 360px;
  height: 360px;
  right: -120px;
  top: -140px;
  background: rgba(24, 45, 67, 0.08);
}

.products-detail::after {
  width: 420px;
  height: 420px;
  left: -220px;
  bottom: -230px;
  background: rgba(171, 25, 30, 0.08);
}

.product-intro {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 860px;
  margin: 0 auto 14px;
}

.section-title {
  color: #102641;
  margin-bottom: 8px;
  font-size: clamp(1.55rem, 2.9vw, 2.5rem);
  letter-spacing: 0.05em;
}

.product-intro p {
  margin: 0;
  color: #465c73;
  font-size: 1.05rem;
}

.product-row {
  position: relative;
  z-index: 1;
  margin-top: 22px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(18, 38, 65, 0.12);
  background: linear-gradient(135deg, #fbfcfe 0%, #f3f7fc 64%, #edf3f9 100%);
  box-shadow: 0 22px 46px rgba(9, 20, 36, 0.13);
  backdrop-filter: blur(2px);
}

.product-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 18px;
}

.product-row:nth-child(even) .product-media {
  order: 2;
}

.product-row:nth-child(even) .product-content {
  order: 1;
}

.product-media {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 13px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: linear-gradient(145deg, #13243a 0%, #1c334e 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.product-media img {
  width: 100%;
  height: 228px;
  object-fit: contain;
  background: #fff;
  border-radius: 12px;
  border: 1px solid rgba(15, 33, 54, 0.08);
  box-shadow: 0 12px 30px rgba(4, 11, 22, 0.18);
  padding: 12px;
}

.product-media.single img {
  height: 468px;
}

.btn-product-enquire {
  width: 100%;
  margin-top: 4px;
}

.product-content {
  background: #fff;
  border: 1px solid rgba(16, 38, 65, 0.1);
  border-radius: 16px;
  padding: 20px 22px;
  box-shadow: 0 14px 34px rgba(8, 18, 31, 0.1);
}

.product-content h3 {
  position: relative;
  padding-left: 0;
  min-height: 0;
  display: block;
  color: #102744;
  font-size: clamp(1.2rem, 1.8vw, 1.58rem);
  text-transform: uppercase;
  line-height: 1.2;
}

.product-content > p {
  margin: 10px 0 0;
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(16, 38, 65, 0.15);
  background: #f3f7fc;
  color: #465d74;
  font-size: 0.92rem;
  font-weight: 600;
}

.product-content h4 {
  margin-top: 15px;
  padding-left: 12px;
  border-left: 4px solid var(--accent);
  font-size: 0.97rem;
  color: #a3181d;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.icon-list {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.icon-list li {
  position: relative;
  padding-left: 25px;
  color: #22384f;
  font-size: 0.93rem;
  line-height: 1.5;
}

.icon-list li::before {
  content: "\2714";
  position: absolute;
  left: 0;
  top: 2px;
  width: 15px;
  height: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 0.58rem;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #cf3438);
}

.contact-strip {
  background: #f8fafc;
  border-top: 1px solid rgba(18, 32, 51, 0.08);
}

.contact-wrap {
  text-align: center;
}

.contact-wrap p {
  margin: 10px auto 0;
  max-width: 740px;
  color: var(--ink-soft);
  font-size: 1rem;
}

.contact-links {
  margin-top: 14px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.contact-links a {
  color: #1f334b;
  font-weight: 700;
  border-bottom: 1px solid rgba(31, 51, 75, 0.35);
}

.contact-actions {
  margin-top: 14px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.site-footer {
  background: #0b1625;
  color: rgba(255, 255, 255, 0.8);
}

.footer-wrap {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.footer-wrap img {
  height: 28px;
  width: auto;
}

.safextra-social-link {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.92);
  transition: background 0.25s ease, transform 0.25s ease;
}

.safextra-socials {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.safextra-social-link:hover {
  background: #ab191e;
  transform: translateY(-1px);
}

.safextra-social-link svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.footer-wrap p {
  margin: 0;
  font-size: 0.84rem;
}

.enquiry-main {
  background:
    radial-gradient(circle at 8% 12%, rgba(171, 25, 30, 0.08), transparent 30%),
    radial-gradient(circle at 90% 80%, rgba(23, 47, 74, 0.11), transparent 30%),
    #e9eef5;
  min-height: calc(100vh - 142px);
}

.enquiry-hero {
  padding: 52px 0 24px;
}

.enquiry-hero h1 {
  font-size: clamp(1.7rem, 4vw, 2.8rem);
  color: #102744;
  text-transform: uppercase;
}

.enquiry-hero p {
  margin: 10px 0 0;
  max-width: 760px;
  color: #445a71;
  font-size: 1.05rem;
}

.enquiry-section {
  padding: 10px 0 56px;
}

.enquiry-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  gap: 18px;
}

.enquiry-card {
  background: #fff;
  border: 1px solid rgba(16, 38, 65, 0.12);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 16px 34px rgba(9, 20, 36, 0.12);
}

.enquiry-card h2 {
  color: #102744;
  font-size: clamp(1.25rem, 2.3vw, 1.8rem);
  text-transform: uppercase;
}

.enquiry-lead {
  margin: 8px 0 0;
  color: #4c5e74;
}

.enquiry-form {
  margin-top: 14px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.enquiry-form label {
  display: grid;
  gap: 6px;
}

.enquiry-form label span {
  color: #1b334e;
  font-weight: 700;
  font-size: 0.9rem;
}

.enquiry-form input,
.enquiry-form select,
.enquiry-form textarea {
  width: 100%;
  border: 1px solid rgba(16, 38, 65, 0.2);
  border-radius: 10px;
  padding: 0.72rem 0.84rem;
  font: inherit;
  color: #132b45;
  background: #f9fbfe;
}

.enquiry-form input:focus,
.enquiry-form select:focus,
.enquiry-form textarea:focus {
  outline: none;
  border-color: rgba(171, 25, 30, 0.55);
  box-shadow: 0 0 0 3px rgba(171, 25, 30, 0.13);
}

.enquiry-form .full {
  margin-top: 12px;
}

.enquiry-actions {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.enquiry-status {
  margin: 10px 0 0;
  min-height: 20px;
  color: #314a64;
  font-weight: 600;
}

.enquiry-status.success {
  color: #1f7a3e;
}

.enquiry-status.error {
  color: #ab191e;
}

.enquiry-side {
  align-self: start;
  background: linear-gradient(145deg, #13253b 0%, #1d3652 100%);
  color: rgba(255, 255, 255, 0.94);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 16px 34px rgba(8, 18, 31, 0.24);
}

.enquiry-side h3 {
  text-transform: uppercase;
  font-size: 1rem;
  letter-spacing: 0.04em;
}

.enquiry-side a {
  margin-top: 10px;
  display: block;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
}

.enquiry-side hr {
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  margin: 16px 0;
}

.enquiry-side ul {
  margin: 10px 0 0;
  padding-left: 18px;
}

.enquiry-side li {
  margin-top: 6px;
}

.reveal-up {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.reveal-up.visible {
  opacity: 1;
  transform: none;
}

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

  .product-row:nth-child(even) .product-media,
  .product-row:nth-child(even) .product-content {
    order: initial;
  }

  .enquiry-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .expertise-grid,
  .why-grid,
  .snap-grid {
    grid-template-columns: 1fr;
  }

  .section-strip h2::before,
  .section-strip h2::after {
    display: none;
  }

  .logo-wall {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-media img {
    height: 240px;
  }

  .product-media.single img {
    height: 360px;
  }

  .product-content h3 {
    padding-left: 0;
    min-height: 0;
    font-size: 1.2rem;
  }

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

@media (max-width: 740px) {
  .nav-wrap {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 10px 0 12px;
    justify-items: start;
  }

  .nav-links {
    gap: 12px;
  }

  .footer-wrap {
    min-height: auto;
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 0;
  }

  .hero-content h1 {
    font-size: clamp(1.65rem, 9vw, 2.45rem);
  }
}

@media (max-width: 520px) {
  .logo-wall {
    grid-template-columns: 1fr;
  }

  .contact-links {
    flex-direction: column;
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal-up,
  .btn {
    transition: none;
  }

  .reveal-up {
    opacity: 1;
    transform: none;
  }
}
