@import url("https://fonts.googleapis.com/css2?family=Inter:opsz,wght@14..32,100..900&display=swap");

.js-fade-in-hero-tagline {
  opacity: 0 !important;
  transition: opacity 2s;
}
/* Custom Language Dropdown Styles */
.custom-dropdown {
  position: relative;
  width: 2.5rem;
  /* font-family: "Rubik", sans-serif; */
  user-select: none;
}
.custom-dropdown-selected {
  background: #fff;
  padding: 4px 24px 4px 8px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  min-width: 50px;
  /* box-shadow: 0 0 0 2px #e0e0e0;  */
}
.custom-dropdown-options {
  position: absolute;
  top: 110%;
  left: 0;
  width: 100%;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  z-index: 9999;
  margin-top: 2px;
  padding: 4px 0;
}
.custom-dropdown-option {
  padding: 6px 10px;
  cursor: pointer;
  transition: background 0.15s;
}
.custom-dropdown-option:hover {
  background: #fff;
  /* padding: 4px 24px 4px 8px; */
  border: none;
  border-radius: 4px;
  cursor: pointer;
  /* min-width: 50px; */
  /* box-shadow: 0 0 0 2px #e0e0e0;  */
  transition:
    color 0.2s,
    opacity 0.2s;
  opacity: 1;
}
.custom-dropdown-selected.fade {
  opacity: 0;
}
.language_dropdown select:hover {
  background: #fff;
  box-shadow: none;
}
/* Language dropdown custom styles */
.language_dropdown select {
  /* font-family: "Rubik", sans-serif; */
  border: none;
  background: #fff;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  outline: none;
  padding: 4px 24px 4px 8px;
  background-image: none;
  box-shadow: none;
  cursor: pointer;
}

/* Hide default arrow for select in most browsers */
.language_dropdown select::-ms-expand {
  display: none;
}

.language_dropdown {
  position: relative;
}
/* Left-align single slide in post_type_slider */
.post_type_slider .slick-track {
  display: flex !important;
  justify-content: flex-start !important;
}
.post_type_slider .slick-slide {
  float: none !important;
}

.nm-gallery-slider .slick-track {
  display: flex !important;
  flex-direction: row !important;
}
/* ==========================================================================
   Newmatter Theme Plugin - Styles
   ========================================================================== */

/* ---------- Reset & Base ---------- */

body {
  font-style: normal;
  font-weight: 300;
  font-family: "Inter", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
}

h2 {
  font-weight: inherit;
}

.newmatter-page * {
  box-sizing: border-box;
}
.newmatter-page {
  color: #1a1a1a;
  line-height: 1.6;
  margin: 0;
  padding: 0;
}
.newmatter-page img {
  width: 100%;
  height: auto;
  display: block;
}
.newmatter-page a {
  color: inherit;
  text-decoration: none;
}

/* ---------- Header / Nav ---------- */
.newmatter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.8rem 4rem;
  position: relative;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
}
.newmatter-header .logo {
  font-size: 1.25rem;
  letter-spacing: 0.05em;
  width: auto;
}
.newmatter-header .nav-link {
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  transition: opacity 0.2s;
  border: solid black 1px;
  border-radius: 0.4rem;
  padding: 0.4rem 1.3rem;
}
.newmatter-header .nav-link:hover {
  opacity: 0.6;
}

/* ---------- Hero Section ---------- */
.newmatter-hero {
  position: relative;
  width: auto;
  overflow: hidden;
  background-color: #2c2c2c;
  margin: 0 4rem;
}
.newmatter-hero img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}
.newmatter-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  /* background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent 60%); */
  pointer-events: none;
}
/* ---------- Tagline (below hero) ---------- */
.newmatter-tagline {
  /* padding: 68px 4vw 0; */
  text-align: left;
  margin: 4rem 0 0 0;
  padding: 0 4rem;
  max-width: none;
}
.newmatter-tagline .hero-tagline {
  color: #1a1a1a;
  font-size: 2.5rem;
  line-height: 1.21;
  letter-spacing: 0;
  margin: 0;
}

