@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700;800;900&family=Roboto:wght@300;400;500;700;900&display=swap');

:root {
  --primary: #c00d0d;
  --primary-hover: #ba0000;
  --primary-dark: #630000;
  --header-bg: #16242e;
  --topbar-bg: #16242e;
  --footer-bg: #171717;
  --card-red: #c00d0d;
  --text-color: #898989;
  --heading-color: #000000;
  --font-family: 'Cairo', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  font-family: var(--font-family);
  color: var(--text-color);
  background-color: #ffffff;
  line-height: 1.6;
  font-size: 14px;
  overflow-x: hidden;
}

body[dir="rtl"] {
  direction: rtl;
  text-align: right;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--primary-hover);
}

.container {
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 15px;
}

/* ANIMATIONS */
@keyframes fadeInDown {
  0% {
    opacity: 0;
    transform: translate3d(0, -25px, 0);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes fadeInLeft {
  0% {
    opacity: 0;
    transform: translate3d(-25px, 0, 0);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.anim-fade-down {
  animation: fadeInDown 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

.anim-fade-left {
  animation: fadeInLeft 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

/* TOP BAR */
.top-bar {
  background-color: var(--topbar-bg);
  color: #8c8c8c;
  font-size: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.contact-info {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
}

.contact-info-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #a9b9c7;
}

.contact-info-item i, .contact-info-item svg {
  color: var(--primary);
  width: 14px;
  height: 14px;
}

.contact-info-item a {
  color: #a9b9c7;
}

.contact-info-item a:hover {
  color: #ffffff;
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
}

.lang-btn {
  color: #8c8c8c;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 3px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.lang-btn.active, .lang-btn:hover {
  background-color: var(--primary);
  color: #ffffff;
}

/* SITE HEADER */
.site-header {
  background-color: var(--header-bg);
  position: sticky;
  top: 0;
  z-index: 999;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 75px;
}

.logo img {
  height: 38px;
  width: auto;
  display: block;
}

.main-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 0;
}

.main-menu li a {
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 26px 18px;
  display: block;
  transition: color 0.2s, background-color 0.2s;
  border-bottom: 3px solid transparent;
}

.main-menu li.current-menu-item > a,
.main-menu li a:hover,
.main-menu li a.active {
  color: #ffffff;
  border-bottom-color: var(--primary);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 24px;
  cursor: pointer;
}

/* HERO SLIDER */
.hero-slider-wrap {
  position: relative;
  height: 520px;
  background-color: #000000;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease-in-out, transform 6s ease-out;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  display: flex;
  align-items: center;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
  position: absolute;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 850px;
  text-align: center;
  margin: 0 auto;
}

.hero-subtitle {
  color: #ffffff;
  font-size: 20px;
  font-weight: 400;
  margin-bottom: 12px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.6);
  letter-spacing: 0.5px;
}

.hero-title {
  color: #ffffff;
  font-size: 42px;
  font-weight: 900;
  text-transform: uppercase;
  font-family: 'Roboto', sans-serif;
  margin-bottom: 24px;
  text-shadow: 0 3px 8px rgba(0,0,0,0.8);
  letter-spacing: 1px;
}

/* SECTION HEADINGS */
.heading-left, .heading-middle {
  margin-bottom: 30px;
  position: relative;
}

.heading-subtitle {
  display: block;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  color: #d35e3f;
  font-style: normal;
  margin-bottom: 4px;
  letter-spacing: 1px;
}

.heading-title {
  font-size: 28px;
  font-weight: 900;
  color: #000000;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 12px;
}

.divider-modern::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 45px;
  height: 3px;
  background-color: var(--primary);
}

body[dir="rtl"] .divider-modern::after {
  left: auto;
  right: 0;
}

/* VISION & MISSION SECTION */
.section-vision {
  padding: 60px 0;
  background: #ffffff;
}

.vision-grid-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 30px;
}

.vision-images-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.vision-img-card {
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.vision-img-card img {
  width: 100%;
  height: auto;
  display: block;
}

.icon-box {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
}

.icon-media {
  color: var(--primary);
  font-size: 28px;
  flex-shrink: 0;
  margin-top: 2px;
}

.icon-media svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

.icon-title {
  font-size: 16px;
  font-weight: 800;
  color: #000000;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.icon-desc {
  color: #898989;
  font-size: 13.5px;
  line-height: 1.6;
}

/* JUMBOTRON / ENERGY EFFICIENCY BANNER */
.jumbotron-banner {
  background-color: #16242e;
  padding: 40px 0;
  color: #ffffff;
}

.jumbotron-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.jumbotron-title {
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.3;
  margin-bottom: 20px;
}

/* BUTTONS */
.btn {
  display: inline-block;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.btn-primary {
  background-color: var(--primary);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  color: #ffffff;
}

.btn-dark {
  background-color: #242424;
  color: #ffffff;
}

.btn-dark:hover {
  background-color: var(--primary);
  color: #ffffff;
}

/* RECENT NEWS / PRODUCTS HOME CARDS (CANVAS CONTAINED & PERFECTLY FIT) */
.section-news {
  padding: 60px 0;
  background-color: #f8f9f9;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.post-minimal {
  background: #ffffff;
  border: 1px solid #ececec;
  border-bottom: 3px solid var(--primary);
  border-radius: 3px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-minimal:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.08);
}

.post-minimal-canvas {
  height: 230px;
  background-color: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid #edf2f7;
}

.post-minimal-canvas img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  padding: 15px;
  transition: transform 0.4s ease;
}

.post-minimal:hover .post-minimal-canvas img {
  transform: scale(1.05);
}

.post-minimal-wrap {
  padding: 20px 24px;
  background: #ffffff;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.post-minimal-title {
  font-size: 16px;
  font-weight: 800;
  color: #000000;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.post-minimal-title a {
  color: #000000;
  transition: color 0.2s ease;
}

.post-minimal-title a:hover {
  color: var(--primary);
}

.post-minimal-meta {
  color: #898989;
  font-size: 12.5px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
}

/* GET IN TOUCH CARDS */
.section-touch {
  padding: 60px 0;
  background-color: #16242e;
}

.contact-cards-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.contact-box-red {
  background-color: var(--card-red);
  color: #ffffff;
  padding: 30px 24px;
  border-radius: 2px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.contact-box-icon {
  font-size: 26px;
  color: #2e2d2c;
  flex-shrink: 0;
}

.contact-box-title {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.contact-box-text {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.5;
  color: #ffffff;
}

.contact-box-text a {
  color: #ffffff;
}

/* PRODUCT CARD WITH LIGHT SLIDE-UP HOVER OVERLAY */
.featured {
  position: relative;
  margin-bottom: 35px;
  background: #ffffff;
  border: 1px solid #e1e4e8;
  border-bottom: 3px solid var(--primary);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 380px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.featured:hover {
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
  transform: translateY(-4px);
}

.featured-header {
  position: relative;
  height: 300px;
  background-color: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.featured-header img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  padding: 15px;
  transition: transform 0.4s ease;
}

.featured:hover .featured-header img {
  transform: scale(1.05);
}

.featured-static-title {
  height: 80px;
  padding: 15px 20px;
  background: #ffffff;
  border-top: 1px solid #edf2f7;
  display: flex;
  align-items: center;
}

.featured-static-title h3 {
  font-size: 16px;
  font-weight: 800;
  text-transform: uppercase;
  color: #000000;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.featured-static-title h3 i {
  color: var(--primary);
}

.featured-hover-panel {
  position: absolute;
  inset: 0;
  background: #ffffff;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  opacity: 0;
  visibility: hidden;
  transform: translateY(100%);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10;
  border-bottom: 3px solid var(--primary);
}

.featured:hover .featured-hover-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.featured-hover-title {
  font-size: 16px;
  font-weight: 800;
  text-transform: uppercase;
  color: #000000;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 2px solid var(--primary);
  padding-bottom: 8px;
}

.featured-hover-title i {
  color: var(--primary);
}

.featured-hover-desc {
  font-size: 13px;
  color: #64748b;
  line-height: 1.6;
  flex-grow: 1;
  overflow: hidden;
}

.featured-hover-desc ul {
  padding-left: 18px;
  margin: 8px 0;
}

body[dir="rtl"] .featured-hover-desc ul {
  padding-left: 0;
  padding-right: 18px;
}

.featured-hover-desc li {
  margin-bottom: 4px;
  color: #475569;
}

.featured-hover-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
  margin-top: 10px;
}

.btn-minimal {
  font-size: 12px;
  font-weight: 800;
  color: #000000;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.2s ease;
}

.btn-minimal:hover {
  color: var(--primary);
}

.btn-order-link {
  font-size: 12px;
  font-weight: 800;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.2s ease;
}

.btn-order-link:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

/* CONTACT US 3RD COLUMN STYLING EFFECTS */
.contact-form-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-top: 3px solid var(--primary);
  border-radius: 4px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  position: relative;
  transition: all 0.3s ease;
}

.contact-form-card:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.09);
  border-color: #cbd5e1;
}

.contact-form-card h3 {
  font-size: 18px;
  font-weight: 800;
  color: #16242e;
  text-transform: uppercase;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #edf2f7;
  display: flex;
  align-items: center;
  gap: 8px;
}

.contact-form-card h3::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: var(--primary);
  border-radius: 50%;
}

