/*
 * weekendvputi.css
 * Based on the visual structure of codewithsadee/tourest, trimmed to the
 * actual content model of weekendvputi: regions, countries and route notes.
 */

:root {
  --battleship-gray: hsl(0, 0%, 53%);
  --viridian-green: hsl(178, 67%, 30%);
  --silver-chalice: hsl(0, 0%, 69%);
  --mikado-yellow: hsl(43, 95%, 52%);
  --granite-gray: hsl(0, 0%, 40%);
  --independence: hsl(219, 20%, 32%);
  --spanish-gray: hsl(0, 0%, 61%);
  --oxford-blue: hsl(222, 46%, 17%);
  --black-coral: hsl(223, 8%, 44%);
  --eerie-black: hsl(210, 11%, 15%);
  --light-gray: hsl(0, 0%, 88%);
  --white-2: hsl(43, 100%, 98%);
  --white-1: hsl(0, 0%, 100%);
  --black: hsl(0, 0%, 0%);
  --jet: hsl(0, 0%, 20%);
  --pearl: hsl(46, 60%, 97%);
  --sea-salt: hsl(180, 18%, 97%);
  --shadow-1: 0 12px 32px hsla(222, 46%, 17%, 0.08);
  --shadow-2: 0 22px 60px hsla(222, 46%, 17%, 0.12);
  --shadow-3: 0 12px 30px hsla(178, 67%, 30%, 0.16);
  --ff-abril-fatface: 'Abril Fatface', Georgia, serif;
  --ff-heebo: 'Heebo', 'Segoe UI', sans-serif;
  --fs-1: clamp(3.8rem, 7vw, 6.8rem);
  --fs-2: clamp(2.8rem, 4vw, 4.2rem);
  --fs-3: clamp(2rem, 3vw, 2.8rem);
  --fs-4: 2.2rem;
  --fs-5: 1.8rem;
  --fs-6: 1.6rem;
  --fs-7: 1.4rem;
  --fs-8: 1.2rem;
  --fw-400: 400;
  --fw-500: 500;
  --fw-600: 600;
  --fw-700: 700;
  --radius-6: 6px;
  --radius-16: 16px;
  --radius-24: 24px;
  --section-padding: 72px;
  --transition-1: 0.15s ease;
  --transition-2: 0.3s ease;
}

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

html {
  font-family: var(--ff-heebo);
  font-size: 10px;
  scroll-behavior: smooth;
  scrollbar-gutter: stable both-edges;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, hsla(43, 95%, 52%, 0.08), transparent 34%),
    linear-gradient(180deg, hsl(47, 71%, 98%), hsl(180, 27%, 97%));
  color: var(--eerie-black);
  font-size: 1.6rem;
  line-height: 1.7;
  overflow-x: clip;
}

body.nav-open {
  overflow: hidden;
}

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

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

button,
input {
  font: inherit;
}

button {
  border: 0;
  background: none;
  cursor: pointer;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4,
p,
dl,
dd,
dt,
figure {
  margin: 0;
}

:focus-visible {
  outline: 3px solid hsla(178, 67%, 30%, 0.28);
  outline-offset: 4px;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
}

.w-100 {
  width: 100%;
}

.section {
  padding-block: var(--section-padding);
}

.section-subtitle {
  color: var(--mikado-yellow);
  font-size: var(--fs-3);
  font-weight: var(--fw-500);
  line-height: 1;
}

.section-title,
.hero-title,
.logo {
  font-family: var(--ff-abril-fatface);
}

.h2 {
  color: var(--jet);
  font-size: var(--fs-2);
  font-weight: var(--fw-500);
}

.h3 {
  font-size: var(--fs-4);
  font-weight: var(--fw-500);
}

.img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 24px;
  border: 2px solid transparent;
  border-radius: 999px;
  font-size: 1.5rem;
  font-weight: var(--fw-700);
  transition:
    transform var(--transition-2),
    color var(--transition-2),
    background-color var(--transition-2),
    border-color var(--transition-2),
    box-shadow var(--transition-2);
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--viridian-green);
  color: var(--white-1);
  box-shadow: var(--shadow-3);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: hsl(178, 67%, 26%);
}

