/* Clover home page */

body {
  margin: 0;
  background: #1f7fe0;
}

/* Full-screen sky background */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 100vh;
  min-height: 100svh;
  background-color: #2a86e4;
}

/* the image sits on its own layer so it can be softly blurred;
   it overhangs the edges so the blur never shows a light rim */
.hero::before {
  content: "";
  position: absolute;
  inset: -24px;
  z-index: -1;
  background-image: url("../images/clouds.jpg");
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
  filter: blur(4px);
}

/* Hero headline and CTA, centered in the open sky */
.hero {
  display: flex;
  justify-content: center;
  padding: clamp(140px, 22vh, 220px) 24px 0;
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  max-width: 880px;
  text-align: center;
}

.hero__title {
  margin: 0;
  font-family: "Alike", Georgia, serif;
  font-weight: 400;
  font-size: clamp(38px, 6.2vw, 80px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: #EDE4D6;
  text-shadow: 0 2px 18px rgba(0, 70, 140, 0.45);
  text-wrap: balance;
}

.hero__sub {
  max-width: 34em;
  margin: -12px 0 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: clamp(16px, 1.5vw, 20px);
  line-height: 1.55;
  color: #DCE0E4;
  text-shadow: 0 1px 14px rgba(0, 70, 140, 0.55);
  text-wrap: balance;
}

.hero__cta {
  padding: 14px 28px;
  font-size: 15px;
}

.hero__cta:focus-visible {
  outline: 2px solid #EDE4D6;
  outline-offset: 3px;
}

/* Statement section: white, editorial serif paragraph */
main {
  background: #FFFFFF;
}

.statement {
  --statement-blue: #007FC8;
  --statement-dim: rgba(0, 127, 200, 0.38);
  --statement-gleam: #1C93D8;
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(96px, 16vh, 180px) clamp(24px, 6vw, 96px);
  color: var(--statement-blue);
  scroll-margin-top: 80px;
}

.statement__text {
  margin: 0;
  font-family: "Alike", Georgia, serif;
  font-weight: 400;
  font-size: clamp(26px, 3.3vw, 48px);
  line-height: 1.28;
  letter-spacing: -0.005em;
  text-wrap: pretty;
}

/* Inline line drawing that sits between words */
.statement__inline {
  display: inline-block;
  /* the PNG has empty space around the drawing; negative margins trim it
     so the clover head sits at cap height and the stem ends on the baseline */
  height: 1.46em;
  width: auto;
  margin: -0.3em -0.14em -0.3em -0.3em;
  vertical-align: -0.24em;
  transition: opacity 0.5s ease;
}

/* Keeps the drawing between its two words, never at a line end */
.statement__keep {
  white-space: nowrap;
}

/* Scroll reading highlight: words light up as you scroll */
.statement__text.is-ready .word {
  color: var(--statement-dim);
  transition: color 0.45s ease, text-shadow 0.6s ease;
}

.statement__text.is-ready .word.is-read {
  color: var(--statement-blue);
}

.statement__text.is-ready .word.is-gleam {
  color: var(--statement-gleam);
  text-shadow: 0 0 12px rgba(59, 184, 247, 0.16);
}

.statement__text.is-ready .statement__inline {
  opacity: 0.4;
}

.statement__text.is-ready .statement__inline.is-read {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .statement__text.is-ready .word,
  .statement__inline {
    transition: none;
  }
}

/* Partners section: endless zigzag of logo circles + heading */
.partners {
  --partners-blue: #007FC8;
  --circle: clamp(150px, 14vw, 210px);
  --step: calc(var(--circle) * 1.06);   /* vertical distance between circle centres */
  --shift: calc(var(--circle) * 1.16);  /* how far right the even circles sit */
  background: #FFFFFF;
  color: var(--partners-blue);
  padding: clamp(80px, 12vh, 140px) clamp(24px, 6vw, 96px);
  overflow: hidden;
}

.partners__inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(48px, 8vw, 140px);
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

/* window shows four circles; soft fade at the top and bottom edges */
.partners__marquee {
  position: relative;
  width: calc(var(--circle) + var(--shift) + 72px);
  height: calc(var(--step) * 3 + var(--circle));
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 9%, #000 91%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 9%, #000 91%, transparent 100%);
}

.partners__track {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0 36px;
  list-style: none;
  animation: partners-scroll var(--duration, 24s) linear infinite;
}

.partners__marquee:hover .partners__track {
  animation-play-state: paused;
}

.partners__logo {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: var(--circle);
  height: var(--circle);
  margin-bottom: calc(var(--step) - var(--circle));
  border: 1px solid rgba(0, 127, 200, 0.10);
  border-radius: 50%;
  background: #FFFFFF;
  box-shadow: 0 10px 26px rgba(0, 70, 120, 0.08);
}

.partners__logo:nth-child(even) {
  margin-left: var(--shift);
}

.partners__logo img {
  display: block;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* wordmarks get width, icons get height, so both read at a similar weight */
.partners__logo--wide img {
  max-width: 74%;
  max-height: 36%;
}

.partners__logo--square img {
  max-width: 54%;
  max-height: 54%;
}

/* the list is duplicated in JS, so moving up by half loops seamlessly */
@keyframes partners-scroll {
  from { transform: translateY(0); }
  to { transform: translateY(-50%); }
}

.partners__copy {
  max-width: 460px;
}

.partners__title {
  margin: 0 0 20px;
  font-family: "Alike", Georgia, serif;
  font-weight: 400;
  font-size: clamp(36px, 4.6vw, 64px);
  line-height: 1.06;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.partners__text {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: clamp(16px, 1.3vw, 18px);
  line-height: 1.65;
  opacity: 0.85;
}

/* Tablet and below: copy first, logo column centred underneath */
@media (max-width: 860px) {
  .partners__inner {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 40px;
  }

  .partners__copy {
    order: -1;
    max-width: 560px;
    justify-self: start;
  }
}

/* Phones: smaller circles so four still fit comfortably */
@media (max-width: 480px) {
  .partners {
    --circle: 128px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .partners__track {
    animation: none;
  }
}

/* FAQ section: intro on the left, accordion on the right */
.faq {
  --faq-blue: #007FC8;
  --faq-ink: #111214;
  --faq-muted: #4F6577;
  --faq-line: #111214;
  background: #FFFFFF;
  padding: clamp(80px, 12vh, 140px) clamp(24px, 6vw, 96px) clamp(96px, 14vh, 160px);
}

.faq__inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 7vw, 112px);
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
}

.faq__intro {
  position: sticky;
  top: 112px;
}

.faq__title {
  margin: 0 0 16px;
  font-family: "Alike", Georgia, serif;
  font-weight: 400;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--faq-blue);
  text-wrap: balance;
}

.faq__lead {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.5;
  color: var(--faq-muted);
}

.faq__more {
  margin: clamp(28px, 4vw, 48px) 0 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--faq-muted);
}

