/* =========================================================
   Absolute Horizon - Main Stylesheet
   Cleaned and Organized Version
   ========================================================= */

/* -------------------------
   GLOBAL
------------------------- */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: #333333;
  background: #e8e8e8;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
}

section {
  padding: 50px 20px;
}

.container {
  max-width: 1200px;
  margin: auto;
}

/* -------------------------
   HEADER
------------------------- */
.site-header {
  background-color: #ffffff;
  border-bottom: 2px solid #d32f2f;
  position: sticky;
  top: 0;
  z-index: 999;
  width: 100%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.header-container {
  max-width: 1250px;
  margin: auto;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 260px;
}

.brand-logo img {
  height: 58px;
  width: auto;
  display: block;
}

.title {
  font-size: 16px;
  font-weight: 700;
  color: #333333;
  line-height: 1.25;
}

.menu-check {
  display: none;
}

.menu-toggle {
  display: none;
  background: #d32f2f;
  color: #ffffff;
  border: none;
  font-size: 24px;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.main-nav a {
  color: #333333;
  font-weight: 600;
  font-size: 15px;
  padding: 6px 0;
  position: relative;
  transition: color 0.3s;
}

.main-nav a:hover {
  color: #d32f2f;
}

.main-nav a::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 2px;
  background-color: #d32f2f;
  left: 0;
  bottom: 0;
  transition: width 0.3s;
}

.main-nav a:hover::after {
  width: 100%;
}

.nav-social {
  display: flex;
  gap: 10px;
  margin-left: 10px;
}

.nav-social a {
  color: #d32f2f;
  font-size: 14px;
}

/* -------------------------
   FOOTER
------------------------- */
.site-footer {
  background: #222222;
  color: #f5f5f5;
  margin-top: 50px;
}

.footer-container {
  max-width: 1250px;
  margin: auto;
  padding: 40px 20px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 30px;
}

.site-footer h3,
.site-footer h4 {
  margin-top: 0;
  color: #ffffff;
}

.site-footer p {
  color: #cccccc;
  margin: 8px 0;
}

.footer-links,
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.site-footer a {
  color: #cccccc;
  transition: color 0.3s;
}

.site-footer a:hover {
  color: #ffffff;
}

.footer-social {
  display: flex;
  gap: 15px;
  margin-top: 10px;
}

.footer-social a {
  color: #d32f2f;
  font-weight: 700;
}

.footer-bottom {
  border-top: 1px solid #444444;
  text-align: center;
  padding: 15px 20px;
  color: #cccccc;
  font-size: 14px;
}

/* -------------------------
   COMMON COMPONENTS
------------------------- */
.section {
  padding: 40px;
  max-width: 1200px;
  margin: 40px auto;
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.10);
  text-align: left;
}

.section h2 {
  color: #9e1b22;
  text-align: center;
  margin-top: 0;
  margin-bottom: 20px;
}

.section h3 {
  color: #9e1b22;
}

.section-label {
  display: inline-block;
  color: #d32f2f;
  font-weight: 700;
  margin-bottom: 8px;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 1px;
}

.section-intro {
  max-width: 900px;
  margin: 0 auto 35px;
  color: #555555;
  font-size: 17px;
  line-height: 1.7;
}

.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: 13px 24px;
  border-radius: 6px;
  font-weight: 700;
  transition: 0.3s;
}

.btn-primary {
  background: #d32f2f;
  color: #ffffff;
}

.btn-primary:hover {
  background: #b71c1c;
}