.btn-secondary {
  background: hsla(0, 0%, 100%, 0.16);
  border-color: hsla(0, 0%, 100%, 0.18);
  color: var(--white-1);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: hsla(0, 0%, 100%, 0.24);
}

.btn-outline {
  background: transparent;
  border-color: hsla(222, 46%, 17%, 0.16);
  color: var(--oxford-blue);
}

.btn-outline:hover,
.btn-outline:focus-visible {
  border-color: var(--viridian-green);
  color: var(--viridian-green);
}

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding-block: 16px;
  background: hsla(222, 46%, 17%, 0.84);
  transition:
    background-color var(--transition-2),
    box-shadow var(--transition-2),
    backdrop-filter var(--transition-2);
}

.header.is-scrolled,
.header.active {
  background: hsla(222, 46%, 17%, 0.92);
  box-shadow: 0 12px 30px hsla(222, 46%, 17%, 0.18);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: space-between;
}

.logo-wrap {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  color: var(--white-1);
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--mikado-yellow), hsl(33, 97%, 63%));
  color: var(--oxford-blue);
  font-size: 2.1rem;
  font-weight: var(--fw-700);
  box-shadow: var(--shadow-3);
}

.logo-copy {
  min-width: 0;
}

.logo {
  font-size: 3rem;
  line-height: 1;
}

.logo-tagline {
  display: block;
  max-width: 420px;
  color: hsla(0, 0%, 100%, 0.8);
  font-size: 1.3rem;
  line-height: 1.45;
}

.nav-toggle-btn {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 48px;
  height: 48px;
  margin-left: auto;
  border-radius: 50%;
  color: var(--white-1);
}

.nav-toggle-btn__line {
  width: 24px;
  height: 2px;
  margin-inline: auto;
  border-radius: 999px;
  background: currentColor;
  transition: transform var(--transition-2), opacity var(--transition-2);
}

.header.active .nav-toggle-btn__line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.header.active .nav-toggle-btn__line:nth-child(2) {
  opacity: 0;
}

.header.active .nav-toggle-btn__line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.navbar {
  position: fixed;
  inset: 80px 16px auto;
  display: none;
  padding: 24px;
  border-radius: 24px;
  background: var(--oxford-blue);
  box-shadow: var(--shadow-2);
}

.header.active .navbar {
  display: block;
}

.navbar-list {
  display: grid;
  gap: 6px;
}

.navbar-link {
  padding: 12px 0;
  color: hsla(0, 0%, 100%, 0.84);
  font-size: 1.6rem;
  font-weight: var(--fw-500);
  transition: color var(--transition-1);
}

.navbar-link:hover,
.navbar-link:focus-visible,
.navbar-link.is-current {
  color: var(--mikado-yellow);
}

.header-cta {
  margin-top: 20px;
}

.hero {
  position: relative;
  overflow: hidden;
  padding-top: 48px;
  background:
    url('/assets/tourest/hero-bg-top.png') no-repeat top right,
    url('/assets/tourest/hero-bg-bottom.png') no-repeat bottom left,
    linear-gradient(180deg, hsl(181, 27%, 96%), hsl(42, 100%, 98%));
}

.hero-grid {
  position: relative;
  display: grid;
  gap: 42px;
  align-items: center;
}

.shape {
  position: absolute;
  opacity: 0.75;
  pointer-events: none;
}

.shape-1 {
  top: 48px;
  right: 28px;
}

.shape-2 {
  bottom: 80px;
  left: 8px;
}

.shape-3 {
  top: 55%;
  right: 45%;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--black-coral);
  font-size: 1.3rem;
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
  color: var(--viridian-green);
}

