/* =========================================
   SITE ALIGNMENT — Aminrup Technologies
   Shared layout rules for sub-pages:
   header, banner, footer, containers.
========================================= */

html {
  scroll-behavior: smooth;
}

body.site-page {
  overflow-x: hidden;
  background: #f0f4f8;
  color: #1e293b;
  font-family: 'Lato', sans-serif;
}

body.site-page *,
body.site-page *:before,
body.site-page *:after {
  box-sizing: border-box;
}

body.site-page .body-inner {
  overflow-x: hidden;
  background: #f0f4f8;
}

body.site-page .container {
  box-sizing: border-box;
}

/* ── Header ── */
body.site-subpage #header {
  min-height: 72px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 1px 0 #e2e8f0;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background 220ms ease, box-shadow 220ms ease;
}

body.site-subpage #header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 16px rgba(15, 29, 47, 0.08);
}

body.site-subpage #header .container {
  width: min(100%, 1180px);
  max-width: 1180px;
  padding-left: 20px !important;
  padding-right: 20px !important;
}

body.site-subpage .navbar-header,
body.site-subpage .navbar-brand {
  min-height: 72px;
}

body.site-subpage .navbar-brand,
body.site-subpage .header2 .navbar-brand,
body.site-subpage .navbar-brand.navbar-bg {
  display: flex;
  align-items: center;
  width: auto;
  height: 72px;
  padding: 8px 0;
  background: transparent;
  line-height: normal;
}

body.site-subpage .navbar-brand img {
  width: auto;
  max-width: 150px;
  max-height: 52px;
  padding: 0;
  float: none;
  transition: transform 300ms ease;
}

body.site-subpage .navbar-brand img:hover {
  transform: scale(1.03);
}

body.site-subpage ul.navbar-nav > li > a {
  padding: 26px 14px;
  color: #1e293b;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.4px;
  line-height: 20px;
  text-transform: uppercase;
  transition: color 180ms ease;
}

body.site-subpage ul.navbar-nav > li.active > a,
body.site-subpage ul.navbar-nav > li > a:hover,
body.site-subpage ul.navbar-nav > li > a:focus {
  color: #0f9b8e !important;
}

/* ── Banner ── */
body.site-subpage #banner-area {
  display: flex;
  align-items: center;
  min-height: 340px;
  margin-top: 72px;
  overflow: hidden;
  background: #6c7885;
}

body.site-subpage #banner-area .banner-img,
body.site-subpage #banner-area .banner-img img,
body.site-subpage #banner-area > img {
  width: 100%;
  height: 340px !important;
  min-height: 340px !important;
  object-fit: cover;
  filter: saturate(1.06) contrast(1.04);
}

body.site-subpage #banner-area .parallax-overlay {
  background: linear-gradient(160deg, rgba(15, 29, 47, 0.88) 0%, rgba(15, 155, 142, 0.35) 100%);
}

body.site-subpage .banner-title-content {
  top: 55% !important;
  left: 0;
  width: 100%;
  padding: 0 20px;
  transform: translateY(-50%);
}

body.site-subpage .banner-title-content h2 {
  margin: 0 0 14px;
  color: #fff;
  font-size: clamp(34px, 5vw, 52px) !important;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.45), 0 1px 3px rgba(0,0,0,0.3);
}