.btn-secondary {
  background: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.btn-secondary:hover {
  background: #ffffff;
  color: #333333;
}

.btn-secondary-dark {
  color: #9e1b22;
  border-color: #9e1b22;
}

.btn-secondary-dark:hover {
  background: #9e1b22;
  color: #ffffff;
}

/* -------------------------
   HERO SECTIONS
------------------------- */
.hero {
  position: relative;
  background:
    linear-gradient(rgba(20, 20, 20, 0.65), rgba(20, 20, 20, 0.65)),
    url('/img/homepage-banner.png') center / cover no-repeat;
  padding: 120px 20px;
  color: #ffffff;
  text-align: center;
}

.hero-content {
  max-width: 950px;
  margin: auto;
}

.hero-badge {
  display: inline-block;
  background: rgba(211, 47, 47, 0.9);
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 20px;
}

.hero h1 {
  color: #ffffff;
  font-size: 46px;
  line-height: 1.15;
  margin: 0 0 20px;
}

.hero p {
  color: #f0f0f0;
  font-size: 19px;
  line-height: 1.7;
  max-width: 850px;
  margin: 0 auto 30px;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.page-hero {
  background:
    linear-gradient(rgba(20, 20, 20, 0.68), rgba(20, 20, 20, 0.68)),
    url('/img/homepage-banner.png') center / cover no-repeat;
  padding: 95px 20px;
  text-align: center;
  color: #ffffff;
}

.page-hero-content {
  max-width: 900px;
  margin: auto;
}

.page-hero h1 {
  color: #ffffff;
  font-size: 40px;
  line-height: 1.2;
  margin: 15px 0;
}

.page-hero p {
  color: #f2f2f2;
  font-size: 18px;
  line-height: 1.7;
  margin: 0;
}

/* -------------------------
   HOME PAGE
------------------------- */
.intro-grid,
.about-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 35px;
  align-items: center;
}

.intro-section h2,
.about-grid h2 {
  text-align: left;
  font-size: 32px;
  line-height: 1.25;
}

.intro-card,
.about-highlight-card {
  background: #f7f7f7;
  border-left: 5px solid #d32f2f;
  padding: 25px;
  border-radius: 10px;
}

.intro-card h3,
.about-highlight-card h3 {
  margin-top: 0;
  color: #9e1b22;
}

.intro-card ul {
  margin-bottom: 0;
}

.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.service-box {
  background: #f7f7f7;
  border: 1px solid #dddddd;
  border-radius: 8px;
  padding: 25px;
  text-align: center;
  transition: 0.3s;
}

.service-box:hover,
.why-card:hover,
.industry-card:hover,
.capability-step:hover,
.solution-item:hover,
.project-card:hover,
.client-sector-card:hover,
.brand-card:hover,
.contact-card:hover,
.about-value-card:hover,
.service-detail-card:hover,
.product-category-card:hover,
.faq-item:hover,
.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.solutions-preview,
.why-section,
.industries-section,
.capabilities-section {
  text-align: center;
}

.solutions-preview .services {
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.solutions-preview .service-box {
  text-align: left;
  background: #ffffff;
  border: 1px solid #e2e2e2;
  border-top: 4px solid #d32f2f;
  border-radius: 10px;
  padding: 24px;
}

.solutions-preview .service-box h3,
.why-card h3,
.industry-card h3,
.capability-step h3 {
  color: #9e1b22;
  margin-top: 0;
  font-size: 18px;
  line-height: 1.3;
}

.solutions-preview .service-box p,
.why-card p,
.industry-card p,
.capability-step p {
  color: #555555;
  font-size: 15px;
  line-height: 1.65;
  margin-bottom: 0;
}

.section-action {
  margin-top: 35px;
  text-align: center;
}

.why-grid,
.capabilities-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 30px;
}

.why-card,
.capability-step {
  background: #ffffff;
  border: 1px solid #e2e2e2;
  border-left: 4px solid #d32f2f;
  border-radius: 10px;
  padding: 24px;
  text-align: left;
  transition: 0.3s;
}

.capability-step span,
.service-detail-card span {
  display: inline-block;
  background: #d32f2f;
  color: #ffffff;
  font-weight: 700;
  padding: 7px 12px;
  border-radius: 30px;
  margin-bottom: 15px;
  font-size: 13px;
}

.industries-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 30px;
}