.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #334155;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-control {
  width: 100%;
  padding: 12px 14px;
  font-size: 14px;
  font-family: inherit;
  border: 1px solid #cbd5e1;
  border-radius: 3px;
  background-color: #ffffff;
  transition: all 0.25s ease;
  color: #1e293b;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(192, 13, 13, 0.15);
}

.btn-submit-form {
  width: 100%;
  background: linear-gradient(135deg, var(--primary) 0%, #ba0000 100%);
  color: #ffffff;
  font-weight: 800;
  font-size: 14px;
  padding: 12px;
  border-radius: 3px;
  border: none;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(192, 13, 13, 0.3);
  transition: all 0.25s ease;
}

.btn-submit-form:hover {
  background: linear-gradient(135deg, #ba0000 0%, #8b0000 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(192, 13, 13, 0.4);
}

/* FOOTER */
.site-footer {
  background-color: var(--footer-bg);
  color: #7f7f7f;
  font-size: 13.5px;
  padding: 60px 0 0;
  border-top: 4px solid var(--primary);
}

.footer-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 30px;
  padding-bottom: 40px;
}

.footer-widget-title {
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 20px;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 8px;
}

.footer-widget-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 25px;
  height: 2px;
  background-color: var(--primary);
}

body[dir="rtl"] .footer-widget-title::after {
  left: auto;
  right: 0;
}

