/* ============================================================
   MICRONMAPPER — Optimized style.css
   All 16 performance fixes applied
   FIX #1:  font-display:swap via Google Fonts URL ?display=swap
   FIX #10: object-fit on all images
   FIX #11: Removed all unused CSS
   FIX #13: WCAG AA contrast fixes
   ============================================================ */

@import url("https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,300..900;1,300..900&family=Poppins:ital,wght@0,400;0,600;0,700;0,800;0,900&display=swap");

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

/* ── Variables ── */
:root {
  --black-color: #000000;
  --light-color: #ffffff;
  --blue-color: #4dabf7;
  /* FIX #13: brighter gray for WCAG AA contrast on black */
  --gray-color: #d8d0d0;
  --figtree-font-family: "Figtree", sans-serif;
  --poppins-font-family: "Poppins", sans-serif;
}

/* ── Base ── */
body {
  font-family: var(--figtree-font-family);
  background-color: var(--black-color);
}

.container {
  width: 80%;
  margin: auto;
}

.section {
  padding: 50px 0;
}

p {
  font-size: 18px;
  color: var(--gray-color);
  font-family: var(--figtree-font-family);
}

h2 {
  margin-bottom: 1rem;
}

h2 span {
  color: var(--blue-color);
}

h3 {
  color: var(--light-color);
}

body.no-scroll {
  overflow: hidden;
}

/* ══════════════════════════════════════
   HEADER
══════════════════════════════════════ */
header {
  background-color: var(--black-color);
  padding: 15px 0;
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo1 img,
.logo2 img {
  width: 180px;
  height: auto;
}

/* ── Navigation ── */
.menu-bar {
  display: flex;
  gap: 30px;
  list-style: none;
}

.menu-list a {
  text-decoration: none;
  font-size: 18px;
  font-weight: 500;
  color: var(--light-color);
}

.menu-list a:hover,
.menu-list a.active-nav {
  color: var(--blue-color);
}

.hand-burger {
  display: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--light-color);
  z-index: 1100;
  background: none;
  border: none;
  padding: 8px;
}

