/* National Beauty Therapy Apprenticeship – holding page
   Built from the 1920px design: a normal flowing layout, with sizes that scale with the window. */

@font-face { font-family: Gilroy; font-weight: 500; font-display: swap; src: url(fonts/Gilroy-Medium.otf) format("opentype"); }
@font-face { font-family: Gilroy; font-weight: 600; font-display: swap; src: url(fonts/Gilroy-SemiBold.otf) format("opentype"); }
@font-face { font-family: Gilroy; font-weight: 700; font-display: swap; src: url(fonts/Gilroy-Bold.otf) format("opentype"); }

:root {
  --coral: #ed6b6a;
  --teal: #20a299;
  --teal-icon: #009ba5;
  --ink: #000;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: Gilroy, "Futura", "Century Gothic", sans-serif; font-weight: 500; color: var(--ink); background: #fff; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background-color: #48ac8a;
  background-image: url(img/hero.jpg);
  background-image: image-set(url(img/hero.webp) type("image/webp"), url(img/hero.jpg) type("image/jpeg"));
  background-repeat: no-repeat;
  background-size: 190% auto;           /* phones: photo along the bottom, text on the teal above it */
  background-position: 22% 100%;
  min-height: 100vh; min-height: 100svh;
}
.hero::before {                       /* the white line pattern */
  content: "";
  position: absolute;
  inset: 0;
  background: url(img/hero-lines-soft.svg) right top / auto 100% no-repeat;
  z-index: 0;
  pointer-events: none;
}
.hero__inner { position: relative; z-index: 1; padding: 36px 24px 0; padding-bottom: 88vw; }

.brand { display: flex; align-items: center; gap: 16px; text-decoration: none; }
.brand__mark { width: 50px; height: auto; flex: none; }
.brand__text {
  padding-left: 16px;
  border-left: 1px solid #fff;
  font-weight: 700;
  font-size: 22px;
  line-height: .868;
  text-transform: uppercase;
}
.hero__title {
  margin: 56px 0 28px;
  max-width: 24ch;
  font-weight: 600;
  font-size: clamp(28px, 7.4vw, 44px);
  line-height: 1.245;
}
.hero__title br { display: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 64px; padding: 0 32px;
  background: var(--coral); color: #fff;
  border-radius: 22px;
  font-weight: 600; font-size: 21px; text-decoration: none; white-space: nowrap;
  transition: background-color .2s, transform .2s;
}
.btn:hover { background: #e25a59; }
.btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

@media (min-width: 560px) and (max-width: 899px) {
  .hero { background-size: 130% auto; }
  .hero__inner { padding-bottom: 60vw; }
}
@media (max-width: 899px) {
  .hero {
    background-image: url(img/hero-small.jpg);
    background-image: image-set(url(img/hero-small.webp) type("image/webp"), url(img/hero-small.jpg) type("image/jpeg"));
  }
}

/* ---------- Desktop: text block top-left over a full-height photo ---------- */
@media (min-width: 900px) {
  .hero { background-size: cover; background-position: center; }
  .hero::before { background: url(img/hero-lines.svg) center / cover no-repeat; }

  /* columns: 17vw margin | 5.45vw indent | headline width | rest
     (the design's logo starts at x=326 and the headline at x=431 of 1920) */
  .hero__inner {
    display: grid;
    grid-template-columns: 17vw 5.45vw max-content 1fr;
    align-content: start;
    min-height: 100vh; min-height: 100svh;
    padding: clamp(32px, 5vh, 56px) 0 48px;
  }

  .brand { grid-column: 2 / -1; justify-self: start; gap: 0; }
  .brand__mark { width: clamp(48px, 3.96vw, 84px); }
  .brand__text {
    margin-left: clamp(8px, .7vw, 14px);
    padding-left: clamp(10px, .8vw, 16px);
    font-size: clamp(18px, 2.14vw, 44px);
  }

  .hero__title {
    grid-column: 3;
    margin: clamp(40px, 8vh, 96px) 0 clamp(20px, 1.5vw, 30px);
    max-width: none;
    font-size: clamp(28px, 2.76vw, 56px);
  }
  .hero__title br { display: inline; }

  .btn {
    grid-column: 3; justify-self: end;
    height: clamp(56px, 4.22vw, 84px); padding: 0 clamp(24px, 2.1vw, 42px);
    border-radius: clamp(18px, 1.43vw, 28px);
    font-size: clamp(18px, 1.4vw, 28px);
  }
}

/* ---------- Footer ---------- */
.footer { background: #fff; }
.footer__inner {
  max-width: 1520px; margin: 0 auto; padding: 56px 24px 64px;
  display: grid; gap: 40px;
}
.footer__logo { display: block; width: min(346px, 100%); }
.footer h2 { margin: 0 0 14px; font-size: 18px; font-weight: 700; line-height: 1.2; color: var(--teal); }
.footer address, .footer p { margin: 0; font-style: normal; font-size: 16px; line-height: 1.125; }
.footer p + p { margin-top: 17px; }
.footer strong { font-weight: 700; }
.footer a { text-decoration: none; overflow-wrap: anywhere; }
.footer a:hover, .footer a:focus-visible { text-decoration: underline; }
.social { display: flex; gap: 20px; margin: 0; padding: 0; list-style: none; }
.social a { display: block; padding: 4px; margin: -4px; }
.social img { height: 31px; width: auto; }

@media (min-width: 900px) {
  .footer__inner {
    grid-template-columns: minmax(300px, 515px) minmax(280px, 384px) 1fr auto;
    gap: 0 24px; padding: 80px 24px 96px; padding-right: 48px;
    align-items: start;
  }
  .footer__logo { margin-left: -1px; }
  .footer__col h2 { margin-top: 20px; }
  .social { margin-top: 26px; }
}
