/* =========================================================
   Ubuntu Scaffolding — site styles
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  --green: #8CC63F;
  --green-dark: #7ab32f;
  --red: #E31E24;
  --ink: #333333;
  --ink-soft: #4a4a4a;
  --muted: #7a7a7a;
  --line: #ececec;
  --grey-bg: #f6f7f5;
  --dark: #29312c;
  --dark-band: #3b3b3b;
  --footer: #232323;

  --container: 1280px;
  --gutter: 24px;
  --radius: 6px;
  --shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

/* ---------- Reset / base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  padding: 0;
  background: #ffffff;
  color: var(--ink);
  font-family: 'Poppins', 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a {
  color: var(--green);
  text-decoration: none;
  transition: color .2s ease, background-color .2s ease, border-color .2s ease;
}
a:hover { color: var(--green-dark); }

h1, h2, h3 { margin: 0; }
p { margin: 0; }

:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 2px;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  padding: 13px 24px;
  line-height: 1;
  white-space: nowrap;
}
.btn .arrow { font-size: 16px; line-height: 1; }
.btn-icon { width: 22px; height: 22px; }

.btn-primary {
  background: var(--green);
  color: #ffffff;
}
.btn-primary:hover {
  background: var(--green-dark);
  color: #ffffff;
}

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, .55);
  color: #ffffff;
  font-weight: 500;
  padding: 12px 22px;
}
.btn-ghost:hover {
  border-color: #ffffff;
  background: rgba(255, 255, 255, .08);
  color: #ffffff;
}

/* ---------- Header ---------- */
.site-header {
  background: #ffffff;
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 16px;
  padding-bottom: 14px;
}

.brand { display: block; }
.brand-row { display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 250px;  }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-size: 29px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #3d3d3d;
  line-height: 1;
}
.brand-sub {
  font-size: 21px;
  font-weight: 500;
  letter-spacing: 2.5px;
  color: #6b6b6b;
  line-height: 1.15;
}
.brand-rule {
  display: block;
  width: 244px;
  max-width: 100%;
  height: 7px;
  background: var(--red);
  margin-top: 5px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 34px;
}
.nav-link {
  font-size: 15px;
  font-weight: 400;
  color: var(--ink-soft);
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
}
.nav-link:hover { color: var(--green); }
.nav-link.is-active {
  color: var(--green);
  font-weight: 500;
  border-bottom-color: var(--green);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #ffffff;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: var(--ink);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--dark);
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: 520px;
  padding: 90px 0 110px;
}

.hero-media {
  position: absolute;
  inset: 0 0 0 45%;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--dark) 0%, rgba(41, 49, 44, 0) 40%);
}

.hero-inner { position: relative; z-index: 2; }
.hero-copy { max-width: 620px; }

.hero-copy h1 {
  font-size: clamp(30px, 3.4vw, 46px);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.18;
  letter-spacing: .2px;
}
.hero-copy p {
  margin-top: 20px;
  font-size: 17px;
  color: #d9ddd8;
  line-height: 1.6;
  max-width: 520px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 30px;
}

/* ---------- Feature strip ---------- */
.features {
  position: relative;
  z-index: 3;
  margin-top: -52px;
}
.feature-strip {
  background: #ffffff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 26px 0;
}
.feature {
  display: flex;
  gap: 14px;
  padding: 0 26px;
  border-right: 1px solid #e6e6e6;
}
.feature:last-child { border-right: 0; }
.feature img {
  width: 40px;
  height: 44px;
  object-fit: contain;
  flex-shrink: 0;
}
.feature > div {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.feature-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}
.feature-text {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

/* ---------- Section headings ---------- */
.section-head {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2.5px;
  color: var(--green);
}
.eyebrow-rule {
  display: block;
  width: 34px;
  height: 2px;
  background: var(--green);
  margin-top: 8px;
}
.section-head h2 {
  margin-top: 16px;
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 600;
  color: var(--ink);
  max-width: 780px;
  line-height: 1.35;
}

/* ---------- Services ---------- */
.services {
  position: relative;
  z-index: 1;
  background: var(--grey-bg);
  margin-top: -60px;
  padding: 130px 0 64px;
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 38px;
}
.service-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 22px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform .2s ease, box-shadow .2s ease;
}
.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.service-card img {
  height: 88px;
  object-fit: contain;
}
.service-card h3 {
  margin-top: 18px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
}
.service-card p {
  margin-top: 12px;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.6;
}

/* ---------- About ---------- */
.about {
  position: relative;
  background: #ffffff;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  overflow: hidden;
}
.about-watermark {
  position: absolute;
  left: 0;
  top: 50px;
  width: 100px;
  opacity: .9;
  pointer-events: none;
}
.about-copy {
  position: relative;
  z-index: 2;
  padding: 60px 60px 60px max(120px, calc((100vw - var(--container)) / 2 + 100px));
}
.about-copy h2 {
  margin-top: 14px;
  font-size: clamp(21px, 2vw, 28px);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
}
.about-copy p {
  margin-top: 16px;
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.8;
  max-width: 620px;
  text-wrap: pretty;
}
.about-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Why choose us ---------- */
.why {
  background: var(--grey-bg);
  padding: 56px 0 64px;
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  margin-top: 38px;
  background-color: white;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .06);
}
.why-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  padding: 8px 12px;
  border-right: 1px solid #e2e2e2;
}
.why-item:last-child { border-right: 0; }
.why-item img {
  width: 60px;
  height: 64px;
  object-fit: contain;
}
.why-item span {
  font-size: 13.5px;
  font-weight: 500;
  color: #444444;
  line-height: 1.45;
}