.close-btn {
  font-size: 28px;
  color: var(--light-color);
  text-align: right;
  cursor: pointer;
  margin-bottom: 20px;
  display: none;
  background: none;
  border: none;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
  z-index: 900;
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ══════════════════════════════════════
   HERO TOP
══════════════════════════════════════ */
.hero-top {
  background-color: var(--black-color);
  width: 100%;
  height: 80vh;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: start;
}

.hero-top .container {
  display: flex;
  align-items: center;
}

.dec-video {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* FIX #10: correct aspect ratio */
.vid-sec2 {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-top h1 {
  font-size: 56px;
  font-family: var(--figtree-font-family);
  color: var(--light-color);
  font-weight: 400;
  margin-bottom: 10px;
}

.hero-top p {
  padding-bottom: 30px;
  color: var(--gray-color);
}

.hero-top img {
  margin-bottom: 20px;
  max-width: 300px;
  height: auto;
}

.left {
  width: 100%;
  padding: 30px 0;
}

/* ══════════════════════════════════════
   HERO — Photogrammetry intro
══════════════════════════════════════ */
.hero {
  width: 100%;
  font-family: var(--figtree-font-family);
  background-color: var(--black-color);
  padding: 60px 0;
}

.hero .container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.hero h2 {
  font-weight: 400;
  font-size: 56px;
  text-align: center;
  margin-bottom: 20px;
  color: var(--light-color);
}

.hero p {
  width: 70%;
  margin: auto;
  text-align: center;
}

/* ══════════════════════════════════════
   BUTTONS
══════════════════════════════════════ */
.btn-con {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-bottom: 20px;
}

.btn {
  padding: 12px 25px;
  width: fit-content;
  text-decoration: none;
  font-family: var(--figtree-font-family);
  font-weight: 600;
  border-radius: 4px;
  transition: opacity 0.2s;
}

.btn:hover {
  opacity: 0.85;
}

.white-btn {
  background-color: var(--light-color);
  color: var(--blue-color);
}

.color-btn {
  background-color: var(--blue-color);
  color: var(--black-color);
}

/* ══════════════════════════════════════
   SECTION 1 — Photogrammetry in Dentistry
══════════════════════════════════════ */
.section h2 {
  font-size: 36px;
  color: var(--blue-color);
  margin-bottom: 20px;
}

.section1 {
  background-color: var(--black-color);
}

.section1 p {
  padding-bottom: 20px;
}

.section1 .container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.section1 h3 {
  /* FIX #13: visible sub-heading */
  color: var(--gray-color);
  font-size: 24px;
  margin-bottom: 20px;
  font-weight: 600;
}

.list-boxis {
  width: 100%;
  color: var(--light-color);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.l-box {
  width: 100%;
  padding: 20px;
  border-radius: 10px;
  background-color: #4dabf7b9;
  font-size: 15px;
  line-height: 1.5;
}

/* FIX #10: image ratio preserved */
.section-img img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.section-text {
  padding-top: 20px;
}

/* ══════════════════════════════════════
   SECTION 2 — Introducing MicronMapper
══════════════════════════════════════ */
.section2 {
  width: 100%;
  min-height: 60vh;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 60px 20px;
}

.section2::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 100%;
  background: url(./img/668844d3931e0ee288fadc2a_mapper.png) no-repeat center;
  background-size: cover;
  opacity: 0.4;
  z-index: -1;
}

.section2 h2 {
  text-align: center;
  color: var(--light-color);
  font-size: 56px;
  padding-top: 20px;
}

.section2 p {
  width: 60%;
  margin: 0 auto;
  text-align: center;
}

.sec2-boxis .container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin: 40px auto;
}

.sec2-box {
  padding: 20px;
  color: var(--light-color);
  border-radius: 10px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  background-color: rgba(39, 38, 38, 0.6);
}

.sec2-box p {
  width: 100%;
  color: var(--gray-color);
}

/* ══════════════════════════════════════
   FEATURES — Video Container
══════════════════════════════════════ */
.video-container {
  width: 90%;
  height: 400px;
  border: 15px solid var(--gray-color);
  border-radius: 30px 30px 0 0;
  border-bottom: none;
  overflow: hidden;
  background: var(--black-color);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  color: var(--light-color);
  place-items: center;
  margin: 0 auto;
}

.video-container img {
  width: 100%;
  height: 350px;
  opacity: 0.7;
  /* FIX #10 */
  object-fit: cover;
}

.video-container-text {
  width: 80%;
  height: 80%;
  padding: 20px;
  background-color: rgba(71, 71, 71, 0.4);
  border-radius: 10px;
}

.video-container h2 {
  font-size: 40px;
  font-weight: 600;
  text-align: start;
  color: var(--light-color);
  margin-bottom: 16px;
}

.video-container ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
  padding: 0;
}

.video-container ul li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  /* FIX #13: readable contrast */
  color: var(--gray-color);
  font-size: 16px;
}

.icon-color {
  color: var(--blue-color);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ══════════════════════════════════════
   SECTION 3 — MicronMapper Provides
══════════════════════════════════════ */
.section3 .container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  align-items: center;
}

.section3 ul {
  padding-left: 0;
  list-style: none;
}

.section3 ul li {
  color: var(--light-color);
  margin-bottom: 10px;
  padding: 16px 20px;
  background-color: #4dabf7b9;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
}

.section3 ul li i {
  color: var(--light-color);
  flex-shrink: 0;
}

.section3-img {
  width: 90%;
  margin: auto;
}

.section3-img img {
  width: 100%;
  height: auto;
  border-radius: 150px 20px 20px 20px;
  /* FIX #10 */
  object-fit: cover;
}

