
/* =========================================
   CHARTER MALDIVES
   MAIN ENTRANCE PAGE
========================================= */

:root {
  --navy: #091827;
  --navy-soft: #122b3d;
  --gold: #c9ae83;
  --white: #ffffff;
  --muted: #b8c6d1;

  --font-main: "DM Sans", sans-serif;
  --font-heading: "Manrope", sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-main);
}

a {
  text-decoration: none;
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: -4px;
}

.entrance {
  min-height: 100vh;
  background: var(--navy);
}

/* =========================================
   PRELOADER
========================================= */

.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #071521;
  transition:
    opacity 0.7s ease,
    visibility 0.7s ease;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.preloader-emblem {
  font-family: var(--font-heading);
  font-size: 95px;
  font-weight: 800;
  letter-spacing: -7px;
  line-height: 1;
  animation: preloaderReveal 0.9s ease both;
}

.emblem-dot {
  color: var(--gold);
}

.preloader-title {
  margin-top: 14px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 7px;
}

.preloader-subtitle {
  margin-top: 7px;
  font-size: 11px;
  letter-spacing: 8px;
  color: var(--gold);
}

.preloader-line {
  width: 180px;
  height: 2px;
  margin-top: 36px;
  background: rgba(255,255,255,0.15);
  overflow: hidden;
}

.preloader-line span {
  display: block;
  height: 100%;
  width: 40%;
  background: var(--gold);
  animation: preloaderProgress 1.2s ease-in-out infinite;
}

.preloader-caption {
  margin-top: 18px;
  color: #8c9daa;
  font-size: 9px;
  letter-spacing: 3px;
}

@keyframes preloaderReveal {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes preloaderProgress {
  from {
    transform: translateX(-110%);
  }

  to {
    transform: translateX(360%);
  }
}

/* =========================================
   HEADER
========================================= */

.entrance-header {
  min-height: 90px;
  padding: 15px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.site-brand-symbol {
  font-family: var(--font-heading);
  font-size: 42px;
  font-weight: 800;
  line-height: 1;
}

.site-brand-symbol span {
  color: var(--gold);
}

.site-brand-name {
  display: flex;
  flex-direction: column;
}

.site-brand-name strong {
  font-size: 14px;
  letter-spacing: 3px;
}

.site-brand-name small {
  color: var(--gold);
  margin-top: 3px;
  font-size: 9px;
  letter-spacing: 4px;
}

.header-right {
  display: flex;
  gap: 35px;
  color: #c3cdd5;
  font-size: 10px;
  letter-spacing: 2px;
}

.header-coordinate {
  color: var(--gold);
}

/* =========================================
   WELCOME SECTION
========================================= */

.welcome-section {
  text-align: center;
  padding: 58px 20px 52px;
  background:
    radial-gradient(
      ellipse at top,
      #18364d 0%,
      var(--navy) 70%
    );
}

.welcome-decoration {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-bottom: 24px;
  color: var(--gold);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 4px;
}

.welcome-decoration > span:first-child,
.welcome-decoration > span:last-child {
  width: 30px;
  height: 1px;
  background: var(--gold);
}

.welcome-section h1 {
  font-family: var(--font-heading);
  font-size: clamp(36px, 5.6vw, 76px);
  font-weight: 700;
  letter-spacing: -3px;
  line-height: 1.15;
}

.welcome-section h1 em {
  color: var(--gold);
  font-style: normal;
}

.welcome-section h2 {
  margin-top: 20px;
  font-size: clamp(16px, 2.2vw, 26px);
  font-weight: 400;
  letter-spacing: 0.2px;
}

.welcome-section h2 span {
  color: var(--gold);
}

.welcome-section > p {
  margin-top: 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.welcome-scroll-hint {
  margin-top: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: #94a7b5;
  font-size: 9px;
  letter-spacing: 2px;
}

.welcome-scroll-hint span:last-child {
  color: var(--gold);
  font-size: 19px;
}

/* =========================================
   FOUR-PANEL GRID
========================================= */

.division-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  min-height: 520px;
  height: min(65vw, 620px);
  overflow: hidden;
}

.division-panel {
  display: block;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 450px;
  border-right: 1px solid rgba(255,255,255,0.25);
}

.division-panel:last-child {
  border-right: none;
}

.division-image {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;

  transition: transform 0.8s ease;
}

.division-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    180deg,
    rgba(4,14,24,0.42) 0%,
    rgba(4,14,24,0.08) 35%,
    rgba(4,14,24,0.92) 100%
  );

  transition: background 0.3s;
}