.industry-card {
  background: #ffffff;
  border: 1px solid #e2e2e2;
  border-radius: 10px;
  padding: 24px;
  text-align: left;
  transition: 0.3s;
  position: relative;
  overflow: hidden;
}

.industry-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  background: #d32f2f;
}

/* -------------------------
   CTA
------------------------- */
.cta-section {
  margin: 40px auto 0;
  padding: 70px 20px;
  background:
    linear-gradient(rgba(120, 20, 25, 0.92), rgba(120, 20, 25, 0.92)),
    url('/img/homepage-banner.png') center / cover no-repeat;
  color: #ffffff;
  text-align: center;
}

.cta-content {
  max-width: 850px;
  margin: auto;
}

.cta-section h2 {
  color: #ffffff;
  font-size: 34px;
  margin: 0 0 18px;
}

.cta-section p {
  color: #f5f5f5;
  font-size: 18px;
  line-height: 1.7;
  margin: 0 auto 28px;
}

.cta-buttons,
.contact-actions,
.error-actions {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 30px;
}

/* -------------------------
   INNER PAGE GRIDS
------------------------- */
.solutions-page,
.projects-page,
.clients-page,
.partners-page,
.contact-page,
.about-values-section,
.services-page,
.service-process-section,
.products-page,
.faq-page,
.news-page,
.error-page,
.map-section {
  text-align: center;
}

.solution-list,
.mission-grid,
.contact-grid,
.service-process-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 35px;
}

.projects-grid,
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 35px;
}

.clients-grid,
.about-values-grid,
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 35px;
}

.products-grid,
.brand-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 22px;
  margin-top: 35px;
}

.solution-item,
.project-card,
.client-sector-card,
.contact-card,
.about-value-card,
.service-detail-card,
.product-category-card,
.faq-item,
.news-card {
  background: #ffffff;
  border: 1px solid #e2e2e2;
  border-radius: 10px;
  padding: 24px;
  text-align: left;
  transition: 0.3s;
}

.solution-item,
.client-sector-card,
.faq-item {
  border-left: 5px solid #d32f2f;
}

.project-card,
.contact-card,
.about-value-card,
.service-detail-card,
.product-category-card,
.news-card {
  border-top: 4px solid #d32f2f;
}

.solution-item h3,
.project-card h3,
.client-sector-card h3,
.contact-card h3,
.about-value-card h3,
.service-detail-card h3,
.product-category-card h3,
.faq-item h3,
.news-card h3 {
  color: #9e1b22;
  margin-top: 0;
  font-size: 18px;
  line-height: 1.3;
}

.solution-item p,
.project-card p,
.client-sector-card p,
.contact-card p,
.about-value-card p,
.service-detail-card p,
.product-category-card p,
.faq-item p,
.news-card p,
.process-item p,
.mission-card p {
  color: #555555;
  font-size: 15px;
  line-height: 1.65;
  margin-bottom: 0;
}

.project-card ul {
  margin-bottom: 0;
  padding-left: 18px;
  color: #555555;
  line-height: 1.8;
  font-size: 15px;
}

.contact-card a,
.faq-item a {
  color: #9e1b22;
  font-weight: 700;
}

.contact-card a:hover,
.faq-item a:hover {
  color: #d32f2f;
}

/* -------------------------
   PARTNERS
------------------------- */
.brand-card {
  background: #ffffff;
  border: 1px solid #e2e2e2;
  border-radius: 12px;
  padding: 24px 18px;
  min-height: 168px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
}

.brand-card img {
  max-width: 150px;
  height: 58px;
  object-fit: contain;
  margin-bottom: 16px;
}

.brand-card h3 {
  color: #333333;
  font-size: 15px;
  margin: 0;
  text-align: center;
}

.brand-card p {
  color: #666666;
  font-size: 13px;
  line-height: 1.4;
  margin: 8px 0 0;
  text-align: center;
}

.brand-logo-dark {
  background: #333333;
  border-radius: 8px;
  padding: 14px 18px;
  width: 100%;
  max-width: 160px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}