body.site-subpage .banner-title-content .breadcrumb {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 12px;
  max-width: min(92vw, 720px);
  margin: 0;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

body.site-subpage .banner-title-content .breadcrumb:before,
body.site-subpage .banner-title-content .breadcrumb:after {
  display: none;
}

body.site-subpage .banner-title-content .breadcrumb li,
body.site-subpage .banner-title-content .breadcrumb a {
  color: #fff;
  font-size: 14px;
  line-height: 1.4;
  white-space: normal;
}

body.site-subpage .banner-title-content .breadcrumb a:hover {
  color: #f4b942;
}

/* ── Main Content ── */
body.site-subpage section,
body.site-subpage #main-container,
body.site-subpage #main-container.portfolio,
body.site-subpage .contact-modern {
  background: #f0f4f8;
}

body.site-subpage #main-container,
body.site-subpage #main-container.portfolio,
body.site-subpage .contact-modern {
  padding-top: 80px;
  padding-bottom: 80px;
}

/* ── Headings ── */
body.site-subpage .heading .title,
body.site-subpage .heading .title2,
body.site-subpage .contact-heading h2,
body.site-subpage .portfolio-intro h3,
body.site-subpage .service-intro h2 {
  color: #0f1d2f;
  font-weight: 800;
  letter-spacing: -0.2px;
}

body.site-subpage .heading,
body.site-subpage .contact-heading,
body.site-subpage .portfolio-intro {
  margin-bottom: 34px;
}

body.site-subpage .heading .title-icon {
  background: #0f9b8e;
  border-color: #0f9b8e;
  color: #fff;
  box-shadow: 0 8px 20px rgba(15, 155, 142, 0.25);
}

/* ── Cards ── */
body.site-subpage .contact-card,
body.site-subpage .contact-form-box,
body.site-subpage .map-box,
body.site-subpage .portfolio-card,
body.site-subpage .about-profile-panel,
body.site-subpage .about-story-card,
body.site-subpage .service-card,
body.site-subpage .service-detail-card,
body.site-subpage .team {
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  transition: box-shadow 300ms ease, transform 300ms ease;
}

body.site-subpage .contact-card:hover,
body.site-subpage .contact-form-box:hover,
body.site-subpage .portfolio-card:hover,
body.site-subpage .service-card:hover,
body.site-subpage .service-detail-card:hover,
body.site-subpage .team:hover {
  box-shadow: 0 12px 40px rgba(15, 29, 47, 0.12);
  transform: translateY(-4px);
}

/* ── Footer ── */
body.site-subpage .footer {
  background-color: #0f1d2f;
}

body.site-subpage .footer-logo img {
  max-width: 160px;
  height: auto;
}

/* ── Floating buttons ── */
body.site-page #back-to-top .btn.btn-primary,
body.site-page .whatsapp-btn a {
  border-radius: 50%;
}

/* ── Responsive ── */
@media (max-width: 991px) {
  body.site-subpage ul.navbar-nav > li > a {
    padding-left: 10px;
    padding-right: 10px;
    font-size: 12px;
  }
}

@media (max-width: 767px) {
  body.site-subpage #header,
  body.site-subpage .navbar-header,
  body.site-subpage .navbar-brand {
    min-height: 62px;
  }

  body.site-subpage .navbar-brand,
  body.site-subpage .header2 .navbar-brand,
  body.site-subpage .navbar-brand.navbar-bg {
    height: 62px;
    padding: 6px 0;
  }

  body.site-subpage .navbar-brand img {
    max-width: 118px;
    max-height: 46px;
  }

  body.site-subpage .navbar-toggle {
    display: block;
    margin-top: 15px;
    margin-right: 0;
  }

  body.site-subpage .navbar-collapse {
    max-height: 430px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  body.site-subpage .navbar-nav {
    width: 100%;
    margin: 0;
    background: #0f1d2f;
    border-radius: 0 0 8px 8px;
  }

  body.site-subpage .navbar-nav > li {
    float: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  body.site-subpage ul.navbar-nav > li > a {
    padding: 14px 18px;
    color: #fff;
  }

  body.site-subpage #banner-area {
    min-height: 292px;
    margin-top: 62px;
  }

  body.site-subpage #banner-area .banner-img,
  body.site-subpage #banner-area .banner-img img,
  body.site-subpage #banner-area > img {
    height: 292px !important;
    min-height: 292px !important;
  }

  body.site-subpage .banner-title-content {
    top: 56% !important;
    padding: 0 18px;
  }

  body.site-subpage .banner-title-content h2 {
    font-size: 30px !important;
  }

  body.site-subpage .banner-title-content .breadcrumb {
    max-width: calc(100vw - 36px);
    padding: 9px 12px;
    gap: 6px 8px;
  }

  body.site-subpage #main-container,
  body.site-subpage #main-container.portfolio,
  body.site-subpage .contact-modern {
    padding-top: 54px;
    padding-bottom: 54px;
  }

  body.site-subpage .container {
    width: 100% !important;
    max-width: 100%;
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  body.site-subpage .heading .title,
  body.site-subpage .contact-heading h2,
  body.site-subpage .portfolio-intro h3 {
    font-size: 26px !important;
    line-height: 1.25;
  }
}
