/* Goes to Bali — one-page travel site */

:root {
  --color-bg: #f7f4ef;
  --color-surface: #fffef9;
  --color-ink: #1c1915;
  --color-muted: #5c564c;
  --color-accent: #c45c3e;
  --color-accent-dark: #9a3d28;
  --color-jade: #1d4d45;
  --color-jade-soft: #2a6b61;
  --color-sand: #e8dfd0;
  --font-sans: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-display: "Fraunces", Georgia, serif;
  --shadow-soft: 0 18px 50px rgba(28, 25, 21, 0.08);
  --radius: 14px;
  --header-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--color-ink);
  background: var(--color-bg);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-jade-soft);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--color-accent);
}

.container {
  width: min(1120px, 92vw);
  margin-inline: auto;
}

.container.narrow {
  width: min(720px, 92vw);
}

.section {
  padding-block: clamp(3.5rem, 8vw, 6rem);
}

.section-head {
  text-align: center;
  max-width: 38rem;
  margin-inline: auto;
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.section-head h2 {
  margin: 0 0 0.75rem;
}

.section-head p {
  margin: 0;
  color: var(--color-muted);
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: clamp(1rem, 4vw, 2rem);
  background: linear-gradient(to bottom, rgba(247, 244, 239, 0.97), rgba(247, 244, 239, 0.88) 60%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-ink);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.logo:hover {
  color: var(--color-jade);
}

.site-nav {
  display: flex;
  gap: clamp(1rem, 3vw, 2rem);
  align-items: center;
}

.site-nav a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-ink);
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--color-accent);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-ink);
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 1.25rem;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-sand);
    box-shadow: var(--shadow-soft);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}

/* Hero */
.hero {
  min-height: min(100vh, 900px);
  display: grid;
  align-items: end;
  padding-top: var(--header-h);
  position: relative;
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(28, 25, 21, 0.25) 0%, rgba(28, 25, 21, 0.55) 55%, rgba(28, 25, 21, 0.85) 100%),
    url("https://images.pexels.com/photos/2166553/pexels-photo-2166553.jpeg?auto=compress&cs=tinysrgb&w=1920") center / cover no-repeat;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(1120px, 92vw);
  margin-inline: auto;
  padding-block: clamp(3rem, 10vw, 5rem);
  color: #fff;
}

.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.9;
  margin: 0 0 0.75rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 3.75rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
  max-width: 12ch;
}

.hero-lead {
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  line-height: 1.7;
  max-width: 36rem;
  margin: 0 0 1.75rem;
  opacity: 0.95;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.6rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 999px;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}

.btn-primary:hover {
  background: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  color: #fff;
}

/* Intro */
.intro h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  margin: 0 0 1rem;
  color: var(--color-jade);
}

.intro .lead {
  margin: 0;
  color: var(--color-muted);
  font-size: 1.1rem;
}

/* Places */
.places {
  background: var(--color-surface);
}

.card-grid {
  display: grid;
  gap: clamp(1.25rem, 3vw, 1.75rem);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
}

.place-card {
  background: var(--color-bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(232, 223, 208, 0.8);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.place-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 60px rgba(28, 25, 21, 0.12);
}

.place-card img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.place-card-body {
  padding: 1.25rem 1.35rem 1.5rem;
}

.place-card-body h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 0 0 0.5rem;
  color: var(--color-jade);
}

.place-card-body p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-muted);
  line-height: 1.6;
}

/* Experiences */
.experiences {
  background: linear-gradient(165deg, var(--color-jade) 0%, #163832 100%);
  color: #f0ebe3;
}

.experiences .section-head h2,
.experiences .section-head p {
  color: inherit;
}

.experiences .section-head p {
  opacity: 0.88;
}

.experience-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 52rem;
  margin-inline: auto;
}

.experience-list li {
  display: grid;
  gap: 0.35rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.experience-list li:first-child {
  padding-top: 0;
}

.experience-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.experience-list strong {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}

.experience-list span {
  font-size: 0.98rem;
  opacity: 0.9;
  line-height: 1.6;
}

/* Banner split */
.banner-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: min(420px, 70vh);
}

.banner-split-media {
  min-height: 280px;
  background: url("https://images.pexels.com/photos/3354041/pexels-photo-3354041.jpeg?auto=compress&cs=tinysrgb&w=1200") center / cover no-repeat;
}

.banner-split-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 5vw, 4rem);
  background: var(--color-sand);
}

.banner-split-text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 1rem;
  color: var(--color-jade);
}

.banner-split-text p {
  margin: 0;
  color: var(--color-muted);
  max-width: 36rem;
}

@media (max-width: 800px) {
  .banner-split {
    grid-template-columns: 1fr;
  }

  .banner-split-media {
    min-height: 240px;
    order: -1;
  }
}

/* Culture */
.culture-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.culture-item {
  padding: 1.5rem 1.6rem;
  background: var(--color-surface);
  border-radius: var(--radius);
  border: 1px solid var(--color-sand);
  box-shadow: 0 8px 30px rgba(28, 25, 21, 0.04);
}

.culture-item h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0 0 0.5rem;
  color: var(--color-jade);
}

.culture-item p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-muted);
}

/* CTA */
.cta {
  text-align: center;
  background: var(--color-surface);
  border-block: 1px solid var(--color-sand);
}

.cta-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  margin: 0 0 0.75rem;
  color: var(--color-jade);
}

.cta-inner > p:first-of-type {
  margin: 0 auto 1.5rem;
  max-width: 32rem;
  color: var(--color-muted);
}

.cta-domain {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
}

.cta-domain a {
  color: var(--color-accent);
  text-decoration: none;
}

.cta-domain a:hover {
  color: var(--color-accent-dark);
  text-decoration: underline;
}

/* Footer */
.site-footer {
  padding: 2rem 0 2.5rem;
  background: var(--color-ink);
  color: rgba(255, 255, 255, 0.75);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 700;
  color: #fff;
}

.footer-credit {
  margin: 0;
  font-size: 0.85rem;
}

.footer-credit a {
  color: #c8e6e0;
}

.footer-credit a:hover {
  color: #fff;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .place-card,
  .btn {
    transition: none;
  }

  .place-card:hover,
  .btn:hover {
    transform: none;
  }
}
