/* Kith & Kin Travel: site styles, following the Kith & Kin Web Brand Board. */

:root {
  /* Color in use: ivory 60%, sand 25%, espresso 10%, bronze 5% */
  --ivory: #F8F3E9;
  --sand: #DBC9A7;
  --espresso: #4A3A28;
  --bronze: #B89662;       /* rules, icons and focus only, never small text */
  --ink-soft: #6B5A45;     /* secondary text */
  --line: #D4CDBF;
  --line-soft: #E4DACB;
  --night: 20 18 34;       /* hero shade, as r g b */

  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Jost', 'Helvetica Neue', Arial, sans-serif;

  --max: 1200px;
  --gutter: clamp(20px, 5vw, 64px);
  --gutter-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  --gutter-right: max(var(--gutter), env(safe-area-inset-right, 0px));
  --section-y: clamp(72px, 10vw, 120px);
  --header-h: 64px;

  color-scheme: light;
}

@media (min-width: 960px) {
  :root { --header-h: 88px; }
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: var(--header-h);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--espresso);
  font-family: var(--serif);
  font-weight: 500;
  font-size: 19px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4, p, ol, ul, figure { margin: 0; }

h1, h2 { font-weight: 400; letter-spacing: -0.005em; }

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--bronze);
  outline-offset: 5px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 16px; top: -100px;
  z-index: 100;
  background: var(--espresso);
  color: var(--ivory);
  padding: 12px 20px;
  font: 500 12px/1 var(--sans);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

.container {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-left: var(--gutter-left);
  padding-right: var(--gutter-right);
}

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

/* ---------- Type ---------- */

.eyebrow {
  font: 500 11px/1.4 var(--sans);
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.lead {
  font-size: clamp(19px, 1.2vw + 13px, 21px);
  line-height: 1.55;
}

h2 {
  font-size: clamp(32px, 3.4vw + 14px, 52px);
  line-height: 1.08;
  text-wrap: balance;
}

@media (min-width: 960px) {
  .eyebrow { font-size: 12px; }
}

/* ---------- Buttons and links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 44px;
  font: 500 12px/1 var(--sans);
  letter-spacing: 0.26em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  border: 0;
  border-radius: 0;
  transition: background-color .2s ease, color .2s ease;
}

.btn__arrow {
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.2;
  transition: transform .2s ease;
}
.btn:hover .btn__arrow { transform: translateX(4px); }

.btn--primary {
  background: var(--espresso);
  color: var(--ivory);
  padding: 19px 34px;
}
.btn--primary:hover { background: #3A2D1F; }

.btn--light {
  background: var(--ivory);
  color: var(--espresso);
  padding: 19px 34px;
}
.btn--light:hover { background: #FFFFFF; }

.btn--pill {
  border: 1px solid var(--espresso);
  border-radius: 999px;
  color: var(--espresso);
  padding: 13px 26px;
  letter-spacing: 0.24em;
}
.btn--pill:hover { background: var(--espresso); color: var(--ivory); }

.text-link {
  display: inline-block;
  font: 500 12px/1 var(--sans);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  padding-block: 16px 7px;
  border-bottom: 1px solid currentColor;
}
.text-link--light { color: var(--ivory); }

/* ---------- Header and navigation ---------- */

.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  background: var(--ivory);
  border-bottom: 1px solid var(--line-soft);
}

/* Paints the strip above the sticky header on phones with a notch */
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 60;
  background: var(--ivory);
}

.site-header__inner {
  height: var(--header-h);
  max-width: 1440px;
  margin-inline: auto;
  padding-left: var(--gutter-left);
  padding-right: var(--gutter-right);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
}

.site-header__logo { justify-self: start; display: block; }
.site-header__logo img { height: 34px; width: auto; }

.site-header__cta { display: none; }

.site-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-nav a:not(.btn) {
  font: 500 12px/1 var(--sans);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-decoration: none;
}

