/* Home page. Copies the client's Canva Home page (decision #30).
   Numbers are measured from Canva's 1440px-wide page; the phone layout follows Canva's phone page.
   Shared header, footer, buttons and fonts: ../shared/site.css */

/* Centers a full-width band's content in the 974px page column. */
.hero, .start, .story, .cta { padding-inline: max(16px, calc((100% - var(--page)) / 2)); }

/* ---------- 1. Hero: text on the left, photo in an arch on the right ---------- */
.hero { background: var(--blush); display: flex; justify-content: space-between; align-items: flex-start; padding-block: 12px 14px; }
.hero__text { padding: 12px 0 0 8px; }
.hero__title { font-family: var(--serif); font-size: 31.8px; line-height: 34px; font-weight: 700; }
.hero__script { font-family: var(--script); color: var(--teal); font-size: 26px; line-height: 27.2px; margin-top: 3px; }
.hero__lead { font-size: 20.7px; line-height: 22.1px; max-width: 441px; margin-top: 10px; }
.hero__actions { display: flex; gap: 14px; margin-top: 22px; }
.hero__actions a { height: 46px; font-size: 14.5px; }
.hero__actions .btn-solid { width: 219px; }
.hero__actions .btn-outline { width: 207px; }
.hero__arch { position: relative; flex: none; width: 264px; height: 290px; margin-right: 95px; overflow: hidden; border-radius: 50% 50% 0 0 / 46% 46% 0 0; }
.hero__arch img { position: absolute; width: 109.1%; max-width: none; left: -4.9%; top: 0.3%; }

/* ---------- 2. Where would you like to start? (4 cards) ---------- */
.start { padding-block: 23px 29px; }
.start .subtitle { margin-top: 9px; }
.start__cards { display: flex; justify-content: center; gap: 16px; margin-top: 25px; }
.path-card { width: 220px; height: 225px; display: flex; flex-direction: column; align-items: center; text-align: center; background: var(--card); border: 2px solid var(--line); border-radius: 17px; padding: 11px 8px 15px; }
.path-card__icon { height: 50px; width: auto; object-fit: contain; padding-block: 3px; }
.path-card h3 { font-family: var(--serif); color: var(--deep); font-size: 16.7px; line-height: 16.2px; margin-top: 7px; }
.path-card p { font-size: 13.7px; line-height: 12.8px; margin-top: 11px; }
.path-card .btn-small { margin-top: auto; }

/* ---------- 3. What we do best: 2 photos + 5 small boxes ---------- */
.best { padding: 26px 16px 18px; }
.best .subtitle { margin-top: 9px; }
.best__photos { display: flex; justify-content: center; gap: 14px; margin-top: 51px; }
.photo-card { position: relative; flex: 0 1 601px; height: 302px; border-radius: 16px; overflow: hidden; }
.photo-card img { position: absolute; max-width: none; }
.photo-card--creator img { width: 114.3%; left: -14.3%; top: -158.9%; }
.photo-card--hosting img { width: 100%; left: 0; top: -102%; }
.photo-card__label { position: absolute; left: 49.9%; bottom: 55px; width: 233px; background: var(--label); border-radius: 23px; padding: 18px 23px 16px; }
.photo-card__label h3 { font-size: 22.7px; line-height: 24.1px; font-weight: 700; }
.photo-card__label a { display: inline-block; margin-top: 8px; color: var(--teal); font-size: 18.6px; font-weight: 700; }
.best__list { list-style: none; padding: 0; margin: 13px auto 0; display: flex; justify-content: center; gap: 11px; }
.best__list li { width: 187px; height: 67px; background: var(--blush); border-radius: 17px; display: flex; align-items: center; gap: 11px; padding-left: 12px; }
.best__list img { width: 40px; height: 43px; object-fit: contain; flex: none; }
.best__list span { font-size: 12.9px; line-height: 13.5px; }
.best__list b { display: block; color: var(--deep); font-size: 12.5px; line-height: 13.4px; }

/* ---------- 4. Hi, I'm Tammy ---------- */
.story { background: var(--blush); display: flex; align-items: flex-start; gap: 49px; padding-block: 25px 21px; }
.story__photo { position: relative; flex: none; width: 145px; height: 165px; margin-left: 16px; border-radius: 25px; overflow: hidden; }
.story__photo img { position: absolute; max-width: none; width: 122%; left: -11%; top: 0; }
.story__text { padding-top: 13px; max-width: 484px; }
.story__hi { color: var(--deep); font-size: 18.4px; line-height: 19.8px; font-weight: 700; }
.story__title { font-family: var(--serif); font-weight: 400; font-size: 21.5px; line-height: 22.7px; margin-top: 10px; }
.story__text p:not(.story__hi) { font-size: 16.3px; line-height: 16.8px; margin-top: 10px; }
.story__link { display: inline-block; margin-top: 10px; color: var(--deep); font-size: 18.4px; font-weight: 700; }