.faq a {
  color: var(--faq-blue);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.faq a:hover {
  text-decoration-thickness: 2px;
}

.faq__list {
  border-top: 1px solid var(--faq-line);
}

.faq__item {
  border-bottom: 1px solid var(--faq-line);
}

.faq__question {
  margin: 0;
  font: inherit;
}

.faq__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding: clamp(20px, 2.4vw, 28px) 0;
  border: 0;
  background: none;
  color: var(--faq-ink);
  text-align: left;
  cursor: pointer;
}

.faq__toggle:focus-visible {
  outline: 2px solid var(--faq-blue);
  outline-offset: 4px;
  border-radius: 4px;
}

.faq__label {
  font-family: "Alike", Georgia, serif;
  font-size: clamp(19px, 1.8vw, 24px);
  line-height: 1.3;
}

.faq__toggle:hover .faq__label,
.faq__item.is-open .faq__label {
  color: var(--faq-blue);
}

/* thick chevron: points down when closed, up when open */
.faq__icon {
  flex-shrink: 0;
  width: 11px;
  height: 11px;
  margin: -6px 6px 0 0;
  border-right: 3px solid var(--faq-ink);
  border-bottom: 3px solid var(--faq-ink);
  transform: rotate(45deg);
}

.faq__item.is-open .faq__icon {
  margin-top: 6px;
  border-color: var(--faq-blue);
  transform: rotate(-135deg);
}

.faq__answer[hidden] {
  display: none;
}

.faq__answer-inner p {
  margin: 0;
  padding: 0 clamp(8px, 4vw, 54px) clamp(22px, 2.4vw, 30px) 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 1.7;
  color: var(--faq-muted);
}

.faq__answer-inner strong {
  font-weight: 500;
  color: var(--faq-blue);
}

/* Tablet and below: intro stacks above the questions */
@media (max-width: 860px) {
  .faq__inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .faq__intro {
    position: static;
  }

  .faq__answer-inner p {
    padding-right: 0;
  }
}

/* CTA card: blue card with a rolling word wheel and the booking button */
.cta {
  padding: 0 clamp(16px, 6vw, 96px) clamp(80px, 12vh, 140px);
  background: #FFFFFF;
}

.cta__card {
  --cta-row: clamp(56px, 6.4vw, 92px);
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 80px);
  border-radius: clamp(24px, 3vw, 36px);
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0) 55%),
    #007FC8;
  color: #FFFFFF;
  overflow: hidden;
}