/* Phone and tablet: menu button opens a panel under the header */
.menu-toggle {
  justify-self: end;
  width: 44px;
  height: 44px;
  margin-right: -9px;
  display: grid;
  place-content: center;
  gap: 9px;
  background: transparent;
  border: 0;
  cursor: pointer;
  color: var(--espresso);
}
.menu-toggle__line {
  display: block;
  width: 26px;
  height: 1.3px;
  background: currentColor;
  transition: transform .2s ease;
}
.menu-toggle[aria-expanded="true"] .menu-toggle__line:first-child { transform: translateY(5.15px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__line:last-child { transform: translateY(-5.15px) rotate(-45deg); }

.site-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--ivory);
  border-bottom: 1px solid var(--line-soft);
  padding-block: 8px 28px;
  padding-left: var(--gutter-left);
  padding-right: var(--gutter-right);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.js .site-nav { display: none; }
.js .site-header.is-open .site-nav { display: flex; }

.site-nav li a {
  display: flex;
  align-items: center;
  min-height: 52px;
  border-bottom: 1px solid var(--line-soft);
}
.site-nav__cta { align-self: flex-start; }

@media (min-width: 960px) {
  .site-header__inner { grid-template-columns: 1fr auto 1fr; }
  .site-header__logo img { height: 44px; }
  .site-header__cta { display: inline-flex; justify-self: end; }
  .menu-toggle { display: none; }

  .site-nav,
  .js .site-nav {
    position: static;
    display: block;
    padding-block: 0;
    padding-left: 0;
    padding-right: 0;
    border: 0;
    background: none;
  }
  .site-nav ul { display: flex; gap: clamp(24px, 3vw, 44px); }
  .site-nav li a {
    min-height: 0;
    padding-block: 14px 6px;
    border-bottom: 1px solid transparent;
    transition: border-color .2s ease;
  }
  .site-nav li a:hover,
  .site-nav li a.is-current { border-bottom-color: var(--espresso); }
  .site-nav__cta { display: none; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: clamp(680px, 30vw + 380px, 840px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--espresso);
  color: var(--ivory);
}

.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% 50%; /* keeps the stargazers in view on phones */
}

.hero__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgb(var(--night) / .45) 0%, rgb(var(--night) / .1) 35%, rgb(var(--night) / .1) 55%, rgb(var(--night) / .6) 100%);
}

/* Logo sits at the top, the headline and buttons at the bottom, with open sky between */
.hero__content {
  position: relative;
  flex: 1 1 auto;
  width: 100%;
  max-width: calc(780px + 2 * var(--gutter));
  padding-block: 40px 56px;
  padding-left: var(--gutter-left);
  padding-right: var(--gutter-right);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 64px;
}