/* ---------- 5. Ready to start planning? (teal band) ---------- */
.cta { background: var(--teal); color: #fff; display: flex; align-items: center; gap: 91px; padding-block: 13px 12px; }
.cta__text { max-width: 452px; }
.cta h2 { font-family: var(--serif); font-size: 21.1px; line-height: 22.7px; }
.cta__text p { font-size: 13.8px; line-height: 14.7px; margin-top: 4px; }
.cta .cta__note { font-size: 8.7px; line-height: 8.9px; font-style: italic; margin-top: 4px; }
.cta__btn { flex: none; width: 278px; height: 35px; display: inline-flex; align-items: center; justify-content: center; background: #fff; color: var(--teal); border-radius: 12px; font-size: 17.3px; font-weight: 700; text-decoration: none; }
.cta__btn:hover { background: var(--blush); }

/* ---------- Tablets: let the rows wrap ---------- */
@media (max-width: 1023px) {
  .start__cards, .best__list { flex-wrap: wrap; }
  .best__photos { flex-direction: column; align-items: center; }
  .photo-card { flex: none; width: min(601px, 100%); }
}

/* ---------- iPads in portrait and small laptop windows (client feedback, 2026-11-20: Home "isn't optimized" on iPad) ----------
   Only between 768px and 1023px wide, so phones and computers are not affected. */
@media (min-width: 768px) and (max-width: 1023px) {
  .hero { align-items: center; gap: 32px; }
  .hero__text { flex: 1 1 auto; min-width: 0; }
  .hero__arch { margin-right: 0; }
  .hero__actions a { flex: 1 1 0; } /* the two buttons share the space instead of running into the photo */
  .hero__actions .btn-solid { max-width: 219px; } .hero__actions .btn-outline { max-width: 207px; }

  /* 4 cards as 2 rows of 2 (not 3 + 1), with bigger text */
  .start__cards { display: grid; grid-template-columns: repeat(2, minmax(0, 320px)); justify-content: center; gap: 18px; }
  .path-card { width: auto; height: auto; min-height: 236px; padding: 16px 18px 18px; }
  .path-card h3 { font-size: 20px; line-height: 21px; }
  .path-card p { font-size: 15px; line-height: 19px; margin-bottom: 16px; }

  /* 5 small boxes as 3 + 2, centred (not 4 + 1) */
  .best__list { max-width: 760px; gap: 12px; }
  .best__list li { width: 240px; height: 72px; }
  .best__list b { font-size: 14px; line-height: 16px; }
  .best__list span { font-size: 13.5px; line-height: 15px; }

  /* Ready to start planning? — readable text, button beside it */
  .cta { gap: 32px; padding-block: 20px; }
  .cta__text { flex: 1 1 auto; }
  .cta h2 { font-size: 24px; line-height: 27px; }
  .cta__text p { font-size: 15px; line-height: 19px; margin-top: 6px; }
  .cta .cta__note { font-size: 11px; line-height: 13px; margin-top: 6px; }
  .cta__btn { width: 260px; height: 46px; }
}

/* ---------- Phones (Canva's phone page) ---------- */
@media (max-width: 767px) {
  .hero { flex-direction: column; align-items: stretch; padding-block: 18px 0; }
  .hero__text { padding: 0; }
  .hero__title { font-size: 30px; line-height: 32px; }
  .hero__script { font-size: 22px; line-height: 23px; }
  .hero__lead { font-size: 17px; line-height: 19px; }
  .hero__actions { margin-top: 16px; }
  .hero__actions a { flex: 1; width: auto; height: 38px; font-size: 13px; }
  .hero__arch { align-self: center; width: 200px; height: 220px; margin: 24px 0 0; }

  .start { padding-block: 22px 26px; }
  .start__cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 18px; }
  .path-card { width: auto; height: auto; min-height: 200px; padding: 10px 6px 12px; }
  .path-card p { font-size: 12.5px; line-height: 12.5px; }

  .best { padding-top: 22px; }
  .best__photos { margin-top: 18px; gap: 14px; }
  .photo-card { height: auto; aspect-ratio: 601 / 302; }
  .photo-card__label { left: 48%; bottom: 14%; width: 46%; padding: 9px 10px; border-radius: 12px; }
  /* grows with the photo on big phones and the iPad mini (744px); same 12.5px / 10.5px on normal phones */
  .photo-card__label h3 { font-size: clamp(12.5px, 2.4vw, 18px); line-height: calc(1em + 0.5px); } /* = 13px on normal phones, as before */
  .photo-card__label a { font-size: clamp(10.5px, 2vw, 15px); margin-top: 4px; }
  .best__list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; max-width: 343px; }
  .best__list li { width: auto; height: 56px; gap: 8px; padding-left: 8px; }
  .best__list li:last-child { grid-column: 1 / -1; justify-self: center; width: calc(50% - 5px); }
  .best__list img { width: 30px; height: 32px; }

  .story { flex-direction: column; gap: 0; padding-block: 20px 18px; }
  .story__photo { margin-left: 0; width: 145px; }
  .story__text { padding-top: 12px; }

  .cta { flex-direction: column; align-items: stretch; gap: 14px; padding-block: 14px 16px; }
  .cta__btn { align-self: center; width: min(278px, 100%); }
}