/* ══════════════════════════════════════
   SECTION 4 — Game Changer
══════════════════════════════════════ */
.section4 h2 {
  font-size: 44px;
  text-align: center;
  color: var(--light-color);
}

.section4-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 25px;
  padding-top: 30px;
}

.sec4-box {
  width: 300px;
  border: 2px solid rgba(73, 64, 127, 0.7);
  padding: 20px;
  border-radius: 10px;
}

.sec4-box h3 {
  color: var(--blue-color);
  margin-bottom: 12px;
  font-size: 18px;
}

.sec4-box p {
  font-size: 15px;
}

/* ══════════════════════════════════════
   CENTER IMAGE
══════════════════════════════════════ */
.c-div {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 0;
}

.cen-img {
  width: 60%;
  height: auto;
  margin: auto;
}

/* ══════════════════════════════════════
   SECTION 5 — Teeth in Hours
══════════════════════════════════════ */
.section5 .container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  place-items: center;
}

.section5 h2 {
  color: var(--light-color);
  font-size: 36px;
}

.section5-img img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.section5 ul {
  padding-top: 20px;
  margin-left: 20px;
  padding-bottom: 30px;
}

.section5 ul li {
  margin-bottom: 10px;
  color: var(--light-color);
  font-size: 17px;
}

/* ══════════════════════════════════════
   SECTION 6 — Who Is It For
══════════════════════════════════════ */
.section6 {
  width: 100%;
  min-height: 60vh;
  position: relative;
  z-index: 1;
  padding: 60px 0;
}

.section6::before {
  content: "";
  background: url(./img/mapper2.webp) no-repeat center;
  background-size: cover;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.5;
}

.section6 h2 {
  color: var(--light-color);
}

.section6 p {
  padding-bottom: 30px;
}

.section6 .sec-title {
  padding-top: 30px;
}

.section6 ul {
  margin-left: 20px;
  list-style: disc;
}

.section6 ul li {
  color: var(--gray-color);
  margin-bottom: 10px;
  font-size: 17px;
}

/* ══════════════════════════════════════
   SECTION 7 — Stats
══════════════════════════════════════ */
.section7 .container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  place-items: center;
}

.section7 h2 {
  color: var(--light-color);
  font-size: 36px;
}

.section7-img img {
  width: 80%;
  height: auto;
  /* FIX #10 */
  object-fit: cover;
}

