/* CSS Reset & Variables */
:root {
  --primary-color: #000;
  --accent-color: #c41e3a;
  /* Red for play buttons */
  --gold-color: #bfa078;
  --text-gray: #555;
  --bg-light: #f9f9f9;
  --border-color: #e0e0e0;
  --font-main: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

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

body {
  font-family: Inter !important;
  color: #333;
  line-height: 1.6;
}

.homePage img {
  width: 100%;
  height: auto;
  display: block;
}

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

.displayPc {
  display: block;
}

.displayPh {
  display: none;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
}

.homePage .container h1,
.homePage .container h2,
.homePage .container h3 {
  color: var(--branding-primary-1100, #000);
  font-family: Montserrat !important;
}

.h1 {
  font-size: 42px;
  font-weight: 800;
  line-height: 52px;
  text-align: center;
}

.h2 {
  font-size: 32px;
  font-weight: 700;
  line-height: 40px;
}

.h3 {
  font-size: 24px;
  font-weight: 700;
  line-height: 36px;
}

p {
  color: var(--branding-primary-160, #666);
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 24px;
  margin-bottom: 0;
}

p.title {
  font-family: Montserrat;
}

p.desc {
  color: var(--branding-primary-160, #666);
  font-size: 14px;
  font-weight: 400;
  line-height: 21px;
}

p span {
  color: var(--branding-primary-2100, #B5946C);
  font-style: italic;
  text-decoration: underline;
  font-weight: 700;
  font-family: Montserrat !important;
  cursor: pointer;
}

.mg_5 {
  margin-bottom: 5px;
}

.mg_10 {
  margin-bottom: 10px;
}

.mg_20 {
  margin-bottom: 20px;
}

.mg_30 {
  margin-bottom: 30px;
}

.mg_40 {
  margin-bottom: 40px;
}

.mg_50 {
  margin-bottom: 50px;
}

.section-desc {
  color: var(--branding-primary-1100, #000);
  font-size: 18px;
  font-weight: 400;
  line-height: 27px;
  text-align: center;
}

.btn-outline {
  background: transparent;
  color: #000;
  padding: 8px 16px;
  border: 1px solid #000;
  font-size: 0.8rem;
  cursor: pointer;
}

/* SECTIONS GENERAL */
section {
  padding: 100px 0 0;
}

/* MEASUREMENT GUIDE */
.measurement-steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.full-width-img {
  width: 100%;
}

/* VIDEO THUMBNAILS */
.video-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media(min-width: 768px) {
  .video-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.videoThumb img {
  cursor: pointer;
}

/* TABLE STYLES */
.table-wrapper {
  overflow-x: auto;
}

.table-wrapper table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 10px;
  border: none;
}

.table-wrapper th,
.table-wrapper td {
  text-align: left;
  padding: 10px 0;
  border-bottom: 1px solid #999;
  color: var(--branding-primary-1100, #000);
  font-size: 18px;
  font-weight: 400;
  line-height: 27px;
  border-right: none;
}

.table-wrapper th {
  font-family: Montserrat !important;
  font-weight: 700;
  text-transform: none;
}

.table-wrapper thead th {
  border-bottom: none;
}

.table-wrapper tr {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
}

/* MATERIAL COMPARISON (Article) */
.article-card {
  width: 50%;
}

.article-card .Cover {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.article-card img {
  width: auto;
}

.article-card a:hover h3 {
  text-decoration: underline;
}

.article-card a:hover p {
  text-decoration: underline;
}

/* COLOR GUIDE - HIGHLIGHTS */
.highlights-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media(min-width: 768px) {
  .highlights-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.highlight-item img {
  width: 100%;
  object-fit: cover;
}

/* COLOR RINGS & GRAY */
.gray-grid,
.rings-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.rings-grid p {
  font-family: Montserrat !important;
  font-weight: 700;
  color: var(--branding-primary-1100, #000);
}

@media(min-width: 768px) {
  .gray-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.cta-center {
  text-align: center;
}

.btn {
  display: inline-flex;
  width: 290px;
  padding: 10px;
  justify-content: center;
  align-items: center;
  color: #000;
  background-color: unset;
  text-align: center;
  font-family: Montserrat !important;
  font-size: 18px;
  font-style: normal;
  font-weight: 700;
  line-height: 27px;
  border: 2px solid var(--branding-primary-1100, #000);
  margin: 0;
}

a.btn-black,
button.btn-black {
  background: var(--branding-primary-1100, #000);
  color: var(--Branding-Primary1-White, #FFF);
}

a.btn-black:hover,
button.btn-black:hover {
  background: var(--branding-primary-2100, #B5946C);
  border: 2px solid var(--branding-primary-1100, #B5946C);
}

a.btn-wide:hover,
button.btn-wide:hover {
  color: var(--branding-primary-2100, #B5946C);
  border: 2px solid var(--branding-primary-1100, #B5946C);
}

a.btn img {
  margin-right: 3px;
  width: 20px;
}

a.btn .iconHover {
  display: none;
}

a.btn:hover .icon {
  display: none;
}

a.btn:hover .iconHover {
  display: block;
}

/* HAIR DENSITY */
.density-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

@media(min-width: 992px) {
  .density-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.density-item {
  text-align: left;
}

.density-item div {
  color: var(--branding-primary-180, #333);
  font-family: Montserrat !important;
  font-size: 18px;
  font-style: normal;
  font-weight: 700;
  line-height: 27px;
}

/* ORDER FORM GUIDE */
.order-steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media(min-width: 768px) {
  .order-steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* BOTTOM CTA */
.expert-section {
  text-align: center;
  padding: 100px 20px;
  background: #fff;
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 400px;
  margin: 0 auto;
  justify-content: center;
}

@media(min-width: 768px) {
  .cta-buttons {
    flex-direction: row;
    max-width: 600px;
  }
}

button.btn:focus-visible {
  outline: none;
}

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

@media screen and (max-width: 767px) {
  .displayPh {
    display: block;
  }

  .displayPc {
    display: none !important;
  }

  section {
    padding: 50px 0 0;
  }

  .h1 {
    font-size: 20px;
    line-height: 25px;
  }

  .h2 {
    font-size: 18px;
    line-height: 27px;
  }

  .h3 {
    font-size: 16px;
    line-height: 24px;
  }

  p {
    font-size: 14px;
    line-height: 21px;
  }

  .section-desc {
    font-size: 14px;
    line-height: 21px;
  }

  .colorP,
  .highlights-grid p {
    font-size: 12px;
    line-height: 18px;
  }

  .mg_50 {
    margin-bottom: 30px;
  }

  .mg_40 {
    margin-bottom: 30px;
  }

  .mg_30 {
    margin-bottom: 20px;
  }

  .measurement-steps {
    grid-template-columns: repeat(1, 1fr);
    gap: 0;
  }

  .table-wrapper tr {
    gap: 20px;
  }

  .table-wrapper th,
  .table-wrapper td {
    text-align: left;
    padding: 10px 0;
    border: none;
    font-size: 14px;
    line-height: 21px;
  }

  .article-card {
    width: 100%;
  }

  .gray-grid,
  .rings-grid,
  .density-grid {
    gap: 10px;
  }

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

  .density-item div {
    font-size: 13px;
    line-height: 19px;
  }

  p.desc {
    font-size: 12px;
    line-height: 18px;
  }

  .expert-section {
    padding: 50px 0;
  }

  .cta-buttons {
    gap: 10px;
  }
}

/* Modal */
.video-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.85);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}

.video-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.video-modal .video-inner {
  width: 90%;
  max-width: 1100px;
  aspect-ratio: 16/9;
  position: relative;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.video-modal .video-close {
  position: absolute;
  right: 15px;
  top: 18px;
  z-index: 5;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  margin: 0;
  line-height: 18px;
  padding: 0 15px;
  display: flex;
  align-items: center;
}

.video-modal .video-wrap {
  width: 100%;
  height: 100%;
}

.video-modal iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.download-order-modal {
  position: fixed;
  inset: 0;
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.download-order-modal.is-active {
  opacity: 1;
  visibility: visible;
}

.download-order-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.60);
  backdrop-filter: blur(12.75px);
}

.download-order-modal__dialog {
  position: relative;
  z-index: 1;
  background: #f3f1ee;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  margin-left: 20px;
  height: calc(100vh - 40px);
  width: 425px;
  display: flex;
  flex-direction: column;
}

.download-order-modal__title {
  margin: 0 0 10px;
  font-family: Montserrat !important;
  font-size: 22px;
  font-weight: 700;
  color: #111;
  display: flex;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #999;
}

.download-order-modal__title svg {
  margin-right: 10px;
  cursor: pointer;
}

.download-order-modal__body {
  padding: 0 20px;
  flex: 1;
}

.download-order-modal__content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
}

.download-order-modal__option {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--branding-primary-1100, #000);
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: 27px;
  cursor: pointer;
  margin-bottom: 20px
}

.download-order-modal__option input[type="radio"] {
  appearance: none;
  width: 16px;
  height: 16px;
  border: 1px solid #111;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  position: relative;
  border-radius: 0;
}

.download-order-modal__option input[type="radio"]::after {
  content: "";
  width: 16px;
  height: 16px;
  background: var(--download-order-option-checked) center/contain no-repeat;
  opacity: 0;
}

.download-order-modal__option input[type="radio"]:checked {
  background: transparent;
}

.download-order-modal__option input[type="radio"]:checked::after {
  opacity: 1;
}

.download-order-modal__footer {
  padding: 0 20px 20px;
}

.download-order-modal__submit {
  width: 100%;
  margin: 0;
  opacity: 0.7;
}

.download-order-modal__submit:disabled {
  cursor: not-allowed;
}

.download-order-modal__submit:not(:disabled) {
  background: #000;
  opacity: 1;
}

html.co-modal-open,
body.co-modal-open {
  overflow: hidden;
}

/* Responsive: small screens use full viewport */
@media screen and (max-width: 767px) {
  .video-modal .video-inner {
    width: 98%;
    height: 56vh;
    max-width: none;
    aspect-ratio: auto;
  }

  .download-order-modal {
    justify-content: center;
  }

  .download-order-modal__dialog {
    width: 94vw;
    height: 620px;
    margin: 0;
  }
}