.brand-logo-dark img {
  max-width: 130px;
  max-height: 45px;
  width: auto;
  height: auto;
  margin: 0;
  object-fit: contain;
}

.brand-note {
  margin: 35px auto 0;
  max-width: 900px;
  color: #666666;
  font-size: 13px;
  line-height: 1.7;
  text-align: center;
  border-top: 1px solid #e2e2e2;
  padding-top: 20px;
}

/* -------------------------
   CONTACT / MAP
------------------------- */
.map-wrapper {
  margin-top: 30px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e2e2e2;
}

.map-wrapper iframe,
iframe {
  width: 100%;
  height: 450px;
  border: 0;
  display: block;
}

/* -------------------------
   ABOUT / SERVICES
------------------------- */
.about-highlight-card p {
  margin-bottom: 0;
  color: #555555;
}

.mission-section {
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.mission-card {
  background: #ffffff;
  border-radius: 10px;
  padding: 34px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.10);
}

.mission-card h2 {
  text-align: left;
  font-size: 28px;
}

.process-item {
  background: #f7f7f7;
  border-left: 5px solid #d32f2f;
  border-radius: 10px;
  padding: 24px;
  text-align: left;
}

.process-item h3 {
  color: #9e1b22;
  margin-top: 0;
  font-size: 20px;
}

/* -------------------------
   PRODUCTS
------------------------- */
.product-category-card {
  text-align: center;
  padding: 24px 18px;
}

.product-category-card img {
  width: 68px;
  height: 68px;
  object-fit: contain;
  margin: 0 auto 16px;
  display: block;
}

.product-category-card p {
  font-size: 14px;
  line-height: 1.6;
}

/* -------------------------
   FAQ / NEWS
------------------------- */
.faq-list {
  max-width: 1000px;
  margin: 35px auto 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.news-category {
  display: inline-block;
  background: #f7f7f7;
  color: #9e1b22;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 30px;
  margin-bottom: 15px;
}

.news-card small {
  color: #777777;
  font-size: 13px;
  font-weight: 600;
}

/* -------------------------
   RESPONSIVE
------------------------- */
@media (max-width: 1200px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1100px) {
  .solutions-preview .services,
  .why-grid,
  .capabilities-timeline,
  .clients-grid,
  .about-values-grid,
  .services-grid,
  .service-process-grid,
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .brand-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .header-container {
    flex-wrap: wrap;
  }

  .brand {
    flex: 1;
    min-width: 0;
  }

  .brand-logo img {
    height: 48px;
  }

  .title {
    font-size: 14px;
  }

  .menu-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 15px 0 5px;
    border-top: 1px solid #eeeeee;
  }

  .menu-check:checked ~ .main-nav,
  .main-nav.active {
    display: flex;
  }

  .main-nav a {
    width: 100%;
    padding: 10px 0;
    font-size: 16px;
    border-bottom: 1px solid #f0f0f0;
  }

  .main-nav a::after {
    display: none;
  }

  .nav-social {
    margin-left: 0;
    margin-top: 10px;
    flex-direction: row;
    gap: 20px;
  }

  .footer-container {
    grid-template-columns: 1fr;
    padding: 30px 20px;
  }

  .hero {
    padding: 85px 18px;
  }

  .hero h1 {
    font-size: 30px;
  }

  .hero p {
    font-size: 16px;
  }

  .hero-badge {
    font-size: 12px;
  }

  .page-hero {
    padding: 70px 18px;
  }

  .page-hero h1 {
    font-size: 28px;
  }

  .page-hero p {
    font-size: 16px;
  }

  .section {
    padding: 25px 18px;
    margin: 25px 15px;
  }

  .intro-grid,
  .about-grid,
  .solution-list,
  .mission-grid,
  .industries-grid,
  .projects-grid,
  .news-grid {
    grid-template-columns: 1fr;
  }

  .intro-section h2,
  .about-grid h2,
  .mission-card h2 {
    text-align: left;
    font-size: 26px;
  }

  .map-wrapper iframe,
  iframe {
    height: 360px;
  }

  .whatsapp-float {
    right: 15px;
    bottom: 15px;
    padding: 11px 15px;
    font-size: 14px;
  }
}