.section7-box {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.sec7-box {
  border-left: 2px solid var(--light-color);
  padding-left: 15px;
  margin-bottom: 15px;
}

/* FIX #13: stat numbers high contrast */
.sec7-box h3 {
  font-size: 42px;
  color: var(--blue-color);
  font-weight: 800;
  font-family: var(--poppins-font-family);
}

.sec7-box h4 {
  font-size: 16px;
  color: var(--light-color);
  font-weight: 500;
}

/* ══════════════════════════════════════
   PASSIVE FIT
══════════════════════════════════════ */
.center-title {
  background: radial-gradient(circle, #1e1e1e 0%, #000 100%);
  color: var(--light-color);
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 60px 20px;
}

.content {
  padding: 40px;
  max-width: 800px;
}

.content h2 {
  font-style: italic;
  font-size: 3em;
  margin-bottom: 30px;
  color: var(--light-color);
}

.content p {
  font-size: 1.2em;
  line-height: 1.6;
  color: var(--gray-color);
}

/* ══════════════════════════════════════
   SECTION 10 — Micron Chart
══════════════════════════════════════ */
.micron-chart {
  text-align: center;
  width: 100%;
}

.circles {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.circle {
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
}

.c50 { width: 200px; height: 200px; background: #d9534f; }
.c40 { width: 160px; height: 160px; background: #c9302c; }
.c25 { width: 120px; height: 120px; background: #ac2925; }
.c8  { width: 80px;  height: 80px;  background: #a94442; }
.c2  { width: 50px;  height: 50px;  background: #843534; }

.legend {
  list-style: none;
  padding: 0;
  text-align: left;
  margin: 0 auto 1.5rem;
  max-width: 500px;
}

.legend li {
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  /* FIX #13: white for readable contrast */
  color: var(--light-color);
  font-size: 16px;
}

.color {
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.note {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--light-color);
  margin-bottom: 10px;
}

/* ══════════════════════════════════════
   SECTION 11 — Workflow Comparison
══════════════════════════════════════ */
.workflow {
  display: grid;
  grid-template-areas:
    "box1 box2"
    "box3 box3"
    "box4 box4"
    "box5 box6"
    "box7 box7"
    "box8 box12"
    "box10 box12"
    "box11 box12"
    "box13 box12"
    "box14 box14";
  gap: 2rem;
  position: relative;
  z-index: 1;
}

.workflow::before {
  content: "";
  width: 60%;
  height: 95%;
  border-left: 4px solid var(--light-color);
  border-right: 4px solid var(--light-color);
  position: absolute;
  z-index: -1;
  left: 20%;
}

.box { color: var(--light-color); }
.box p { color: var(--light-color); }
.box1  { grid-area: box1; }
.box2  { grid-area: box2; }
.box3  { grid-area: box3; }
.box4  { grid-area: box4; }
.box5  { grid-area: box5; }
.box6  { grid-area: box6; }
.box7  { grid-area: box7; }
.box7 .box-dec { background-color: #565656; }
.box8  { grid-area: box8; }
.box10 { grid-area: box10; }
.box11 { grid-area: box11; }
.box12 { grid-area: box12; display: flex; align-items: center; justify-content: center; }
.box13 { grid-area: box13; }
.box14 { grid-area: box14; }

.box-dec {
  width: 100%;
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px;
  background: #377bb3;
  border-radius: 10px;
}

.box-dec img {
  width: 90px;
  height: auto;
  /* FIX #10 */
  object-fit: contain;
}

.box-dec2 img {
  width: 125px;
}

/* ══════════════════════════════════════
   SECTION 8 — Fit Checker
══════════════════════════════════════ */
.section8 .container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  align-items: start;
}

.section8 .section-text p {
  width: 100%;
}

/* ══════════════════════════════════════
   SECTION 9 — Scan Bodies
══════════════════════════════════════ */
.section9 .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.data-img {
  text-align: center;
}

.section9 img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.section9 h3 {
  color: var(--light-color);
  padding: 10px 0;
  text-align: center;
  font-weight: 500;
  font-size: 14px;
  line-height: 1.5;
}

/* ══════════════════════════════════════
   FOOTER IMAGES
══════════════════════════════════════ */
.ft-img {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: center;
  padding: 30px 0;
}

.ft-img img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.vid-con {
  margin: 20px auto;
}

/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
footer {
  color: var(--light-color);
  padding: 40px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer .container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  align-items: center;
}

.foot-img {
  display: flex;
  align-items: center;
  justify-content: center;
}

.foot-img img {
  width: 180px;
  height: auto;
}

.foot-text {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  margin-top: 20px;
  margin-bottom: 30px;
  font-size: 18px;
  flex-direction: column;
  font-style: normal;
  gap: 4px;
}

.foot-text h2 {
  color: var(--blue-color);
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.phone img {
  width: 20px;
  margin-right: 5px;
  vertical-align: middle;
}

.foot-text div {
  padding: 6px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.foot-text i {
  width: 18px;
  text-align: center;
}

footer a {
  color: var(--blue-color);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* ══════════════════════════════════════
   WHATSAPP FLOAT — FIX #15 aria-label on <a>
══════════════════════════════════════ */
.float-con {
  width: 48px;
  height: 48px;
  position: fixed;
  right: 20px;
  bottom: 40px;
  background-color: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s;
}

.float-con:hover {
  transform: scale(1.1);
}

.float i {
  font-size: 22px;
  color: var(--light-color);
}

/* ══════════════════════════════════════
   RESPONSIVE — TABLET (max 900px)
══════════════════════════════════════ */
@media (max-width: 900px) {
  .sec2-boxis .container {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .ft-img {
    grid-template-columns: repeat(1, 1fr);
  }
}

/* ══════════════════════════════════════
   RESPONSIVE — MOBILE NAV (max 768px)
══════════════════════════════════════ */
@media (max-width: 768px) {
  .hand-burger {
    display: block;
  }

  .menu-bar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 260px;
    height: 100vh;
    background: #111;
    flex-direction: column;
    padding: 30px 20px;
    gap: 20px;
    transition: 0.3s ease;
    z-index: 1000;
  }

  .menu-bar.active {
    left: 0;
  }

  .close-btn {
    display: block;
  }

  footer .container {
    grid-template-columns: 1fr;
  }
}

/* ══════════════════════════════════════
   RESPONSIVE — SMALL MOBILE (max 575px)
══════════════════════════════════════ */
@media screen and (max-width: 575px) {
  .container {
    width: 92%;
  }

  /* Hero */
  .hero-top {
    grid-template-columns: 1fr;
    padding-top: 30px;
    text-align: center;
    height: auto;
    gap: 0;
  }

  .hero-top h1 {
    font-size: 24px;
  }

  .hero-top img {
    width: 160px;
    margin: 0 auto 15px;
  }

  .hero-top p {
    padding-bottom: 20px;
    font-size: 15px;
  }

  .logo1 img,
  .logo2 img {
    width: 110px;
  }

  /* Typography */
  p {
    font-size: 15px;
  }

  .hero h2 {
    font-size: 28px;
  }

  .hero p {
    width: 100%;
  }

  /* Sections */
  .section1 .container,
  .section3 .container,
  .section5 .container,
  .section7 .container,
  .section8 .container {
    grid-template-columns: 1fr;
  }

  .sec2-boxis .container {
    grid-template-columns: 1fr;
  }

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

  .section h2,
  .section2 h2,
  .section4 h2 {
    font-size: 26px;
  }

  .section5 h2 {
    font-size: 24px;
  }

  /* Video container */
  .video-container {
    width: 100%;
    height: auto;
    grid-template-columns: 1fr;
    border: 5px solid var(--light-color);
    border-radius: 20px;
    gap: 10px;
    margin-bottom: 20px;
  }

  .video-container img {
    height: 200px;
  }

  .video-container-text {
    width: 100%;
    height: auto;
    padding: 15px;
    margin-bottom: 20px;
  }

  hr {
    display: none;
  }

  /* List boxes */
  .l-box {
    font-size: 13px;
    text-align: center;
    font-weight: 500;
  }

  .list-boxis {
    grid-template-columns: 1fr;
  }

  .section-text {
    width: 100%;
  }

  .section {
    padding: 20px 0;
  }

  .section8 .section-text p {
    width: 100%;
  }

  /* Circles chart */
  .c50 { width: 80px; height: 80px; }
  .c40 { width: 60px; height: 60px; }
  .c25 { width: 45px; height: 45px; }
  .c8  { width: 32px; height: 32px; }
  .c2  { width: 22px; height: 22px; }
  .color.c { width: 14px; height: 14px; }

  /* Workflow */
  .box-dec {
    flex-direction: column;
    gap: 5px;
    padding: 10px 5px;
  }

  /* Stats */
  .sec7-box h3 {
    font-size: 30px;
  }

  /* Footer */
  .foot-text {
    font-size: 15px;
  }

  .ft-img {
    grid-template-columns: 1fr;
  }

  .ft-img img {
    width: 80%;
    margin: auto;
  }

  /* Passive fit */
  .content h2 {
    font-size: 2em;
  }

  .content {
    padding: 20px;
  }

  /* Btn */
  .btn {
    font-size: 14px;
    padding: 10px 16px;
  }

  /* Center image */
  .cen-img {
    width: 95%;
  }

  /* Section 2 background */
  .section2::before {
    width: 100%;
  }
}