/* ---------- Intro Text ---------- */
.newmatter-intro {
  /* max-width: 800px; */
  margin: 1rem auto;
  padding: 0 4rem;
  font-size: 1.1rem;
  line-height: 1.8;
  color: #444;
  display: flex;
}

.newmatter-intro-inner {
  width: 60%;
  margin-left: auto;
}

/* ---------- Projects Section ---------- */
.newmatter-section-heading {
  text-align: left;
  font-size: 2.5rem;
  margin: 3rem 4rem 1rem 4rem;
  opacity: 1;
  transition: opacity 1.2s;
}

/* Fade-in only if JS adds this class */
.js-fade-in-heading {
  opacity: 0 !important;
}
.newmatter-projects {
  display: flex;
  /* padding: 4rem 3rem; */
  flex-direction: column;
  padding-bottom: 7rem;
}

.newmatter-project-grid {
  display: flex;
  flex-direction: column;
  /* max-width: 20%; */
  /* grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); */
  /* gap: 2.5rem; */
  /* max-width: 1200px; */
  /* margin: 0 auto; */
  /* padding: 0 4rem; */
  overflow: visible;
}
.newmatter-project-card {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
}
.newmatter-project-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.newmatter-project-card:hover img {
  transform: scale(1.03);
}
.newmatter-project-card .card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.65), transparent);
  color: #fff;
}
.newmatter-project-card .card-overlay h3 {
  margin: 0 0 0.25rem;
  font-size: 1.25rem;
  font-weight: 600;
}
.newmatter-project-card .card-overlay span {
  font-size: 0.85rem;
  opacity: 0.8;
}

/* ---------- Explore Section ---------- */
.newmatter-explore {
  padding: 5rem 3rem;
  background: #f7f7f5;
}
.newmatter-explore-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}
.newmatter-explore-item {
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}
.newmatter-explore-item:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}
.newmatter-explore-item img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.newmatter-explore-item .explore-text {
  padding: 1.5rem;
}
.newmatter-explore-item .explore-text h4 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 600;
}
.newmatter-explore-item .explore-text p {
  margin: 0;
  font-size: 0.95rem;
  color: #666;
}

/* ---------- Clients Section ---------- */
.newmatter-clients {
  padding: 5rem 3rem;
  max-width: 1000px;
  margin: 0 auto;
}
.newmatter-clients-year {
  margin-bottom: 2.5rem;
}
.newmatter-clients-year h4 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #999;
  margin-bottom: 0.75rem;
}
.newmatter-clients-year ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
}
.newmatter-clients-year ul li {
  font-size: 1rem;
  font-weight: 500;
}