@media (max-width: 800px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  .solutions-preview .services,
  .why-grid,
  .capabilities-timeline,
  .clients-grid,
  .about-values-grid,
  .services-grid,
  .service-process-grid,
  .contact-grid,
  .products-grid {
    grid-template-columns: 1fr;
  }

  .brand-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .brand-card {
    min-height: 130px;
    padding: 20px 14px;
  }

  .brand-card img {
    max-width: 120px;
    height: 55px;
  }

  .cta-section {
    padding: 50px 18px;
  }

  .cta-section h2 {
    font-size: 26px;
  }

  .cta-section p {
    font-size: 16px;
  }

  .faq-item {
    padding: 20px;
  }

  .faq-item h3 {
    font-size: 17px;
  }
}

@media (max-width: 480px) {
  .header-container {
    padding: 8px 12px;
  }

  .brand-logo img {
    height: 42px;
  }

  .title {
    font-size: 12px;
    max-width: 210px;
  }

  .menu-toggle {
    font-size: 22px;
    padding: 6px 10px;
  }
}

/* =========================================================
   FINAL OVERRIDES
   Header balance, social icons, hero images, and footer layout
   ========================================================= */

/* -------------------------
   SOCIAL ICONS
------------------------- */
.social-icon {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 42px !important;
  height: 42px !important;
  border-radius: 50%;
  text-decoration: none;
  transition: 0.3s ease;
}

.social-icon svg {
  width: 23px !important;
  height: 23px !important;
  fill: currentColor;
}

.main-nav .social-icon::after,
.nav-social .social-icon::after,
.footer-social .social-icon::after {
  display: none !important;
  content: none !important;
}

.nav-social {
  display: flex;
  gap: 10px;
  align-items: center;
}

.nav-social .social-icon {
  color: #9e1b22;
  border: 1px solid rgba(158, 27, 34, 0.2);
  background: #ffffff;
}

.nav-social .social-icon:hover {
  color: #ffffff;
  background: #9e1b22;
  border-color: #9e1b22;
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.footer-social .social-icon {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: transparent;
}

.footer-social .social-icon:hover {
  background: #ffffff;
  color: #9e1b22;
}

.social-icon-disabled {
  opacity: 0.45;
  cursor: default;
  pointer-events: none;
}

.nav-social .social-icon-disabled {
  color: #9e1b22;
  border: 1px solid rgba(158, 27, 34, 0.15);
  background: #ffffff;
}

.footer-social .social-icon-disabled {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: transparent;
}

/* -------------------------
   WHATSAPP FLOATING BUTTON
------------------------- */
.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #ffffff !important;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  z-index: 1000;
  transition: 0.3s ease;
}

.whatsapp-float:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.3);
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

/* -------------------------
   FINAL HEADER BALANCE
------------------------- */
.header-container {
  max-width: 1500px;
  padding: 8px 24px;
}

.site-header .brand {
  gap: 14px;
  min-width: 520px;
  flex-shrink: 0;
}

.site-header .brand-logo img {
  height: 56px !important;
  width: auto !important;
  max-width: none !important;
  object-fit: contain !important;
  display: block;
}

.site-header .title {
  font-size: 15px;
  line-height: 1.25;
  white-space: nowrap;
  max-width: none;
}

.main-nav {
  gap: 14px;
}

.main-nav a {
  font-size: 14px;
}

@media (max-width: 1200px) {
  .site-header .brand {
    min-width: 420px;
  }

  .site-header .title {
    font-size: 13px;
    white-space: normal;
    max-width: 230px;
  }

  .main-nav {
    gap: 12px;
  }

  .main-nav a {
    font-size: 13px;
  }
}

