/* =========================================================
   BASE
========================================================= */

:root {
  --blue-dark: #075c9c;
  --blue: #087ec1;
  --blue-light: #2bbbe5;

  --gold: #f4b62c;
  --gold-light: #ffd568;

  --cream: #fffaf0;
  --background: #f7fbfd;

  --text: #173247;
  --text-soft: #5b7180;

  --white: #ffffff;

  --brand-green: #3e7d5e;
  --nav-sky: #dceff8;
  --charcoal: #3b3b3b;

  --shadow:
    0 16px 45px rgba(23, 50, 71, 0.12);

  --radius-large: 28px;
  --radius-medium: 18px;

  --max-width: 1180px;
}


* {
  box-sizing: border-box;
}


html {
  scroll-behavior: smooth;
}


body {
  margin: 0;

  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  color: var(--text);
  background: var(--background);

  line-height: 1.6;
}


img {
  max-width: 100%;
  display: block;
}


a {
  color: inherit;
  text-decoration: none;
}


/* =========================================================
   HEADER
========================================================= */

.site-header {
  position: fixed;

  top: 0;
  left: 0;
  right: 0;

  z-index: 20;

  background: transparent;

  border-bottom:
    1px solid transparent;

  transition:
    background-color 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}


/*
  Once the page moves, the navigation becomes a
  quiet fixed bar that matches the hero sky.
*/
.site-header.scrolled {
  background:
    rgba(220, 239, 248, 0.96);

  border-bottom-color:
    rgba(62, 125, 94, 0.18);

  box-shadow:
    0 1px 8px rgba(23, 50, 71, 0.05);

  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}


.header-inner {
  width:
    min(
      calc(100% - 48px),
      var(--max-width)
    );

  min-height: 72px;

  margin: 0 auto;

  display: flex;
  align-items: center;
  justify-content: space-between;
}


/* =========================================================
   DESTINATIONS DROPDOWN
========================================================= */

.destinations-menu {
  position: relative;
}


.destinations-menu summary {
  display: flex;
  align-items: center;

  gap: 7px;

  padding: 10px 0;

  cursor: pointer;

  list-style: none;

  font-size: 1rem;
  font-weight: 700;

  color: var(--charcoal);

  user-select: none;

  transition:
    color 0.2s ease;
}


.destinations-menu summary::-webkit-details-marker {
  display: none;
}


.destinations-menu summary::after {
  content: "";

  width: 7px;
  height: 7px;

  margin-top: -4px;

  border-right:
    2px solid currentColor;

  border-bottom:
    2px solid currentColor;

  transform:
    rotate(45deg);

  transition:
    transform 0.2s ease;
}


.destinations-menu[open] summary::after {
  margin-top: 4px;

  transform:
    rotate(225deg);
}


.destinations-menu summary:hover,
.destinations-menu[open] summary {
  color: var(--brand-green);
}


.destinations-dropdown {
  position: absolute;

  top: calc(100% + 7px);
  left: -14px;

  min-width: 170px;

  padding: 7px;

  border:
    1px solid rgba(62, 125, 94, 0.16);

  border-radius: 13px;

  background:
    rgba(255, 255, 255, 0.97);

  box-shadow:
    0 12px 30px rgba(23, 50, 71, 0.12);
}


.destinations-dropdown a {
  display: block;

  padding: 10px 12px;

  border-radius: 9px;

  color: var(--charcoal);

  font-weight: 650;

  transition:
    color 0.2s ease,
    background-color 0.2s ease;
}


.destinations-dropdown a:hover {
  color: var(--brand-green);

  background:
    rgba(62, 125, 94, 0.08);
}


.main-nav {
  display: flex;
  align-items: center;

  gap: 32px;
}


.main-nav a {
  font-weight: 650;

  color: var(--charcoal);

  transition:
    color 0.2s ease;
}


.main-nav a:hover {
  color: var(--brand-green);
}


/* =========================================================
   HERO
========================================================= */

.hero {
  position: relative;

  min-height: 100vh;
  min-height: 100svh;

  display: flex;
  align-items: flex-start;
  justify-content: center;

  overflow: hidden;

  /*
    Use the cloud-free full-size world map here.
  */
  background-image:
    url("../assets/images/jiyama-background.png");

  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;

  isolation: isolate;
}


/* =========================================================
   MOVING CLOUDS
========================================================= */

.hero-clouds {
  position: absolute;
  inset: 0;

  z-index: 1;

  overflow: hidden;

  pointer-events: none;
}


.cloud {
  position: absolute;

  display: block;

  max-width: none;
  height: auto;

  pointer-events: none;
  user-select: none;

  will-change: transform;
}


/*
  Large left cloud.
  Slow movement keeps the effect subtle.
*/
.cloud-left {
  width:
    clamp(
      330px,
      30vw,
      680px
    );

  left: -12%;
  top: 19%;

  opacity: 0.72;
}


/*
  Large right cloud.
  It drifts in the opposite direction.
*/
.cloud-right {
  width:
    clamp(
      360px,
      32vw,
      720px
    );

  right: -14%;
  top: 24%;

  opacity: 0.68;
}


