/* ==========================================================================
   Emygreen Engineering Limited — site stylesheet
   ========================================================================== */

:root {
  --green-900: #08351d;
  --green-800: #0a4a29;
  --green: #0f5c32;
  --green-light: #17824a;
  --red: #e2141c;
  --red-dark: #b80e15;
  --ink: #16181a;
  --gray-900: #23262a;
  --gray-700: #52585f;
  --gray-500: #7a8188;
  --gray-300: #d9dedb;
  --gray-200: #e9ece9;
  --gray-100: #f4f6f4;
  --bg: #ffffff;
  --bg-alt: #f4f7f5;
  --radius: 10px;
  --shadow: 0 10px 30px -12px rgba(8, 53, 29, 0.25);
  --shadow-sm: 0 2px 10px rgba(8, 53, 29, 0.08);
  --container: 1180px;
  --font-head: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Barlow", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

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

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

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--ink);
}

p {
  margin: 0 0 1em;
}

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

.section {
  padding: 88px 0;
}

.section--tight {
  padding: 56px 0;
}

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

.section--dark {
  background: var(--green-900);
  color: #fff;
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark p {
  color: #fff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 14px;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 3px;
  background: var(--red);
  display: inline-block;
}

.section--dark .eyebrow {
  color: #ff5a60;
}

.section-head {
  max-width: 680px;
  margin-bottom: 44px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.lede {
  font-size: 18px;
  color: var(--gray-700);
}

.section--dark .lede {
  color: #d7e6dc;
}

/* -------------------- Buttons -------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 4px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

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

.btn--primary {
  background: var(--red);
  color: #fff;
}

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

.btn--outline {
  border-color: currentColor;
  color: var(--ink);
}

.btn--outline:hover {
  background: var(--ink);
  color: #fff;
}

.btn--light {
  border-color: #fff;
  color: #fff;
}

.btn--light:hover {
  background: #fff;
  color: var(--green-900);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 8px;
}

/* -------------------- Header -------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--gray-200);
  backdrop-filter: saturate(180%) blur(6px);
}

.topbar {
  background: var(--green-900);
  color: #eef4f0;
  font-size: 13px;
}

.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 8px;
  padding-bottom: 8px;
  flex-wrap: wrap;
}

.topbar a {
  color: #eef4f0;
}

.topbar__contacts {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.topbar__contacts span,
.topbar__contacts a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

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

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

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 26px;
  height: 3px;
  background: var(--ink);
  border-radius: 2px;
}

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

.nav-menu a {
  display: inline-block;
  padding: 10px 16px;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gray-900);
  border-radius: 4px;
  transition: color 0.15s ease, background 0.15s ease;
}

.nav-menu a:hover {
  color: var(--green);
}

.nav-menu a.active {
  color: var(--green);
  background: var(--gray-100);
}

.nav-menu .btn {
  margin-left: 10px;
}

/* -------------------- Hero -------------------- */

.hero {
  position: relative;
  background: linear-gradient(120deg, var(--green-900) 0%, var(--green-800) 55%, var(--green) 100%);
  color: #fff;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 55%, var(--red) 55.5%, var(--red) 58%, transparent 58.5%);
  opacity: 0.9;
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  padding-top: 84px;
  padding-bottom: 84px;
}

.hero h1 {
  font-size: clamp(32px, 4.4vw, 54px);
  color: #fff;
  margin-bottom: 20px;
}

.hero h1 em {
  font-style: normal;
  color: #ff8b90;
}

.hero p {
  color: #dcece2;
  font-size: 18px;
  max-width: 540px;
}

.hero-figure {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 6px solid rgba(255, 255, 255, 0.15);
}

.hero-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3.1;
}

.hero-stats {
  display: flex;
  gap: 28px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.hero-stats .stat b {
  display: block;
  font-family: var(--font-head);
  font-size: 30px;
  color: #fff;
}

.hero-stats .stat span {
  font-size: 13px;
  color: #bcd8c7;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* -------------------- Page header (interior pages) -------------------- */

.page-header {
  background: var(--green-900);
  color: #fff;
  padding: 64px 0 52px;
  position: relative;
}

.page-header::before {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 46%;
  background: linear-gradient(120deg, transparent 0%, var(--red) 0.6%, var(--red) 3%, transparent 3.6%);
  opacity: 0.85;
}

.page-header .container {
  position: relative;
}

.breadcrumb {
  font-size: 13px;
  color: #b9d4c4;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

.breadcrumb a {
  color: #fff;
}

.page-header h1 {
  color: #fff;
  font-size: clamp(28px, 4vw, 42px);
  margin-bottom: 10px;
}

.page-header p {
  color: #d7e6dc;
  max-width: 640px;
  margin-bottom: 0;
}

/* -------------------- Cards / grids -------------------- */

.grid {
  display: grid;
  gap: 28px;
}

.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  height: 100%;
}

.service-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.service-card .icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  flex: none;
}

.service-card .icon svg {
  width: 28px;
  height: 28px;
}

.service-card h3 {
  font-size: 18px;
  margin-bottom: 2px;
}

.service-card p {
  color: var(--gray-700);
  font-size: 15px;
  margin-bottom: 0;
}

.value-list {
  display: grid;
  gap: 18px;
}

.value-item {
  display: flex;
  gap: 16px;
  padding: 18px;
  background: #fff;
  border-left: 4px solid var(--red);
  border-radius: 0 8px 8px 0;
  box-shadow: var(--shadow-sm);
}

.value-item .num {
  font-family: var(--font-head);
  font-size: 26px;
  color: var(--green);
  flex: none;
  width: 34px;
}

.value-item h4 {
  font-size: 16px;
  margin-bottom: 4px;
}

.value-item p {
  margin: 0;
  color: var(--gray-700);
  font-size: 15px;
}

/* -------------------- Feature / split sections -------------------- */

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

.split img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.check-list li {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  color: var(--gray-700);
}

.check-list li::before {
  content: "";
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 3px;
  border-radius: 50%;
  background: var(--green);
  background-image: linear-gradient(135deg, var(--green), var(--green-light));
  position: relative;
}

.check-list li::after {
  content: "";
  position: absolute;
  margin-left: 6px;
  margin-top: 8px;
  width: 8px;
  height: 4px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}

/* -------------------- Detailed service blocks -------------------- */

.service-detail {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 44px;
  align-items: center;
  padding: 48px 0;
  border-bottom: 1px solid var(--gray-200);
}

.service-detail:last-child {
  border-bottom: none;
}

.service-detail.reverse {
  direction: rtl;
}

.service-detail.reverse > * {
  direction: ltr;
}

.service-detail img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.service-detail .tag {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--gray-100);
  color: var(--green);
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.service-detail h2 {
  font-size: 24px;
  margin-bottom: 12px;
}

.service-detail p {
  color: var(--gray-700);
}

/* -------------------- Gallery -------------------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.gallery figure {
  margin: 0;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

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

.gallery figure:hover img {
  transform: scale(1.06);
}

.gallery figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px 14px;
  font-size: 13px;
  color: #fff;
  background: linear-gradient(to top, rgba(8, 53, 29, 0.88), transparent);
}

/* -------------------- Clients -------------------- */

.client-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.client-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.client-card .mark {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--green-900);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 20px;
  margin: 0 auto 16px;
}

.client-card h4 {
  font-size: 16px;
  margin-bottom: 6px;
}

.client-card p {
  font-size: 13px;
  color: var(--gray-500);
  margin: 0;
}

/* -------------------- Registration / info table -------------------- */

.info-table {
  width: 100%;
  border-collapse: collapse;
}

.info-table tr {
  border-bottom: 1px solid var(--gray-200);
}

.info-table td {
  padding: 14px 6px;
  vertical-align: top;
}

.info-table td:first-child {
  width: 210px;
  font-family: var(--font-head);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green);
}

