/* Override master layout for this page */
.ct-wrapper,
.ct-wrapper * {
  box-sizing: border-box;
}

/* Hide standard page breadcrumb/padding from master */
.breadcrumb__area,
.custom-footer {
  display: none !important;
}

@media (min-width: 992px) {
  /* Optional: Give the left card a slight glassmorphic Mersi feel */
  .news-letter-card.is-contact {
    background-color: rgba(220, 212, 200, 0.85) !important;
    backdrop-filter: blur(8px);
  }
}

/* ── Root Page ── */
.ct-wrapper {
  position: fixed;
  inset: 0;
  display: flex;
  overflow: hidden;
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  background: #e8e4db;
  z-index: 1;
}

/* ── Grain Texture Overlay ── */
.ct-grain {
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
  opacity: 0.04;
  mix-blend-mode: multiply;
}

/* ══ LEFT HALF — Sliding Images ══ */
.ct-left {
  position: relative;
  width: 50%;
  flex-shrink: 0;
  overflow: hidden;
  background: #2a2520;
}

.ct-slides {
  position: absolute;
  inset: 0;
}

.ct-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.4s ease;
}

.ct-slide.active {
  opacity: 1;
}

.ct-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.04);
  transition: transform 8s ease-out;
}

.ct-slide.active img {
  transform: scale(1);
}

/* Dark gradient on right edge of image to blend into card */
.ct-left::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 220px;
  height: 100%;
  background: linear-gradient(to right, transparent, rgba(26, 22, 18, 0.35));
  z-index: 2;
  pointer-events: none;
}

/* ── Footer bar (bottom of left) ── */
.ct-footer-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
  padding: 0 2.5rem 1.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ct-footer-link {
  font-size: 0.6rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.25s;
}

.ct-footer-link:hover {
  color: rgba(255, 255, 255, 0.9);
}

.ct-footer-diamond {
  width: 20px;
  height: 20px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  transform: rotate(45deg);
  flex-shrink: 0;
}

/* Slide counter */
.ct-slide-counter {
  position: absolute;
  bottom: 1.8rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 6px;
  align-items: center;
}

.ct-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition:
    background 0.3s,
    transform 0.3s;
  border: none;
  padding: 0;
}

.ct-dot.active {
  background: rgba(255, 255, 255, 0.85);
  transform: scale(1.4);
}

/* ══ RIGHT HALF — Contact Info ══ */
.ct-right {
  flex: 1;
  position: relative;
  background: #e8e4db;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 5vw;
  overflow: hidden;
}

/* Subtle texture on right side */
.ct-right::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-size: 180px;
  opacity: 0.025;
  pointer-events: none;
  z-index: 0;
}

.ct-right-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 380px;
  width: 100%;
}

/* Mersi: sans-serif, normal weight, sentence-case, single line */
.ct-right-title {
  font-size: clamp(0.95rem, 1.4vw, 1.6rem);
  font-weight: 700;
  color: #1a1814;
  letter-spacing: -0.01em;
  margin: 0 0 2.5rem;
  line-height: 1.2;
  font-family: 'Plus Jakarta Sans', sans-serif;
  text-transform: none;
}

.ct-contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Mersi: lowercase, regular weight, normal size */
.ct-contact-list li a,
.ct-contact-list li p {
  font-size: clamp(0.78rem, 1vw, 1.4rem);
  font-weight: 400;
  color: #1a1814;
  text-decoration: none;
  letter-spacing: 0.01em;
  line-height: 1.5;
  transition: opacity 0.25s;
  margin: 0;
  text-transform: none;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.ct-contact-list li a:hover {
  opacity: 0.5;
}

.ct-card__newsletter-title {
  font-size: 16px;
  font-weight: 700;
  color: #000000a8;
  letter-spacing: 0;
  margin: 0 0 auto;
  line-height: 1.3;
}

.ct-card__form {
  margin-top: 0;
}

/* Mersi style: underline only, no box */
.ct-card__input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  padding-bottom: 0.5rem;
  background: transparent;
}

.ct-card__input-wrap input[type='text'],
.ct-card__input-wrap input[type='email'],
.ct-card__input-wrap input[type='tel'],
.ct-card__input-wrap input[type='number'],
.ct-card__input-wrap input[type='password'],
.ct-card__input-wrap input[type='date'],
.ct-card__input-wrap textarea {
  margin-bottom: 5px !important;
  border-bottom: 1px solid rgba(26, 24, 20, 0.55) !important;
  padding: 5px !important;
  height: 25px !important;
  font-size: 10px !important;
  letter-spacing: normal !important;
}

.ct-card__input-wrap textarea {
  height: 80px !important;
}