@media (max-width: 900px) {
  .site-header .brand {
    min-width: 0;
    flex-shrink: 1;
  }

  .site-header .brand-logo img {
    height: 50px !important;
  }

  .site-header .title {
    font-size: 12px;
    white-space: normal;
    max-width: 220px;
  }

  .social-icon {
    width: 40px !important;
    height: 40px !important;
  }

  .social-icon svg {
    width: 22px !important;
    height: 22px !important;
  }
}

@media (max-width: 480px) {
  .site-header .brand-logo img {
    height: 44px !important;
  }

  .site-header .title {
    font-size: 11px;
    max-width: 190px;
  }
}

/* -------------------------
   REAL PHOTO HERO BACKGROUNDS
   Use different stock photos per page.
   CTA section remains unchanged.
------------------------- */

/* Default fallback image if a page-specific class is not added yet */
.hero,
.page-hero {
  --hero-image: url('/img/homepage-banner.png');
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: #222222;
}

/* Animated real-photo layer */
.hero::before,
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: var(--hero-image);
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  transform-origin: center center;
  transform: scale(1.04);
  animation: heroPhotoMove 14s ease-in-out infinite alternate;
  will-change: transform;
}

/* Neutral dark overlay - no red glow */
.hero::after,
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(rgba(15, 15, 15, 0.64), rgba(15, 15, 15, 0.64)),
    linear-gradient(120deg, rgba(0, 0, 0, 0.30), rgba(255, 255, 255, 0.05), rgba(0, 0, 0, 0.28));
  pointer-events: none;
}

/* Hover effect for general hero pages only.
   Partners has its own continuous animation and should not stop on hover. */
.hero:not(.hero-partners):hover::before,
.page-hero:not(.hero-partners):hover::before {
  transform: scale(1.08);
}

/* Keep content above animated background */
.hero-content,
.page-hero-content {
  position: relative;
  z-index: 1;
}

/* Page-specific hero images.
   Upload these files to: /public_html/img/heroes/
   Then add the matching class to each hero section. */
.hero-home {
  --hero-image: url('/img/heroes/home.jpg');
}

.hero-about {
  --hero-image: url('/img/heroes/about.jpg');
}

.hero-solutions {
  --hero-image: url('/img/heroes/solutions.jpg');
}

.hero-services {
  --hero-image: url('/img/heroes/services.jpg');
}

.hero-products {
  --hero-image: url('/img/heroes/products.jpg');
}

.hero-projects {
  --hero-image: url('/img/heroes/projects.jpg');
}

.hero-clients {
  --hero-image: url('/img/heroes/clients.jpg');
}

.hero-partners {
  --hero-image: url('/img/heroes/partners.jpg');
}

.hero-contact {
  --hero-image: url('/img/heroes/contact.jpg');
}

.hero-faq {
  --hero-image: url('/img/heroes/faq.jpg');
}

.hero-news {
  --hero-image: url('/img/heroes/news.jpg');
}

/* General hero movement */
@keyframes heroPhotoMove {
  0% {
    transform: scale(1.04);
  }

  100% {
    transform: scale(1.08);
  }
}

/* -------------------------
   PREMIUM PARTNERS HERO STYLE
------------------------- */
.hero-partners {
  min-height: 540px !important;
  padding: 110px 20px !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Partners image: zoom only from center.
   No side translation, so black side edges will not appear and hover will not pause the animation. */
.hero-partners::before {
  background-size: cover !important;
  background-position: center center !important;
  transform-origin: center center !important;
  animation: partnersHeroZoomOnly 16s ease-in-out infinite alternate !important;
}

/* Keep the same animation even when mouse hovers over the hero */
.hero-partners:hover::before {
  animation: partnersHeroZoomOnly 16s ease-in-out infinite alternate !important;
}

.hero-partners::after {
  background:
    linear-gradient(90deg, rgba(8, 12, 18, 0.88) 0%, rgba(8, 12, 18, 0.70) 42%, rgba(8, 12, 18, 0.42) 100%) !important;
}

/* Text glass panel */
.hero-partners .page-hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 34px 42px;
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(4px);
}