/* ---------- Contact Section ---------- */
.newmatter-contact {
  padding: 5rem 3rem;
  background: #1a1a1a;
  color: #fff;
}
.newmatter-contact .section-inner {
  max-width: 700px;
  margin: 0 auto;
}
.newmatter-contact h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}
.newmatter-contact .contact-subtitle {
  font-size: 1rem;
  color: #aaa;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}
.newmatter-contact form {
  display: grid;
  gap: 1.25rem;
}
.newmatter-contact .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.newmatter-contact label {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.4rem;
  color: #bbb;
}
.newmatter-contact input,
.newmatter-contact select,
.newmatter-contact textarea {
  width: 100%;
  padding: 0.75rem;
  background: #2a2a2a;
  border: 1px solid #444;
  color: #fff;
  border-radius: 3px;
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s;
}
.newmatter-contact input:focus,
.newmatter-contact select:focus,
.newmatter-contact textarea:focus {
  outline: none;
  border-color: #888;
}
.newmatter-contact textarea {
  resize: vertical;
  min-height: 100px;
}
.newmatter-contact .form-checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.newmatter-contact .form-checkbox input[type="checkbox"] {
  width: auto;
}
.newmatter-contact button[type="submit"] {
  padding: 0.85rem 2rem;
  background: #fff;
  color: #1a1a1a;
  border: none;
  border-radius: 3px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.2s;
  justify-self: start;
}
.newmatter-contact button[type="submit"]:hover {
  opacity: 0.85;
}

/* ---------- About / Footer ---------- */
.newmatter-about {
  background: #1a1a1a;
  color: #fff;
  padding: 5rem 4rem;
  display: flex;
  flex-direction: column;
}
.newmatter-about-inner {
  display: grid;
  grid-template-columns: 0.6fr 0.8fr;
  gap: 4rem;
  align-items: start;
}

.newmatter-about-image img {
  width: 100%;
  display: block;
  object-fit: cover;
}
.newmatter-about-content {
  color: #fff;
  padding-right: 12rem;
}
.newmatter-about-content h1,
.newmatter-about-content h2,
.newmatter-about-content h3,
.newmatter-about-content h4,
.newmatter-about-content h5,
.newmatter-about-content h6 {
  color: #fff;
  margin-top: 0;
}
.newmatter-about-content p,
.newmatter-about-content li {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  line-height: 1.7;
}
.newmatter-about-content p:first-child {
  margin-top: 0;
}
.newmatter-about-content a {
  color: #fff;
  text-decoration: underline;
}
.newmatter-about-gallery {
  display: flex;
  gap: 0.5rem;
  margin: 3rem auto 0;
  width: 100%;
}
.newmatter-about-gallery-item {
  flex: 1 1 0;
  min-width: 0;
}
.newmatter-about-gallery-item img {
  width: 100%;
  display: block;
  /* object-fit: cover;
  aspect-ratio: 4 / 3; */
}
.newmatter-about-gallery-caption {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.65);
  margin: 0.4rem 0 0;
  text-align: center;
}

.newmatter-footer {
  font-size: 0.85rem;
  color: #ffffff;
  padding: 0 4rem 2rem;
  background: #1a1a1a;
}
.newmatter-footer-inner {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  padding-bottom: 10rem;
  padding-top: 2rem;
  font-size: 1rem;
  /* border-top: 1px dotted #eee; */
}

.newmatter-page.newmatter-single .newmatter-footer-inner {
  border-top: none;
}

.newmatter-footer-image {
  width: 53%;
  flex-shrink: 0;
  /* padding: 20px; */
}
.newmatter-footer-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.newmatter-footer-copy {
  display: flex;
  align-items: center;
  justify-content: right;
  padding-top: 0;
  text-align: center;
}

.footer-email {
  letter-spacing: 0.1rem;
  line-height: 1rem;
}

.footer_text {
  line-height: 1rem;
}

/* ---------- Success Message ---------- */
.newmatter-form-success {
  background: #2a5a3a;
  color: #fff;
  padding: 1rem 1.25rem;
  border-radius: 4px;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.readmore {
  font-size: 14px;
}

.readmore a {
  border: solid black 1px;
  border-radius: 0.4rem !important;
  padding: 0.4rem 1.3rem !important;
}

.readmore a:hover {
  background: transparent !important;
  color: black !important;
}

.slick-arrow i {
  display: none;
}

.newmatter-project-grid .slick-list {
  padding: 0 4rem;
}

/* Position both arrows absolutely, centred on the slider's midpoint. */
.post_type_slider,
.nm-gallery-slider {
  position: relative;
}

.slick-prev,
.slick-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 40px !important;
  height: 40px !important;
  /* background-color: rgba(255, 255, 255, 0.2) !important; */
  background-size: contain !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  border: none;
  padding: 0;
  cursor: pointer;
  border-radius: 0 !important;
  font-size: 0;
}
.slick-prev {
  left: 4rem !important;
  background-image: url(yellow_arrow_left.svg) !important;
}
.nm-gallery-slider .slick-prev {
  left: 0 !important;
}
.slick-next {
  right: 4rem !important;
  background-image: url(yellow_arrow_right.svg) !important;
}

.nm-gallery-section .slick-next {
  right: 0rem !important;
}
.nm-gallery-slider .slick-prev {
  right: 0 !important;
}
/* .slick-prev:hover,
.slick-next:hover {
  background-color: rgba(255, 255, 255, 0.3) !important;
} */

