/* ===========================
   MikroTik Page - Pixel Perfect CSS
   =========================== */

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  margin: 0;
  padding: 0;
  color: #1a1a1a;
  background-color: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===========================
   Utility Classes
   =========================== */

.m-0 {
  margin: 0 !important;
}
.p-0 {
  padding: 0;
}
.pb-10 {
  padding-bottom: 10px;
}
.pb-15 {
  padding-bottom: 15px;
}
.pb-20 {
  padding-bottom: 20px;
}
.pb-30 {
  padding-bottom: 30px;
}
.pb-40 {
  padding-bottom: 40px !important;
}
.pb-60 {
  padding-bottom: 60px;
}
.pb-80 {
  padding-bottom: 80px;
}
.p-10 {
  padding: 10px;
}
.p-20 {
  padding: 20px;
}
.p-30 {
  padding: 30px;
}
.p-40 {
  padding: 40px;
}
.pr-20 {
  padding-right: 60px;
}
.px-60 {
  padding-left: 60px;
  padding-right: 60px;
}
.py-100 {
  padding-top: 100px;
  padding-bottom: 100px;
}
.py-50 {
  padding-top: 50px;
  padding-bottom: 50px;
}
.py-20 {
  padding-top: 20px;
  padding-bottom: 20px;
}
.py-15 {
  padding-top: 15px;
  padding-bottom: 15px;
}
.pt-40 {
  padding-top: 40px;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

.object-fit-cover {
  object-fit: cover;
}

/* Flexbox */
.flex {
  display: flex;
}
.flex-row {
  flex-direction: row;
}
.flex-column {
  flex-direction: column;
}
.flex-wrap {
  flex-wrap: wrap;
}
.items-start {
  align-items: flex-start;
}
.items-center {
  align-items: center;
}
.items-end {
  align-items: flex-end;
}
.justify-start {
  justify-content: flex-start;
}
.justify-center {
  justify-content: center;
}
.justify-end {
  justify-content: flex-end;
}
.justify-between {
  justify-content: space-between;
}
.gap-5 {
  gap: 5px;
}
.gap-10 {
  gap: 10px;
}
.gap-15 {
  gap: 15px;
}
.gap-20 {
  gap: 20px;
}
.gap-25 {
  gap: 25px;
}
.gap-30 {
  gap: 30px;
}
.gap-60 {
  gap: 60px;
}
.gap-80 {
  gap: 80px;
}
.flex-shrink-0 {
  flex-shrink: 0;
}

.box {
  flex: 1;
}
.box-40 {
  flex: 0 0 40%;
  max-width: 40%;
}
.box-45 {
  flex: 0 0 45%;
  max-width: 45%;
}
.box-50 {
  flex: 0 0 50%;
  max-width: 50%;
}
.box-55 {
  flex: 0 0 55%;
  max-width: 55%;
}
.box-60 {
  flex: 0 0 60%;
  max-width: 60%;
}

/* Colors */
.color-dark-font {
  color: #1a1a1a;
}
.color-white {
  color: #fff;
}
.color-gray {
  color: #7a7a7a;
}
.bg-white {
  background-color: #fff;
}
.bg-dark {
  background-color: #2c3544;
}
.bg-light-gray {
  background-color: #e8e8e8;
}
.bg-dark-gray {
  background-color: #293339;
}
.bg-charcoal {
  background-color: #efefef !important;
}

/* Typography */
.font-weight-400 {
  font-weight: 400;
}
.font-weight-500 {
  font-weight: 500;
}
.font-weight-600 {
  font-weight: 600;
}
.font-weight-700 {
  font-weight: 700;
}
.text-center {
  text-align: center;
}
.line-height-large {
  line-height: 1.7;
}
.line-height-32 {
  line-height: 32px;
}

h1 {
  font-size: 3rem;
  font-weight: 600;
  line-height: 1.2;
  color: #1a1a1a;
}

h2 {
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 1.3;
  color: #1a1a1a;
}

h4 {
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.5;
}

p {
  font-size: 1rem;
  line-height: 1.7;
  color: #1a1a1a;
}

/* Border Radius */
.radius-20 {
  border-radius: 20px;
}
.radius-top-20 {
  border-radius: 20px 20px 0 0;
}

/* Width */
.w-100 {
  width: 100%;
}
.max-width-700 {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
.max-width-800 {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.max-width-450 {
  max-width: 450px;
  margin-left: auto;
  margin-right: auto;
}
.max-width-350 {
  max-width: 350px;
  margin-left: auto;
  margin-right: auto;
}
/* ===========================
   Section 1: About & Known For
   =========================== */

.section-1 {
  background-color: #fff;
}

.product-hero-img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.known-for-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.known-for-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.known-for-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.icon-circle {
  width: 48px;
  height: 48px;
  background-color: #f5f5f5;
  border-radius: 50%;
  color: #1a1a1a;
}

/* ===========================
   Section 2: Product Categories
   =========================== */

.section-2 {
  background-color: #2c3544;
}

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

.product-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.product-img-area {
  height: 220px;
  padding: 30px;
  overflow: hidden;
}

.product-img-area img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-content a {
  text-decoration: none;
  transition: gap 0.3s ease;
}

.product-content a:hover {
  gap: 10px !important;
}

/* ===========================
   Section 3: Why Choose
   =========================== */

.section-3 {
  position: relative;
  background-color: #fafafa;
}

.section-with-bg::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background-image: url("../assets/Frame 2147238623.jpg");
  background-size: cover;
  background-position: center;
  opacity: 0.08;
  pointer-events: none;
  z-index: 0;
}

.section-3 .container {
  position: relative;
  z-index: 1;
}

.feature-icon {
  width: 48px;
  height: 48px;
  color: #1a1a1a;
}

/* ===========================
   Section 4: Why Buy From NACE
   =========================== */

.section-4 {
  background-color: #fff;
}

.section-4 h3 {
  font-size: 1.8rem;
  line-height: 1.3;
}

.image-wrapper-nace {
  max-width: 500px;
  margin: 0 auto;
}

.image-wrapper-nace img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.benefit-card-nace {
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.benefit-card-nace:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.benefit-icon img {
  width: 48px;
  height: 48px;
  color: #1a1a1a;
}

/* ===========================
   Section 5: Need Help CTA
   =========================== */

.section-5 {
  position: relative;
  background-color: #293339;
}

.section-5::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("../assets/need-help.png");
  background-size: cover;
  background-position: center;
  opacity: 0.5; /* Control image opacity here */
  pointer-events: none;
  z-index: 0;
}

.section-5 .container {
  position: relative;
  z-index: 1;
}

/* ===========================
   Section 6: FAQs
   =========================== */

.section-6 {
  background-color: #fafafa;
}

.accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.accordion-item {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.accordion-header {
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  background-color: #e8e8e8;
  color: #1a1a1a;
  font-weight: 500;
  transition: background-color 0.3s ease;
  user-select: none;
}

.accordion-header.active {
  background-color: #2c3544;
  color: #fff;
}

.accordion-icon {
  flex-shrink: 0;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
  width: 24px;
  height: 24px;
}

.accordion-header.active .accordion-icon {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.3s ease,
    padding 0.3s ease;
  background-color: #f5f5f5;
}

.accordion-content.open {
  max-height: 300px;
  padding: 20px 24px;
}

.accordion-content p {
  color: #4a4a4a;
  line-height: 1.6;
}

/* ===========================
   Section 7: Contact Form
   =========================== */

.section-7 {
  position: relative;
  background-color: #1a2332;
  overflow: hidden;
}

.section-7::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("../assets/Frame 2147238623.png");
  background-size: cover;
  background-position: center;
  opacity: 1;
  z-index: 1;
}

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

.form-card {
  background: #fff;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.form-input {
  flex: 1;
  min-width: 240px;
  padding: 14px 18px;
  border-radius: 6px;
  font-family: "Inter", sans-serif;
  font-size: 0.95rem;
  color: #1a1a1a;
  background-color: #fff;
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease;
  border: 1px solid #000;
}

.form-input:focus {
  outline: none;
  border-color: #2c3544;
  box-shadow: 0 0 0 3px rgba(44, 53, 68, 0.1);
}

.form-input::placeholder {
  color: #0000004a;
}

.section-7 .form-card {
  position: relative;
}
.section-7 .form-card::after {
  content: "";
  position: absolute;
  top: 45px;
  left: -210px;
  transform: translateY(-50%);
  width: 200px;
  height: 91px;
  background-image: url("../assets/arrow-form.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* ===========================
   Buttons
   =========================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  border: none;
  border-radius: 50px;
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.btn-white {
  background-color: #fff;
  color: #1a1a1a;
}

.btn-white:hover {
  background-color: #f5f5f5;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.btn-dark {
  background-color: #2c3544;
  color: #fff;
}

.btn-dark:hover {
  background-color: #1a2332;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.btn-submit {
  background-color: #000;
  color: #fff;
  border-radius: 8px;
  font-weight: 600;
  text-align: center;
  justify-content: center;
}

.btn-submit:hover {
  background-color: #000;
  transform: translateY(-2px);
}

.why-choose-mikrotik {
  background-image: url("../assets/why-choose-mitk.png");
  background-size: contain;
  background-position: center;
}

.why-paragraph {
  max-width: 650px;
}

.flex.flex-column.gap-5.why-listing {
  position: relative;
}

.flex.flex-column.gap-5.why-listing:before {
  content: "•";
  position: absolute;
  left: -15px;
  top: 4px;
}

/* ===========================
   Responsive Design
   =========================== */
@media screen and (max-width: 1240px) {
  .gap-80,
  .gap-60 {
    gap: 20px !important;
  }
  .gap-60 {
    gap: 10px !important;
  }
}
@media screen and (max-width: 1150px) {
  .arrow-right::after {
    display: none;
  }
}

@media screen and (max-width: 1024px) {
  .container {
    padding: 0 30px;
  }

  h1 {
    font-size: 2.5rem;
  }
  h2 {
    font-size: 2rem;
  }

  .flex-row {
    flex-direction: column !important;
  }
  .pr-20 {
    padding-right: 0 !important;
  }

  .box-40,
  .box-45,
  .box-50,
  .box-55,
  .box-60 {
    flex: 0 0 100%;
    max-width: 100%;
  }
  .section-7 .box.box-55 {
    width: 100%;
  }
  .form-card {
    margin-top: 20px;
  }
  .flex-row {
    gap: 20px;
  }

  .gap-80 {
    gap: 40px !important;
  }

  .known-for-grid {
    grid-template-columns: 1fr;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

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

  .py-100 {
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .pb-60 {
    padding-bottom: 40px;
  }

  .section-with-bg::before {
    width: 100%;
    opacity: 0.05;
  }
  .mik-center-item {
    display: flex;
    flex-direction: row !important;
    justify-content: center !important;
  }
  .section-7 .form-card::after {
    display: none;
  }
}

@media screen and (max-width: 768px) {
  .container {
    padding: 0 20px;
  }

  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.8rem;
  }
  h4 {
    font-size: 1rem;
  }

  .py-100 {
    padding-top: 50px;
    padding-bottom: 50px;
  }

  .pb-80 {
    padding-bottom: 40px;
  }
  .pb-60 {
    padding-bottom: 30px;
  }
  .pb-40 {
    padding-bottom: 20px;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }
  .flex.flex-column.gap-5.why-listing:before {
    display: none;
  }
  .flex.flex-column.gap-5.why-listing {
    text-align: center;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .gap-30 {
    gap: 20px !important;
  }

  .p-40 {
    padding: 24px;
  }

  .form-input {
    min-width: 100%;
  }

  .btn {
    padding: 14px 28px;
    font-size: 0.95rem;
  }
}

@media screen and (max-width: 480px) {
  h1 {
    font-size: 1.75rem;
  }
  h2 {
    font-size: 1.5rem;
  }

  .container {
    padding: 0 16px;
  }

  .py-100 {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .icon-circle {
    width: 40px;
    height: 40px;
  }

  .icon-circle svg {
    width: 24px;
    height: 24px;
  }

  .feature-icon {
    width: 36px;
    height: 36px;
  }

  .product-img-area {
    height: 180px;
    padding: 20px;
  }

  .p-30 {
    padding: 20px;
  }

  .accordion-header,
  .accordion-content.open {
    padding: 16px 20px;
  }
}
