/* ==========================================================================
   Hailly Travels (haillytravels.com)
   Brand colours and fonts live in :root so they are easy to tweak.
   ========================================================================== */

:root {
  /* Brand palette */
  --sage: #75a398;
  --peach: #f0cba6;
  --olive: #6c843e;
  --coral: #cc5348;

  /* Deeper shades of the brand colours, used for small text and for
     white-on-colour hover states so they stay readable */
  --sage-deep: #497569;
  --olive-deep: #5a6e33;
  --coral-deep: #b4433a;

  /* Neutrals */
  --ink: #111111;
  --text: #3a3a3a;
  --paper: #fffdf9;
  --sage-tint: #eef4f2;
  --peach-tint: #fcf3ea;

  /* Type: a high-contrast serif like the banner, plus a light geometric
     sans like "ADVENTURE AWAITS" */
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Montserrat", "Helvetica Neue", Arial, sans-serif;

  --content-width: 1040px;
}

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

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--coral-deep);
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--ink);
}

.container {
  width: min(100% - 2.5rem, var(--content-width));
  margin-inline: auto;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* Shared type ------------------------------------------------------------ */

h2 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--sage-deep);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

/* "- - - - ✈" divider, borrowed from the banner */
.flight-path {
  width: 128px;
  height: 24px;
  margin: 1.25rem auto 1.5rem;
  color: var(--peach);
}

/* Banner ----------------------------------------------------------------- */

.banner {
  padding: clamp(2rem, 6vw, 4rem) 1.25rem clamp(1.5rem, 4vw, 3rem);
}

.banner h1 {
  margin: 0;
}

.banner img {
  width: min(100%, 680px);
  height: auto;
  margin-inline: auto;
}

/* Centered bands: Contact Me, Let's plan --------------------------------- */

.band {
  padding: clamp(3rem, 8vw, 5rem) 0;
  text-align: center;
}

.band--sage {
  background: var(--sage-tint);
}

.band--peach {
  background: var(--peach-tint);
}

.band .lead {
  max-width: 34rem;
  margin: 0 auto 2rem;
  text-wrap: balance;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pill {
  --pill-color: var(--coral);
  --pill-hover: var(--coral-deep);

  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 3.5rem; /* keeps buttons with smaller text (Fora) the same height */
  padding: 0.8rem 1.5rem;
  border: 2px solid var(--pill-color);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.pill svg {
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
  color: var(--pill-color);
  transition: color 0.2s ease;
}

.pill:hover,
.pill:focus-visible {
  border-color: var(--pill-hover);
  background: var(--pill-hover);
  color: #fff;
}

.pill:hover svg,
.pill:focus-visible svg {
  color: #fff;
}

.pill:focus-visible {
  outline: 3px solid var(--peach);
  outline-offset: 3px;
}

.pill--olive {
  --pill-color: var(--olive);
  --pill-hover: var(--olive-deep);
}

/* Fora Travel button in Fora's own brand: their beige, warm brown and
   wordmark, with square corners like the buttons on foratravel.com */
.pill--fora {
  --pill-color: #131313;
  --pill-hover: #463d34;

  border-color: #463d34;
  border-radius: 0;
  background: #f3ebe2;
  color: #463d34;
  font-family: "Public Sans", var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pill--fora svg {
  width: 3.4rem;
  height: 1.05rem;
}

.pill__label {
  padding-left: 0.75rem;
  border-left: 1px solid currentColor;
  line-height: 1.2;
}

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

.about {
  padding: clamp(3.5rem, 9vw, 6rem) 0;
}

.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  align-items: center;
  gap: clamp(2.5rem, 6vw, 5rem);
}

/* Arch-shaped portrait photo with a thin sage ring around it.
   The vertical top radius is 37.5% of a 3:4 photo's height, which equals
   half its width, so the top is a true semicircle. */
.about__photo {
  --arch: 50% 50% 0.75rem 0.75rem / 37.5% 37.5% 0.75rem 0.75rem;

  width: min(100% - 1.5rem, 360px);
  margin: 0 auto;
  border-radius: var(--arch);
  background: var(--peach-tint);
  box-shadow: 0 0 0 10px var(--paper), 0 0 0 12px var(--sage);
}

.about__photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--arch);
}

.about__text .flight-path {
  margin-left: 0;
}

.about__text p:not(.eyebrow) {
  margin: 0 0 1.25rem;
}

.about__text h3 {
  margin: 2rem 0 0.75rem;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.625rem;
  font-weight: 400;
  line-height: 1.2;
}

.travel-style {
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
}

.travel-style li {
  position: relative;
  margin-bottom: 0.5rem;
  padding-left: 2rem;
}