/* Safety banner */
.safety-banner {
  display: flex;
  align-items: center;
  gap: 40px;
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .06);
  border-left: 5px solid var(--green);
  margin-top: 46px;
  padding: 30px 40px;
}
.safety-banner img {
  width: 60px;
  height: 62px;
  object-fit: contain;
  flex-shrink: 0;
  margin-left: 12px;
}
.safety-banner h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
}
.safety-banner p {
  margin-top: 8px;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.7;
  text-wrap: pretty;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--dark-band);
  overflow: hidden;
}
.cta-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-top: 28px;
  padding-bottom: 28px;
}
.cta-logo {
  width: 86px;
  height: auto;
  object-fit: contain;
  flex-shrink: 0;
  align-self: stretch;
  margin: -28px 0;
}
.cta-heading {
  font-size: clamp(18px, 1.8vw, 23px);
  font-weight: 600;
  color: #ffffff;
  line-height: 1.4;
  flex: 1;
}
.cta-contacts {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 34px;
}
.cta-contact {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cta-contact img { width: 24px; height: 24px; }
.cta-contact > span {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.cta-value {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
}
.cta-label {
  font-size: 11.5px;
  color: #b5b5b5;
}
.cta-contact:hover .cta-value { color: var(--green); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--footer);
  padding: 42px 0 36px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1.3fr 1.3fr;
  gap: 34px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-brand img { width: 46px; height: 46px; }
.footer-brand span {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 3px;
  color: #cfcfcf;
}
.footer-blurb {
  font-size: 13px;
  color: #9a9a9a;
  line-height: 1.7;
  align-self: center;
  text-wrap: pretty;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.footer-heading {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 4px;
}
.footer-col a {
  font-size: 12.5px;
  color: #9a9a9a;
}
.footer-col a:hover { color: var(--green); }

/* ---------- Bottom bar ---------- */
.bottom-bar { background: var(--red); }
.bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 10px;
  padding-bottom: 10px;
}
.bottom-inner span {
  font-size: 11.5px;
  color: #ffffff;
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1100px) {
  .about-copy { padding: 50px 40px; }
  .why-grid { grid-template-columns: repeat(3, 1fr); row-gap: 30px; }
  .why-item:nth-child(3n) { border-right: 0; }
  .cta-inner { flex-wrap: wrap; }
  .cta-heading { flex: 1 1 100%; }
}

@media (max-width: 960px) {
  .nav-toggle { display: flex; }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: #ffffff;
    border-top: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 10px 24px 20px;
  }
  .main-nav.is-open { display: flex; }
  .header-inner { position: relative; }
  .nav-link {
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }
  .nav-link.is-active { border-bottom-color: var(--line); }
  .main-nav .btn { margin-top: 14px; }

  .hero {
    min-height: 0;
    padding: 70px 0 100px;
  }
  .hero-media { inset: 0; }
  .hero-fade {
    background: linear-gradient(90deg, var(--dark) 0%, rgba(41, 49, 44, .82) 55%, rgba(41, 49, 44, .7) 100%);
  }
  .hero-copy { max-width: 100%; }

  .feature-strip { grid-template-columns: repeat(2, 1fr); row-gap: 26px; }
  .feature:nth-child(2n) { border-right: 0; }
  .feature:nth-child(-n+2) { padding-bottom: 26px; border-bottom: 1px solid #e6e6e6; }

  .service-grid { grid-template-columns: repeat(2, 1fr); }

  .about { grid-template-columns: 1fr; }
  .about-media { order: -1; }
  .about-media img { height: auto; max-height: 380px; }
  .about-copy { padding: 40px 24px 50px; }
  .about-watermark { display: none; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  :root { --gutter: 18px; }

  .brand-mark { width: 200px; }
  .brand-name { font-size: 24px; }
  .brand-sub { font-size: 17px; letter-spacing: 2px; }
  .brand-rule { width: 200px; height: 6px; }

  .hero { padding: 54px 0 90px; }
  .hero-actions .btn { width: 100%; justify-content: center; }

  .feature-strip { grid-template-columns: 1fr; padding: 22px 0; }
  .feature {
    border-right: 0;
    padding: 18px 22px;
    border-bottom: 1px solid #e6e6e6;
  }
  .feature:last-child { border-bottom: 0; padding-bottom: 0; }
  .feature:nth-child(-n+2) { padding-bottom: 18px; }

  .services { padding: 120px 0 48px; }
  .service-grid { grid-template-columns: 1fr; }

  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .why-item { border-right: 0; }
  .why-item:nth-child(3n) { border-right: 0; }

  .safety-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 24px 22px;
  }
  .safety-banner img { margin-left: 0; }

  .cta-logo { display: none; }
  .cta-contacts { gap: 22px; }
  .cta-contacts .btn { width: 100%; justify-content: center; }

  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .bottom-inner { justify-content: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}