.breadcrumb-current {
  color: var(--oxford-blue);
  font-weight: var(--fw-600);
}

.breadcrumb-separator {
  color: var(--spanish-gray);
}

.hero-title {
  margin-top: 14px;
  color: var(--oxford-blue);
  font-size: var(--fs-1);
  line-height: 1.06;
}

.hero-text {
  max-width: 62ch;
  margin-top: 20px;
  color: var(--black-coral);
  font-size: 1.8rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.tag-chip {
  padding: 8px 14px;
  border-radius: 999px;
  background: hsla(178, 67%, 30%, 0.08);
  color: var(--viridian-green);
  font-size: 1.3rem;
  font-weight: var(--fw-600);
}

.hero-stats {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.hero-stats__item {
  display: grid;
  gap: 4px;
  padding: 16px 18px;
  border-radius: 18px;
  background: hsla(0, 0%, 100%, 0.84);
  box-shadow: var(--shadow-1);
}

.hero-stats__item dt {
  color: var(--spanish-gray);
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-stats__item dd {
  color: var(--oxford-blue);
  font-size: 1.8rem;
  font-weight: var(--fw-700);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.hero-banner {
  position: relative;
}

.hero-banner__card {
  overflow: hidden;
  border-radius: 32px;
  background:
    radial-gradient(circle at top left, hsla(43, 95%, 52%, 0.18), transparent 34%),
    linear-gradient(180deg, var(--white-1), hsl(180, 28%, 97%));
  box-shadow: var(--shadow-2);
}

.hero-banner__image {
  aspect-ratio: 0.84;
  object-fit: cover;
}

.hero-banner__caption {
  margin-top: 14px;
  color: var(--granite-gray);
  font-size: 1.3rem;
}

.section-head {
  display: grid;
  gap: 18px;
  margin-bottom: 34px;
}

.section-head__text {
  max-width: 68ch;
  color: var(--black-coral);
  font-size: 1.7rem;
}

.insight-grid,
.route-grid {
  display: grid;
  gap: 24px;
}

.insight-card,
.article-card,
.sidebar-card,
.route-card {
  border-radius: 28px;
  background: hsla(0, 0%, 100%, 0.92);
  box-shadow: var(--shadow-1);
}

.insight-card,
.sidebar-card {
  padding: 28px;
}

.insight-card__eyebrow,
.article-card__eyebrow,
.sidebar-card__eyebrow {
  color: var(--viridian-green);
  font-size: 1.2rem;
  font-weight: var(--fw-700);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.insight-card h3,
.sidebar-card h2 {
  margin-top: 12px;
  color: var(--oxford-blue);
  font-size: 2.6rem;
  line-height: 1.2;
}

.insight-card p + p,
.sidebar-card p + p {
  margin-top: 12px;
}

.card-banner {
  overflow: hidden;
  background: linear-gradient(180deg, hsl(180, 24%, 91%), hsl(44, 100%, 95%));
}

.route-card {
  overflow: hidden;
  transition:
    transform var(--transition-2),
    box-shadow var(--transition-2);
}

.route-card:hover,
.route-card:focus-visible {
  transform: translateY(-6px);
  box-shadow: var(--shadow-2);
}

.route-card__banner {
  aspect-ratio: 1.2;
}

.route-card__content {
  display: grid;
  gap: 10px;
  padding: 24px;
}

.card-subtitle {
  color: var(--viridian-green);
  font-size: 1.2rem;
  font-weight: var(--fw-700);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.card-title {
  color: var(--oxford-blue);
  line-height: 1.15;
}

.card-text {
  color: var(--black-coral);
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.article-layout {
  padding-top: 32px;
}

.article-layout__grid {
  display: grid;
  gap: 24px;
}

.section-head--article {
  margin-bottom: 24px;
}

.article-main {
  display: grid;
  gap: 24px;
}

.article-card {
  padding: 30px;
}

.article-card__header {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
}

.article-card__index {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background: hsla(43, 95%, 52%, 0.14);
  color: var(--viridian-green);
  font-size: 1.6rem;
  font-weight: var(--fw-700);
}

.article-card h2 {
  margin-top: 10px;
  color: var(--oxford-blue);
  font-size: 3rem;
  line-height: 1.15;
}

.article-card__body {
  margin-top: 22px;
  color: var(--black-coral);
}

.article-card__body p + p {
  margin-top: 16px;
}

.article-sidebar {
  display: grid;
  gap: 24px;
  align-self: start;
}

.sidebar-card__notice {
  color: var(--granite-gray);
  font-size: 1.4rem;
}

.sidebar-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.sidebar-list a {
  color: var(--oxford-blue);
  font-weight: var(--fw-600);
}

.sidebar-list a:hover,
.sidebar-list a:focus-visible {
  color: var(--viridian-green);
}

.sidebar-list--ordered {
  counter-reset: item;
}

.sidebar-list--ordered li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
}

.sidebar-list--ordered li::before {
  counter-increment: item;
  content: counter(item, decimal-leading-zero);
  color: var(--mikado-yellow);
  font-weight: var(--fw-700);
}

.sidebar-list--related span {
  display: block;
  margin-top: 4px;
  color: var(--granite-gray);
  font-size: 1.4rem;
  line-height: 1.6;
}

.article-related {
  padding-block: 0;
}

.footer {
  margin-top: 32px;
  background: var(--oxford-blue);
  color: var(--white-1);
}

.footer-top {
  padding-block: 72px 48px;
  background:
    url('/assets/tourest/footer-bg.png') no-repeat center bottom,
    linear-gradient(180deg, hsl(222, 46%, 17%), hsl(222, 36%, 14%));
}

.footer-grid {
  display: grid;
  gap: 32px;
}

.footer-brand p,
.footer-column li,
.footer-bottom p {
  color: hsla(0, 0%, 100%, 0.8);
}

.footer-note {
  margin-top: 16px;
  max-width: 58ch;
}

.footer-column h3 {
  color: var(--white-1);
  font-size: 1.8rem;
  margin-bottom: 14px;
}

.footer-list {
  display: grid;
  gap: 10px;
}

.footer-list a:hover,
.footer-list a:focus-visible {
  color: var(--mikado-yellow);
}

.footer-bottom {
  border-top: 1px solid hsla(0, 0%, 100%, 0.08);
}

.footer-bottom__inner {
  display: grid;
  gap: 8px;
  padding-block: 18px 24px;
  font-size: 1.4rem;
}

@media (min-width: 640px) {
  .hero-stats,
  .insight-grid,
  .route-grid,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .route-grid--listing {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .container {
    width: min(1180px, calc(100% - 48px));
  }

  .hero {
    padding-top: 64px;
  }

  .hero-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .insight-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .route-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  }

  .footer-bottom__inner {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}

@media (min-width: 992px) {
  .nav-toggle-btn {
    display: none;
  }

  .navbar {
    position: static;
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 0;
    background: transparent;
    box-shadow: none;
    margin-left: auto;
  }

  .navbar-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
  }

  .navbar-link {
    padding: 10px 0;
  }

  .header-cta {
    margin-top: 0;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(420px, 0.9fr);
    gap: 56px;
  }

  .route-grid--listing {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .article-layout__grid {
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.55fr);
    align-items: start;
  }

  .article-sidebar {
    position: sticky;
    top: 104px;
  }
}

@media (min-width: 1200px) {
  .route-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .route-grid--listing {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .section {
    padding-block: 56px;
  }

  .hero-title {
    max-width: 14ch;
  }

  .article-card,
  .insight-card,
  .sidebar-card,
  .route-card__content {
    padding: 22px;
  }

  .article-card h2 {
    font-size: 2.4rem;
  }
}
