/* =====================================================
   MSAMTECH — Custom UI Enhancements
   Loaded after main.css to override/extend defaults
   ===================================================== */

:root {
  --accent-color: #1a73e8;
  --heading-color: #0d3b6e;
  --nav-color: #0d3b6e;
  --nav-hover-color: #1a73e8;
}

/* ── Hero ─────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
}

.hero > img {
  filter: brightness(0.55);
  object-fit: cover;
}

.hero .container {
  position: relative;
  z-index: 2;
}

/* Hero overlay: very light blue-white so the page feels milky/light */
.hero::before {
  background: rgba(235, 245, 255, 0.91) !important;
}

.hero > img {
  filter: brightness(0.82);
  object-fit: cover;
}

.hero h1 {
  font-size: 3.2rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #0d3b6e;
  text-shadow: none;
}

.hero p {
  font-size: 1.15rem;
  color: #555;
  text-shadow: none;
  max-width: 620px;
  margin: 0 auto;
}

/* ── Icon Box Link Wrapper ────────────────────────── */
.icon-box-link {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.icon-box-link:hover {
  text-decoration: none;
  color: inherit;
}

/* ── Icon Boxes (hero feature cards) ─────────────── */
.icon-box {
  background: rgba(255,255,255,0.97);
  border-radius: 16px;
  padding: 28px 20px 24px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

.icon-box:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 36px rgba(26, 115, 232, 0.18);
}

.icon-box .icon {
  margin-bottom: 14px;
}

.icon-box .icon i {
  font-size: 46px;
  color: var(--accent-color);
}

.icon-box .title,
.icon-box .title a {
  color: var(--heading-color);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.icon-box .description {
  font-size: 0.88rem;
  color: #666;
  margin-top: 6px;
  line-height: 1.55;
}

/* ── Services / Product Cards ─────────────────────── */
.service-item {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0,0,0,0.09);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: #fff;
  border: none;
}

.service-item:hover {
  transform: translateY(-7px);
  box-shadow: 0 14px 36px rgba(26, 115, 232, 0.18);
}

.service-item h3 {
  font-size: 0.95rem;
  font-weight: 700;
  padding: 10px 14px 2px;
  color: var(--heading-color);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* Fix: template's .services .service-item had padding:60px 30px (for icon-only cards).
   Product cards use images so that padding pushes the image down and breaks layout. */
.services .service-item {
  padding: 0 !important;
}

/* Hide the empty <h3></h3> that was reserving ~70px of whitespace */
.services .service-item h3:empty {
  display: none;
}

/* Fix description: use plain readable colour; remove inherited color-mix grey */
.services .service-item p {
  font-size: 0.85rem;
  font-weight: 400;
  color: #444;
  line-height: 1.55;
  padding: 10px 14px 14px;
  margin: 0;
}

.service-item p {
  font-size: 0.85rem;
  padding: 0 16px 16px;
  color: #555;
}

/* ── Buttons ──────────────────────────────────────── */
.cta-btn {
  border-radius: 50px;
  padding: 12px 36px;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: transform 0.25s, box-shadow 0.25s;
}

.cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(255,255,255,0.25);
}

.cta-btn-outline {
  background: transparent !important;
  border: 2px solid rgba(255,255,255,0.85) !important;
  color: #fff !important;
}

.cta-btn-outline:hover {
  background: rgba(255,255,255,0.15) !important;
}

.btn-get-started {
  border-radius: 50px;
  padding: 12px 36px;
  font-weight: 600;
  font-size: 1rem;
  transition: transform 0.25s, box-shadow 0.25s;
}

.btn-get-started:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(26,115,232,0.35);
}

/* ── Contact Form ─────────────────────────────────── */
.php-email-form .form-control {
  border-radius: 10px;
  border: 1.5px solid #d8e3f0;
  padding: 12px 16px;
  font-size: 0.95rem;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.php-email-form .form-control:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(26,115,232,0.1);
}

.php-email-form button[type=submit] {
  border-radius: 50px;
  padding: 11px 40px;
  font-weight: 600;
  letter-spacing: 0.4px;
}

/* ── Section Titles ───────────────────────────────── */
.section-title h2 {
  font-weight: 800;
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: "";
  display: block;
  width: 50px;
  height: 3px;
  background: var(--accent-color);
  border-radius: 3px;
  margin: 8px auto 0;
}

/* ── Footer Social Icons ──────────────────────────── */
.social-links a {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(26,115,232,0.1);
  margin-right: 6px;
  font-size: 1rem;
  transition: background 0.25s, transform 0.25s, color 0.25s;
}

.social-links a:hover {
  background: var(--accent-color);
  color: #fff !important;
  transform: translateY(-4px);
}

/* ── WhatsApp Float ───────────────────────────────── */
/* Default: bottom-right. Pages that want bottom-left override with left:20px !important; right:auto !important; */
.whatsapp-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  left: auto;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #25D366;
  border-radius: 50%;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  z-index: 1000;
  transition: transform 0.25s, box-shadow 0.25s;
  overflow: hidden;
}

.whatsapp-button img {
  width: 38px;
  height: 38px;
  display: block;
  flex-shrink: 0;
}

/* ── Logo rounded in navbar ──────────────────────── */
.logo img {
  border-radius: 50%;
  width: 44px !important;
  height: 44px !important;
  object-fit: cover;
  background: #eef4ff;
}

.whatsapp-button:hover {
  transform: scale(1.12);
  box-shadow: 0 8px 24px rgba(37,211,102,0.5) !important;
}

/* ── Info Items (contact section) ────────────────── */
.info-item {
  background: var(--surface-color);
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: box-shadow 0.25s;
}

.info-item:hover {
  box-shadow: 0 6px 20px rgba(26,115,232,0.12);
}

.info-item i {
  font-size: 1.5rem;
  color: var(--accent-color);
  margin-right: 16px;
}

/* ── Navbar enhancements ──────────────────────────── */
.btn-getstarted {
  border-radius: 50px;
  padding: 8px 24px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.4px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-getstarted:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(26,115,232,0.3);
}

/* ── About Section ────────────────────────────────── */
/* Fix: section=60px + section-title=60px = 120px top alone, section looked zoomed */
#about.section {
  padding: 40px 0 48px;
}
#about .section-title {
  padding-bottom: 24px;
}

.about .content ul li {
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.about .content ul li i {
  color: var(--accent-color);
  font-size: 1.2rem;
}

/* ── Footer spacing ──────────────────────────────── */
/* main.css had footer-top padding-top:50px — cut it down */
.footer .footer-top { padding-top: 28px !important; padding-bottom: 4px; }
.footer .copyright   { padding-top: 14px !important; padding-bottom: 14px !important; }

/* ── Mobile Responsive ────────────────────────────── */
@media (max-width: 991px) {
  .hero h1 {
    font-size: 2.4rem;
  }
  .hero p {
    font-size: 1rem;
  }
}

@media (max-width: 767px) {
  .hero h1 {
    font-size: 2rem;
  }
  .icon-box {
    padding: 20px 16px;
    margin-bottom: 8px;
  }
  .section-title h2 {
    font-size: 1.6rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.7rem;
  }
  .cta-btn, .btn-get-started {
    padding: 10px 24px;
    font-size: 0.9rem;
  }
}