/* Word wheel: the active word sits on the arrow, neighbours blur and fade away */
.cta__wheel {
  position: relative;
  height: calc(var(--cta-row) * 5);
  padding-left: clamp(40px, 4.5vw, 64px);
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 22%, #000 78%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 22%, #000 78%, transparent 100%);
}

.cta__arrow {
  position: absolute;
  top: 50%;
  left: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: calc(var(--cta-row) * 0.62);
  font-weight: 500;
  line-height: 1;
  transform: translateY(-52%);
}

.cta__words {
  position: absolute;
  inset: 0 0 0 clamp(40px, 4.5vw, 64px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.cta__words li {
  position: absolute;
  top: 50%;
  left: 0;
  font-family: "Alike", Georgia, serif;
  font-size: calc(var(--cta-row) * 0.66);
  line-height: 1;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transform-origin: left center;
  transform: translateY(-50%);
  opacity: 0;
  transition: transform 0.8s cubic-bezier(0.65, 0, 0.35, 1), opacity 0.8s ease, filter 0.8s ease;
  will-change: transform, opacity, filter;
}

.cta__words li.is-jump {
  transition: none;
}

.cta__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.cta__action {
  container-type: inline-size;
}

.cta__title {
  margin: 0 0 14px;
  font-family: "Alike", Georgia, serif;
  font-weight: 400;
  font-size: clamp(26px, 2.8vw, 40px);
  font-size: min(48px, 9.4cqi);
  line-height: 1.1;
}

/* Heading keeps "We’re ready for work," on one line and scales to fit the column */
.cta__line {
  display: block;
  white-space: nowrap;
}

.cta__text {
  margin: 0 0 28px;
  max-width: 26em;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.86);
}

.cta__button {
  padding: 14px 28px;
  font-size: 15px;
}

.cta__button:focus-visible {
  outline: 2px solid #FFFFFF;
  outline-offset: 3px;
}

/* Mobile: wheel on top, booking underneath */
@media (max-width: 760px) {
  .cta__card {
    --cta-row: 48px;
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 36px 28px 40px;
  }

  .cta__wheel {
    padding-left: 34px;
  }

  .cta__words {
    left: 34px;
  }

  .cta__words li {
    font-size: calc(var(--cta-row) * 0.6);
  }
}

/* Footer: deep blue panel with an engraved landscape along the bottom */
.footer {
  --footer-blue: #007FC8;
  --footer-cream: #EDE4D6;
  background: var(--footer-blue);
  color: var(--footer-cream);
  font-family: "Alike", Georgia, serif;
}

.footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1fr)) minmax(0, 1.3fr);
  gap: clamp(32px, 4vw, 64px);
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(72px, 10vh, 112px) clamp(24px, 6vw, 96px) 0;
}

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

.footer a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

.footer a:focus-visible {
  outline: 2px solid var(--footer-cream);
  outline-offset: 3px;
  border-radius: 2px;
}

.footer__logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 34px;
  line-height: 1;
}

.footer__logo img {
  width: 40px;
  height: 40px;
}

.footer__tagline {
  margin: 22px 0 26px;
  max-width: 17em;
  font-size: 17px;
  font-style: italic;
  line-height: 1.5;
  opacity: 0.9;
}

.footer__email {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
}

.footer__email svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.footer__heading {
  margin: 0 0 22px;
  padding-bottom: 14px;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: linear-gradient(currentColor, currentColor) left bottom / 32px 1px no-repeat;
}

.footer__col ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 16px;
}

.footer__note p {
  margin: 0;
  max-width: 20em;
  font-size: 16px;
  font-style: italic;
  line-height: 1.55;
  opacity: 0.9;
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(48px, 7vh, 72px) clamp(24px, 6vw, 96px) 0;
  font-size: 14px;
  font-style: italic;
}

.footer__bottom p {
  margin: 0;
  opacity: 0.85;
}

.footer__legal {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer__legal li + li::before {
  content: "|";
  margin: 0 16px;
  opacity: 0.7;
}

.footer__art {
  height: clamp(180px, 23.4vw, 380px); /* matches the art's 1199×280 proportions */
  margin-top: clamp(-8px, 2vw, 24px);
  background: url("../images/footer-landscape.jpg") center bottom / cover no-repeat;
}

/* Tablet: brand across the top, link columns underneath */
@media (max-width: 960px) {
  .footer__inner {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer__brand {
    grid-column: 1 / -1;
  }
}

/* Phones: two columns, legal links stack under the copyright */
@media (max-width: 560px) {
  .footer__inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 40px;
  }

  .footer__note {
    grid-column: 1 / -1;
  }

  .footer__bottom {
    flex-direction: column-reverse;
    align-items: flex-start;
  }

  .footer__art {
    background-position: 46% bottom;
  }
}