/* Decorative line under the glass panel */
.hero-partners .page-hero-content::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -12px;
  transform: translateX(-50%);
  width: 150px;
  height: 2px;
  background: #d32f2f;
  border-radius: 20px;
}

.hero-partners .hero-badge {
  margin-bottom: 18px;
}

.hero-partners h1 {
  font-size: 42px;
  letter-spacing: 0.5px;
}

.hero-partners p {
  max-width: 760px;
}

@keyframes partnersHeroZoomOnly {
  0% {
    transform: scale(1.025);
  }

  100% {
    transform: scale(1.065);
  }
}

/* Reduce movement for users who prefer less animation */
@media (prefers-reduced-motion: reduce) {
  .hero::before,
  .page-hero::before,
  .hero-partners::before {
    animation: none !important;
    transform: scale(1.04);
  }

  .hero:hover::before,
  .page-hero:hover::before,
  .hero-partners:hover::before {
    transform: scale(1.04);
  }
}

/* Mobile adjustments */
@media (max-width: 900px) {
  .hero-partners {
    min-height: 360px !important;
    padding: 80px 18px !important;
  }

  .hero-partners .page-hero-content {
    padding: 26px 24px;
  }

  .hero-partners .page-hero-content::before {
    left: 50%;
    top: auto;
    bottom: -10px;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
  }

  .hero-partners h1 {
    font-size: 28px;
  }

  .hero-partners::before {
    animation: partnersHeroZoomOnlyMobile 16s ease-in-out infinite alternate !important;
  }

  .hero-partners:hover::before {
    animation: partnersHeroZoomOnlyMobile 16s ease-in-out infinite alternate !important;
  }
}

@keyframes partnersHeroZoomOnlyMobile {
  0% {
    transform: scale(1.04);
  }

  100% {
    transform: scale(1.08);
  }
}

/* On mobile, reduce movement on general hero pages to keep performance smooth */
@media (max-width: 700px) {
  .hero:not(.hero-partners)::before,
  .page-hero:not(.hero-partners)::before {
    animation-duration: 16s;
  }
}

/* PREMIUM INNER PAGE HERO TEMPLATE */
.premium-page-hero {
  min-height: 540px !important;
  padding: 110px 20px !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

.premium-page-hero::before {
  background-size: cover !important;
  background-position: center center !important;
  transform-origin: center center;
  animation: premiumHeroZoomOnly 16s ease-in-out infinite alternate !important;
}

.premium-page-hero::after {
  background:
    linear-gradient(90deg, rgba(8, 12, 18, 0.88) 0%, rgba(8, 12, 18, 0.70) 42%, rgba(8, 12, 18, 0.42) 100%) !important;
}

.premium-page-hero .page-hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 34px 42px;
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(4px);
}

.premium-page-hero .page-hero-content::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -12px;
  transform: translateX(-50%);
  width: 150px;
  height: 2px;
  background: #d32f2f;
  border-radius: 20px;
}

.premium-page-hero .hero-badge {
  margin-bottom: 18px;
}

.premium-page-hero h1 {
  font-size: 42px;
  letter-spacing: 0.5px;
}

.premium-page-hero p {
  max-width: 760px;
}

@keyframes premiumHeroZoomOnly {
  0% {
    transform: scale(1.03);
  }

  100% {
    transform: scale(1.08);
  }
}

/* Disable hover interruption for premium heroes */
.premium-page-hero:hover::before {
  animation: premiumHeroZoomOnly 16s ease-in-out infinite alternate !important;
}