.hero__text {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.hero h1 {
  font-size: clamp(42px, 4.6vw + 16px, 74px);
  line-height: 1.06;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.hero__lead {
  margin-top: -8px;
  font-size: clamp(20px, 0.6vw + 16px, 25px);
  font-style: italic;
  font-weight: 400;
  line-height: 1.4;
  max-width: 560px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 32px;
  margin-top: 10px;
}

.hero__logo { width: clamp(290px, 19vw + 130px, 430px); }

@media (min-width: 960px) {
  .hero { flex-direction: row; align-items: stretch; }
  .hero__img { object-position: 65% 50%; }
  .hero__shade {
    background:
      linear-gradient(90deg, rgb(var(--night) / .5) 0%, rgb(var(--night) / .2) 45%, rgb(var(--night) / 0) 70%),
      linear-gradient(180deg, rgb(var(--night) / .25) 0%, rgb(var(--night) / 0) 30%);
  }
  .hero__content {
    flex: 0 1 calc(780px + 2 * var(--gutter));
    min-width: 0;
    margin-left: max(0px, calc((100vw - 1440px) / 2));
    padding-block: 56px 88px;
  }
  .hero__text { gap: 30px; }
}

/* ---------- Positioning ---------- */

.intro__inner {
  max-width: calc(880px + 2 * var(--gutter));
  margin-inline: auto;
  padding-left: var(--gutter-left);
  padding-right: var(--gutter-right);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

@media (min-width: 960px) {
  .intro__inner { text-align: center; gap: 26px; }
  .intro .lead { font-size: 22px; }
}

/* ---------- Destinations slideshow ---------- */

.destinations {
  background: var(--sand);
  padding-block: clamp(64px, 8vw, 104px);
}

.destinations__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 40px;
  margin-bottom: clamp(32px, 4vw, 56px);
}

.destinations__heading { display: flex; flex-direction: column; gap: 14px; }

/* Previous, pause and next: no destination names, so the three read as examples */
.destinations__controls { display: flex; align-items: center; gap: 10px; }

.destinations__button {
  flex: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--espresso);
  border-radius: 50%;
  background: transparent;
  color: var(--espresso);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background-color .15s ease;
}
.destinations__button:hover { background: var(--ivory); }
.destinations__button svg { fill: none; stroke: currentColor; stroke-width: 1.4; }
.destinations__pause .icon-pause { stroke-width: 1.6; }
.destinations__pause .icon-play { display: none; fill: currentColor; stroke: none; }
.destinations__pause.is-paused .icon-pause { display: none; }
.destinations__pause.is-paused .icon-play { display: block; }

/* One destination per screen width; swipe or scroll sideways between them */
.destinations__track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.destinations__track::-webkit-scrollbar { display: none; }

.destination {
  flex: 0 0 100%;
  min-width: 0;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.destinations__more {
  margin-top: clamp(40px, 5vw, 64px);
  padding-top: 24px;
  border-top: 1px solid var(--espresso);
  font-size: clamp(19px, 0.6vw + 15px, 22px);
  line-height: 1.5;
}
.destinations__more a { text-underline-offset: 4px; }

/* Photo across the full width, then the destination's title and description, then its experiences */
.region__intro {
  display: grid;
  grid-template-areas: "img" "head" "body";
  gap: 20px;
  margin-bottom: clamp(36px, 5vw, 64px);
}

.region__head { grid-area: head; display: flex; flex-direction: column; gap: 20px; }
.region__head h3 { font-size: clamp(36px, 3.2vw + 18px, 54px); font-weight: 400; line-height: 1.05; }
.region__img { grid-area: img; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; margin-bottom: 8px; }
.region__body { grid-area: body; max-width: 520px; }

/* Keep each photo's subject in frame when it's cropped wide */
#hawaii .region__img { object-position: 25% 50%; }
#spain .region__img { object-position: 28% 50%; }
#italy .region__img { object-position: 88% 50%; }

@media (min-width: 900px) {
  .region__intro {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "img img"
      "head body";
    column-gap: clamp(48px, 6vw, 80px);
    row-gap: 40px;
    align-items: start;
  }
  .region__img { aspect-ratio: 21 / 9; margin-bottom: 0; }
}

.experiences {
  display: grid;
  gap: 32px;
}

.experience {
  border-top: 1px solid var(--espresso);
  padding-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.experience h4,
.step h3 {
  font-size: clamp(17px, 0.4vw + 15px, 21px);
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  line-height: 1.3;
}

.experience p { font-size: 18px; line-height: 1.5; }

@media (min-width: 900px) {
  .experiences { grid-template-columns: repeat(3, 1fr); gap: 40px; }
  .experience { padding-top: 20px; gap: 12px; }
  .experience p { font-size: 19px; }
}

/* ---------- About ---------- */

.about__grid {
  display: grid;
  gap: 40px;
  align-items: center;
}

.about__photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  max-height: 560px;
  object-fit: cover;
  object-position: 50% 20%;
  background: var(--sand);
}

.about__text {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.about__text .lead { max-width: 520px; }

@media (min-width: 900px) {
  .about__grid { grid-template-columns: 1fr 1.1fr; gap: 80px; }
  .about__photo { aspect-ratio: auto; height: 600px; max-height: none; }
  .about__text { gap: 24px; }
  .about__text h2 { font-size: 48px; }
}

/* ---------- How it works ---------- */

/* Sand band, so About (ivory) above and the booking section (ivory) below read as separate sections */
.how { background: var(--sand); }

.how__head {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: clamp(32px, 5vw, 64px);
}

/* Each step: a rule on top, a large italic numeral, a fine divider, then title and text */
.steps {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 36px;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto 1fr;
  column-gap: 22px;
  row-gap: 8px;
  padding-top: 22px;
  border-top: 1px solid var(--espresso);
}
.step__num {
  grid-row: 1 / span 2;
  align-self: stretch;
  width: 0.62em;
  padding-right: 22px;
  border-right: 1px solid rgb(74 58 40 / .3);
  font-size: clamp(60px, 2.5vw + 44px, 84px);
  font-style: italic;
  font-weight: 400;
  font-variant-numeric: lining-nums;
  line-height: 0.85;
  text-align: center;
  box-sizing: content-box;
}
.step h3 { padding-top: 4px; }
.step p { font-size: 18px; line-height: 1.5; max-width: 420px; }

.how__price {
  margin-top: clamp(32px, 5vw, 64px);
  font-size: clamp(18px, 0.4vw + 16px, 20px);
  line-height: 1.5;
  max-width: 620px;
}

@media (min-width: 720px) {
  .steps { grid-template-columns: repeat(2, 1fr); gap: 52px clamp(40px, 6vw, 88px); }
}

@media (min-width: 1000px) {
  .how__head { text-align: center; }
  .how__head h2 { font-size: 48px; }
  .steps { max-width: 1040px; margin-inline: auto; }
  .how__price { margin-inline: auto; text-align: center; }
}

/* ---------- Conversation: enquiry form and chat ---------- */


.conversation__grid {
  display: grid;
  gap: 56px;
  align-items: start;
}

.conversation__main {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.conversation__main h2 { font-size: clamp(36px, 3.2vw + 14px, 52px); line-height: 1.05; }
.conversation__main .lead { max-width: 480px; }

.enquiry {
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-width: 480px;
  margin-top: 4px;
}

.field { display: flex; flex-direction: column; gap: 6px; }

.field label,
.slots legend {
  font: 500 11px/1.4 var(--sans);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.field__optional { letter-spacing: 0.1em; text-transform: none; color: var(--ink-soft); }

.field input,
.field textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--espresso);
  border-radius: 0;
  background: transparent;
  color: var(--espresso);
  font: 500 20px/1.4 var(--serif);
  padding: 6px 0 10px;
  resize: vertical;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--ink-soft); opacity: 1; }
.field input:focus-visible,
.field textarea:focus-visible { outline-offset: 3px; }

.enquiry .btn { align-self: flex-start; margin-top: 6px; }

.form-status {
  font-size: 18px;
  line-height: 1.45;
}
.form-status:empty { display: none; }

.form-note {
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink-soft);
}
.form-note a { color: var(--espresso); text-underline-offset: 3px; }

/* Booking a call: holds the Calendly scheduler once the link is set up */
.booking {
  width: 100%;
  max-width: 480px;
  border-top: 1px solid var(--espresso);
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  scroll-margin-top: 24px;
}

.booking__title {
  font-size: clamp(28px, 1.6vw + 18px, 36px);
  font-weight: 400;
  line-height: 1.1;
}

.booking__text { font-size: 18px; line-height: 1.5; }

/* Calendly's inline calendar on the live site */
.booking__calendar {
  margin-top: 8px;
  min-width: 280px;
  height: 700px;
  border: 1px solid var(--line-soft);
  background: var(--ivory);
}

.booking__link { align-self: flex-start; padding-top: 4px; }

/* Stands in for the calendar where it can't load, such as the shared preview */
.booking__scheduler {
  margin-top: 8px;
  min-height: 380px;
  background: var(--sand);
  display: flex;
  align-items: flex-end;
  padding: 20px;
}

.booking__note {
  font: 500 11px/1.4 var(--sans);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

@media (min-width: 960px) {
  .conversation__grid { grid-template-columns: 1.1fr 1fr; gap: 96px; }
  .conversation__main { gap: 26px; }
  .booking { justify-self: end; margin-top: 52px; }
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--espresso);
  color: var(--ivory);
  padding-block: clamp(56px, 7vw, 88px) 40px;
}

.site-footer__grid {
  display: grid;
  gap: 36px;
}

.site-footer__brand { display: flex; flex-direction: column; gap: 20px; }
/* Wide enough that the tagline inside the logo stays readable */
.site-footer__brand img { width: min(100%, 420px); align-self: flex-start; }

.site-footer__col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  font: 500 11px/1.4 var(--sans);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.site-footer__col a {
  text-decoration: none;
  padding-block: 8px;
}
.site-footer__col a:hover { text-decoration: underline; text-underline-offset: 4px; }
.site-footer__label {
  color: var(--sand);
  margin-bottom: 6px;
  font: 500 11px/1.4 var(--sans);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.site-footer__affiliation .site-footer__label { margin-bottom: 10px; }
.site-footer__email { text-transform: none; letter-spacing: 0.06em; font-size: 14px; word-break: break-word; }

.site-footer__rule {
  border: 0;
  height: 1px;
  background: var(--bronze);
  opacity: .7;
  margin: clamp(40px, 5vw, 56px) 0 24px;
}

/* Fora and Virtuoso affiliation, plus Fora's seller of travel numbers (required on California advisors' websites) */
.site-footer__affiliations {
  display: grid;
  gap: 28px;
  margin-bottom: 32px;
}

.site-footer__affiliation p:last-child {
  font-size: 17px;
  line-height: 1.5;
  max-width: 520px;
}

.site-footer__legal {
  font: 400 11px/1.7 var(--sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sand);
}
.site-footer__legal + .site-footer__legal { margin-top: 8px; }

@media (min-width: 760px) {
  .site-footer__affiliations { grid-template-columns: 1fr 1fr; gap: 56px; }
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 32px clamp(32px, 4vw, 64px);
}

@media (min-width: 760px) {
  /* Two equal halves with the same gap as the Fora / Virtuoso row below,
     so the link group starts on the same line as "Our network · Virtuoso" */
  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
    column-gap: 56px;
    align-items: start;
  }
}

/* Bigger tap areas on touch screens, without changing how the links look */
@media (pointer: coarse) {
  .text-link,
  .booking__link { padding-top: 25px; }
  .site-header__logo { padding-block: 5px; }
  .site-footer__col a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}

/* ---------- Privacy page ---------- */

.legal { padding-block: clamp(56px, 8vw, 104px) var(--section-y); }
.legal .container { max-width: calc(720px + 2 * var(--gutter)); }

.legal__head {
  display: grid;
  gap: 18px;
  margin-bottom: clamp(36px, 5vw, 56px);
}
.legal h1 {
  font-size: clamp(40px, 4vw + 18px, 64px);
  line-height: 1.04;
  text-wrap: balance;
}
.legal__updated {
  font: 500 11px/1.4 var(--sans);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.legal__summary {
  background: var(--sand);
  padding: clamp(24px, 3vw, 36px);
  display: grid;
  gap: 14px;
  margin-bottom: clamp(48px, 6vw, 72px);
}

.legal__body {
  display: grid;
  gap: clamp(40px, 5vw, 56px);
}
.legal__section {
  border-top: 1px solid var(--espresso);
  padding-top: 24px;
  display: grid;
  gap: 14px;
}
.legal h2 { font-size: clamp(28px, 1.5vw + 20px, 36px); }
.legal ul {
  padding-left: 1.1em;
  display: grid;
  gap: 8px;
}
.legal li::marker { color: var(--bronze); }
.legal strong { font-weight: 600; }
.legal a { text-underline-offset: 3px; }