.slick-prev::before,
.slick-next::before {
  content: "" !important;
}
.slick-prev img,
.slick-next img {
  display: none !important;
}
.post_type_slider .post_slide {
  /* padding: 0 !important;
  margin: 0 10px !important; */
  box-shadow: none !important;
}

button {
  background-color: transparent;
}

.newmatter-projects:nth-child(7) {
  background: rgba(234, 233, 233, 0.5);
}

/* ---------- Single Post Template ---------- */
.newmatter-single-hero {
  position: relative;
  width: auto;
  overflow: hidden;
  margin: 0 4rem;
  /* top: 76px; */
}
.newmatter-single-hero img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Fluid-engine-style grid for title + content */
.newmatter-single-grid {
  display: flex;
  flex-direction: column;
  position: relative;
  /* grid-template-rows: repeat(6, minmax(24px, auto));
  grid-template-columns:
    minmax(calc(4vw - 11px), 1fr)
    repeat(24, minmax(0, calc((1500px - (11px * 23)) / 24)))
    minmax(calc(4vw - 11px), 1fr);
  row-gap: 11px;
  column-gap: 11px; */
  overflow-x: clip;
  /* top: 76px; */
  padding: 0 4rem;
}

/* Title block — mirrors fe-block grid-area: 19/2 / 20/26 → row 1, col 2-26 */
.newmatter-about-content .newmatter-single-title {
  grid-area: 1 / 2 / 2 / 26;
  padding: 0;
  margin: 0 0 3rem 0;
}

.newmatter-single-title {
  grid-area: 1 / 2 / 2 / 26;
  padding: 0;
  margin: 3rem 0;
}
.newmatter-single-title h1 {
  font-style: normal;
  font-size: 2.5rem;
  line-height: 1;
  text-transform: none;
  margin: 0;
  color: #1a1a1a;
  font-weight: 300;
}

.newmatter-about .newmatter-single-title h1 {
  color: white;
}

/* Ensure video slides match image slide height and auto width */
.nm-gallery-slider .nm-gallery-slide,
.nm-gallery-slider .nm-gallery-slide figure {
  width: 100%;
}
.nm-gallery-slider .nm-gallery-slide figure {
  display: flex;
  align-items: start;
  justify-content: flex-start;
  height: 100%;
  margin: 0;
  flex-direction: column;
}
.nm-gallery-slider .nm-gallery-slide video {
  width: 100%;
  height: auto;
}

/* Date / excerpt — mirrors fe-block grid-area: 22/2 / 24/8 */
.newmatter-single-left {
  grid-area: 2 / 2 / 4 / 8;
}
.newmatter-single-left .newmatter-single-date {
  font-size: 0.9rem;
  line-height: 1.3;
  letter-spacing: 0;
  color: #1a1a1a;
  margin: 0;
}

/* Main text — mirrors fe-block grid-area: 22/14 / 25/26 */
.newmatter-single-right {
  grid-area: 2 / 14 / 5 / 26;
}
.newmatter-single-right p {
  font-size: 1rem;
  line-height: 1.3;
  letter-spacing: 0;
  color: #1a1a1a;
  margin: 0 0 1rem;
}

/* Remove the old flex wrapper — content sits directly in the grid */
.newmatter-single-content {
  width: 60%;
  margin-left: auto;
}

/* ---------- Single Post Gallery Slider ---------- */
.newmatter-single {
  overflow-x: clip;
}
.nm-gallery-section {
  margin: 2rem 4rem 7rem 4rem;
}
.nm-gallery-slider {
  overflow: visible;
}
.nm-gallery-slider .nm-gallery-slide figure {
  margin: 0;
  /* padding: 0 8px; */
  padding-right: 8px;
  position: relative;
}

.nm-gallery-slider .nm-gallery-slide img,
.nm-gallery-slider .nm-gallery-slide video {
  height: max(
    80vh,
    400px
  ); /* Adjust as needed to match your image slide height */
  width: auto;
  /* height: 100%; */
  display: block;
  margin: 0 auto;
  object-fit: contain;
  background: #000;
  width: auto;
  display: block;
}

