/* Base – universal mobile-first */
html { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  color: #111;
  background: #f6f8fa;
}
h1, h2, h3, h4, h5, h6 {
  color: #111;
  font-family: Arial, Helvetica, sans-serif;
  margin: 0 0 .7em 0;
}
a { color: #2552d0; text-decoration: none; transition: color .18s; }
a:hover { color: #21c76a; }
img { max-width: 100%; height: auto; display: block; }

/* Header and Nav */
header nav {
  background: #2552d0;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 4%;
  flex-wrap: wrap;
}
.logo img { height: 48px; width: auto; }
nav ul {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  gap: 20px;
  margin: 0;
  padding: 0;
}
nav ul li { position: relative; }
nav ul li a {
  color: #fff;
  font-size: 1em;
  border-radius: 7px;
  padding: 11px 18px;
  font-weight: 600;
}
nav ul li a:hover,
nav ul li.active a { background: #21c76a; color: #fff; }
.nav-toggle { display: none; }

@media (max-width: 900px) {
  header nav { flex-direction: column; gap: 0; }
  nav ul { flex-direction: column; gap: 0; width: 100%; }
  nav ul li a { width: 100%; font-size: 1.08em; padding: 13px 16px; }
  .logo img { height: 38px; }
  .nav-toggle { display: block; }
}

/*  sticky menu*/   

header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: #2552d0;
  box-shadow: 0 2px 18px #2552d022;
}
.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 5vw;
}
.logo img { height: 46px; }
.nav-menu {
  display: flex;
  gap: 24px;
  list-style: none;
}
.nav-menu li a {
  color: #fff;
  font-size: 1.05em;
  padding: 9px 13px;
  border-radius: 5px;
  transition: background 0.18s;
  font-weight: 600;
}
.nav-menu li a:hover,
.nav-menu li.active a {
  background: #21c76a;
  color: #fff;
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2em;
  color: #fff;
  margin-left: 12px;
  cursor: pointer;
}
@media (max-width: 900px) {
  .nav-menu {
    position: absolute;
    left: 0; right: 0; top: 60px;
    background: #2552d0;
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 0 0 18px 0;
    display: none;
  }
  .nav-menu.open { display: flex; }
  .nav-toggle { display: block; }
  .main-nav { flex-wrap: wrap; }
}





/* Hero banner */
.hero-banner {
  position: relative;
  background: #2552d0 url('img/homebanner.jpg') center/cover no-repeat;
  color: #fff;
  text-align: center;
  min-height: 260px;
  padding: 80px 18px 46px 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-banner h1 { font-size: 2.1em; margin-bottom: 16px; }
.hero-banner p { font-size: 1.15em; margin-bottom: 15px; }

@media (max-width: 900px) {
  .hero-banner { padding: 30px 10px 28px 10px; min-height: 120px;}
  .hero-banner h1 { font-size: 1.32em;}
}

/* Main grid sections */
.services-main, .about-section, .contact-section, .products-main {
  max-width: 1080px;
  margin: 0 auto;
  padding: 30px 2vw;
}
.service-block, .product-card, .about-block {
  background: #fff;
  box-shadow: 0 2px 10px #2552d010;
  border-radius: 13px;
  display: flex;
  align-items: flex-start;
  gap: 32px;
  margin-bottom: 24px;
  padding: 18px 3vw;
}
.service-block img, .product-card img {
  flex: 0 0 195px;
  width: 195px;
  height: 160px;
  object-fit: cover;
  border-radius: 11px;
  margin-right: 2vw;
  box-shadow: 0 1px 8px #2552d022;
}
.service-info, .product-info {
  flex: 1;
  min-width: 160px;
}
.service-info h2, .product-info h2 { color: #2552d0; font-size: 1.23em; margin-bottom: 13px; }
.service-info ul, .product-info ul { margin-left: 24px; }
.service-info p, .product-info p { font-size: 1.07em; color: #232c41; }

@media (max-width: 900px) {
  .service-block, .product-card, .about-block { flex-direction: column; align-items: center; gap: 14px; padding: 11px 1vw;}
  .service-block img, .product-card img { width: 85vw; height: 32vw; margin: 0; max-width: 350px; }
}

@media (max-width: 600px) {
  .services-main, .about-section, .contact-section, .products-main { padding: 20px 1vw;}
  .service-block img, .product-card img { width: 99vw; height: 38vw; }
}

/* Contact form */
.contact-form {
  background: #f8faff;
  border-radius: 10px;
  box-shadow: 0 2px 11px #2552d012;
  max-width: 370px;
  margin: 18px auto;
  padding: 27px 16px;
  display: flex;
  flex-direction: column;
  gap: 17px;
}
.contact-form label { font-weight: bold; font-size: 1em; color: #2552d0; }
.contact-form input, .contact-form textarea {
  padding: 8px;
  border-radius: 7px;
  border: 1px solid #ccc;
  font-size: 1em;
  font-family: inherit;
  resize: vertical;
}
.contact-form button {
  background: #2552d0;
  color: #fff;
  font-size: 1.07em;
  font-weight: bold;
  padding: 11px;
  border: none;
  border-radius: 7px;
  cursor: pointer;
  margin-top: 9px;
}
.contact-form button:hover { background: #21c76a; color: #fff; }

@media (max-width: 600px) {
  .contact-form { padding: 13px 5px; max-width: 99vw; }
}

/* About page blocks */
.section-head {
  text-align: center;
  font-size: 1.6em;
  color: #2552d0;
  margin: 40px 0 16px 0;
}

/* Footer */
footer {
  background: #2552d0;
  color: #fff;
  padding: 34px 0 20px 0;
  text-align: center;
  font-size: 15px;
}
.footer-logo img { height: 38px; }

@media (max-width: 900px) {
  footer { padding: 24px 0 13px 0; font-size: 13px;}
  .footer-logo img { height: 30px; }
}

/* Go Up button */
#goUpBtn {
  display: none;
  position: fixed;
  bottom: 32px;
  right: 36px;
  z-index: 99;
  font-size: 2em;
  border: none;
  outline: none;
  background-color: #2552d0;
  color: #fff;
  cursor: pointer;
  border-radius: 55%;
  width: 56px;
  height: 56px;
  box-shadow: 0 3px 14px #2552d044;
  opacity: 0.92;
  transition: background 0.2s, opacity 0.2s;
}
#goUpBtn:hover { background-color: #21c76a; opacity: 1; }

@media (max-width: 600px) {
  #goUpBtn { width: 38px; height: 38px; font-size: 1.3em; bottom: 14px; right: 10px; }
}

/* General Mobile Tweaks */
@media (max-width: 900px) {
  h1, h2, h3 { font-size: 1.15em;}
  .section-head { font-size: 1.17em; }
}

/* Add smooth scrolling for anchor navigation */
html { scroll-behavior: smooth; }
