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

/* ---------- 1. Top: title on the left, desk photo on the right ---------- */
/* Client's requests: text centered top-to-bottom beside the photo, and text + photo kept together
   as one centered group (80px apart) instead of pushed to the far edges. */
.t-hero { background: var(--blush); display: flex; justify-content: center; align-items: center; gap: 80px; padding: 24px 16px; }
.t-hero h1 { font-family: var(--serif); font-size: 34.7px; line-height: 37.2px; font-weight: 700; }
.t-hero p { font-size: 22.6px; line-height: 24.1px; margin-top: 17px; }
.t-hero__photo { flex: none; width: 337px; height: 219px; object-fit: cover; border-radius: 56px; }

/* ---------- Teal title bars ("FREE TEMPLATES") ---------- */
.t-block { padding: 13px 16px 21px; text-align: center; }
.banner { max-width: 1076px; margin: 0 auto; background: var(--deep); color: var(--blush); font-family: var(--serif); font-size: 24.1px; line-height: 36px; font-weight: 700; }

/* ---------- Buttons on this page ---------- */
.btn-pill { display: inline-flex; align-items: center; justify-content: center; min-width: 95px; height: 29px; padding: 0 10px; border: 2px solid var(--deep); border-radius: 12px; background: #fff; color: var(--deep); font-size: 13.2px; text-decoration: none; }
.btn-pill:hover { background: var(--deep); color: #fff; }
/* "PURCHASE HERE" and "CHECK OUR SERVICES HERE": made bigger at the client's request (2026-11-18),
   both the same size, and at least 44px tall so they're easy to tap on a phone. */
.btn-filled { display: inline-flex; align-items: center; justify-content: center; min-width: 240px; min-height: 46px; padding: 0 28px; border-radius: 14px; background: var(--deep); color: var(--blush); font-size: 15px; font-weight: 700; letter-spacing: 0.04em; text-decoration: none; }
.btn-filled:hover { background: var(--teal); }

/* ---------- 2. Free templates: 4 cards ---------- */
.free-grid { display: flex; justify-content: center; gap: 9px; margin-top: 18px; }
.free-card { width: 183px; height: 231px; background: var(--blush); border-radius: 13px; padding: 10px 10px 0; display: flex; flex-direction: column; align-items: center; }
.free-card__media { width: 159px; height: 111px; object-fit: cover; background: #fff; }
.free-card__frame { position: relative; line-height: 0; } /* holds the round Pause / Play button (../shared/video-pause.js) */
.free-card__frame .video-pause { left: 5px; bottom: 5px; transform: scale(0.75); transform-origin: left bottom; }
.free-card h3 { font-size: 10.9px; line-height: 11.6px; font-weight: 700; margin-top: 12px; }
.free-card p { font-size: 10.7px; line-height: 11.6px; margin-top: 3px; }
.free-card p.free-card__small { font-size: 9.2px; line-height: 10px; } /* Canva uses smaller text on the Money Envelope card */
.free-card .btn-pill { margin-top: auto; margin-bottom: 9px; }

/* ---------- 3. Paid templates: 6 cards (4 + 2) ---------- */
.paid-intro { font-size: 22.6px; line-height: 24px; margin-top: 19px; }
.paid-grid { display: grid; grid-template-columns: repeat(4, 183px); justify-content: center; gap: 18px 13px; margin-top: 29px; }
.paid-card { height: 161px; background: var(--blush); border-radius: 13px; padding: 12px 12px 0; color: var(--ink); text-decoration: none; display: flex; flex-direction: column; align-items: center; }
.paid-card--tall { height: 173px; }
/* Centres the 2-card second row under the 4 columns. Tablets and computers only: on a 2-column phone grid
   it pushed card 5 into the right column and left an empty space (client feedback 2026-11-19). */
@media (min-width: 768px) { .paid-card:nth-child(5) { grid-column: 2; } }
.paid-card img { width: 159px; height: 107px; object-fit: cover; flex: none; }
.paid-card--left img { object-position: left center; }
.paid-card--top img { object-position: center top; }
.paid-card b { font-size: 10.9px; line-height: 11.6px; }
.paid-card b:first-of-type { margin-top: 6px; }
.paid-card b + b { margin-top: 3px; }
.paid-card:hover { box-shadow: 0 0 0 2px var(--deep); }
.paid-grid + .btn-filled { margin-top: 20px; }
.t-block--paid { padding-bottom: 11px; }

/* ---------- 4. Services: "Why choose us?" box ---------- */
.t-block--services { padding-bottom: 21px; }
.why { max-width: 762px; margin: 14px auto 19px; background: var(--blush); border-radius: 13px; padding: 19px 24px 23px 28px; text-align: left; }
.why__title { color: var(--deep); font-size: 26.2px; line-height: 28px; font-weight: 700; text-align: center; }
.why dl { margin: 13px 0 0; }
.why dt { color: var(--deep); font-size: 22.7px; line-height: 24px; font-weight: 700; }
.why dd { margin: 0 0 24px; font-size: 22.7px; line-height: 24px; }
.why__closing { font-size: 22.7px; line-height: 24px; }
.why__note { color: var(--deep); font-size: 13.4px; line-height: 14px; font-weight: 700; text-align: center; margin-top: 28px; }

/* Printing-service photos above "Why choose us?" (client's request, 2026-11-18): 4 across, like the free cards. */
.print-work { list-style: none; padding: 0; margin: 14px auto 0; display: grid; grid-template-columns: repeat(4, minmax(0, 183px)); justify-content: center; gap: 9px; }
.print-work li { background: var(--blush); border-radius: 13px; padding: 10px 10px 9px; }
.print-work img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 6px; }
.print-work span { display: block; margin-top: 8px; color: var(--deep); font-size: 10.9px; line-height: 11.6px; font-weight: 700; }

/* ---------- Tablets and small laptop windows: keep Canva's rows (4 free; 4 + 2 paid), cards shrink to fit ---------- */
@media (max-width: 1023px) {
  .t-hero { gap: 32px; }
  .t-hero h1 br, .t-hero p br { display: none; }
  .free-card { flex: 0 1 183px; width: auto; height: auto; min-height: 231px; }
  .free-card__media { width: 100%; height: auto; aspect-ratio: 159 / 111; } .free-card__frame { width: 100%; }
  .paid-grid { grid-template-columns: repeat(4, minmax(0, 183px)); }
  .paid-card, .paid-card--tall { height: auto; padding-bottom: 12px; }
  .paid-card img { width: 100%; height: auto; aspect-ratio: 159 / 107; }
}

/* ---------- Phones (Canva's phone page) ---------- */
@media (max-width: 767px) {
  .t-hero { flex-direction: column; align-items: stretch; padding: 24px 16px 28px; }
  .t-hero__text { padding-top: 0; }
  .t-hero h1 { font-size: 27px; line-height: 29px; }
  .t-hero h1 br, .t-hero p br, .paid-intro br { display: none; }
  .t-hero p { font-size: 17px; line-height: 19px; margin-top: 8px; }
  .t-hero__photo { width: 100%; height: auto; aspect-ratio: 337 / 219; border-radius: 40px; margin-top: 14px; }

  .banner { font-size: 20px; line-height: 32px; margin-inline: -16px; }
  .free-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .free-card { width: auto; height: auto; min-height: 220px; padding-inline: 8px; }
  .free-card__media { width: 100%; height: auto; aspect-ratio: 159 / 111; } .free-card__frame { width: 100%; }
  .free-card p br { display: none; }
  .free-card .btn-pill { margin-top: 10px; }

  .paid-intro { font-size: 16px; line-height: 19px; }
  .paid-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .paid-card, .paid-card--tall { height: auto; padding-bottom: 12px; }
  .paid-card img { width: 100%; height: auto; aspect-ratio: 159 / 107; }

  .print-work { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .print-work span { font-size: 13px; line-height: 15px; }
  .why { padding: 16px 14px 18px; }
  .why__title { font-size: 20px; }
  .why dt, .why dd, .why__closing { font-size: 15.5px; line-height: 17px; }
  .why dd { margin-bottom: 14px; }
  .why__note { font-size: 11.5px; line-height: 13px; margin-top: 16px; }
}
