@font-face {
  font-family: Onest;
  src: url("assets/fonts/onest.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: Manrope;
  src: url("assets/fonts/manrope.ttf") format("truetype");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f4f6f5;
  --ink: #0f4c5c;
  --sky: #5fa8d3;
  --orange: #ff6b35;
  --coral-surface: #c54820;
  --coral-hover: #b8431e;
  --action-ink: #142b31;
  --body-ink: #365661;
  --line: #c9d7d9;
  --gutter: clamp(1.125rem, 3.45vw, 4.5rem);
  --heading: Onest, system-ui, sans-serif;
  --body: Manrope, system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  scroll-behavior: smooth;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-underline-offset: .28em; }
::selection { background: var(--sky); color: var(--action-ink); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }
[id] { scroll-margin-top: 1.25rem; }

.skip-link {
  position: absolute;
  z-index: 3;
  top: 1rem;
  left: var(--gutter);
  padding: .65rem 1rem;
  background: var(--paper);
  transform: translateY(calc(-100% - 1.25rem));
}
.skip-link:focus { transform: none; }

.frame {
  width: min(100% - var(--gutter) * 2, 100rem);
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  gap: clamp(2rem, 4.9vw, 5.25rem);
  min-height: clamp(4.5rem, 5.3vw, 5.5rem);
}

.wordmark {
  font-size: clamp(1.625rem, 2.75vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1;
  text-decoration: none;
}

.site-nav { display: flex; flex-wrap: wrap; gap: 0 clamp(1rem, 4.45vw, 4.5rem); }
.site-nav a, .footer > a:last-child {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: clamp(.875rem, 1.65vw, 1.625rem);
  font-weight: 650;
  text-decoration: none;
}
.site-nav a:hover, .footer > a:last-child:hover { text-decoration: underline; }

.account-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 44px;
  margin-inline-start: auto;
  padding: .5rem .85rem;
  border: 1px solid var(--line);
  border-radius: .75rem;
  background: transparent;
  color: var(--ink);
  font: 750 clamp(.875rem, 1.15vw, 1rem) / 1.3 var(--body);
  text-align: start;
  cursor: pointer;
}
.account-trigger[hidden], .account-session[hidden], .account-form[hidden] { display: none; }
.account-trigger:hover, .account-close:hover { background: #e2edf2; }
.account-trigger svg, .account-close svg {
  flex: 0 0 1.2rem;
  width: 1.2rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
}

.hero-copy {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  gap: clamp(.9rem, 1.35vw, 1.35rem);
  padding-block: clamp(1.8rem, 2.4vw, 2.75rem) .4rem;
  text-align: center;
}

h1 {
  font-family: var(--heading);
  font-size: clamp(2.45rem, 6.5vw, 6.5rem);
  font-weight: 750;
  letter-spacing: -.039em;
  line-height: 1.02;
  text-wrap: balance;
}

.hero-subtitle {
  max-width: 46ch;
  color: var(--body-ink);
  font-size: clamp(1rem, 1.5vw, 1.4rem);
  font-weight: 550;
  line-height: 1.5;
  text-wrap: balance;
}

.primary-action {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: clamp(.65rem, 1.2vw, 1.2rem);
  min-width: min(100%, clamp(13rem, 29vw, 29rem));
  max-width: 100%;
  min-height: clamp(3.5rem, 5vw, 5rem);
  margin-top: clamp(.25rem, .6vw, .6rem);
  padding: .625rem 1.45rem;
  border-radius: 999px;
  background: var(--coral-surface);
  color: #fff;
  font-size: clamp(1.125rem, 2.3vw, 2.25rem);
  font-weight: 800;
  line-height: 1.15;
  text-decoration: none;
  transition: background-color 180ms ease-out;
}
.primary-action:hover { background: var(--coral-hover); }
.primary-action svg {
  width: .83em;
  height: .83em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 240ms ease-out;
}
.primary-action:hover svg { transform: translateY(.16em); }

.panorama {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: end;
  min-height: clamp(24rem, 32.75vw, 38rem);
  padding-block: 5rem clamp(1.5rem, 1.9vw, 2rem);
  padding-inline: .5rem;
  background: var(--ink);
}
.panorama-image, .panorama-edge, .panorama::after {
  position: absolute;
  inset: 0;
  width: 100%;
  pointer-events: none;
}
.panorama-image {
  z-index: -2;
  height: 100%;
  object-fit: cover;
  object-position: var(--panorama-focus, 72%) 50%;
}
.panorama-image[data-country="tr"] { --panorama-focus: 66%; }
.panorama::after {
  content: "";
  z-index: -1;
  background: linear-gradient(to bottom, transparent 54%, rgb(7 37 47 / .15) 72%, rgb(7 37 47 / .72) 89%, rgb(7 37 47 / .8) 100%);
}
.panorama-edge { height: clamp(1.5rem, 4.1vw, 4.5rem); fill: var(--paper); }

.destinations { width: min(77%, 80rem); margin-inline: auto; text-align: center; }
.country-picker {
  min-inline-size: 0;
  margin: 0;
  padding: .45rem;
  border: 0;
  border-radius: clamp(.875rem, 1.6vw, 1.55rem);
  background: var(--paper);
}
.country-options { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .32rem; }
.country-option:not(:first-child)::before {
  position: absolute;
  content: "";
  top: 24%;
  bottom: 24%;
  left: -.19rem;
  border-left: 1px solid var(--line);
  pointer-events: none;
}
.country-option {
  position: relative;
  display: grid;
  place-items: center;
  min-height: clamp(3.4rem, 5.55vw, 5.7rem);
  padding: .4rem .25rem;
  border-radius: clamp(.6rem, 1.05vw, 1rem);
  font-size: clamp(1rem, 2.65vw, 2.6rem);
  font-weight: 800;
  line-height: 1.12;
  text-decoration: none;
  transition: background-color 180ms ease-out;
}
.country-option:hover { background: #e2edf2; text-decoration: underline; }
.country-option:focus-visible { outline-offset: -4px; }

.all-destinations-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin: clamp(.65rem, 1vw, .95rem) auto 0;
  color: var(--paper);
  font-size: clamp(.95rem, 1.56vw, 1.5rem);
  font-weight: 750;
  line-height: 1.4;
}
.all-destinations-link:focus-visible { outline-color: var(--paper); }

.how { padding-block: clamp(2.8rem, 3.15vw, 4.5rem) clamp(3.3rem, 6.3vw, 7rem); }
h2 {
  font-family: var(--heading);
  font-size: clamp(2rem, 3.55vw, 3.65rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.03em;
  text-wrap: balance;
}
.section-intro, .steps p, .faq p {
  color: var(--body-ink);
  font-size: clamp(1rem, 1.2vw, 1.2rem);
  font-weight: 550;
  line-height: 1.65;
}
.section-intro { max-width: 58ch; margin-top: 1rem; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 4.5vw, 5rem);
  margin: clamp(2.25rem, 4vw, 4rem) 0 0;
  padding: 0;
  list-style: none;
  counter-reset: steps;
}
.steps li {
  counter-increment: steps;
  padding-top: 1.25rem;
  border-top: 2px solid var(--sky);
}
.steps li::before {
  content: counter(steps, decimal-leading-zero);
  display: block;
  margin-bottom: 1rem;
  color: var(--ink);
  font: 700 .9rem/1 var(--heading);
  font-variant-numeric: tabular-nums;
}
.steps h3 { margin-bottom: .4rem; font-size: clamp(1.15rem, 1.75vw, 1.65rem); line-height: 1.3; }
.steps p { max-width: 36ch; }

.faq {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: clamp(1.15rem, 4vw, 4rem);
  padding-bottom: clamp(3.25rem, 6.3vw, 7rem);
}
.faq-list { padding-top: .5rem; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  position: relative;
  display: block;
  padding: 1.1rem 2.5rem 1.1rem 0;
  cursor: pointer;
  font-size: clamp(1rem, 1.35vw, 1.35rem);
  font-weight: 750;
  line-height: 1.4;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after {
  position: absolute;
  top: calc(50% - 1px);
  right: .4rem;
  width: .95rem;
  height: 2px;
  background: currentColor;
  content: "";
}
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: none; }
.faq p { max-width: 60ch; padding: 0 1rem 1.2rem 0; }

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .75rem 1.25rem;
  min-height: 5.25rem;
  padding-block: .6rem;
  border-top: 1px solid var(--line);
}
.footer .wordmark { font-size: 1.55rem; }
.footer > a:last-child { gap: .4rem; font-size: .95rem; }
.footer svg { width: .85em; fill: none; stroke: currentColor; stroke-width: 1.75; }

.account-dialog {
  width: min(100% - 2rem, 27rem);
  max-height: calc(100% - 2rem);
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--paper);
  color: var(--ink);
}
.account-dialog::backdrop { background: rgb(7 37 47 / .55); }
.account-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: .5rem; }
.account-heading h2 { font-size: clamp(1.5rem, 4vw, 2.1rem); line-height: 1.2; text-wrap: initial; }
.account-close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: .65rem;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.account-form, .account-session { display: grid; gap: .8rem; margin-top: .85rem; }
.account-form p, .account-session p, .account-status { color: var(--body-ink); line-height: 1.5; overflow-wrap: anywhere; }
.account-form label { font-weight: 750; }
.account-form input {
  width: 100%;
  min-height: 44px;
  padding: .55rem .75rem;
  border: 1px solid var(--ink);
  border-radius: .6rem;
  background: #fff;
  color: var(--ink);
  font: inherit;
}
.account-action {
  min-height: 44px;
  padding: .55rem .85rem;
  border: 0;
  border-radius: .6rem;
  background: var(--coral-surface);
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.account-action:hover:not(:disabled) { background: var(--coral-hover); }
.account-action:disabled { cursor: wait; }
.account-status:not(:empty) { margin-top: .85rem; }

@media (min-width: 48rem) {
  .account-dialog { padding: 2rem; }
}

@media (max-width: 48rem) {
  .site-header { gap: 1rem; }
  .hero-copy { padding-block: 2rem .9rem; }
  .panorama { min-height: 24rem; }
  .destinations { width: min(100% - var(--gutter) * 2, 35rem); }
  .faq { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 38rem) {
  h1, h2, h3, p, summary, .primary-action { overflow-wrap: anywhere; }
  .site-header { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .2rem .65rem; padding-top: 1.25rem; }
  .site-header .wordmark { width: fit-content; }
  .site-nav { grid-column: 1 / -1; grid-row: 2; gap: 0 1.25rem; }
  .account-trigger { grid-column: 2; grid-row: 1; padding-inline: .55rem; max-width: 48vw; overflow-wrap: anywhere; }
  .hero-copy { padding-block: 1.8rem 1.05rem; }
  h1 { max-width: min(100%, 13ch); font-size: clamp(2.35rem, 8.5vw, 3.35rem); }
  .panorama { min-height: clamp(22rem, 90vw, 26rem); padding-bottom: 1.35rem; }
  .panorama-image { object-position: var(--panorama-mobile-focus, 85%) 46%; }
  .panorama-image[data-country="tr"] { --panorama-mobile-focus: 93%; }
  .country-picker { padding: .3rem; }
  .country-options { gap: .15rem; }
  .country-option:not(:first-child)::before { left: -.1rem; }
  .country-option { min-height: 3rem; font-size: clamp(.875rem, 3.45vw, 1.125rem); }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 1.35rem; }
  .steps li { padding-top: 1rem; }
  .steps li::before { margin-bottom: .6rem; }
}

@media (max-width: 27rem) {
  .account-trigger svg { display: none; }
  .country-options { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .3rem; }
  .country-option:nth-child(odd)::before { display: none; }
  .country-option { overflow-wrap: anywhere; }
}

@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
