/* ==========================================================================
   The Padel Cliff Candidasa — Coming Soon Stylesheet
   Pixel-Perfect Implementation based on reference.jpeg
   ========================================================================== */

/* --- Local Font Declarations (Montserrat) --- */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('asset/fonts/montserrat-300.woff2') format('woff2');
}

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('asset/fonts/montserrat-400.woff2') format('woff2');
}

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('asset/fonts/montserrat-500.woff2') format('woff2');
}

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('asset/fonts/montserrat-600.woff2') format('woff2');
}

/* --- Design Tokens & Variables --- */
:root {
  --color-white: #ffffff;
  --font-family-primary: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --header-font-size: 16px;
  --header-font-weight: 400;
  --header-gap: 15px;
  --item-gap: 6px;
  --icon-size: 16px;
  --text-shadow-subtle: 0 1px 3px rgba(0, 0, 0, 0.45);
}

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

html {
  height: 100%;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  margin: 0;
  font-family: var(--font-family-primary);
  background-color: #0b2432;
  background-image: url('asset/bg-desktop.webp');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  color: var(--color-white);
  overflow-x: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Accessibility */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* --- Top Header Navigation (Desktop Default) --- */
.site-header {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 20;
}

.contact-nav {
  display: flex;
  align-items: center;
  gap: var(--header-gap);
}

.contact-item {
  display: inline-flex;
  align-items: center;
  gap: var(--item-gap);
  color: var(--color-white);
  text-decoration: none;
  font-size: var(--header-font-size);
  font-weight: var(--header-font-weight);
  text-shadow: var(--text-shadow-subtle);
  transition: opacity 0.2s ease;
  user-select: none;
  white-space: nowrap;
}

.contact-item:hover,
.contact-item:focus-visible {
  opacity: 0.75;
}

.contact-item:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.7);
  outline-offset: 4px;
  border-radius: 4px;
}

.contact-icon {
  width: var(--icon-size);
  height: var(--icon-size);
  display: inline-block;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45));
}

.contact-label {
  display: inline-block;
  line-height: 1;
}

/* --- Main Hero Content (100% Dead-Center Atas-Bawah & Kanan-Kiri Mutlak) --- */
.main-content {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  min-width: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 16px;
  margin: 0;
  z-index: 10;
  box-sizing: border-box;
  pointer-events: none;
}

.hero-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.hero-graphic {
  display: block;
  /* At 1600px width reference, max-width matches exactly 982px */
  width: 100%;
  max-width: 982px;
  min-width: 0;
  height: auto;
  aspect-ratio: 2000 / 505;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.3));
}

/* --- Responsive Breakpoints --- */

/* Tablet & Mobile Portrait */
@media (max-width: 768px), (max-width: 1024px) and (orientation: portrait) {
  body {
    background-image: url('asset/bg-mobile.webp');
  }

  .main-content {
    /* Tetap 100% dead center: padding atas dan bawah mutlak 0 */
    padding: 0 16px;
  }

  .hero-graphic {
    width: 100%;
    max-width: 100%;
  }

  /* Place social & WA at the top on mobile */
  .site-header {
    position: absolute;
    top: calc(20px + env(safe-area-inset-top, 0px));
    bottom: auto;
    left: 0;
    right: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 20;
    pointer-events: auto;
  }

  .contact-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
    padding: 0 16px;
  }

  .contact-item {
    font-size: 13.5px;
    gap: 6px;
  }

  .contact-icon {
    width: 17px;
    height: 17px;
  }
}

/* Extra small mobile devices (< 360px) */
@media (max-width: 360px) {
  .site-header {
    top: calc(16px + env(safe-area-inset-top, 0px));
    bottom: auto;
  }

  .contact-nav {
    gap: 12px 14px;
  }

  .contact-item {
    font-size: 12.5px;
  }

  .contact-icon {
    width: 15px;
    height: 15px;
  }
}

/* Landscape on small height screens */
@media (max-height: 480px) and (orientation: landscape) {
  .site-header {
    top: 12px;
    bottom: auto;
  }
}
