/* Base */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: #000; /* legacy black main feel */
  font-family: Verdana, Arial, sans-serif; /* legacy font */
}

* {
    scrollbar-width: none;
}

/* Header */
#header {
  background: #ffffffd0;            /* legacy red header */
  color: #fff;
  text-align: center;
  padding: 3em 0;                 /* legacy spacing */
}
#header img.top {
  max-width: 700px;               /* allow large legacy logo feel */
  height: 120px;
}
#header h3 {
  margin: 0;
  font-style: italic;             /* legacy italic tagline */
  font-size: 25px;
}

/* Navbar (same structure as new HTML, legacy colors & hover) */
.navbar {
  display: flex;
  justify-content: start;
  align-items: center;
  background: #262626;
  padding: 0%;
  margin-bottom: 30px;
}
.navbar a,
.subnavbtn {
  color: #fff;
  padding: 14px 16px;
  text-decoration: none;
  font-size: 17px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: Arial, sans-serif;

}
.navbar a:hover,
.subnav:hover .subnavbtn  {
  background: #ed1c24;            /* legacy red hover */
}

/* Subnav dropdown matches legacy full-width red bar */
.subnav { display: inline-block; position: relative; }
.subnav-content {
  display: none;
  position: absolute;
  left: 0;
  width: 100%;
  z-index: 10;
  text-align: center;
}
.subnav-content a {
  float: left;
  color: #fff;
  text-decoration: none;
  padding: 12px 16px;
  display: block;
}
.subnav:hover .subnav-content { display: block; }

/* Main container */
main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 30px 20px;
}

.features-grid {
  display: grid;
  grid-template-columns: 0.5fr 2.5fr; /* image : text ratio */
  gap: 80px 40px;
  background: transparent;
  padding: 3rem 2rem;
  align-items: stretch; /* ensures both columns have equal height */
  min-height: 100vh;
}

/* Make each grid child fill the row height */
.features-grid > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Image scales to text height */
.features-grid img {
  width: auto;          /* keep natural ratio */
  height: 100%;         /* match text column height */
  object-fit: contain;  /* fit fully without cropping */
  border-radius: 8px;
  margin: 0 auto;       /* center horizontally */
  max-width: 100%;      /* prevent overflow */
  padding: 20px;
}


/* Big round icon with red ring (legacy #three-column .icon) */
.feature-icon {
  width: 150px;
  height: 150px;
  border-radius: 100px;
  border: 6px solid #ed1c24;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4em;                 /* matches legacy 4em */
  line-height: 1;
  color: #fff;                    /* legacy white icon color */
  margin: 0 auto;                 /* centered in its cell */
}

/* Titles & text (legacy h2 white, p1 gray) */
.feature-title {
  margin: 0 0 8px 0;
  font-size: 22px;
  color: #fff;                    /* legacy h2 white */
  font-family: Verdana, Arial, sans-serif;
}
.feature-desc {
  color: #858585;                 /* legacy p1 gray */
  font-size: 16px;
  line-height: 1.6;
  text-align: left;
}

/* Products CTA: keep red brand */
.products-btn {
  margin-left: 12px;
  background: #ed1c24;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 7px 16px;
  font-size: 1em;
  cursor: pointer;
}
.products-btn:hover { background: #ff3a41; }

/* Footer */
#footer {
  margin-top: 40px;
  background: #ffffffd0;            /* legacy red footer */
  color: #fff;
  text-align: center;
  padding: 0.5em 0;
  font-size: 0.95em;
}

/* Responsive */
@media (max-width: 800px) {
  .features-grid { grid-template-columns: 1fr; padding: 15px; }
  main { padding: 10px 2vw; }
}
@media (max-width: 600px) {
  .features-grid { padding: 8px; min-height: auto; }
}