/*
  Smaller, more distant cloud.
*/
.cloud-small {
  width:
    clamp(
      220px,
      20vw,
      430px
    );

  left: 17%;
  top: 36%;

  opacity: 0.48;
}




/*
  This lightly softens the center of the image
  so the logo and text remain readable without
  hiding the artwork.
*/

.hero-overlay {
  position: absolute;
  inset: 0;

  z-index: 2;

  background:
    radial-gradient(
      ellipse at 50% 25%,
      rgba(255, 255, 255, 0.34) 0%,
      rgba(255, 255, 255, 0.12) 35%,
      rgba(255, 255, 255, 0) 62%
    );

  pointer-events: none;
}


.hero-content {
  position: relative;
  z-index: 3;

  width: min(780px, calc(100% - 40px));

  margin-top: clamp(115px, 13vh, 165px);

  display: flex;
  flex-direction: column;
  align-items: center;

  text-align: center;
}


.jiyama-wordmark {
  width: min(620px, 82vw);

  height: auto;

  filter:
    drop-shadow(
      0 8px 14px rgba(20, 70, 110, 0.15)
    );
}


.hero-tagline {
  margin:
    clamp(4px, 1vh, 10px)
    0
    0;

  font-size: clamp(1.15rem, 2vw, 1.55rem);

  font-weight: 650;

  color: #234f69;

  text-shadow:
    0 1px 8px rgba(255, 255, 255, 0.75);
}




/* =========================================================
   BUTTONS
========================================================= */

.button {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  min-height: 52px;

  padding: 13px 26px;

  border-radius: 999px;

  font-size: 1rem;
  font-weight: 750;

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}


.button:hover {
  transform: translateY(-2px);
}


.button-primary {
  color: white;

  background:
    linear-gradient(
      135deg,
      var(--blue-light),
      var(--blue)
    );

  box-shadow:
    0 8px 22px rgba(8, 126, 193, 0.28);
}


.button-primary:hover {
  box-shadow:
    0 12px 28px rgba(8, 126, 193, 0.34);
}


.button-secondary {
  color: var(--blue-dark);

  background:
    rgba(255, 255, 255, 0.82);

  border:
    1px solid rgba(255, 255, 255, 0.85);

  backdrop-filter: blur(8px);

  box-shadow:
    0 8px 20px rgba(30, 80, 110, 0.12);
}


.button-secondary:hover {
  background: white;
}


.button-support {
  color: #755000;

  background:
    linear-gradient(
      135deg,
      var(--gold-light),
      var(--gold)
    );

  box-shadow:
    0 8px 22px rgba(220, 155, 20, 0.24);
}


/* =========================================================
   SCROLL INDICATOR
========================================================= */

.scroll-indicator {
  position: absolute;

  z-index: 3;

  bottom: 22px;
  left: 50%;

  transform: translateX(-50%);

  width: 42px;
  height: 42px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;

  color: var(--blue-dark);

  background:
    rgba(255, 255, 255, 0.76);

  font-size: 1.3rem;

  box-shadow:
    0 5px 16px rgba(0, 0, 0, 0.08);

  animation: float 2s ease-in-out infinite;
}


@keyframes float {

  0%,
  100% {
    transform:
      translateX(-50%)
      translateY(0);
  }

  50% {
    transform:
      translateX(-50%)
      translateY(6px);
  }

}


/* =========================================================
   GENERAL SECTIONS
========================================================= */

.section {
  padding:
    clamp(80px, 10vw, 130px)
    24px;
}


.section-container {
  width: min(100%, var(--max-width));

  margin: 0 auto;
}


.narrow-container {
  max-width: 820px;
}


.section-heading {
  max-width: 760px;

  margin-bottom: 55px;
}


.eyebrow {
  display: inline-block;

  margin-bottom: 12px;

  font-size: 0.85rem;
  font-weight: 800;

  letter-spacing: 0.12em;

  text-transform: uppercase;

  color: var(--blue);
}


h2 {
  margin: 0 0 20px;

  font-size:
    clamp(2rem, 5vw, 3.4rem);

  line-height: 1.08;

  letter-spacing: -0.045em;
}


.section-heading p,
.about-section p,
.support-card p {
  color: var(--text-soft);

  font-size: 1.08rem;
}


.large-text {
  font-size: 1.25rem !important;

  color: var(--text) !important;

  line-height: 1.65;
}


/* =========================================================
   EXPLORE
========================================================= */

.explore-section {
  background:
    linear-gradient(
      180deg,
      #ffffff,
      #f4fafc
    );
}


.app-grid {
  display: grid;

  grid-template-columns:
    repeat(auto-fit, minmax(280px, 1fr));

  gap: 28px;
}


.app-card {
  position: relative;

  overflow: hidden;

  min-height: 410px;

  border-radius: var(--radius-large);

  background:
    linear-gradient(
      145deg,
      #e8f8ff,
      #ffffff
    );

  border:
    1px solid rgba(12, 126, 190, 0.12);

  box-shadow: var(--shadow);

  padding: clamp(30px, 5vw, 52px);

  display: flex;
  align-items: flex-end;
}


