/* ==========================================================================
   Luxury Editorial "Coming Soon" Landing Page - Stylesheet
   ========================================================================== */

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

body {
  font-family: 'Montserrat', sans-serif;
  background: radial-gradient(100% 100% at 50% 0%, #FDFBF7 0%, #ECE4DB 100%);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-x: hidden;
  padding: 20px;
}

/* --- Main Canvas Container --- */
.main-container {
  display: flex;
  flex-direction: row;
  width: 1340px;
  min-height: 760px;
  background-color: #F6F1EC;
  border-radius: 28px;
  position: relative;
  box-shadow: 0 40px 100px rgba(61, 53, 48, 0.15);
  overflow: visible; /* Required to prevent clipping the floating overlapping image */
}

/* --- Left Panel Container --- */
.left-container {
  position: relative;
  width: 45.52%; /* ~610px of 1340px */
  min-height: 760px;
  background-color: #F6F1EC;
  border-top-left-radius: 28px;
  border-bottom-left-radius: 28px;
  padding: 40px 50px 50px 70px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  z-index: 2;
}

/* Decorative SVG Wave Line */
.decorative-curve {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* --- Logo Box --- */
.logo-box {
  position: relative;
  z-index: 3;
  width: 160px;
  height: 80px;
  border: 1px solid #D8D0C8;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 2px;
  color: #5A514C;
  line-height: 1.1em;
  transition: all 0.4s ease;
}

.logo-box:hover {
  background-color: #3D3530;
  color: #F6F1EC;
  border-color: #3D3530;
  box-shadow: 0 8px 24px rgba(61, 53, 48, 0.15);
  transform: translateY(-2px);
}

/* --- Heading Stack --- */
.heading-stack {
  position: relative;
  z-index: 3;
  text-align: center;
  margin-top: 55px;
}

.subtitle {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7em;
  letter-spacing: 0.5px;
  color: #7B746D;
  display: inline-block;
}

.main-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 56px;
  font-weight: 500;
  letter-spacing: 3px;
  color: #3D3530;
  margin-top: 15px;
  line-height: 1.2em;
}

/* --- Supporting Paragraph --- */
.supporting-text {
  position: relative;
  z-index: 3;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  line-height: 1.8em;
  font-weight: 400;
  color: #8A817A;
  text-align: center;
  max-width: 320px;
  margin: 35px auto 0 auto;
}

/* --- Social Icons Row --- */
.social-icons-row {
  position: relative;
  z-index: 3;
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 30px;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: #514A44;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.social-icon svg {
  width: 14px;
  height: 14px;
  stroke-width: 1.5;
}

.social-icon:hover {
  background-color: rgba(61, 53, 48, 0.08);
  color: #3D3530;
  transform: scale(1.15);
}

/* --- Email Subscription Area --- */
.subscription-form {
  position: relative;
  z-index: 3;
  display: flex;
  width: 290px;
  height: 42px;
  margin-top: 85px;
  align-self: flex-start; /* Bottom-left aligned */
}

.sub-input {
  width: 210px;
  height: 42px;
  background-color: #FFFFFF;
  border: 1px solid #DDD5CE;
  border-right: none;
  padding: 0 15px;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  color: #3D3530;
  outline: none;
  border-radius: 0;
  transition: border-color 0.3s ease;
}

.sub-input::placeholder {
  color: #B5ADA6;
  font-size: 11px;
}

.sub-input:focus {
  border-color: #8A817A;
}

.sub-button {
  width: 80px;
  height: 42px;
  background-color: #D9D0C7;
  color: #FFFFFF;
  border: none;
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1px;
  cursor: pointer;
  border-radius: 0;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.sub-button:hover {
  background-color: #8A817A;
}

.sub-button:active {
  transform: scale(0.97);
}

.form-feedback {
  position: relative;
  z-index: 3;
  width: 290px;
  margin-top: 8px;
  font-size: 10px;
  font-weight: 500;
  align-self: flex-start;
  min-height: 15px;
  transition: opacity 0.3s ease;
  opacity: 0;
}

.form-feedback.success {
  color: #6E8A75;
  opacity: 1;
}

.form-feedback.error {
  color: #A05244;
  opacity: 1;
}

/* --- Right Panel Container --- */
.right-container {
  position: relative;
  width: 54.48%; /* ~730px of 1340px */
  min-height: 760px;
  background-color: #E2DBD5;
  border-top-right-radius: 28px;
  border-bottom-right-radius: 28px;
  overflow: visible; /* Crucial to let the overlapping center image overflow left */
  z-index: 2;
}

/* Carousel Background Wrapper */
.carousel-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-top-right-radius: 28px;
  border-bottom-right-radius: 28px;
  overflow: hidden;
  z-index: 1;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1), transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  transform: scale(1.05);
}

