:root {
  --black: #000;
  --white: #fff;
  --gray: #777;
  --light: #f5f5f5;
}

/* RESET */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Montserrat", sans-serif;
  background: var(--white);
  color: var(--black);
  overflow-x: hidden;
  line-height: 1.6;
}

/* CONTAINER */
.container {
  width: 100%;
  max-width: 1400px;
  margin: auto;
  padding: 0 clamp(20px, 5vw, 80px);
}

/* HERO */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(80px, 10vw, 140px) 20px;
  background:
    linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)),
    url("../update-images/crownsy-compress-15.jpg");
  background-size: cover;
  background-position: center;
  color: #fff;
}

.hero-content {
  max-width: 900px;
}

.hero h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(2.2rem, 5vw, 4rem);
  letter-spacing: clamp(2px, 0.5vw, 6px);
  margin-bottom: clamp(20px, 3vw, 30px);
}

.hero p {
  font-family: "Libre Baskerville", serif;
  font-size: clamp(0.9rem, 1.2vw, 1.05rem);
  opacity: 0.9;
  max-width: 650px;
  margin: auto;
}

.hero-buttons {
  margin-top: clamp(30px, 5vw, 50px);
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  padding: 14px 40px;
  border: 1px solid #fff;
  color: #fff;
  text-decoration: none;
  font-size: 0.75rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  transition: 0.4s ease;
  white-space: nowrap;
}

.btn:hover {
  background: #fff;
  color: #000;
}

/* ============================= */
/* CROWNSY MAPS SECTION */
/* ============================= */

.cs-maps-section {
  padding: 120px 6%;
  background: #000;
  color: #fff;
  font-family: "Libre Baskerville", serif;
}

.cs-maps-container {
  max-width: 1400px;
  margin: auto;
}

.cs-maps-header {
  text-align: center;
  margin-bottom: 80px;
}

.cs-maps-sub {
  font-size: 14px;
  letter-spacing: 3px;
  text-transform: uppercase;
  opacity: 0.6;
}

.cs-maps-header h2 {
  font-size: 42px;
  margin: 20px 0;
  font-weight: 500;
}

.cs-maps-header p {
  max-width: 700px;
  margin: auto;
  opacity: 0.8;
  line-height: 1.7;
}

/* GRID */
.cs-maps-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 60px;
}

/* MAP BOX */
.cs-map-box {
  position: relative;
  height: 500px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(255, 255, 255, 0.05);
}

.cs-map-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 30px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
}

.cs-map-overlay h3 {
  margin: 0;
  font-size: 22px;
}

.cs-map-overlay p {
  margin: 8px 0 20px;
  opacity: 0.8;
}

.cs-map-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

/* INFO */
.cs-market-info {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.cs-info-card {
  padding: 35px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  transition: 0.4s ease;
}

.cs-info-card:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-5px);
}

.cs-info-card h3 {
  margin-bottom: 15px;
}

.cs-info-card ul {
  padding-left: 20px;
  line-height: 1.8;
}

.highlight {
  border: 1px solid #fff;
}

/* BUTTONS */
.cs-btn-primary {
  font-family: "Libre Baskerville", serif;
  margin-top: 12px;
  background: #fff;
  color: #000;
  padding: 12px 24px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
  border: none;
}

.cs-btn-primary:hover {
  background: #ddd;
}

.cs-btn-outline {
  border: 1px solid #fff;
  color: #fff;
  padding: 12px 24px;
  border-radius: 4px;
  text-decoration: none;
  transition: 0.3s;
}

.cs-btn-outline:hover {
  background: #fff;
  color: #000;
}

.full {
  width: 100%;
}

/* ============================= */
/* RESPONSIVE */
/* ============================= */

@media (max-width: 1100px) {
  .cs-maps-grid {
    grid-template-columns: 1fr;
  }

  .cs-map-box {
    height: 400px;
  }
}

@media (max-width: 768px) {
  .cs-maps-section {
    padding: 80px 5%;
  }

  .cs-maps-header h2 {
    font-size: 28px;
  }

  .cs-map-box {
    height: 350px;
  }

  .cs-map-overlay {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .cs-map-box {
    height: 300px;
  }

  .cs-map-buttons {
    flex-direction: column;
  }

  .cs-btn-primary,
  .cs-btn-outline {
    width: 100%;
    text-align: center;
  }
}

/* =========================================== 
    MODAL OVERLAY 
  ============================================ */
.cs-modal {
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  font-family: "Libre Baskerville", serif;
  color: #111;
  display: none;
  position: fixed;
  z-index: 9999;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  /* center content */
  display: flex;
  align-items: center;
  justify-content: center;

  padding: 20px;
}

.cs-modal.active {
  opacity: 1;
  visibility: visible;
}

/* ===== MODAL BOX ===== */
.cs-modal-content {
  background: #ffffff;
  width: 100%;
  max-width: 420px;
  border-radius: 18px;
  padding: 28px 24px;
  position: relative;

  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.25),
    0 5px 15px rgba(0, 0, 0, 0.1);

  animation: fadeSlide 0.35s ease;
}

/* ===== ANIMATION ===== */
@keyframes fadeSlide {
  from {
    transform: translateY(-40px) scale(0.96);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

/* ===== CLOSE BUTTON ===== */
.close-btn {
  position: absolute;
  top: 14px;
  right: 18px;
  font-size: 26px;
  color: #999;
  cursor: pointer;
  transition: all 0.25s ease;
}

.close-btn:hover {
  color: #000;
  transform: rotate(90deg);
}

/* ===== TITLE ===== */
.cs-modal-content h3 {
  font-size: 22px;
  margin-bottom: 8px;
  font-weight: 600;
}

.cs-modal-content p {
  font-size: 14px;
  color: #666;
  margin-bottom: 20px;
  line-height: 1.6;
}

/* ===== FORM ===== */
.form-group {
  margin-bottom: 18px;
  text-align: left;
}

.form-group label {
  display: block;
  font-size: 13px;
  margin-bottom: 6px;
  font-weight: 600;
  color: #222;
}

/* INPUT & SELECT */
.form-group input,
.form-group select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-size: 14px;
  transition: all 0.25s ease;
  background: #fafafa;
}

/* FOCUS EFFECT */
.form-group input:focus,
.form-group select:focus {
  border-color: #000;
  background: #fff;
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

/* ===== BUTTON ===== */
.cs-btn-primary {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 999px;
  border: none;
  background: #000;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cs-btn-primary:hover {
  background: #222;
  transform: translateY(-2px);
}

.cs-btn-primary.full {
  width: 100%;
  margin-top: 10px;
}

/* ===== RESPONSIVE ===== */

/* Tablet */
@media (max-width: 768px) {
  .cs-modal-content {
    max-width: 95%;
    padding: 24px 20px;
  }

  .cs-modal-content h3 {
    font-size: 20px;
  }

  .form-group input,
  .form-group select {
    padding: 11px 12px;
  }
}

/* Mobile kecil */
@media (max-width: 480px) {
  .cs-modal {
    align-items: center; /* modal naik dari bawah */
  }

  .cs-modal-content {
    width: 100%;
    max-width: 100%;
    border-radius: 20px 20px;
    padding: 22px 18px;
    animation: slideUpMobile 0.35s ease;
  }

  @keyframes slideUpMobile {
    from {
      transform: translateY(100%);
      opacity: 0;
    }
    to {
      transform: translateY(0);
      opacity: 1;
    }
  }

  .close-btn {
    top: 12px;
    right: 14px;
  }

  .cs-modal-content h3 {
    font-size: 18px;
  }

  .cs-modal-content p {
    font-size: 13px;
  }
}