/* -------------------- CTA band -------------------- */

.cta-band {
  background: var(--red);
  color: #fff;
  padding: 52px 0;
}

.cta-band .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cta-band h2 {
  color: #fff;
  margin-bottom: 6px;
  font-size: 26px;
}

.cta-band p {
  color: #ffd9db;
  margin: 0;
}

/* -------------------- Contact page -------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
}

.contact-card {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--gray-200);
}

.contact-card:last-child {
  border-bottom: none;
}

.contact-card .icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--gray-100);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.contact-card .icon svg {
  width: 22px;
  height: 22px;
}

.contact-card h4 {
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.contact-card p {
  margin: 0;
  color: var(--gray-700);
}

.map-frame {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  height: 100%;
  min-height: 320px;
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
  display: block;
}

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

.form-grid .full {
  grid-column: 1 / -1;
}

label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray-700);
  margin-bottom: 8px;
}

input, textarea, select {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--gray-300);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 15px;
  background: #fff;
  color: var(--ink);
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(15, 92, 50, 0.15);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

/* -------------------- Footer -------------------- */

.site-footer {
  background: var(--green-900);
  color: #cfe3d7;
  padding-top: 64px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr;
  gap: 36px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-grid img {
  height: 38px;
  margin-bottom: 16px;
  filter: brightness(0) invert(1);
}

.footer-grid p {
  color: #a9c7b5;
  font-size: 14px;
}

.footer-grid h4 {
  color: #fff;
  font-size: 14px;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.footer-grid ul li {
  margin-bottom: 10px;
  font-size: 14px;
}

.footer-grid ul a:hover {
  color: #fff;
}

.footer-grid ul li span,
.footer-grid ul li a {
  color: #b9d4c4;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0;
  font-size: 13px;
  color: #91b39f;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-bottom a {
  color: #cfe3d7;
}

/* -------------------- Utilities -------------------- */

.mt-0 { margin-top: 0; }
.text-center { text-align: center; }

/* -------------------- Responsive -------------------- */

@media (max-width: 980px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .client-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-figure { order: -1; }
  .split { grid-template-columns: 1fr; }
  .service-detail { grid-template-columns: 1fr; }
  .service-detail.reverse { direction: ltr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 10px 24px 20px;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
    display: none;
  }
  .nav-menu.open { display: flex; }
  .nav-menu a { padding: 12px 4px; }
  .nav-menu .btn { margin: 10px 0 0; text-align: center; justify-content: center; }
  .topbar__contacts { gap: 12px; font-size: 12px; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .client-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .cta-band .container { flex-direction: column; text-align: center; }
  .footer-grid { grid-template-columns: 1fr; }
}