/* Small sage plane as the bullet */
.travel-style li::before {
  --plane: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M21 16v-2l-8-5V3.5c0-.83-.67-1.5-1.5-1.5S10 2.67 10 3.5V9l-8 5v2l8-2.5V19l-2 1.5V22l3.5-1 3.5 1v-1.5L13 19v-5.5l8 2.5z'/%3E%3C/svg%3E");

  content: "";
  position: absolute;
  top: 0.35em;
  left: 0;
  width: 1.125rem;
  height: 1.125rem;
  background: var(--sage);
  -webkit-mask: var(--plane) center / contain no-repeat;
  mask: var(--plane) center / contain no-repeat;
  transform: rotate(45deg);
}

/* "Ask me about" specialties as small tags */
.specialties {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.specialties li {
  padding: 0.3rem 0.9rem;
  border: 1px solid var(--sage);
  border-radius: 999px;
  background: var(--sage-tint);
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.5;
}

/* What travelers say ----------------------------------------------------- */

.reviews {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin: 0 0 2.5rem;
  padding: 0;
  list-style: none;
}

.review {
  display: flex;
  flex-direction: column;
  height: 100%;
  margin: 0;
  padding: 1.5rem 1.75rem 1.75rem;
  border-radius: 0.75rem;
  background: #fff;
  box-shadow: 0 1px 3px rgba(17, 17, 17, 0.08);
}

/* Large peach quote mark above each review */
.review::before {
  content: "\201C";
  height: 2.5rem;
  color: var(--peach);
  font-family: var(--font-display);
  font-size: 4.5rem;
  line-height: 1;
}

.review blockquote {
  flex: 1;
  margin: 0 0 1.25rem;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-style: italic;
  line-height: 1.5;
}

.review blockquote p {
  margin: 0;
}

.review figcaption {
  color: var(--sage-deep);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

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

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
}

/* Numbered circle above each step */
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  margin: 0 auto 1rem;
  border: 2px solid var(--sage);
  border-radius: 50%;
  color: var(--sage-deep);
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-variant-numeric: lining-nums; /* Playfair's default numbers sit low in the circle */
}

.steps h3 {
  margin: 0 0 0.5rem;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 400;
  line-height: 1.2;
}

.steps p {
  margin: 0;
  font-size: 0.9375rem;
}

/* Travel guides ---------------------------------------------------------- */

.guides {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  max-width: 48rem;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  text-align: left;
}

.guide {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.75rem;
  border: 2px solid transparent;
  border-radius: 0.75rem;
  background: #fff;
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.2s ease;
}

.guide:hover,
.guide:focus-visible {
  border-color: var(--coral);
  color: var(--text);
}

.guide:focus-visible {
  outline: 3px solid var(--peach);
  outline-offset: 3px;
}

.guide__place {
  color: var(--sage-deep);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.guide h3 {
  margin: 0.35rem 0 0.5rem;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.2;
}

.guide p {
  flex: 1;
  margin: 0 0 1rem;
  font-size: 0.9375rem;
}

.guide__cta {
  color: var(--coral-deep);
  font-size: 0.875rem;
  font-weight: 600;
}

/* FAQ -------------------------------------------------------------------- */

.faq {
  max-width: 46rem;
  margin: 0 auto;
  text-align: left;
}

.faq details {
  border-bottom: 1px solid var(--sage);
}

.faq details:first-child {
  border-top: 1px solid var(--sage);
}

.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.3;
  list-style: none;
  cursor: pointer;
}

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

/* "+" that turns into "×" when the answer is open */
.faq summary::after {
  content: "+";
  flex: none;
  color: var(--coral-deep);
  font-family: var(--font-body);
  font-size: 1.75rem;
  font-weight: 300;
  line-height: 1;
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq summary:hover {
  color: var(--coral-deep);
}

.faq summary:focus-visible {
  outline: 3px solid var(--peach);
  outline-offset: 3px;
}

.faq details p {
  margin: 0 0 1.5rem;
}

/* Let's plan your dream trip --------------------------------------------- */

.plan h2 {
  font-size: clamp(1.875rem, 4.5vw, 2.75rem);
}

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

.site-footer {
  padding: 3rem 0 2.5rem;
  background: var(--ink);
  color: #a9a29a;
  text-align: center;
}

.site-footer__name {
  margin: 0;
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.site-footer__tagline {
  margin: 0.25rem 0 1.5rem;
  color: var(--peach);
  font-size: 0.75rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
}

.social {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}

.social a {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgba(240, 203, 166, 0.5);
  border-radius: 50%;
  color: var(--peach);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.social a:hover,
.social a:focus-visible {
  background: var(--peach);
  color: var(--ink);
}

.social svg {
  width: 1.25rem;
  height: 1.25rem;
}

.site-footer small {
  font-size: 0.8125rem;
}

/* Small screens ---------------------------------------------------------- */

@media (max-width: 900px) {
  .reviews {
    grid-template-columns: 1fr;
    max-width: 34rem;
    margin-inline: auto;
  }

  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 2.5rem;
  }
}

@media (max-width: 760px) {
  .about__grid {
    grid-template-columns: 1fr;
  }

  .about__photo {
    width: min(100% - 1.5rem, 280px);
  }

  .guides {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
  }
}