.footer-contact-info {
  list-style: none;
  margin-top: 14px;
}

.footer-contact-info li {
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
}

.footer-contact-info a {
  color: #ffffff;
}

.working-hours {
  width: 100%;
  border-collapse: collapse;
}

.working-hours th, .working-hours td {
  padding: 6px 0;
  border-bottom: 1px solid #2e2e2e;
  font-size: 13px;
  text-align: left;
}

body[dir="rtl"] .working-hours th, body[dir="rtl"] .working-hours td {
  text-align: right;
}

.working-hours th {
  color: #ffffff;
}

.working-hours th.important, .working-hours td.important {
  color: var(--primary) !important;
}

.copyright-footer {
  background-color: #171717;
  color: #9c9c9c;
  padding: 20px 0;
  border-top: 1px solid #2e2e2e;
  font-size: 13px;
}

.copyright-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

/* RESPONSIVE */
@media (max-width: 992px) {
  .vision-grid-wrapper {
    grid-template-columns: 1fr;
  }
  .footer-row {
    grid-template-columns: 1fr 1fr;
  }
  .jumbotron-inner {
    flex-direction: column;
    text-align: center;
  }
  .main-menu {
    display: none;
  }
  .main-menu.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--header-bg);
    padding: 15px;
    z-index: 1000;
  }
  .mobile-toggle {
    display: block;
  }
}

@media (max-width: 600px) {
  .footer-row {
    grid-template-columns: 1fr;
  }
  .hero-title {
    font-size: 28px;
  }
  .hero-subtitle {
    font-size: 16px;
  }
}