.nm-gallery-slider .nm-gallery-slide figcaption {
  text-align: left;
  line-height: 1.5;
  font-size: 1.2rem;
  padding: 0.7rem 0rem 0;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .newmatter-header .logo {
    font-size: 1rem;
  }

  .newmatter-header .nav-link {
    font-size: 0.7rem;
    letter-spacing: 0.04em;
    border-radius: 0.4rem;
    padding: 0.3rem 1rem;
  }

  .newmatter-single-hero {
    margin: 0 1.5rem;
  }
  .nm-gallery-section {
    margin: 2rem 1.5rem;
  }
  .nm-gallery-slider .nm-gallery-slide img {
    width: 100%;
    height: auto;
  }

  .nm-gallery-slider .nm-gallery-slide img,
  .nm-gallery-slider .nm-gallery-slide video {
    max-height: max(20vh, 300px);
    /* max-height: 30vh; */
    /* min-height: 30vh; */
  }

  .newmatter-tagline {
    padding: 0 1.54rem;
    margin: 2rem 0 0 0;
  }
  .newmatter-tagline .hero-tagline {
    /* font-size: 47.6px; */
    font-size: 2rem;
  }
  .newmatter-intro {
    margin: 1rem auto;
  }
  .newmatter-header {
    padding: 1rem 1.5rem;
  }
  .newmatter-hero {
    /* padding: 4rem 1.5rem 3rem; */
    padding: 0;
    margin: 0;
  }

  .newmatter-hero .hero-tagline {
    font-size: 1.35rem;
  }
  .newmatter-intro {
    padding: 0 1.5rem;
  }

  .newmatter-explore,
  .newmatter-clients,
  .newmatter-contact {
    padding: 3rem 1.5rem;
  }

  .newmatter-about {
    padding: 3rem 1.5rem 1rem 1.5rem;
  }
  .newmatter-projects {
    padding-top: 1rem;
    padding-bottom: 2rem;
  }
  .newmatter-contact .form-row {
    grid-template-columns: 1fr;
  }
  .newmatter-about-inner {
    grid-template-columns: none;
    gap: 1rem;
  }

  .newmatter-intro-inner {
    width: 100%;
  }
  .newmatter-section-heading {
    margin: 0;
    font-size: 2.5rem;
    padding: 0 1.5rem;
  }
  .newmatter-single-grid {
    grid-template-rows: repeat(6, minmax(24px, auto));

    grid-template-columns:
      minmax(calc(6vw - 11px), 1fr)
      repeat(8, minmax(0, 1fr))
      minmax(calc(6vw - 11px), 1fr);

    padding: 0 1.5rem;
  }
  .newmatter-about-content .newmatter-single-title {
    margin: 1rem 0;
  }

  .newmatter-single-title {
    /* grid-area: 1 / 2 / 2 / 10; */
    margin: 2rem 0;
  }

  .newmatter-about-content {
    padding-right: 0;
  }

  .newmatter-single-title h1 {
    font-size: 1.75rem;
  }
  .newmatter-single-left {
    grid-area: 2 / 2 / 3 / 10;
  }
  .newmatter-single-right {
    grid-area: 3 / 2 / 5 / 10;
  }
  .newmatter-single-content {
    width: 100%;
  }

  .slick-list {
    /* padding: 0 1.5rem; */
    padding: 0;
  }

  .nm-gallery-slider .slick-slide {
    /* width: calc(100vw - 3rem) !important; */
    width: auto !important;
  }

  .slick-prev {
    left: 1.5rem !important;
  }

  .slick-next {
    right: 1.5rem !important;
  }

  .newmatter-footer {
    padding: 0 1.5rem 2rem;
  }
  .newmatter-footer-inner {
    flex-direction: column;
    padding-top: 0;
    padding-bottom: 2rem;
  }

  .newmatter-project-grid .slick-list {
    padding: 0 1.5rem;
  }

  .newmatter-footer-image {
    width: 100%;
    padding: 1rem 0;
  }

  .newmatter-footer-copy {
    justify-content: left;
  }
}
