/* Universal Machines - site stylesheet */
:root {
  --green: #4e9e63;
  --green-dark: #3d7d4e;
  --dark: #212934;
  --dark-2: #2c3642;
  --text: #4a4e57;
  --heading: #26303e;
  --light: #f4f6f8;
  --border: #e2e6ea;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text); font-size: 16px; line-height: 1.7; background: #fff;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-dark); }
h1, h2, h3, h4 { color: var(--heading); line-height: 1.3; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  background: #fff; border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100; box-shadow: 0 1px 6px rgba(0,0,0,.06);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; }
.logo img { height: 52px; width: auto; }
.nav-toggle { display: none; }
.nav-toggle-label { display: none; cursor: pointer; padding: 10px; }
.nav-toggle-label span, .nav-toggle-label span::before, .nav-toggle-label span::after {
  display: block; background: var(--heading); height: 2px; width: 24px; position: relative; content: "";
}
.nav-toggle-label span::before { position: absolute; top: -7px; }
.nav-toggle-label span::after { position: absolute; top: 7px; }
.site-nav ul { list-style: none; }
.site-nav > ul { display: flex; align-items: center; gap: 4px; }
.site-nav > ul > li > a {
  display: block; padding: 24px 14px; color: var(--heading);
  font-weight: 600; font-size: 15px;
}
.site-nav > ul > li > a:hover, .site-nav > ul > li > a.active { color: var(--green); }
.has-dropdown { position: relative; }
.has-dropdown > a::after { content: " \25BE"; font-size: 11px; color: #9aa1ab; }
.dropdown {
  display: none; position: absolute; top: 100%; left: 0; background: #fff;
  min-width: 220px; border: 1px solid var(--border); border-top: 3px solid var(--green);
  box-shadow: 0 8px 20px rgba(0,0,0,.1); flex-direction: column; gap: 0 !important;
}
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { display: flex; }
.dropdown li { width: 100%; }
.dropdown a { display: block; padding: 10px 18px; color: var(--heading); font-size: 14.5px; border-bottom: 1px solid var(--light); }
.dropdown a:hover { background: var(--light); color: var(--green); }

/* Page banner */
.page-banner { background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 100%); padding: 48px 0; }
.page-banner h1 { color: #fff; font-size: 32px; }
.page-banner p { color: #b7c0cb; margin-top: 6px; max-width: 720px; }

/* Hero (home) */
.hero { background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 100%); color: #cdd5de; }
.hero-inner { display: flex; align-items: center; gap: 48px; padding-top: 64px; padding-bottom: 64px; flex-wrap: wrap; }
.hero-text { flex: 1 1 460px; }
.hero-text h1 { color: #fff; font-size: 38px; margin-bottom: 16px; }
.hero-text p { font-size: 17px; margin-bottom: 28px; }
.hero-img { flex: 1 1 340px; }
.hero-img img { border-radius: 8px; box-shadow: 0 12px 32px rgba(0,0,0,.35); }
.btn {
  display: inline-block; padding: 13px 30px; border-radius: 4px; font-weight: 600;
  font-size: 15px; background: var(--green); color: #fff !important; margin-right: 10px; margin-bottom: 8px;
}
.btn:hover { background: var(--green-dark); }
.btn.ghost { background: transparent; border: 2px solid #8b96a3; color: #e8ecf0 !important; }
.btn.ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }

/* Sections */
.section { padding: 64px 0; }
.section.alt { background: var(--light); }
.section-title { text-align: center; margin-bottom: 12px; font-size: 30px; }
.section-sub { text-align: center; max-width: 780px; margin: 0 auto 44px; }
.section-title::after { content: ""; display: block; width: 56px; height: 3px; background: var(--green); margin: 14px auto 0; }

/* Cards grid */
.grid { display: grid; gap: 28px; }
.grid.cols-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card {
  background: #fff; border: 1px solid var(--border); border-radius: 8px; overflow: hidden;
  transition: box-shadow .2s, transform .2s; display: flex; flex-direction: column;
}
.card:hover { box-shadow: 0 10px 28px rgba(0,0,0,.12); transform: translateY(-3px); }
.card img { width: 100%; height: 220px; object-fit: cover; }
.card-body { padding: 22px 24px 26px; flex: 1; }
.card-body h3 { font-size: 19px; margin-bottom: 8px; }
.card-body h3 a { color: var(--heading); }
.card-body h3 a:hover { color: var(--green); }
.card-body p { font-size: 14.5px; }
.card-link { font-weight: 600; font-size: 14px; }

/* Product detail */
.product-block { display: flex; gap: 40px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 56px; }
.product-block:last-child { margin-bottom: 0; }
.product-block .p-img { flex: 1 1 320px; }
.product-block .p-img img { border-radius: 8px; border: 1px solid var(--border); }
.product-block .p-info { flex: 1.2 1 380px; }
.product-block h2 { font-size: 26px; margin-bottom: 14px; }
.product-block h3 { font-size: 18px; margin: 18px 0 8px; }
ul.specs, ul.benefits { list-style: none; margin: 8px 0 0; }
ul.specs li, ul.benefits li { padding: 7px 0 7px 28px; position: relative; border-bottom: 1px dashed var(--border); }
ul.specs li::before, ul.benefits li::before {
  content: "\2713"; position: absolute; left: 0; color: var(--green); font-weight: 700;
}
.lead { font-size: 17px; }
.prose p { margin-bottom: 16px; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.gallery figure { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: #fff; }
.gallery img { width: 100%; height: 210px; object-fit: cover; transition: transform .25s; }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption { padding: 12px 14px; font-size: 14px; text-align: center; color: var(--heading); font-weight: 600; }

/* Videos */
.video-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.video-wrap { position: relative; padding-bottom: 56.25%; height: 0; border-radius: 8px; overflow: hidden; background: #000; }
.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; margin-bottom: 48px; }
.info-card { background: #fff; border: 1px solid var(--border); border-top: 3px solid var(--green); border-radius: 8px; padding: 28px; }
.info-card h3 { font-size: 18px; margin-bottom: 12px; }
.info-card p { margin-bottom: 6px; }
.map-wrap { border-radius: 8px; overflow: hidden; border: 1px solid var(--border); }
.map-wrap iframe { display: block; width: 100%; height: 420px; border: 0; }

/* CTA strip */
.cta-strip { background: var(--green); padding: 44px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-inner h2 { color: #fff; font-size: 24px; }
.cta-strip .btn { background: #fff; color: var(--green) !important; }
.cta-strip .btn:hover { background: var(--dark); color: #fff !important; }

/* Footer */
.site-footer { background: var(--dark); color: #aeb7c2; font-size: 14.5px; }
.footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 36px; padding-top: 56px; padding-bottom: 40px; }
.site-footer h4 { color: #fff; font-size: 16px; margin-bottom: 16px; }
.site-footer a { color: #aeb7c2; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; }
.site-footer ul li { padding: 4px 0; }
.footer-bottom { border-top: 1px solid #323d4a; padding-top: 18px; padding-bottom: 18px; text-align: center; font-size: 13.5px; color: #7e8894; }

/* Responsive nav */
@media (max-width: 900px) {
  .nav-toggle-label { display: block; }
  .site-nav { position: absolute; top: 100%; left: 0; right: 0; background: #fff; display: none;
    border-bottom: 1px solid var(--border); box-shadow: 0 12px 24px rgba(0,0,0,.12); max-height: calc(100vh - 72px); overflow-y: auto; }
  .nav-toggle:checked ~ .site-nav { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav > ul > li > a { padding: 13px 22px; border-bottom: 1px solid var(--light); }
  .dropdown { display: flex; position: static; border: 0; box-shadow: none; background: var(--light); }
  .dropdown a { padding-left: 38px; }
  .hero-text h1 { font-size: 30px; }
}