.app-card-content {
  position: relative;
  z-index: 2;

  max-width: 550px;
}


.app-label {
  display: inline-block;

  margin-bottom: 8px;

  font-size: 0.78rem;
  font-weight: 800;

  text-transform: uppercase;
  letter-spacing: 0.1em;

  color: var(--blue);
}


.app-card h3 {
  margin: 0 0 12px;

  font-size:
    clamp(2.2rem, 5vw, 4rem);

  letter-spacing: -0.05em;

  color: var(--blue-dark);
}


.app-card p {
  max-width: 570px;

  margin-bottom: 28px;

  color: var(--text-soft);

  font-size: 1.05rem;
}


.app-card-decoration {
  position: absolute;

  top: 25px;
  right: 35px;

  display: grid;
  grid-template-columns: repeat(2, 55px);

  gap: 10px;

  opacity: 0.16;

  transform: rotate(7deg);
}


.app-card-decoration span {
  width: 55px;
  height: 55px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 16px;

  font-size: 2rem;
  font-weight: 800;

  color: var(--blue);

  border:
    2px solid var(--blue);
}


/* =========================================================
   ABOUT
========================================================= */

.about-section {
  background: var(--cream);
}


.text-link {
  display: inline-block;

  margin-top: 14px;

  font-weight: 800;

  color: var(--blue);

  transition:
    transform 0.2s ease;
}


.text-link:hover {
  transform: translateX(4px);
}


/* =========================================================
   SUPPORT
========================================================= */

.support-section {
  background: #f7fbfd;
}


.support-card {
  width:
    min(
      calc(100% - 0px),
      960px
    );

  margin: 0 auto;

  padding:
    clamp(40px, 7vw, 75px);

  text-align: center;

  border-radius: var(--radius-large);

  background:
    linear-gradient(
      145deg,
      #ffffff,
      #fff8df
    );

  border:
    1px solid rgba(230, 180, 40, 0.18);

  box-shadow: var(--shadow);
}


.support-card p {
  max-width: 650px;

  margin:
    0 auto 30px;
}


/* =========================================================
   FOOTER
========================================================= */

.site-footer {
  padding: 40px 24px;

  background: #102d40;

  color:
    rgba(255, 255, 255, 0.82);
}


.footer-inner {
  width: min(100%, var(--max-width));

  margin: 0 auto;

  display: flex;
  align-items: center;

  gap: 30px;
}


.footer-brand {
  font-size: 1.35rem;
  font-weight: 800;

  color: white;
}


.footer-links {
  display: flex;

  gap: 24px;

  margin-left: auto;
}


.footer-links a:hover {
  color: white;
}


.copyright {
  margin: 0;

  color:
    rgba(255, 255, 255, 0.5);

  font-size: 0.9rem;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {

  .header-inner {
    width:
      calc(100% - 32px);

    min-height: 64px;
  }


  .destinations-menu summary {
    font-size: 0.92rem;
  }


  .destinations-dropdown {
    left: -8px;

    min-width: 155px;
  }


  .main-nav {
    gap: 18px;
  }


  .main-nav a {
    font-size: 0.9rem;
  }


  .hero {
    /*
      Still uses the same artwork.
      If we later create a dedicated mobile
      background, we can swap it here.
    */

    background-position:
      center center;
  }


  /*
    Keep the animated clouds near the edges on phones
    so the logo and buttons stay clear.
  */

  .cloud-left {
    width: 420px;

    left: -250px;
    top: 24%;

    opacity: 0.60;
  }


  .cloud-right {
    width: 440px;

    right: -270px;
    top: 30%;

    opacity: 0.58;
  }


  .cloud-small {
    width: 260px;

    left: -40px;
    top: 42%;

    opacity: 0.38;
  }


  .hero-content {
    width:
      calc(100% - 30px);

    margin-top:
      clamp(115px, 15vh, 145px);
  }


  .jiyama-wordmark {
    width: min(92vw, 540px);
  }


  .hero-tagline {
    max-width: 330px;

    margin-top: 6px;

    font-size: 1.08rem;
  }




  .button {
    width: 100%;
  }


  .section {
    padding:
      75px 20px;
  }


  .app-card {
    min-height: 420px;

    padding: 30px 25px;
  }


  .app-card-decoration {
    right: 20px;
  }


  .footer-inner {
    flex-direction: column;

    text-align: center;
  }


  .footer-links {
    margin-left: 0;
  }

}


/* =========================================================
   VERY SMALL PHONES
========================================================= */

@media (max-width: 430px) {

  .destinations-menu summary {
    font-size: 0.84rem;
  }


  .main-nav {
    gap: 12px;
  }


  .main-nav a {
    font-size: 0.82rem;
  }







  .hero {
    background-position:
      50% center;
  }

}


/* =========================================================
   ACCESSIBILITY
========================================================= */

a:focus-visible {
  outline:
    3px solid var(--gold);

  outline-offset: 4px;
}


@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }


  * {
    animation-duration:
      0.01ms !important;

    animation-iteration-count:
      1 !important;

    transition-duration:
      0.01ms !important;
  }


}