.division-panel:hover .division-image,
.division-panel:focus-visible .division-image {
  transform: scale(1.08);
}

.division-panel:hover .division-shade,
.division-panel:focus-visible .division-shade {
  background: linear-gradient(
    180deg,
    rgba(4,14,24,0.35) 0%,
    rgba(4,14,24,0.12) 35%,
    rgba(4,14,24,0.95) 100%
  );
}

/* PANEL IMAGES */

.panel-flights .division-image {
  background-color: #223a50;
  background-image:
    url("../assets/images/entrance-flights.jpg");
}

.panel-yachts .division-image {
  background-color: #146875;
  background-image:
    url("../assets/images/entrance-yachts.jpg");
}

.panel-safari .division-image {
  background-color: #167f83;
  background-image:
    url("../assets/images/entrance-safari.jpg");
}

.panel-cruise .division-image {
  background-color: #3c526f;
  background-image:
    url("../assets/images/entrance-cruise.jpg");
}

/* PANEL TOP TEXT */

.panel-top {
  position: absolute;
  top: 28px;
  left: 26px;
  right: 26px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #e7eef2;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
}

/* PANEL CONTENT */

.panel-content {
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: 36px;
  transition: transform 0.4s ease;
}

.panel-line {
  display: block;
  width: 35px;
  height: 2px;
  background: var(--gold);
  margin-bottom: 20px;
}

.panel-content h3 {
  font-family: var(--font-heading);
  font-size: clamp(25px, 2.8vw, 40px);
  font-weight: 600;
  letter-spacing: -1px;
  line-height: 1.2;
}

.panel-content p {
  margin-top: 16px;
  font-size: 12px;
  line-height: 1.8;
  color: #e0e6ec;
  max-width: 280px;

  opacity: 0.85;
}

.panel-link {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-top: 22px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.4px;
}

.panel-link span {
  font-size: 18px;
  transition: transform 0.3s;
}

.division-panel:hover .panel-link span {
  transform: translate(4px, -4px);
}

/* =========================================
   FOOTER STRIP
========================================= */

.entrance-footer {
  min-height: 85px;
  padding: 25px 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;

  background: #071521;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-left,
.footer-center,
.footer-right {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 10px;
  letter-spacing: 1.5px;
  color: #a5b3bd;
}

.footer-gold-dot {
  display: block;
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
}

.footer-center {
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 4px;
}

.footer-divider {
  width: 1px;
  height: 15px;
  background: #6c7e8d;
}

/* =========================================
   TABLET
========================================= */

@media (max-width: 1000px) {

  .division-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    height: auto;
  }

  .division-panel {
    min-height: 440px;
  }

  .panel-content h3 {
    font-size: 34px;
  }

  .footer-center {
    display: none;
  }
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 600px) {

  .entrance-header {
    min-height: 76px;
  }

  .header-right {
    display: none;
  }

  .welcome-section {
    padding: 55px 20px 45px;
  }

  .welcome-section h1 {
    letter-spacing: -1.5px;
  }

  .welcome-section h2 span {
    display: block;
  }

  .welcome-decoration {
    font-size: 8px;
    letter-spacing: 2px;
  }

  .division-grid {
    grid-template-columns: 1fr;
  }

  .division-panel {
    min-height: 410px;
  }

  .panel-content h3 {
    font-size: 38px;
  }

  .panel-content p {
    max-width: 320px;
  }

  .entrance-footer {
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }

  .footer-right {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* =========================================
   ACCESSIBILITY
========================================= */

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* =========================================
   THREE-DIVISION ENTRANCE LAYOUT
========================================= */

/* Desktop */

@media (min-width: 1001px) {
  .division-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Tablet */

@media (min-width: 601px) and (max-width: 1000px) {
  .division-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    height: auto;
  }

  .division-panel {
    min-height: 480px;
  }

  .panel-top {
    left: 18px;
    right: 18px;
  }

  .panel-content {
    left: 18px;
    right: 18px;
  }

  .panel-content h3 {
    font-size: clamp(23px, 3vw, 32px);
  }
}

/* Mobile */

@media (max-width: 600px) {
  .division-grid {
    grid-template-columns: 1fr;
    height: auto;
  }

  .division-panel {
    min-height: 410px;
  }
}