.ct-card__email-input {
  flex: 1;
  background: transparent !important;
  border: none !important;
  border-bottom: 1px solid rgba(26, 24, 20, 0.55);

  outline: none !important;
  font-size: 0.62rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(26, 24, 20, 0.6);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 500;
  caret-color: #1a1814;
  padding: 0;
  padding-right: 24px !important;
}

/* Uniform placeholder styling */
.ct-card__email-input::placeholder,
.ct-card__input-wrap textarea::placeholder {
  font-size: 12px !important;
  color: rgba(26, 24, 20, 0.45) !important;
  letter-spacing: 1px !important;
  text-transform: capitalize !important;
  opacity: 1;
}

/* Validation error state */
.ct-card__input-wrap .ct-error {
  border-bottom-color: #c0392b !important;
}

/* Error message text */
.ct-field-error {
  font-size: 9px;
  color: #c0392b;
  margin-top: 2px;
  display: none;
}

/* Submit button with text + up-arrow */
.ct-card__submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 8px 20px;
  background: #1a1814;
  color: #e8e4db;
  border: none;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  font-family: 'Plus Jakarta Sans', sans-serif;
  transition:
    background 0.3s,
    transform 0.2s;
}

.ct-card__submit-btn.icon-only {
  position: absolute;
  right: 0;
  bottom: 0.5rem;
  margin: 0;
  margin-bottom: 5px;
  padding: 4px;
  background: transparent;
  color: #1a1814;
  width: 24px;
  height: 24px;
  display: flex;
  justify-content: center;
}

.ct-card__submit-btn.icon-only:hover {
  background: transparent;
  transform: translateY(-2px);
}

.ct-card__submit-btn:not(.icon-only):hover {
  background: #2c2824;
  transform: translateY(-1px);
}

.ct-card__submit-btn svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Right solid side of card */
.ct-card__right {
  flex: 1;
  background: #e8e4db;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Mersi-style soft neumorphic monogram applied to the SVG shape */
.ct-monogram-img {
  width: 175px;
  height: auto;
  object-fit: contain;
  margin-bottom: 0.5rem;
  opacity: 0.9;
  /* filter: brightness(1.1) drop-shadow(-2px -2px 4px rgba(255, 255, 255, 1)); */
  mix-blend-mode: luminosity;
}

.ct-monogram-divider {
  width: 1px;
  height: 28px;
  background: rgba(26, 24, 20, 0.2);
  margin: 0.5rem auto 0.8rem;
}

.ct-address {
  font-size: 12px;
  letter-spacing: 1px;
  color: #000;
  text-align: center;
  line-height: 1.4;
  font-weight: 500;
  margin: 0;
}

/* ══ SUCCESS FLASH ══ */
.ct-success-toast {
  position: fixed;
  top: 2rem;
  left: 50%;
  transform: translateX(-50%);
  background: #1a1814;
  color: #e8e4db;
  padding: 0.9rem 2rem;
  font-size: 0.72rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  z-index: 10000;
  opacity: 0;
  animation: toastIn 4s ease forwards;
}

@keyframes toastIn {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(-10px);
  }

  10% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }

  80% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }

  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(-10px);
  }
}

/* ══ MOBILE ══ */
@media (max-width: 900px) {
  .ct-wrapper {
    flex-direction: column;
    position: relative;
    height: auto;
    overflow: auto;
    min-height: 100vh;
  }

  .ct-left {
    width: 100%;
    height: 50vh;
    min-height: 300px;
    flex-shrink: 0;
    position: relative;
  }

  .ct-left::after {
    display: none;
  }

  /* Reset the absolute floating card so it flows in the document */
  .card_contact_w_absolute {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    width: 90% !important;
    margin: -50px auto 2rem auto !important;
    z-index: 20 !important;
  }

  .card-contact_project {
    display: flex !important;
    flex-direction: column !important;
    height: auto !important;
    width: 100% !important;
    background: #e8e4db !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  }

  /* Ensure it's not hidden by webflow classes */
  .hide-tab {
    display: flex !important;
  }

  /* Hide SVG borders as they don't scale well vertically */
  .svg-border-left,
  .svg-border-right {
    display: none !important;
  }

  .ct-card__left,
  .ct-card__right {
    min-height: auto !important;
    width: 100% !important;
    padding: 2rem !important;
  }

  .ct-card__left {
    border-right: none !important;
    border-bottom: 1px solid rgba(26, 24, 20, 0.1) !important;
  }

  .ct-right {
    padding: 2rem 2rem 5rem !important;
    flex: none !important;
    height: auto !important;
  }

  .ct-grain {
    display: none;
  }
}