.carousel-slide.active {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}

/* --- Floating Overlapping Editorial Image --- */
.floating-editorial-image {
  position: absolute;
  width: 290px;
  height: 400px;
  top: 160px;
  left: -55px; /* Intentionally crosses the split boundary */
  z-index: 5; /* Sit on top of left and right panel */
  background-color: #F6F1EC;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(61, 53, 48, 0.18);
  transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.floating-editorial-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 1s ease;
}

.floating-editorial-image:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 40px 80px rgba(61, 53, 48, 0.25);
}

.floating-editorial-image:hover img {
  transform: scale(1.05);
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */

/* --- Tablet Breakpoint (max-width: 1380px or ~1024px) --- */
@media screen and (max-width: 1380px) {
  body {
    padding: 40px 20px;
  }
  
  .main-container {
    width: 100%;
    max-width: 1024px;
    min-height: auto;
  }

  .left-container {
    padding: 40px 40px 40px 50px;
    min-height: 700px;
  }

  .right-container {
    min-height: 700px;
  }

  .main-title {
    font-size: 42px;
  }

  .countdown-number, .countdown-colon {
    font-size: 32px;
  }

  .floating-editorial-image {
    width: 220px;
    height: 300px;
    top: 200px;
    left: -40px;
  }

  .subscription-form {
    margin-top: 60px;
  }
}

/* --- Mobile Breakpoint (max-width: 767px) --- */
@media screen and (max-width: 767px) {
  body {
    padding: 15px;
    align-items: flex-start;
  }

  .main-container {
    flex-direction: column;
    width: 100%;
    min-height: auto;
    border-radius: 16px;
    margin: 0;
  }

  /* Left Panel collapses into full width stacked top */
  .left-container {
    width: 100%;
    min-height: auto;
    border-radius: 16px 16px 0 0;
    padding: 50px 24px 60px 24px;
    align-items: center;
  }

  .logo-box {
    margin-top: 0;
  }

  .heading-stack {
    margin-top: 40px;
  }

  .main-title {
    font-size: 34px;
  }

  .countdown-container {
    margin-top: 30px;
  }

  .countdown-number, .countdown-colon {
    font-size: 26px;
    min-width: auto;
  }

  .countdown-container {
    gap: 12px;
  }

  .supporting-text {
    margin-top: 25px;
  }

  .social-icons-row {
    margin-top: 25px;
  }

  .subscription-form {
    margin-top: 40px;
    align-self: center; /* Center-aligned on mobile for balance */
    width: 100%;
    max-width: 290px;
  }

  .form-feedback {
    align-self: center;
    text-align: center;
  }

  /* Right Panel collapses into stacked bottom */
  .right-container {
    width: 100%;
    height: 420px;
    min-height: 420px;
    border-radius: 0 0 16px 16px;
    overflow: visible; /* Allow relative floating overlay center overflow */
  }

  .carousel-wrapper {
    border-radius: 0 0 16px 16px;
  }

  /* Centered, relative styled floating image on mobile */
  .floating-editorial-image {
    position: relative;
    width: 180px;
    height: 250px;
    top: -50px; /* Offset to overlap beautifully between Left and Right panel */
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 20px 40px rgba(61, 53, 48, 0.15);
  }

  .floating-editorial-image:hover {
    transform: translateX(-50%) translateY(-5px);
  }

  .carousel-nav {
    top: auto;
    bottom: 22px;
    right: auto;
    left: 22px;
    flex-direction: row;
    transform: none;
    gap: 8px;
  }

  .bottom-controls {
    right: 22px;
    bottom: 22px;
    gap: 8px;
  }

  .expand-btn {
    width: 44px;
    height: 44px;
  }

  .refresh-btn {
    width: 44px;
    height: 44px;
  }
}