@media (max-width: 900px) {
  .premium-page-hero {
    min-height: 360px !important;
    padding: 80px 18px !important;
  }

  .premium-page-hero .page-hero-content {
    padding: 26px 24px;
  }

  .premium-page-hero .page-hero-content::before {
    width: 80px;
    height: 2px;
    bottom: -10px;
  }

  .premium-page-hero h1 {
    font-size: 28px;
  }
}
/* PREMIUM HOME HERO */
.premium-home-hero {
  min-height: 620px !important;
  padding: 130px 20px !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

.premium-home-hero::before {
  background-size: cover !important;
  background-position: center center !important;
  transform-origin: center center;
  animation: premiumHomeHeroZoom 18s ease-in-out infinite alternate !important;
}

.premium-home-hero::after {
  background:
    linear-gradient(90deg, rgba(8, 12, 18, 0.88) 0%, rgba(8, 12, 18, 0.68) 45%, rgba(8, 12, 18, 0.35) 100%) !important;
}

.premium-home-hero .hero-content {
  position: relative;
  z-index: 2;
  max-width: 980px;
  padding: 38px 46px;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(4px);
}

.premium-home-hero .hero-content::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -12px;
  transform: translateX(-50%);
  width: 170px;
  height: 2px;
  background: #d32f2f;
  border-radius: 20px;
}

.premium-home-hero h1 {
  font-size: 48px;
}

.premium-home-hero p {
  max-width: 820px;
}

@keyframes premiumHomeHeroZoom {
  0% {
    transform: scale(1.03);
  }

  100% {
    transform: scale(1.08);
  }
}

.premium-home-hero:hover::before {
  animation: premiumHomeHeroZoom 18s ease-in-out infinite alternate !important;
}

@media (max-width: 900px) {
  .premium-home-hero {
    min-height: 430px !important;
    padding: 90px 18px !important;
  }

  .premium-home-hero .hero-content {
    padding: 28px 24px;
  }

  .premium-home-hero h1 {
    font-size: 30px;
  }

  .premium-home-hero .hero-content::before {
    width: 90px;
  }
}

/* -------------------------
   FOOTER FINAL LAYOUT
------------------------- */
.footer-links-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 0 28px;
}

.footer-links-grid div {
  display: flex;
  flex-direction: column;
}

.footer-contact address {
  font-style: normal;
  line-height: 1.7;
}

.footer-contact p {
  margin: 5px 0;
}

.footer-contact address p {
  margin-bottom: 12px;
}

.footer-hours {
  margin-top: 14px;
}

.footer-hours h4 {
  margin: 12px 0 6px;
  font-size: 15px;
}

.footer-hours p {
  margin: 3px 0;
  color: #cccccc;
}

.footer-support-title {
  margin-top: 12px !important;
}

@media (max-width: 700px) {
  .footer-links-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
}
/* HOME HERO SLIDESHOW */
.hero-home {
  background: #111111 !important;
}

.hero-home::before {
  display: none !important;
}

.hero-slideshow {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1.03);
  animation: homeHeroSlideshow 40s infinite ease-in-out;
  will-change: opacity, transform;
}

.hero-slide-1 {
  background-image: url('/img/heroes/home-1.jpg');
  animation-delay: 0s;
}

.hero-slide-2 {
  background-image: url('/img/heroes/home-2.jpg');
  animation-delay: 8s;
}

.hero-slide-3 {
  background-image: url('/img/heroes/home-3.jpg');
  animation-delay: 16s;
}

.hero-slide-4 {
  background-image: url('/img/heroes/home-4.jpg');
  animation-delay: 24s;
}

.hero-slide-5 {
  background-image: url('/img/heroes/home-5.jpg');
  animation-delay: 32s;
}

@keyframes homeHeroSlideshow {
  0% {
    opacity: 0;
    transform: scale(1.03);
  }

  5% {
    opacity: 1;
  }

  17% {
    opacity: 1;
    transform: scale(1.09);
  }

  20% {
    opacity: 0;
    transform: scale(1.10);
  }

  100% {
    opacity: 0;
    transform: scale(1.03);
  }
}

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

@media (prefers-reduced-motion: reduce) {
  .hero-slide {
    animation: none !important;
    opacity: 0;
    transform: scale(1.04);
  }

  .hero-slide-1 {
    opacity: 1;
  }
}